你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphChatMessageMention Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphChatMessageMention

Implements

public final class MicrosoftGraphChatMessageMention
implements JsonSerializable<MicrosoftGraphChatMessageMention>

chatMessageMention.

Constructor Summary

Constructor Description
MicrosoftGraphChatMessageMention()

Creates an instance of MicrosoftGraphChatMessageMention class.

Method Summary

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

Get the additionalProperties property: chatMessageMention.

static MicrosoftGraphChatMessageMention fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphChatMessageMention from the JsonReader.

Integer id()

Get the id property: Index of an entity being mentioned in the specified chatMessage.

String mentionText()

Get the mentionText property: String used to represent the mention.

MicrosoftGraphIdentitySet mentioned()

Get the mentioned property: identitySet.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphChatMessageMention withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: chatMessageMention.

MicrosoftGraphChatMessageMention withId(Integer id)

Set the id property: Index of an entity being mentioned in the specified chatMessage.

MicrosoftGraphChatMessageMention withMentionText(String mentionText)

Set the mentionText property: String used to represent the mention.

MicrosoftGraphChatMessageMention withMentioned(MicrosoftGraphIdentitySet mentioned)

Set the mentioned property: identitySet.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphChatMessageMention

public MicrosoftGraphChatMessageMention()

Creates an instance of MicrosoftGraphChatMessageMention class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: chatMessageMention.

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphChatMessageMention fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphChatMessageMention from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public Integer id()

Get the id property: Index of an entity being mentioned in the specified chatMessage. Matches the {index} value in the corresponding tag in the message body.

Returns:

the id value.

mentionText

public String mentionText()

Get the mentionText property: String used to represent the mention. For example, a user's display name, a team name.

Returns:

the mentionText value.

mentioned

public MicrosoftGraphIdentitySet mentioned()

Get the mentioned property: identitySet.

Returns:

the mentioned value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphChatMessageMention withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: chatMessageMention.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphChatMessageMention object itself.

withId

public MicrosoftGraphChatMessageMention withId(Integer id)

Set the id property: Index of an entity being mentioned in the specified chatMessage. Matches the {index} value in the corresponding tag in the message body.

Parameters:

id - the id value to set.

Returns:

the MicrosoftGraphChatMessageMention object itself.

withMentionText

public MicrosoftGraphChatMessageMention withMentionText(String mentionText)

Set the mentionText property: String used to represent the mention. For example, a user's display name, a team name.

Parameters:

mentionText - the mentionText value to set.

Returns:

the MicrosoftGraphChatMessageMention object itself.

withMentioned

public MicrosoftGraphChatMessageMention withMentioned(MicrosoftGraphIdentitySet mentioned)

Set the mentioned property: identitySet.

Parameters:

mentioned - the mentioned value to set.

Returns:

the MicrosoftGraphChatMessageMention object itself.

Applies to