Class MicrosoftGraphConversation
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphConversation
-
public final class MicrosoftGraphConversation extends MicrosoftGraphEntity
conversation.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphConversation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
additionalProperties()
Get the additionalProperties property: conversation.Boolean
hasAttachments()
Get the hasAttachments property: Indicates whether any of the posts within this Conversation has at least one attachment.OffsetDateTime
lastDeliveredDateTime()
Get the lastDeliveredDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.String
preview()
Get the preview property: A short summary from the body of the latest post in this converstaion.List<MicrosoftGraphConversationThread>
threads()
Get the threads property: A collection of all the conversation threads in the conversation.String
topic()
Get the topic property: The topic of the conversation.List<String>
uniqueSenders()
Get the uniqueSenders property: All the users that sent a message to this Conversation.void
validate()
Validates the instance.MicrosoftGraphConversation
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: conversation.MicrosoftGraphConversation
withHasAttachments(Boolean hasAttachments)
Set the hasAttachments property: Indicates whether any of the posts within this Conversation has at least one attachment.MicrosoftGraphConversation
withId(String id)
Set the id property: Read-only.MicrosoftGraphConversation
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.MicrosoftGraphConversation
withPreview(String preview)
Set the preview property: A short summary from the body of the latest post in this converstaion.MicrosoftGraphConversation
withThreads(List<MicrosoftGraphConversationThread> threads)
Set the threads property: A collection of all the conversation threads in the conversation.MicrosoftGraphConversation
withTopic(String topic)
Set the topic property: The topic of the conversation.MicrosoftGraphConversation
withUniqueSenders(List<String> uniqueSenders)
Set the uniqueSenders property: All the users that sent a message to this Conversation.-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
hasAttachments
public Boolean hasAttachments()
Get the hasAttachments property: Indicates whether any of the posts within this Conversation has at least one attachment.- Returns:
- the hasAttachments value.
-
withHasAttachments
public MicrosoftGraphConversation withHasAttachments(Boolean hasAttachments)
Set the hasAttachments property: Indicates whether any of the posts within this Conversation has at least one attachment.- Parameters:
hasAttachments
- the hasAttachments value to set.- Returns:
- the MicrosoftGraphConversation 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 MicrosoftGraphConversation 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 MicrosoftGraphConversation object itself.
-
preview
public String preview()
Get the preview property: A short summary from the body of the latest post in this converstaion.- Returns:
- the preview value.
-
withPreview
public MicrosoftGraphConversation withPreview(String preview)
Set the preview property: A short summary from the body of the latest post in this converstaion.- Parameters:
preview
- the preview value to set.- Returns:
- the MicrosoftGraphConversation 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 MicrosoftGraphConversation 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 MicrosoftGraphConversation object itself.
-
uniqueSenders
public List<String> uniqueSenders()
Get the uniqueSenders property: All the users that sent a message to this Conversation.- Returns:
- the uniqueSenders value.
-
withUniqueSenders
public MicrosoftGraphConversation withUniqueSenders(List<String> uniqueSenders)
Set the uniqueSenders property: All the users that sent a message to this Conversation.- Parameters:
uniqueSenders
- the uniqueSenders value to set.- Returns:
- the MicrosoftGraphConversation object itself.
-
threads
public List<MicrosoftGraphConversationThread> threads()
Get the threads property: A collection of all the conversation threads in the conversation. A navigation property. Read-only. Nullable.- Returns:
- the threads value.
-
withThreads
public MicrosoftGraphConversation withThreads(List<MicrosoftGraphConversationThread> threads)
Set the threads property: A collection of all the conversation threads in the conversation. A navigation property. Read-only. Nullable.- Parameters:
threads
- the threads value to set.- Returns:
- the MicrosoftGraphConversation object itself.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: conversation.- Overrides:
additionalProperties
in classMicrosoftGraphEntity
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphConversation withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: conversation.- Overrides:
withAdditionalProperties
in classMicrosoftGraphEntity
- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the MicrosoftGraphConversation object itself.
-
withId
public MicrosoftGraphConversation withId(String id)
Set the id property: Read-only.- Overrides:
withId
in classMicrosoftGraphEntity
- Parameters:
id
- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphEntity
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-