Package com.microsoft.graph.models
Class ServiceUpdateMessage
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.ServiceAnnouncementBase
com.microsoft.graph.models.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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceUpdateMessagecreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the actionRequiredByDateTime property value.Gets the attachments property value.byte[]Gets the attachmentsArchive property value.getBody()Gets the body property value.Gets the category property value.The deserialization information for the current modelGets the hasAttachments property value.Gets the isMajorChange property value.Gets the services property value.Gets the severity property value.getTags()Gets the tags property value.Gets the viewPoint property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidSets the actionRequiredByDateTime property value.voidSets the attachments property value.voidsetAttachmentsArchive(byte[] value) Sets the attachmentsArchive property value.voidSets the body property value.voidsetCategory(ServiceUpdateCategory value) Sets the category property value.voidsetHasAttachments(Boolean value) Sets the hasAttachments property value.voidsetIsMajorChange(Boolean value) Sets the isMajorChange property value.voidsetServices(List<String> value) Sets the services property value.voidsetSeverity(ServiceUpdateSeverity value) Sets the severity property value.voidSets the tags property value.voidSets the viewPoint property value.Methods inherited from class com.microsoft.graph.models.ServiceAnnouncementBase
getDetails, getEndDateTime, getLastModifiedDateTime, getStartDateTime, getTitle, setDetails, setEndDateTime, setLastModifiedDateTime, setStartDateTime, setTitleMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
ServiceUpdateMessage
public ServiceUpdateMessage()Instantiates a newServiceUpdateMessageand 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
Gets the actionRequiredByDateTime property value. The expected deadline of the action for the message.- Returns:
- a
OffsetDateTime
-
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
Gets the body property value. The body property- Returns:
- a
ItemBody
-
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:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classServiceAnnouncementBase- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getHasAttachments
Gets the hasAttachments property value. Indicates whether the message has any attachment.- Returns:
- a
Boolean
-
getIsMajorChange
Gets the isMajorChange property value. Indicates whether the message describes a major update for the service.- Returns:
- a
Boolean
-
getServices
Gets the services property value. The affected services by the service message. -
getSeverity
Gets the severity property value. The severity property- Returns:
- a
ServiceUpdateSeverity
-
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. -
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:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classServiceAnnouncementBase- Parameters:
writer- Serialization writer to use to serialize this model
-
setActionRequiredByDateTime
Sets the actionRequiredByDateTime property value. The expected deadline of the action for the message.- Parameters:
value- Value to set for the actionRequiredByDateTime property.
-
setAttachments
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
Sets the body property value. The body property- Parameters:
value- Value to set for the body property.
-
setCategory
Sets the category property value. The category property- Parameters:
value- Value to set for the category property.
-
setHasAttachments
Sets the hasAttachments property value. Indicates whether the message has any attachment.- Parameters:
value- Value to set for the hasAttachments property.
-
setIsMajorChange
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
Sets the services property value. The affected services by the service message.- Parameters:
value- Value to set for the services property.
-
setSeverity
Sets the severity property value. The severity property- Parameters:
value- Value to set for the severity property.
-
setTags
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
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.
-