Share via


TelephonyChannel Class

public final class TelephonyChannel
extends Channel

Telephony channel definition.

Constructor Summary

Constructor Description
TelephonyChannel()

Creates an instance of TelephonyChannel class.

Method Summary

Modifier and Type Method and Description
String channelName()

Get the channelName property: The channel name.

static TelephonyChannel fromJson(JsonReader jsonReader)

Reads an instance of TelephonyChannel from the JsonReader.

TelephonyChannelProperties properties()

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

String provisioningState()

Get the provisioningState property: Provisioning state of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TelephonyChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

TelephonyChannel withLocation(String location)

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

TelephonyChannel withProperties(TelephonyChannelProperties properties)

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

Methods inherited from Channel

Methods inherited from java.lang.Object

Constructor Details

TelephonyChannel

public TelephonyChannel()

Creates an instance of TelephonyChannel class.

Method Details

channelName

public String channelName()

Get the channelName property: The channel name.

Overrides:

TelephonyChannel.channelName()

Returns:

the channelName value.

fromJson

public static TelephonyChannel fromJson(JsonReader jsonReader)

Reads an instance of TelephonyChannel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

properties

public TelephonyChannelProperties properties()

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

Returns:

the properties value.

provisioningState

public String provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Overrides:

TelephonyChannel.provisioningState()

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

TelephonyChannel.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

TelephonyChannel.validate()

withEtag

public TelephonyChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

Overrides:

TelephonyChannel.withEtag(String etag)

Parameters:

etag

withLocation

public TelephonyChannel withLocation(String location)

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

Overrides:

TelephonyChannel.withLocation(String location)

Parameters:

location

withProperties

public TelephonyChannel withProperties(TelephonyChannelProperties properties)

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

Parameters:

properties - the properties value to set.

Returns:

the TelephonyChannel object itself.

Applies to