LineChannel Class

public final class LineChannel
extends Channel

Line channel definition.

Constructor Summary

Constructor Description
LineChannel()

Creates an instance of LineChannel class.

Method Summary

Modifier and Type Method and Description
String channelName()

Get the channelName property: The channel name.

static LineChannel fromJson(JsonReader jsonReader)

Reads an instance of LineChannel from the JsonReader.

LineChannelProperties properties()

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

String provisioningState()

Get the provisioningState property: Provisioning state of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LineChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

LineChannel withLocation(String location)

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

LineChannel withProperties(LineChannelProperties properties)

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

Methods inherited from Channel

Methods inherited from java.lang.Object

Constructor Details

LineChannel

public LineChannel()

Creates an instance of LineChannel class.

Method Details

channelName

public String channelName()

Get the channelName property: The channel name.

Overrides:

LineChannel.channelName()

Returns:

the channelName value.

fromJson

public static LineChannel fromJson(JsonReader jsonReader)

Reads an instance of LineChannel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

properties

public LineChannelProperties properties()

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

Returns:

the properties value.

provisioningState

public String provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Overrides:

LineChannel.provisioningState()

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

LineChannel.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

LineChannel.validate()

withEtag

public LineChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

Overrides:

LineChannel.withEtag(String etag)

Parameters:

etag

withLocation

public LineChannel withLocation(String location)

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

Overrides:

LineChannel.withLocation(String location)

Parameters:

location

withProperties

public LineChannel withProperties(LineChannelProperties properties)

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

Parameters:

properties - the properties value to set.

Returns:

the LineChannel object itself.

Applies to