Class ServiceUpdateMessage

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class ServiceUpdateMessage extends ServiceAnnouncementBase implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • ServiceUpdateMessage

      public ServiceUpdateMessage()
      Instantiates a new ServiceUpdateMessage and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static ServiceUpdateMessage createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a ServiceUpdateMessage
    • getActionRequiredByDateTime

      @Nullable public OffsetDateTime getActionRequiredByDateTime()
      Gets the actionRequiredByDateTime property value. The expected deadline of the action for the message.
      Returns:
      a OffsetDateTime
    • getAttachments

      @Nullable public List<ServiceAnnouncementAttachment> getAttachments()
      Gets the attachments property value. A collection of serviceAnnouncementAttachments.
      Returns:
      a List<ServiceAnnouncementAttachment>
    • getAttachmentsArchive

      @Nullable public byte[] getAttachmentsArchive()
      Gets the attachmentsArchive property value. The zip file that contains all attachments for a message.
      Returns:
      a
      invalid reference
      byte[]
    • getBody

      @Nullable public ItemBody getBody()
      Gets the body property value. The body property
      Returns:
      a ItemBody
    • getCategory

      @Nullable public ServiceUpdateCategory getCategory()
      Gets the category property value. The category property
      Returns:
      a ServiceUpdateCategory
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class ServiceAnnouncementBase
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getHasAttachments

      @Nullable public Boolean getHasAttachments()
      Gets the hasAttachments property value. Indicates whether the message has any attachment.
      Returns:
      a Boolean
    • getIsMajorChange

      @Nullable public Boolean getIsMajorChange()
      Gets the isMajorChange property value. Indicates whether the message describes a major update for the service.
      Returns:
      a Boolean
    • getServices

      @Nullable public List<String> getServices()
      Gets the services property value. The affected services by the service message.
      Returns:
      a List<String>
    • getSeverity

      @Nullable public ServiceUpdateSeverity getSeverity()
      Gets the severity property value. The severity property
      Returns:
      a ServiceUpdateSeverity
    • getTags

      @Nullable public List<String> getTags()
      Gets the tags property value. A collection of tags for the service message. Tags are provided by the service team/support team who post the message to tell whether this message contains privacy data, or whether this message is for a service new feature update, and so on.
      Returns:
      a List<String>
    • getViewPoint

      @Nullable public ServiceUpdateMessageViewpoint getViewPoint()
      Gets the viewPoint property value. Represents user viewpoints data of the service message. This data includes message status such as whether the user has archived, read, or marked the message as favorite. This property is null when accessed with application permissions.
      Returns:
      a ServiceUpdateMessageViewpoint
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class ServiceAnnouncementBase
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setActionRequiredByDateTime

      public void setActionRequiredByDateTime(@Nullable OffsetDateTime value)
      Sets the actionRequiredByDateTime property value. The expected deadline of the action for the message.
      Parameters:
      value - Value to set for the actionRequiredByDateTime property.
    • setAttachments

      public void setAttachments(@Nullable List<ServiceAnnouncementAttachment> value)
      Sets the attachments property value. A collection of serviceAnnouncementAttachments.
      Parameters:
      value - Value to set for the attachments property.
    • setAttachmentsArchive

      public void setAttachmentsArchive(@Nullable byte[] value)
      Sets the attachmentsArchive property value. The zip file that contains all attachments for a message.
      Parameters:
      value - Value to set for the attachmentsArchive property.
    • setBody

      public void setBody(@Nullable ItemBody value)
      Sets the body property value. The body property
      Parameters:
      value - Value to set for the body property.
    • setCategory

      public void setCategory(@Nullable ServiceUpdateCategory value)
      Sets the category property value. The category property
      Parameters:
      value - Value to set for the category property.
    • setHasAttachments

      public void setHasAttachments(@Nullable Boolean value)
      Sets the hasAttachments property value. Indicates whether the message has any attachment.
      Parameters:
      value - Value to set for the hasAttachments property.
    • setIsMajorChange

      public void setIsMajorChange(@Nullable Boolean value)
      Sets the isMajorChange property value. Indicates whether the message describes a major update for the service.
      Parameters:
      value - Value to set for the isMajorChange property.
    • setServices

      public void setServices(@Nullable List<String> value)
      Sets the services property value. The affected services by the service message.
      Parameters:
      value - Value to set for the services property.
    • setSeverity

      public void setSeverity(@Nullable ServiceUpdateSeverity value)
      Sets the severity property value. The severity property
      Parameters:
      value - Value to set for the severity property.
    • setTags

      public void setTags(@Nullable List<String> value)
      Sets the tags property value. A collection of tags for the service message. Tags are provided by the service team/support team who post the message to tell whether this message contains privacy data, or whether this message is for a service new feature update, and so on.
      Parameters:
      value - Value to set for the tags property.
    • setViewPoint

      public void setViewPoint(@Nullable ServiceUpdateMessageViewpoint value)
      Sets the viewPoint property value. Represents user viewpoints data of the service message. This data includes message status such as whether the user has archived, read, or marked the message as favorite. This property is null when accessed with application permissions.
      Parameters:
      value - Value to set for the viewPoint property.