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.Stringdescription()Get the description property: Optional textual description for the channel.StringdisplayName()Get the displayName property: Channel name as it will appear to the user in Microsoft Teams.Stringemail()Get the email property: The email address for sending messages to the channel.MicrosoftGraphDriveItemfilesFolder()Get the filesFolder property: driveItem.BooleanisFavoriteByDefault()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.MicrosoftGraphChannelMembershipTypemembershipType()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.voidvalidate()Validates the instance.StringwebUrl()Get the webUrl property: A hyperlink that will go to the channel in Microsoft Teams.MicrosoftGraphChannelwithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: channel.MicrosoftGraphChannelwithDescription(String description)Set the description property: Optional textual description for the channel.MicrosoftGraphChannelwithDisplayName(String displayName)Set the displayName property: Channel name as it will appear to the user in Microsoft Teams.MicrosoftGraphChannelwithEmail(String email)Set the email property: The email address for sending messages to the channel.MicrosoftGraphChannelwithFilesFolder(MicrosoftGraphDriveItem filesFolder)Set the filesFolder property: driveItem.MicrosoftGraphChannelwithId(String id)Set the id property: Read-only.MicrosoftGraphChannelwithIsFavoriteByDefault(Boolean isFavoriteByDefault)Set the isFavoriteByDefault property: Indicates whether the channel should automatically be marked 'favorite' for all members of the team.MicrosoftGraphChannelwithMembers(List<MicrosoftGraphConversationMember> members)Set the members property: A collection of membership records associated with the channel.MicrosoftGraphChannelwithMembershipType(MicrosoftGraphChannelMembershipType membershipType)Set the membershipType property: The membershipType property.MicrosoftGraphChannelwithMessages(List<MicrosoftGraphChatMessage> messages)Set the messages property: A collection of all the messages in the channel.MicrosoftGraphChannelwithTabs(List<MicrosoftGraphTeamsTab> tabs)Set the tabs property: A collection of all the tabs in the channel.MicrosoftGraphChannelwithWebUrl(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:
additionalPropertiesin classMicrosoftGraphEntity- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphChannel withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: channel.- Overrides:
withAdditionalPropertiesin 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:
withIdin classMicrosoftGraphEntity- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classMicrosoftGraphEntity- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-