Share via


Channel Class

  • java.lang.Object
    • com.azure.resourcemanager.botservice.models.Channel

Implements

public class Channel
implements JsonSerializable<Channel>

Channel definition.

Constructor Summary

Constructor Description
Channel()

Creates an instance of Channel class.

Method Summary

Modifier and Type Method and Description
String channelName()

Get the channelName property: The channel name.

String etag()

Get the etag property: Entity Tag of the resource.

static Channel fromJson(JsonReader jsonReader)

Reads an instance of Channel from the JsonReader.

String location()

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

String provisioningState()

Get the provisioningState property: Provisioning state of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Channel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

Channel withLocation(String location)

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

Methods inherited from java.lang.Object

Constructor Details

Channel

public Channel()

Creates an instance of Channel class.

Method Details

channelName

public String channelName()

Get the channelName property: The channel name.

Returns:

the channelName value.

etag

public String etag()

Get the etag property: Entity Tag of the resource.

Returns:

the etag value.

fromJson

public static Channel fromJson(JsonReader jsonReader)

Reads an instance of Channel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Channel 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 Channel.

location

public String location()

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

Returns:

the location value.

provisioningState

public String provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEtag

public Channel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

Parameters:

etag - the etag value to set.

Returns:

the Channel object itself.

withLocation

public Channel withLocation(String location)

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

Parameters:

location - the location value to set.

Returns:

the Channel object itself.

Applies to