Partilhar via


MicrosoftGraphWorkbookComment Class

public final class MicrosoftGraphWorkbookComment
extends MicrosoftGraphEntity

workbookComment.

Constructor Summary

Constructor Description
MicrosoftGraphWorkbookComment()

Creates an instance of MicrosoftGraphWorkbookComment class.

Method Summary

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

Get the additionalProperties property: workbookComment.

String content()

Get the content property: The content of comment.

String contentType()

Get the contentType property: Indicates the type for the comment.

static MicrosoftGraphWorkbookComment fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphWorkbookComment from the JsonReader.

List<MicrosoftGraphWorkbookCommentReply> replies()

Get the replies property: Read-only.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphWorkbookComment withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: workbookComment.

MicrosoftGraphWorkbookComment withContent(String content)

Set the content property: The content of comment.

MicrosoftGraphWorkbookComment withContentType(String contentType)

Set the contentType property: Indicates the type for the comment.

MicrosoftGraphWorkbookComment withId(String id)

Set the id property: Read-only.

MicrosoftGraphWorkbookComment withReplies(List<MicrosoftGraphWorkbookCommentReply> replies)

Set the replies property: Read-only.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphWorkbookComment

public MicrosoftGraphWorkbookComment()

Creates an instance of MicrosoftGraphWorkbookComment class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: workbookComment.

Overrides:

MicrosoftGraphWorkbookComment.additionalProperties()

Returns:

the additionalProperties value.

content

public String content()

Get the content property: The content of comment.

Returns:

the content value.

contentType

public String contentType()

Get the contentType property: Indicates the type for the comment.

Returns:

the contentType value.

fromJson

public static MicrosoftGraphWorkbookComment fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphWorkbookComment from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphWorkbookComment 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 MicrosoftGraphWorkbookComment.

replies

public List replies()

Get the replies property: Read-only. Nullable.

Returns:

the replies value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphWorkbookComment.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphWorkbookComment.validate()

withAdditionalProperties

public MicrosoftGraphWorkbookComment withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: workbookComment.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphWorkbookComment object itself.

withContent

public MicrosoftGraphWorkbookComment withContent(String content)

Set the content property: The content of comment.

Parameters:

content - the content value to set.

Returns:

the MicrosoftGraphWorkbookComment object itself.

withContentType

public MicrosoftGraphWorkbookComment withContentType(String contentType)

Set the contentType property: Indicates the type for the comment.

Parameters:

contentType - the contentType value to set.

Returns:

the MicrosoftGraphWorkbookComment object itself.

withId

public MicrosoftGraphWorkbookComment withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphWorkbookComment.withId(String id)

Parameters:

id

withReplies

public MicrosoftGraphWorkbookComment withReplies(List replies)

Set the replies property: Read-only. Nullable.

Parameters:

replies - the replies value to set.

Returns:

the MicrosoftGraphWorkbookComment object itself.

Applies to