Class MicrosoftGraphPost
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphOutlookItem
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphPost
-
public final class MicrosoftGraphPost extends MicrosoftGraphOutlookItem
post.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphPost()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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<MicrosoftGraphExtensionInner>
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<MicrosoftGraphExtensionInner> 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 class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphOutlookItem
categories, changeKey, createdDateTime, lastModifiedDateTime
-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
body
public MicrosoftGraphItemBody body()
Get the body property: itemBody.- Returns:
- the body value.
-
withBody
public MicrosoftGraphPost withBody(MicrosoftGraphItemBody body)
Set the body property: itemBody.- Parameters:
body
- the body value to set.- Returns:
- the MicrosoftGraphPost object itself.
-
conversationId
public String conversationId()
Get the conversationId property: Unique ID of the conversation. Read-only.- Returns:
- the conversationId value.
-
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.
-
conversationThreadId
public String conversationThreadId()
Get the conversationThreadId property: Unique ID of the conversation thread. Read-only.- Returns:
- the conversationThreadId value.
-
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.
-
from
public MicrosoftGraphRecipient from()
Get the from property: recipient.- Returns:
- the from value.
-
withFrom
public MicrosoftGraphPost withFrom(MicrosoftGraphRecipient from)
Set the from property: recipient.- Parameters:
from
- the from value to set.- Returns:
- the MicrosoftGraphPost object itself.
-
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.
-
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.
-
newParticipants
public List<MicrosoftGraphRecipient> newParticipants()
Get the newParticipants property: Conversation participants that were added to the thread as part of this post.- Returns:
- the newParticipants value.
-
withNewParticipants
public MicrosoftGraphPost withNewParticipants(List<MicrosoftGraphRecipient> 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.
-
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.
-
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.
-
sender
public MicrosoftGraphRecipient sender()
Get the sender property: recipient.- Returns:
- the sender value.
-
withSender
public MicrosoftGraphPost withSender(MicrosoftGraphRecipient sender)
Set the sender property: recipient.- Parameters:
sender
- the sender value to set.- Returns:
- the MicrosoftGraphPost object itself.
-
attachments
public List<MicrosoftGraphAttachment> attachments()
Get the attachments property: Read-only. Nullable.- Returns:
- the attachments value.
-
withAttachments
public MicrosoftGraphPost withAttachments(List<MicrosoftGraphAttachment> attachments)
Set the attachments property: Read-only. Nullable.- Parameters:
attachments
- the attachments value to set.- Returns:
- the MicrosoftGraphPost object itself.
-
extensions
public List<MicrosoftGraphExtensionInner> extensions()
Get the extensions property: The collection of open extensions defined for the post. Read-only. Nullable.- Returns:
- the extensions value.
-
withExtensions
public MicrosoftGraphPost withExtensions(List<MicrosoftGraphExtensionInner> 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.
-
inReplyTo
public MicrosoftGraphPost inReplyTo()
Get the inReplyTo property: post.- Returns:
- the inReplyTo value.
-
withInReplyTo
public MicrosoftGraphPost withInReplyTo(MicrosoftGraphPost inReplyTo)
Set the inReplyTo property: post.- Parameters:
inReplyTo
- the inReplyTo value to set.- Returns:
- the MicrosoftGraphPost object itself.
-
multiValueExtendedProperties
public List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties()
Get the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the post. Read-only. Nullable.- Returns:
- the multiValueExtendedProperties value.
-
withMultiValueExtendedProperties
public MicrosoftGraphPost withMultiValueExtendedProperties(List<MicrosoftGraphMultiValueLegacyExtendedProperty> 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.
-
singleValueExtendedProperties
public List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties()
Get the singleValueExtendedProperties property: The collection of single-value extended properties defined for the post. Read-only. Nullable.- Returns:
- the singleValueExtendedProperties value.
-
withSingleValueExtendedProperties
public MicrosoftGraphPost withSingleValueExtendedProperties(List<MicrosoftGraphSingleValueLegacyExtendedProperty> 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.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: post.- Overrides:
additionalProperties
in classMicrosoftGraphOutlookItem
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphPost withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: post.- Overrides:
withAdditionalProperties
in classMicrosoftGraphOutlookItem
- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the MicrosoftGraphPost object itself.
-
withCategories
public MicrosoftGraphPost withCategories(List<String> categories)
Set the categories property: The categories associated with the item.- Overrides:
withCategories
in classMicrosoftGraphOutlookItem
- Parameters:
categories
- the categories value to set.- Returns:
- the MicrosoftGraphOutlookItem object itself.
-
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:
withChangeKey
in classMicrosoftGraphOutlookItem
- Parameters:
changeKey
- the changeKey value to set.- Returns:
- the MicrosoftGraphOutlookItem 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:
withCreatedDateTime
in classMicrosoftGraphOutlookItem
- Parameters:
createdDateTime
- the createdDateTime value to set.- Returns:
- the MicrosoftGraphOutlookItem 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:
withLastModifiedDateTime
in classMicrosoftGraphOutlookItem
- Parameters:
lastModifiedDateTime
- the lastModifiedDateTime value to set.- Returns:
- the MicrosoftGraphOutlookItem object itself.
-
withId
public MicrosoftGraphPost withId(String id)
Set the id property: Read-only.- Overrides:
withId
in classMicrosoftGraphOutlookItem
- Parameters:
id
- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphOutlookItem
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-