AlexaChannelProperties Class

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

Implements

public final class AlexaChannelProperties
implements JsonSerializable<AlexaChannelProperties>

The parameters to provide for the Alexa channel.

Constructor Summary

Constructor Description
AlexaChannelProperties()

Creates an instance of AlexaChannelProperties class.

Method Summary

Modifier and Type Method and Description
String alexaSkillId()

Get the alexaSkillId property: The Alexa skill Id.

static AlexaChannelProperties fromJson(JsonReader jsonReader)

Reads an instance of AlexaChannelProperties from the JsonReader.

boolean isEnabled()

Get the isEnabled property: Whether this channel is enabled for the bot.

String serviceEndpointUri()

Get the serviceEndpointUri property: Full Uri used to configured the skill in Alexa.

JsonWriter toJson(JsonWriter jsonWriter)
String urlFragment()

Get the urlFragment property: Url fragment used in part of the Uri configured in Alexa.

void validate()

Validates the instance.

AlexaChannelProperties withAlexaSkillId(String alexaSkillId)

Set the alexaSkillId property: The Alexa skill Id.

AlexaChannelProperties withIsEnabled(boolean isEnabled)

Set the isEnabled property: Whether this channel is enabled for the bot.

Methods inherited from java.lang.Object

Constructor Details

AlexaChannelProperties

public AlexaChannelProperties()

Creates an instance of AlexaChannelProperties class.

Method Details

alexaSkillId

public String alexaSkillId()

Get the alexaSkillId property: The Alexa skill Id.

Returns:

the alexaSkillId value.

fromJson

public static AlexaChannelProperties fromJson(JsonReader jsonReader)

Reads an instance of AlexaChannelProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

isEnabled

public boolean isEnabled()

Get the isEnabled property: Whether this channel is enabled for the bot.

Returns:

the isEnabled value.

serviceEndpointUri

public String serviceEndpointUri()

Get the serviceEndpointUri property: Full Uri used to configured the skill in Alexa.

Returns:

the serviceEndpointUri value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

urlFragment

public String urlFragment()

Get the urlFragment property: Url fragment used in part of the Uri configured in Alexa.

Returns:

the urlFragment value.

validate

public void validate()

Validates the instance.

withAlexaSkillId

public AlexaChannelProperties withAlexaSkillId(String alexaSkillId)

Set the alexaSkillId property: The Alexa skill Id.

Parameters:

alexaSkillId - the alexaSkillId value to set.

Returns:

the AlexaChannelProperties object itself.

withIsEnabled

public AlexaChannelProperties withIsEnabled(boolean isEnabled)

Set the isEnabled property: Whether this channel is enabled for the bot.

Parameters:

isEnabled - the isEnabled value to set.

Returns:

the AlexaChannelProperties object itself.

Applies to