Share via


MsTeamsChannel Class

public final class MsTeamsChannel
extends Channel

Microsoft Teams channel definition.

Constructor Summary

Constructor Description
MsTeamsChannel()

Creates an instance of MsTeamsChannel class.

Method Summary

Modifier and Type Method and Description
String channelName()

Get the channelName property: The channel name.

static MsTeamsChannel fromJson(JsonReader jsonReader)

Reads an instance of MsTeamsChannel from the JsonReader.

MsTeamsChannelProperties properties()

Get the properties property: The set of properties specific to Microsoft Teams channel resource.

String provisioningState()

Get the provisioningState property: Provisioning state of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MsTeamsChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

MsTeamsChannel withLocation(String location)

Set the location property: Specifies the location of the resource.

MsTeamsChannel withProperties(MsTeamsChannelProperties properties)

Set the properties property: The set of properties specific to Microsoft Teams channel resource.

Methods inherited from Channel

Methods inherited from java.lang.Object

Constructor Details

MsTeamsChannel

public MsTeamsChannel()

Creates an instance of MsTeamsChannel class.

Method Details

channelName

public String channelName()

Get the channelName property: The channel name.

Overrides:

MsTeamsChannel.channelName()

Returns:

the channelName value.

fromJson

public static MsTeamsChannel fromJson(JsonReader jsonReader)

Reads an instance of MsTeamsChannel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MsTeamsChannel if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MsTeamsChannel.

properties

public MsTeamsChannelProperties properties()

Get the properties property: The set of properties specific to Microsoft Teams channel resource.

Returns:

the properties value.

provisioningState

public String provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Overrides:

MsTeamsChannel.provisioningState()

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MsTeamsChannel.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MsTeamsChannel.validate()

withEtag

public MsTeamsChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

Overrides:

MsTeamsChannel.withEtag(String etag)

Parameters:

etag

withLocation

public MsTeamsChannel withLocation(String location)

Set the location property: Specifies the location of the resource.

Overrides:

MsTeamsChannel.withLocation(String location)

Parameters:

location

withProperties

public MsTeamsChannel withProperties(MsTeamsChannelProperties properties)

Set the properties property: The set of properties specific to Microsoft Teams channel resource.

Parameters:

properties - the properties value to set.

Returns:

the MsTeamsChannel object itself.

Applies to