Class MicrosoftGraphConversationThread
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphConversationThread
-
public final class MicrosoftGraphConversationThread extends MicrosoftGraphEntity
conversationThread.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphConversationThread()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>additionalProperties()Get the additionalProperties property: conversationThread.List<MicrosoftGraphRecipient>ccRecipients()Get the ccRecipients property: The Cc: recipients for the thread.BooleanhasAttachments()Get the hasAttachments property: Indicates whether any of the posts within this thread has at least one attachment.BooleanisLocked()Get the isLocked property: Indicates if the thread is locked.OffsetDateTimelastDeliveredDateTime()Get the lastDeliveredDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.List<MicrosoftGraphPost>posts()Get the posts property: Read-only.Stringpreview()Get the preview property: A short summary from the body of the latest post in this conversation.Stringtopic()Get the topic property: The topic of the conversation.List<MicrosoftGraphRecipient>toRecipients()Get the toRecipients property: The To: recipients for the thread.List<String>uniqueSenders()Get the uniqueSenders property: All the users that sent a message to this thread.voidvalidate()Validates the instance.MicrosoftGraphConversationThreadwithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: conversationThread.MicrosoftGraphConversationThreadwithCcRecipients(List<MicrosoftGraphRecipient> ccRecipients)Set the ccRecipients property: The Cc: recipients for the thread.MicrosoftGraphConversationThreadwithHasAttachments(Boolean hasAttachments)Set the hasAttachments property: Indicates whether any of the posts within this thread has at least one attachment.MicrosoftGraphConversationThreadwithId(String id)Set the id property: Read-only.MicrosoftGraphConversationThreadwithIsLocked(Boolean isLocked)Set the isLocked property: Indicates if the thread is locked.MicrosoftGraphConversationThreadwithLastDeliveredDateTime(OffsetDateTime lastDeliveredDateTime)Set the lastDeliveredDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.MicrosoftGraphConversationThreadwithPosts(List<MicrosoftGraphPost> posts)Set the posts property: Read-only.MicrosoftGraphConversationThreadwithPreview(String preview)Set the preview property: A short summary from the body of the latest post in this conversation.MicrosoftGraphConversationThreadwithTopic(String topic)Set the topic property: The topic of the conversation.MicrosoftGraphConversationThreadwithToRecipients(List<MicrosoftGraphRecipient> toRecipients)Set the toRecipients property: The To: recipients for the thread.MicrosoftGraphConversationThreadwithUniqueSenders(List<String> uniqueSenders)Set the uniqueSenders property: All the users that sent a message to this thread.-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
ccRecipients
public List<MicrosoftGraphRecipient> ccRecipients()
Get the ccRecipients property: The Cc: recipients for the thread.- Returns:
- the ccRecipients value.
-
withCcRecipients
public MicrosoftGraphConversationThread withCcRecipients(List<MicrosoftGraphRecipient> ccRecipients)
Set the ccRecipients property: The Cc: recipients for the thread.- Parameters:
ccRecipients- the ccRecipients value to set.- Returns:
- the MicrosoftGraphConversationThread object itself.
-
hasAttachments
public Boolean hasAttachments()
Get the hasAttachments property: Indicates whether any of the posts within this thread has at least one attachment.- Returns:
- the hasAttachments value.
-
withHasAttachments
public MicrosoftGraphConversationThread withHasAttachments(Boolean hasAttachments)
Set the hasAttachments property: Indicates whether any of the posts within this thread has at least one attachment.- Parameters:
hasAttachments- the hasAttachments value to set.- Returns:
- the MicrosoftGraphConversationThread object itself.
-
isLocked
public Boolean isLocked()
Get the isLocked property: Indicates if the thread is locked.- Returns:
- the isLocked value.
-
withIsLocked
public MicrosoftGraphConversationThread withIsLocked(Boolean isLocked)
Set the isLocked property: Indicates if the thread is locked.- Parameters:
isLocked- the isLocked value to set.- Returns:
- the MicrosoftGraphConversationThread object itself.
-
lastDeliveredDateTime
public OffsetDateTime lastDeliveredDateTime()
Get the lastDeliveredDateTime 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'.- Returns:
- the lastDeliveredDateTime value.
-
withLastDeliveredDateTime
public MicrosoftGraphConversationThread withLastDeliveredDateTime(OffsetDateTime lastDeliveredDateTime)
Set the lastDeliveredDateTime 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'.- Parameters:
lastDeliveredDateTime- the lastDeliveredDateTime value to set.- Returns:
- the MicrosoftGraphConversationThread object itself.
-
preview
public String preview()
Get the preview property: A short summary from the body of the latest post in this conversation.- Returns:
- the preview value.
-
withPreview
public MicrosoftGraphConversationThread withPreview(String preview)
Set the preview property: A short summary from the body of the latest post in this conversation.- Parameters:
preview- the preview value to set.- Returns:
- the MicrosoftGraphConversationThread object itself.
-
topic
public String topic()
Get the topic property: The topic of the conversation. This property can be set when the conversation is created, but it cannot be updated.- Returns:
- the topic value.
-
withTopic
public MicrosoftGraphConversationThread withTopic(String topic)
Set the topic property: The topic of the conversation. This property can be set when the conversation is created, but it cannot be updated.- Parameters:
topic- the topic value to set.- Returns:
- the MicrosoftGraphConversationThread object itself.
-
toRecipients
public List<MicrosoftGraphRecipient> toRecipients()
Get the toRecipients property: The To: recipients for the thread.- Returns:
- the toRecipients value.
-
withToRecipients
public MicrosoftGraphConversationThread withToRecipients(List<MicrosoftGraphRecipient> toRecipients)
Set the toRecipients property: The To: recipients for the thread.- Parameters:
toRecipients- the toRecipients value to set.- Returns:
- the MicrosoftGraphConversationThread object itself.
-
uniqueSenders
public List<String> uniqueSenders()
Get the uniqueSenders property: All the users that sent a message to this thread.- Returns:
- the uniqueSenders value.
-
withUniqueSenders
public MicrosoftGraphConversationThread withUniqueSenders(List<String> uniqueSenders)
Set the uniqueSenders property: All the users that sent a message to this thread.- Parameters:
uniqueSenders- the uniqueSenders value to set.- Returns:
- the MicrosoftGraphConversationThread object itself.
-
posts
public List<MicrosoftGraphPost> posts()
Get the posts property: Read-only. Nullable.- Returns:
- the posts value.
-
withPosts
public MicrosoftGraphConversationThread withPosts(List<MicrosoftGraphPost> posts)
Set the posts property: Read-only. Nullable.- Parameters:
posts- the posts value to set.- Returns:
- the MicrosoftGraphConversationThread object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: conversationThread.- Overrides:
additionalPropertiesin classMicrosoftGraphEntity- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphConversationThread withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: conversationThread.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphEntity- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphConversationThread object itself.
-
withId
public MicrosoftGraphConversationThread withId(String id)
Set the id property: Read-only.- Overrides:
withIdin classMicrosoftGraphEntity- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classMicrosoftGraphEntity- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-