MicrosoftGraphConversationThread Class

public final class MicrosoftGraphConversationThread
extends MicrosoftGraphEntity

conversationThread.

Constructor Summary

Constructor Description
MicrosoftGraphConversationThread()

Creates an instance of MicrosoftGraphConversationThread class.

Method Summary

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

Get the additionalProperties property: conversationThread.

List<MicrosoftGraphRecipient> ccRecipients()

Get the ccRecipients property: The Cc: recipients for the thread.

static MicrosoftGraphConversationThread fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphConversationThread from the JsonReader.

Boolean hasAttachments()

Get the hasAttachments property: Indicates whether any of the posts within this thread has at least one attachment.

Boolean isLocked()

Get the isLocked property: Indicates if the thread is locked.

OffsetDateTime lastDeliveredDateTime()

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.

String preview()

Get the preview property: A short summary from the body of the latest post in this conversation.

JsonWriter toJson(JsonWriter jsonWriter)
List<MicrosoftGraphRecipient> toRecipients()

Get the toRecipients property: The To: recipients for the thread.

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 thread.

void validate()

Validates the instance.

MicrosoftGraphConversationThread withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: conversationThread.

MicrosoftGraphConversationThread withCcRecipients(List<MicrosoftGraphRecipient> ccRecipients)

Set the ccRecipients property: The Cc: recipients for the thread.

MicrosoftGraphConversationThread withHasAttachments(Boolean hasAttachments)

Set the hasAttachments property: Indicates whether any of the posts within this thread has at least one attachment.

MicrosoftGraphConversationThread withId(String id)

Set the id property: Read-only.

MicrosoftGraphConversationThread withIsLocked(Boolean isLocked)

Set the isLocked property: Indicates if the thread is locked.

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.

MicrosoftGraphConversationThread withPosts(List<MicrosoftGraphPost> posts)

Set the posts property: Read-only.

MicrosoftGraphConversationThread withPreview(String preview)

Set the preview property: A short summary from the body of the latest post in this conversation.

MicrosoftGraphConversationThread withToRecipients(List<MicrosoftGraphRecipient> toRecipients)

Set the toRecipients property: The To: recipients for the thread.

MicrosoftGraphConversationThread withTopic(String topic)

Set the topic property: The topic of the conversation.

MicrosoftGraphConversationThread withUniqueSenders(List<String> uniqueSenders)

Set the uniqueSenders property: All the users that sent a message to this thread.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphConversationThread

public MicrosoftGraphConversationThread()

Creates an instance of MicrosoftGraphConversationThread class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: conversationThread.

Overrides:

MicrosoftGraphConversationThread.additionalProperties()

Returns:

the additionalProperties value.

ccRecipients

public List ccRecipients()

Get the ccRecipients property: The Cc: recipients for the thread.

Returns:

the ccRecipients value.

fromJson

public static MicrosoftGraphConversationThread fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphConversationThread from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphConversationThread if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphConversationThread.

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.

isLocked

public Boolean isLocked()

Get the isLocked property: Indicates if the thread is locked.

Returns:

the isLocked value.

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.

posts

public List posts()

Get the posts property: Read-only. Nullable.

Returns:

the posts value.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphConversationThread.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

toRecipients

public List toRecipients()

Get the toRecipients property: The To: recipients for the thread.

Returns:

the toRecipients value.

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.

uniqueSenders

public List uniqueSenders()

Get the uniqueSenders property: All the users that sent a message to this thread.

Returns:

the uniqueSenders value.

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphConversationThread.validate()

withAdditionalProperties

public MicrosoftGraphConversationThread withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: conversationThread.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphConversationThread object itself.

withCcRecipients

public MicrosoftGraphConversationThread withCcRecipients(List ccRecipients)

Set the ccRecipients property: The Cc: recipients for the thread.

Parameters:

ccRecipients - the ccRecipients value to set.

Returns:

the MicrosoftGraphConversationThread object itself.

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.

withId

public MicrosoftGraphConversationThread withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphConversationThread.withId(String id)

Parameters:

id

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.

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.

withPosts

public MicrosoftGraphConversationThread withPosts(List posts)

Set the posts property: Read-only. Nullable.

Parameters:

posts - the posts value to set.

Returns:

the MicrosoftGraphConversationThread object itself.

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.

withToRecipients

public MicrosoftGraphConversationThread withToRecipients(List toRecipients)

Set the toRecipients property: The To: recipients for the thread.

Parameters:

toRecipients - the toRecipients value to set.

Returns:

the MicrosoftGraphConversationThread object itself.

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.

withUniqueSenders

public MicrosoftGraphConversationThread withUniqueSenders(List 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.

Applies to