Package com.microsoft.graph.models
Class Post
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.OutlookItem
com.microsoft.graph.models.Post
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class Post
extends OutlookItem
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 PostcreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the attachments property value.getBody()Gets the body property value.Gets the conversationId property value.Gets the conversationThreadId property value.Gets the extensions property value.The deserialization information for the current modelgetFrom()Gets the from property value.Gets the hasAttachments property value.Gets the inReplyTo property value.Gets the multiValueExtendedProperties property value.Gets the newParticipants property value.Gets the receivedDateTime property value.Gets the sender property value.Gets the singleValueExtendedProperties property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAttachments(List<Attachment> value) Sets the attachments property value.voidSets the body property value.voidsetConversationId(String value) Sets the conversationId property value.voidsetConversationThreadId(String value) Sets the conversationThreadId property value.voidsetExtensions(List<Extension> value) Sets the extensions property value.voidSets the from property value.voidsetHasAttachments(Boolean value) Sets the hasAttachments property value.voidsetInReplyTo(Post value) Sets the inReplyTo property value.voidSets the multiValueExtendedProperties property value.voidsetNewParticipants(List<Recipient> value) Sets the newParticipants property value.voidSets the receivedDateTime property value.voidSets the sender property value.voidSets the singleValueExtendedProperties property value.Methods inherited from class com.microsoft.graph.models.OutlookItem
getCategories, getChangeKey, getCreatedDateTime, getLastModifiedDateTime, setCategories, setChangeKey, setCreatedDateTime, setLastModifiedDateTimeMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Post
public Post()Instantiates a newPostand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static Post 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
Post
-
getAttachments
Gets the attachments property value. Read-only. Nullable. Supports $expand.- Returns:
- a
List<Attachment>
-
getBody
Gets the body property value. The contents of the post. This is a default property. This property can be null.- Returns:
- a
ItemBody
-
getConversationId
Gets the conversationId property value. Unique ID of the conversation. Read-only.- Returns:
- a
String
-
getConversationThreadId
Gets the conversationThreadId property value. Unique ID of the conversation thread. Read-only.- Returns:
- a
String
-
getExtensions
Gets the extensions property value. The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand. -
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 classOutlookItem- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getFrom
Gets the from property value. The from property- Returns:
- a
Recipient
-
getHasAttachments
Gets the hasAttachments property value. Indicates whether the post has at least one attachment. This is a default property.- Returns:
- a
Boolean
-
getInReplyTo
Gets the inReplyTo property value. Read-only. Supports $expand.- Returns:
- a
Post
-
getMultiValueExtendedProperties
Gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the post. Read-only. Nullable.- Returns:
- a
List<MultiValueLegacyExtendedProperty>
-
getNewParticipants
Gets the newParticipants property value. Conversation participants that were added to the thread as part of this post. -
getReceivedDateTime
Gets the receivedDateTime property value. Specifies when the post was received. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z- Returns:
- a
OffsetDateTime
-
getSender
Gets the sender property value. Contains the address of the sender. The value of Sender is assumed to be the address of the authenticated user in the case when Sender is not specified. This is a default property.- Returns:
- a
Recipient
-
getSingleValueExtendedProperties
Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the post. Read-only. Nullable.- Returns:
- a
List<SingleValueLegacyExtendedProperty>
-
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 classOutlookItem- Parameters:
writer- Serialization writer to use to serialize this model
-
setAttachments
Sets the attachments property value. Read-only. Nullable. Supports $expand.- Parameters:
value- Value to set for the attachments property.
-
setBody
Sets the body property value. The contents of the post. This is a default property. This property can be null.- Parameters:
value- Value to set for the body property.
-
setConversationId
Sets the conversationId property value. Unique ID of the conversation. Read-only.- Parameters:
value- Value to set for the conversationId property.
-
setConversationThreadId
Sets the conversationThreadId property value. Unique ID of the conversation thread. Read-only.- Parameters:
value- Value to set for the conversationThreadId property.
-
setExtensions
Sets the extensions property value. The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand.- Parameters:
value- Value to set for the extensions property.
-
setFrom
Sets the from property value. The from property- Parameters:
value- Value to set for the from property.
-
setHasAttachments
Sets the hasAttachments property value. Indicates whether the post has at least one attachment. This is a default property.- Parameters:
value- Value to set for the hasAttachments property.
-
setInReplyTo
Sets the inReplyTo property value. Read-only. Supports $expand.- Parameters:
value- Value to set for the inReplyTo property.
-
setMultiValueExtendedProperties
Sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the post. Read-only. Nullable.- Parameters:
value- Value to set for the multiValueExtendedProperties property.
-
setNewParticipants
Sets the newParticipants property value. Conversation participants that were added to the thread as part of this post.- Parameters:
value- Value to set for the newParticipants property.
-
setReceivedDateTime
Sets the receivedDateTime property value. Specifies when the post was received. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z- Parameters:
value- Value to set for the receivedDateTime property.
-
setSender
Sets the sender property value. Contains the address of the sender. The value of Sender is assumed to be the address of the authenticated user in the case when Sender is not specified. This is a default property.- Parameters:
value- Value to set for the sender property.
-
setSingleValueExtendedProperties
public void setSingleValueExtendedProperties(@Nullable List<SingleValueLegacyExtendedProperty> value) Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the post. Read-only. Nullable.- Parameters:
value- Value to set for the singleValueExtendedProperties property.
-