Class MicrosoftGraphChannel
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphChannel
-
public final class MicrosoftGraphChannel extends MicrosoftGraphEntity
channel.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphChannel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.Boolean
isFavoriteByDefault()
Get the isFavoriteByDefault property: Indicates whether the channel should automatically be marked 'favorite' for all members of the team.List<MicrosoftGraphConversationMember>
members()
Get the members property: A collection of membership records associated with the channel.MicrosoftGraphChannelMembershipType
membershipType()
Get the membershipType property: The membershipType property.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.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 automatically be marked 'favorite' for all members of the team.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: The membershipType property.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 class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
description
public String description()
Get the description property: Optional textual description for the channel.- Returns:
- the description value.
-
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.
-
displayName
public String displayName()
Get the displayName property: Channel name as it will appear to the user in Microsoft Teams.- Returns:
- the displayName value.
-
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.
-
email
public String email()
Get the email property: The email address for sending messages to the channel. Read-only.- Returns:
- the email value.
-
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.
-
isFavoriteByDefault
public Boolean isFavoriteByDefault()
Get the isFavoriteByDefault property: Indicates whether the channel should automatically be marked 'favorite' for all members of the team. Can only be set programmatically with Create team. Default: false.- Returns:
- the isFavoriteByDefault value.
-
withIsFavoriteByDefault
public MicrosoftGraphChannel withIsFavoriteByDefault(Boolean isFavoriteByDefault)
Set the isFavoriteByDefault property: Indicates whether the channel should automatically be marked 'favorite' for all members of the team. Can only be set programmatically with Create team. Default: false.- Parameters:
isFavoriteByDefault
- the isFavoriteByDefault value to set.- Returns:
- the MicrosoftGraphChannel object itself.
-
membershipType
public MicrosoftGraphChannelMembershipType membershipType()
Get the membershipType property: The membershipType property.- Returns:
- the membershipType value.
-
withMembershipType
public MicrosoftGraphChannel withMembershipType(MicrosoftGraphChannelMembershipType membershipType)
Set the membershipType property: The membershipType property.- Parameters:
membershipType
- the membershipType value to set.- Returns:
- the MicrosoftGraphChannel object itself.
-
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.
-
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.
-
filesFolder
public MicrosoftGraphDriveItem filesFolder()
Get the filesFolder property: driveItem.- Returns:
- the filesFolder value.
-
withFilesFolder
public MicrosoftGraphChannel withFilesFolder(MicrosoftGraphDriveItem filesFolder)
Set the filesFolder property: driveItem.- Parameters:
filesFolder
- the filesFolder value to set.- Returns:
- the MicrosoftGraphChannel object itself.
-
members
public List<MicrosoftGraphConversationMember> members()
Get the members property: A collection of membership records associated with the channel.- Returns:
- the members value.
-
withMembers
public MicrosoftGraphChannel withMembers(List<MicrosoftGraphConversationMember> 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.
-
messages
public List<MicrosoftGraphChatMessage> messages()
Get the messages property: A collection of all the messages in the channel. A navigation property. Nullable.- Returns:
- the messages value.
-
withMessages
public MicrosoftGraphChannel withMessages(List<MicrosoftGraphChatMessage> 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.
-
tabs
public List<MicrosoftGraphTeamsTab> tabs()
Get the tabs property: A collection of all the tabs in the channel. A navigation property.- Returns:
- the tabs value.
-
withTabs
public MicrosoftGraphChannel withTabs(List<MicrosoftGraphTeamsTab> 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.
-
additionalProperties
public Map<String,Object> additionalProperties()
Get the additionalProperties property: channel.- Overrides:
additionalProperties
in classMicrosoftGraphEntity
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphChannel withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: channel.- Overrides:
withAdditionalProperties
in classMicrosoftGraphEntity
- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the MicrosoftGraphChannel object itself.
-
withId
public MicrosoftGraphChannel 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.
-
-