AlexaChannel Class

public final class AlexaChannel
extends Channel

Alexa channel definition.

Constructor Summary

Constructor Description
AlexaChannel()

Creates an instance of AlexaChannel class.

Method Summary

Modifier and Type Method and Description
String channelName()

Get the channelName property: The channel name.

static AlexaChannel fromJson(JsonReader jsonReader)

Reads an instance of AlexaChannel from the JsonReader.

AlexaChannelProperties properties()

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

String provisioningState()

Get the provisioningState property: Provisioning state of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AlexaChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

AlexaChannel withLocation(String location)

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

AlexaChannel withProperties(AlexaChannelProperties properties)

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

Methods inherited from Channel

Methods inherited from java.lang.Object

Constructor Details

AlexaChannel

public AlexaChannel()

Creates an instance of AlexaChannel class.

Method Details

channelName

public String channelName()

Get the channelName property: The channel name.

Overrides:

AlexaChannel.channelName()

Returns:

the channelName value.

fromJson

public static AlexaChannel fromJson(JsonReader jsonReader)

Reads an instance of AlexaChannel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

properties

public AlexaChannelProperties properties()

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

Returns:

the properties value.

provisioningState

public String provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Overrides:

AlexaChannel.provisioningState()

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AlexaChannel.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

AlexaChannel.validate()

withEtag

public AlexaChannel withEtag(String etag)

Set the etag property: Entity Tag of the resource.

Overrides:

AlexaChannel.withEtag(String etag)

Parameters:

etag

withLocation

public AlexaChannel withLocation(String location)

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

Overrides:

AlexaChannel.withLocation(String location)

Parameters:

location

withProperties

public AlexaChannel withProperties(AlexaChannelProperties properties)

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

Parameters:

properties - the properties value to set.

Returns:

the AlexaChannel object itself.

Applies to