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

MicrosoftGraphChannel Class

public final class MicrosoftGraphChannel
extends MicrosoftGraphEntity

channel.

Constructor Summary

Constructor Description
MicrosoftGraphChannel()

Creates an instance of MicrosoftGraphChannel class.

Method Summary

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

Get the additionalProperties property: channel.

String description()

Get the description property: Optional textual description for the channel.

String displayName()

Get the displayName property: Channel name as it will appear to the user in Microsoft Teams.

String email()

Get the email property: The email address for sending messages to the channel.

MicrosoftGraphDriveItem filesFolder()

Get the filesFolder property: driveItem.

static MicrosoftGraphChannel fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphChannel from the JsonReader.

Boolean isFavoriteByDefault()

Get the isFavoriteByDefault property: Indicates whether the channel should be marked 'recommended' for all members of the team to show in their channel list.

List<MicrosoftGraphConversationMember> members()

Get the members property: A collection of membership records associated with the channel.

MicrosoftGraphChannelMembershipType membershipType()

Get the membershipType property: channelMembershipType.

List<MicrosoftGraphChatMessage> messages()

Get the messages property: A collection of all the messages in the channel.

List<MicrosoftGraphTeamsTab> tabs()

Get the tabs property: A collection of all the tabs in the channel.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String webUrl()

Get the webUrl property: A hyperlink that will go to the channel in Microsoft Teams.

MicrosoftGraphChannel withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: channel.

MicrosoftGraphChannel withDescription(String description)

Set the description property: Optional textual description for the channel.

MicrosoftGraphChannel withDisplayName(String displayName)

Set the displayName property: Channel name as it will appear to the user in Microsoft Teams.

MicrosoftGraphChannel withEmail(String email)

Set the email property: The email address for sending messages to the channel.

MicrosoftGraphChannel withFilesFolder(MicrosoftGraphDriveItem filesFolder)

Set the filesFolder property: driveItem.

MicrosoftGraphChannel withId(String id)

Set the id property: Read-only.

MicrosoftGraphChannel withIsFavoriteByDefault(Boolean isFavoriteByDefault)

Set the isFavoriteByDefault property: Indicates whether the channel should be marked 'recommended' for all members of the team to show in their channel list.

MicrosoftGraphChannel withMembers(List<MicrosoftGraphConversationMember> members)

Set the members property: A collection of membership records associated with the channel.

MicrosoftGraphChannel withMembershipType(MicrosoftGraphChannelMembershipType membershipType)

Set the membershipType property: channelMembershipType.

MicrosoftGraphChannel withMessages(List<MicrosoftGraphChatMessage> messages)

Set the messages property: A collection of all the messages in the channel.

MicrosoftGraphChannel withTabs(List<MicrosoftGraphTeamsTab> tabs)

Set the tabs property: A collection of all the tabs in the channel.

MicrosoftGraphChannel withWebUrl(String webUrl)

Set the webUrl property: A hyperlink that will go to the channel in Microsoft Teams.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphChannel

public MicrosoftGraphChannel()

Creates an instance of MicrosoftGraphChannel class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: channel.

Overrides:

MicrosoftGraphChannel.additionalProperties()

Returns:

the additionalProperties value.

description

public String description()

Get the description property: Optional textual description for the channel.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: Channel name as it will appear to the user in Microsoft Teams.

Returns:

the displayName value.

email

public String email()

Get the email property: The email address for sending messages to the channel. Read-only.

Returns:

the email value.

filesFolder

public MicrosoftGraphDriveItem filesFolder()

Get the filesFolder property: driveItem.

Returns:

the filesFolder value.

fromJson

public static MicrosoftGraphChannel fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphChannel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isFavoriteByDefault

public Boolean isFavoriteByDefault()

Get the isFavoriteByDefault property: Indicates whether the channel should be marked 'recommended' for all members of the team to show in their channel list. Can only be set programmatically with Create team. Default: false. NOTE: All recommended channels will automatically show in channels list for EDU and FLW users.

Returns:

the isFavoriteByDefault value.

members

public List members()

Get the members property: A collection of membership records associated with the channel.

Returns:

the members value.

membershipType

public MicrosoftGraphChannelMembershipType membershipType()

Get the membershipType property: channelMembershipType.

Returns:

the membershipType value.

messages

public List messages()

Get the messages property: A collection of all the messages in the channel. A navigation property. Nullable.

Returns:

the messages value.

tabs

public List tabs()

Get the tabs property: A collection of all the tabs in the channel. A navigation property.

Returns:

the tabs value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphChannel.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphChannel.validate()

webUrl

public String webUrl()

Get the webUrl property: A hyperlink that will go to the channel in Microsoft Teams. This is the URL that you get when you right-click a channel in Microsoft Teams and select Get link to channel. This URL should be treated as an opaque blob, and not parsed. Read-only.

Returns:

the webUrl value.

withAdditionalProperties

public MicrosoftGraphChannel withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: channel.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphChannel object itself.

withDescription

public MicrosoftGraphChannel withDescription(String description)

Set the description property: Optional textual description for the channel.

Parameters:

description - the description value to set.

Returns:

the MicrosoftGraphChannel object itself.

withDisplayName

public MicrosoftGraphChannel withDisplayName(String displayName)

Set the displayName property: Channel name as it will appear to the user in Microsoft Teams.

Parameters:

displayName - the displayName value to set.

Returns:

the MicrosoftGraphChannel object itself.

withEmail

public MicrosoftGraphChannel withEmail(String email)

Set the email property: The email address for sending messages to the channel. Read-only.

Parameters:

email - the email value to set.

Returns:

the MicrosoftGraphChannel object itself.

withFilesFolder

public MicrosoftGraphChannel withFilesFolder(MicrosoftGraphDriveItem filesFolder)

Set the filesFolder property: driveItem.

Parameters:

filesFolder - the filesFolder value to set.

Returns:

the MicrosoftGraphChannel object itself.

withId

public MicrosoftGraphChannel withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphChannel.withId(String id)

Parameters:

id

withIsFavoriteByDefault

public MicrosoftGraphChannel withIsFavoriteByDefault(Boolean isFavoriteByDefault)

Set the isFavoriteByDefault property: Indicates whether the channel should be marked 'recommended' for all members of the team to show in their channel list. Can only be set programmatically with Create team. Default: false. NOTE: All recommended channels will automatically show in channels list for EDU and FLW users.

Parameters:

isFavoriteByDefault - the isFavoriteByDefault value to set.

Returns:

the MicrosoftGraphChannel object itself.

withMembers

public MicrosoftGraphChannel withMembers(List members)

Set the members property: A collection of membership records associated with the channel.

Parameters:

members - the members value to set.

Returns:

the MicrosoftGraphChannel object itself.

withMembershipType

public MicrosoftGraphChannel withMembershipType(MicrosoftGraphChannelMembershipType membershipType)

Set the membershipType property: channelMembershipType.

Parameters:

membershipType - the membershipType value to set.

Returns:

the MicrosoftGraphChannel object itself.

withMessages

public MicrosoftGraphChannel withMessages(List messages)

Set the messages property: A collection of all the messages in the channel. A navigation property. Nullable.

Parameters:

messages - the messages value to set.

Returns:

the MicrosoftGraphChannel object itself.

withTabs

public MicrosoftGraphChannel withTabs(List tabs)

Set the tabs property: A collection of all the tabs in the channel. A navigation property.

Parameters:

tabs - the tabs value to set.

Returns:

the MicrosoftGraphChannel object itself.

withWebUrl

public MicrosoftGraphChannel withWebUrl(String webUrl)

Set the webUrl property: A hyperlink that will go to the channel in Microsoft Teams. This is the URL that you get when you right-click a channel in Microsoft Teams and select Get link to channel. This URL should be treated as an opaque blob, and not parsed. Read-only.

Parameters:

webUrl - the webUrl value to set.

Returns:

the MicrosoftGraphChannel object itself.

Applies to