Class Channel

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.Channel
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class Channel extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • Channel

      public Channel()
      Instantiates a new Channel and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static Channel createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a Channel
    • getAllMembers

      @Nullable public List<ConversationMember> getAllMembers()
      Gets the allMembers property value. A collection of membership records associated with the channel, including both direct and indirect members of shared channels.
      Returns:
      a List<ConversationMember>
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. Read only. Timestamp at which the channel was created.
      Returns:
      a OffsetDateTime
    • getDescription

      @Nullable public String getDescription()
      Gets the description property value. Optional textual description for the channel.
      Returns:
      a String
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. Channel name as it will appear to the user in Microsoft Teams. The maximum length is 50 characters.
      Returns:
      a String
    • getEmail

      @Nullable public String getEmail()
      Gets the email property value. The email address for sending messages to the channel. Read-only.
      Returns:
      a String
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getFilesFolder

      @Nullable public DriveItem getFilesFolder()
      Gets the filesFolder property value. Metadata for the location where the channel's files are stored.
      Returns:
      a DriveItem
    • getIsArchived

      @Nullable public Boolean getIsArchived()
      Gets the isArchived property value. Indicates whether the channel is archived. Read-only.
      Returns:
      a Boolean
    • getIsFavoriteByDefault

      @Nullable public Boolean getIsFavoriteByDefault()
      Gets the isFavoriteByDefault property value. Indicates whether the channel should be marked as recommended for all members of the team to show in their channel list. Note: All recommended channels automatically show in the channels list for education and frontline worker users. The property can only be set programmatically via the Create team method. The default value is false.
      Returns:
      a Boolean
    • getMembers

      @Nullable public List<ConversationMember> getMembers()
      Gets the members property value. A collection of membership records associated with the channel.
      Returns:
      a List<ConversationMember>
    • getMembershipType

      @Nullable public ChannelMembershipType getMembershipType()
      Gets the membershipType property value. The type of the channel. Can be set during creation and can't be changed. The possible values are: standard, private, unknownFutureValue, shared. The default value is standard. Use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: shared.
      Returns:
      a ChannelMembershipType
    • getMessages

      @Nullable public List<ChatMessage> getMessages()
      Gets the messages property value. A collection of all the messages in the channel. A navigation property. Nullable.
      Returns:
      a List<ChatMessage>
    • getSharedWithTeams

      @Nullable public List<SharedWithChannelTeamInfo> getSharedWithTeams()
      Gets the sharedWithTeams property value. A collection of teams with which a channel is shared.
      Returns:
      a List<SharedWithChannelTeamInfo>
    • getSummary

      @Nullable public ChannelSummary getSummary()
      Gets the summary property value. Contains summary information about the channel, including number of owners, members, guests, and an indicator for members from other tenants. The summary property will only be returned if it is specified in the $select clause of the Get channel method.
      Returns:
      a ChannelSummary
    • getTabs

      @Nullable public List<TeamsTab> getTabs()
      Gets the tabs property value. A collection of all the tabs in the channel. A navigation property.
      Returns:
      a List<TeamsTab>
    • getTenantId

      @Nullable public String getTenantId()
      Gets the tenantId property value. The ID of the Microsoft Entra tenant.
      Returns:
      a String
    • getWebUrl

      @Nullable public String getWebUrl()
      Gets the webUrl property value. 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:
      a String
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAllMembers

      public void setAllMembers(@Nullable List<ConversationMember> value)
      Sets the allMembers property value. A collection of membership records associated with the channel, including both direct and indirect members of shared channels.
      Parameters:
      value - Value to set for the allMembers property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. Read only. Timestamp at which the channel was created.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setDescription

      public void setDescription(@Nullable String value)
      Sets the description property value. Optional textual description for the channel.
      Parameters:
      value - Value to set for the description property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. Channel name as it will appear to the user in Microsoft Teams. The maximum length is 50 characters.
      Parameters:
      value - Value to set for the displayName property.
    • setEmail

      public void setEmail(@Nullable String value)
      Sets the email property value. The email address for sending messages to the channel. Read-only.
      Parameters:
      value - Value to set for the email property.
    • setFilesFolder

      public void setFilesFolder(@Nullable DriveItem value)
      Sets the filesFolder property value. Metadata for the location where the channel's files are stored.
      Parameters:
      value - Value to set for the filesFolder property.
    • setIsArchived

      public void setIsArchived(@Nullable Boolean value)
      Sets the isArchived property value. Indicates whether the channel is archived. Read-only.
      Parameters:
      value - Value to set for the isArchived property.
    • setIsFavoriteByDefault

      public void setIsFavoriteByDefault(@Nullable Boolean value)
      Sets the isFavoriteByDefault property value. Indicates whether the channel should be marked as recommended for all members of the team to show in their channel list. Note: All recommended channels automatically show in the channels list for education and frontline worker users. The property can only be set programmatically via the Create team method. The default value is false.
      Parameters:
      value - Value to set for the isFavoriteByDefault property.
    • setMembers

      public void setMembers(@Nullable List<ConversationMember> value)
      Sets the members property value. A collection of membership records associated with the channel.
      Parameters:
      value - Value to set for the members property.
    • setMembershipType

      public void setMembershipType(@Nullable ChannelMembershipType value)
      Sets the membershipType property value. The type of the channel. Can be set during creation and can't be changed. The possible values are: standard, private, unknownFutureValue, shared. The default value is standard. Use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: shared.
      Parameters:
      value - Value to set for the membershipType property.
    • setMessages

      public void setMessages(@Nullable List<ChatMessage> value)
      Sets the messages property value. A collection of all the messages in the channel. A navigation property. Nullable.
      Parameters:
      value - Value to set for the messages property.
    • setSharedWithTeams

      public void setSharedWithTeams(@Nullable List<SharedWithChannelTeamInfo> value)
      Sets the sharedWithTeams property value. A collection of teams with which a channel is shared.
      Parameters:
      value - Value to set for the sharedWithTeams property.
    • setSummary

      public void setSummary(@Nullable ChannelSummary value)
      Sets the summary property value. Contains summary information about the channel, including number of owners, members, guests, and an indicator for members from other tenants. The summary property will only be returned if it is specified in the $select clause of the Get channel method.
      Parameters:
      value - Value to set for the summary property.
    • setTabs

      public void setTabs(@Nullable List<TeamsTab> value)
      Sets the tabs property value. A collection of all the tabs in the channel. A navigation property.
      Parameters:
      value - Value to set for the tabs property.
    • setTenantId

      public void setTenantId(@Nullable String value)
      Sets the tenantId property value. The ID of the Microsoft Entra tenant.
      Parameters:
      value - Value to set for the tenantId property.
    • setWebUrl

      public void setWebUrl(@Nullable String value)
      Sets the webUrl property value. 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:
      value - Value to set for the webUrl property.