Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Channel
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the allMembers property value.Gets the createdDateTime property value.Gets the description property value.Gets the displayName property value.getEmail()
Gets the email property value.The deserialization information for the current modelGets the filesFolder property value.Gets the isArchived property value.Gets the isFavoriteByDefault property value.Gets the members property value.Gets the membershipType property value.Gets the messages property value.Gets the sharedWithTeams property value.Gets the summary property value.getTabs()
Gets the tabs property value.Gets the tenantId property value.Gets the webUrl property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setAllMembers
(List<ConversationMember> value) Sets the allMembers property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
setDescription
(String value) Sets the description property value.void
setDisplayName
(String value) Sets the displayName property value.void
Sets the email property value.void
setFilesFolder
(DriveItem value) Sets the filesFolder property value.void
setIsArchived
(Boolean value) Sets the isArchived property value.void
setIsFavoriteByDefault
(Boolean value) Sets the isFavoriteByDefault property value.void
setMembers
(List<ConversationMember> value) Sets the members property value.void
Sets the membershipType property value.void
setMessages
(List<ChatMessage> value) Sets the messages property value.void
Sets the sharedWithTeams property value.void
setSummary
(ChannelSummary value) Sets the summary property value.void
Sets the tabs property value.void
setTenantId
(String value) Sets the tenantId property value.void
Sets the webUrl property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Channel
public Channel()Instantiates a newChannel
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
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
Gets the createdDateTime property value. Read only. Timestamp at which the channel was created.- Returns:
- a
OffsetDateTime
-
getDescription
Gets the description property value. Optional textual description for the channel.- Returns:
- a
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
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getFilesFolder
Gets the filesFolder property value. Metadata for the location where the channel's files are stored.- Returns:
- a
DriveItem
-
getIsArchived
Gets the isArchived property value. Indicates whether the channel is archived. Read-only.- Returns:
- a
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
Gets the members property value. A collection of membership records associated with the channel.- Returns:
- a
List<ConversationMember>
-
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
Gets the messages property value. A collection of all the messages in the channel. A navigation property. Nullable.- Returns:
- a
List<ChatMessage>
-
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
Gets the tabs property value. A collection of all the tabs in the channel. A navigation property. -
getTenantId
Gets the tenantId property value. The ID of the Microsoft Entra tenant.- Returns:
- a
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 -
setAllMembers
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
Sets the createdDateTime property value. Read only. Timestamp at which the channel was created.- Parameters:
value
- Value to set for the createdDateTime property.
-
setDescription
Sets the description property value. Optional textual description for the channel.- Parameters:
value
- Value to set for the description property.
-
setDisplayName
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
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
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
Sets the isArchived property value. Indicates whether the channel is archived. Read-only.- Parameters:
value
- Value to set for the isArchived property.
-
setIsFavoriteByDefault
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
Sets the members property value. A collection of membership records associated with the channel.- Parameters:
value
- Value to set for the members property.
-
setMembershipType
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
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.
-
setSummary
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
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
Sets the tenantId property value. The ID of the Microsoft Entra tenant.- Parameters:
value
- Value to set for the tenantId property.
-
setWebUrl
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.
-