MicrosoftGraphPost Class

public final class MicrosoftGraphPost
extends MicrosoftGraphOutlookItem

post.

Constructor Summary

Constructor Description
MicrosoftGraphPost()

Creates an instance of MicrosoftGraphPost class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: post.

List<MicrosoftGraphAttachment> attachments()

Get the attachments property: Read-only.

MicrosoftGraphItemBody body()

Get the body property: itemBody.

String conversationId()

Get the conversationId property: Unique ID of the conversation.

String conversationThreadId()

Get the conversationThreadId property: Unique ID of the conversation thread.

List<MicrosoftGraphExtension> extensions()

Get the extensions property: The collection of open extensions defined for the post.

MicrosoftGraphRecipient from()

Get the from property: recipient.

Boolean hasAttachments()

Get the hasAttachments property: Indicates whether the post has at least one attachment.

MicrosoftGraphPost inReplyTo()

Get the inReplyTo property: post.

List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties()

Get the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the post.

List<MicrosoftGraphRecipient> newParticipants()

Get the newParticipants property: Conversation participants that were added to the thread as part of this post.

OffsetDateTime receivedDateTime()

Get the receivedDateTime property: Specifies when the post was received.

MicrosoftGraphRecipient sender()

Get the sender property: recipient.

List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties()

Get the singleValueExtendedProperties property: The collection of single-value extended properties defined for the post.

void validate()

Validates the instance.

MicrosoftGraphPost withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: post.

MicrosoftGraphPost withAttachments(List<MicrosoftGraphAttachment> attachments)

Set the attachments property: Read-only.

MicrosoftGraphPost withBody(MicrosoftGraphItemBody body)

Set the body property: itemBody.

MicrosoftGraphPost withCategories(List<String> categories)

Set the categories property: The categories associated with the item.

MicrosoftGraphPost withChangeKey(String changeKey)

Set the changeKey property: Identifies the version of the item.

MicrosoftGraphPost withConversationId(String conversationId)

Set the conversationId property: Unique ID of the conversation.

MicrosoftGraphPost withConversationThreadId(String conversationThreadId)

Set the conversationThreadId property: Unique ID of the conversation thread.

MicrosoftGraphPost withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.

MicrosoftGraphPost withExtensions(List<MicrosoftGraphExtension> extensions)

Set the extensions property: The collection of open extensions defined for the post.

MicrosoftGraphPost withFrom(MicrosoftGraphRecipient from)

Set the from property: recipient.

MicrosoftGraphPost withHasAttachments(Boolean hasAttachments)

Set the hasAttachments property: Indicates whether the post has at least one attachment.

MicrosoftGraphPost withId(String id)

Set the id property: Read-only.

MicrosoftGraphPost withInReplyTo(MicrosoftGraphPost inReplyTo)

Set the inReplyTo property: post.

MicrosoftGraphPost withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.

MicrosoftGraphPost withMultiValueExtendedProperties(List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties)

Set the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the post.

MicrosoftGraphPost withNewParticipants(List<MicrosoftGraphRecipient> newParticipants)

Set the newParticipants property: Conversation participants that were added to the thread as part of this post.

MicrosoftGraphPost withReceivedDateTime(OffsetDateTime receivedDateTime)

Set the receivedDateTime property: Specifies when the post was received.

MicrosoftGraphPost withSender(MicrosoftGraphRecipient sender)

Set the sender property: recipient.

MicrosoftGraphPost withSingleValueExtendedProperties(List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties)

Set the singleValueExtendedProperties property: The collection of single-value extended properties defined for the post.

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from MicrosoftGraphOutlookItem

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphPost

public MicrosoftGraphPost()

Creates an instance of MicrosoftGraphPost class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: post.

Overrides:

MicrosoftGraphPost.additionalProperties()

Returns:

the additionalProperties value.

attachments

public List attachments()

Get the attachments property: Read-only. Nullable.

Returns:

the attachments value.

body

public MicrosoftGraphItemBody body()

Get the body property: itemBody.

Returns:

the body value.

conversationId

public String conversationId()

Get the conversationId property: Unique ID of the conversation. Read-only.

Returns:

the conversationId value.

conversationThreadId

public String conversationThreadId()

Get the conversationThreadId property: Unique ID of the conversation thread. Read-only.

Returns:

the conversationThreadId value.

extensions

public List extensions()

Get the extensions property: The collection of open extensions defined for the post. Read-only. Nullable.

Returns:

the extensions value.

from

public MicrosoftGraphRecipient from()

Get the from property: recipient.

Returns:

the from value.

hasAttachments

public Boolean hasAttachments()

Get the hasAttachments property: Indicates whether the post has at least one attachment. This is a default property.

Returns:

the hasAttachments value.

inReplyTo

public MicrosoftGraphPost inReplyTo()

Get the inReplyTo property: post.

Returns:

the inReplyTo value.

multiValueExtendedProperties

public List multiValueExtendedProperties()

Get the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the post. Read-only. Nullable.

Returns:

the multiValueExtendedProperties value.

newParticipants

public List newParticipants()

Get the newParticipants property: Conversation participants that were added to the thread as part of this post.

Returns:

the newParticipants value.

receivedDateTime

public OffsetDateTime receivedDateTime()

Get the receivedDateTime property: 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 would look like this: '2014-01-01T00:00:00Z'.

Returns:

the receivedDateTime value.

sender

public MicrosoftGraphRecipient sender()

Get the sender property: recipient.

Returns:

the sender value.

singleValueExtendedProperties

public List singleValueExtendedProperties()

Get the singleValueExtendedProperties property: The collection of single-value extended properties defined for the post. Read-only. Nullable.

Returns:

the singleValueExtendedProperties value.

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphPost.validate()

withAdditionalProperties

public MicrosoftGraphPost withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: post.

Overrides:

MicrosoftGraphPost.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphPost object itself.

withAttachments

public MicrosoftGraphPost withAttachments(List attachments)

Set the attachments property: Read-only. Nullable.

Parameters:

attachments - the attachments value to set.

Returns:

the MicrosoftGraphPost object itself.

withBody

public MicrosoftGraphPost withBody(MicrosoftGraphItemBody body)

Set the body property: itemBody.

Parameters:

body - the body value to set.

Returns:

the MicrosoftGraphPost object itself.

withCategories

public MicrosoftGraphPost withCategories(List categories)

Set the categories property: The categories associated with the item.

Overrides:

MicrosoftGraphPost.withCategories(List<String> categories)

Parameters:

categories

withChangeKey

public MicrosoftGraphPost withChangeKey(String changeKey)

Set the changeKey property: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only.

Overrides:

MicrosoftGraphPost.withChangeKey(String changeKey)

Parameters:

changeKey

withConversationId

public MicrosoftGraphPost withConversationId(String conversationId)

Set the conversationId property: Unique ID of the conversation. Read-only.

Parameters:

conversationId - the conversationId value to set.

Returns:

the MicrosoftGraphPost object itself.

withConversationThreadId

public MicrosoftGraphPost withConversationThreadId(String conversationThreadId)

Set the conversationThreadId property: Unique ID of the conversation thread. Read-only.

Parameters:

conversationThreadId - the conversationThreadId value to set.

Returns:

the MicrosoftGraphPost object itself.

withCreatedDateTime

public MicrosoftGraphPost withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Overrides:

MicrosoftGraphPost.withCreatedDateTime(OffsetDateTime createdDateTime)

Parameters:

createdDateTime

withExtensions

public MicrosoftGraphPost withExtensions(List extensions)

Set the extensions property: The collection of open extensions defined for the post. Read-only. Nullable.

Parameters:

extensions - the extensions value to set.

Returns:

the MicrosoftGraphPost object itself.

withFrom

public MicrosoftGraphPost withFrom(MicrosoftGraphRecipient from)

Set the from property: recipient.

Parameters:

from - the from value to set.

Returns:

the MicrosoftGraphPost object itself.

withHasAttachments

public MicrosoftGraphPost withHasAttachments(Boolean hasAttachments)

Set the hasAttachments property: Indicates whether the post has at least one attachment. This is a default property.

Parameters:

hasAttachments - the hasAttachments value to set.

Returns:

the MicrosoftGraphPost object itself.

withId

public MicrosoftGraphPost withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphPost.withId(String id)

Parameters:

id

withInReplyTo

public MicrosoftGraphPost withInReplyTo(MicrosoftGraphPost inReplyTo)

Set the inReplyTo property: post.

Parameters:

inReplyTo - the inReplyTo value to set.

Returns:

the MicrosoftGraphPost object itself.

withLastModifiedDateTime

public MicrosoftGraphPost withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Overrides:

MicrosoftGraphPost.withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Parameters:

lastModifiedDateTime

withMultiValueExtendedProperties

public MicrosoftGraphPost withMultiValueExtendedProperties(List multiValueExtendedProperties)

Set the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the post. Read-only. Nullable.

Parameters:

multiValueExtendedProperties - the multiValueExtendedProperties value to set.

Returns:

the MicrosoftGraphPost object itself.

withNewParticipants

public MicrosoftGraphPost withNewParticipants(List newParticipants)

Set the newParticipants property: Conversation participants that were added to the thread as part of this post.

Parameters:

newParticipants - the newParticipants value to set.

Returns:

the MicrosoftGraphPost object itself.

withReceivedDateTime

public MicrosoftGraphPost withReceivedDateTime(OffsetDateTime receivedDateTime)

Set the receivedDateTime property: 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 would look like this: '2014-01-01T00:00:00Z'.

Parameters:

receivedDateTime - the receivedDateTime value to set.

Returns:

the MicrosoftGraphPost object itself.

withSender

public MicrosoftGraphPost withSender(MicrosoftGraphRecipient sender)

Set the sender property: recipient.

Parameters:

sender - the sender value to set.

Returns:

the MicrosoftGraphPost object itself.

withSingleValueExtendedProperties

public MicrosoftGraphPost withSingleValueExtendedProperties(List singleValueExtendedProperties)

Set the singleValueExtendedProperties property: The collection of single-value extended properties defined for the post. Read-only. Nullable.

Parameters:

singleValueExtendedProperties - the singleValueExtendedProperties value to set.

Returns:

the MicrosoftGraphPost object itself.

Applies to