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 Details

    • MicrosoftGraphChannel

      public MicrosoftGraphChannel()
      Creates an instance of MicrosoftGraphChannel class.
  • Method Details

    • 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: channelMembershipType.
      Returns:
      the membershipType value.
    • withMembershipType

      public MicrosoftGraphChannel withMembershipType(MicrosoftGraphChannelMembershipType membershipType)
      Set the membershipType property: channelMembershipType.
      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

      Get the members property: A collection of membership records associated with the channel.
      Returns:
      the members value.
    • withMembers

      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

      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 class MicrosoftGraphEntity
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphChannel withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: channel.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphEntity
      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 class MicrosoftGraphEntity
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphEntity
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.