Class AlexaChannelProperties
java.lang.Object
com.azure.resourcemanager.botservice.models.AlexaChannelProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AlexaChannelProperties>
public final class AlexaChannelProperties
extends Object
implements com.azure.json.JsonSerializable<AlexaChannelProperties>
The parameters to provide for the Alexa channel.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AlexaChannelProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the alexaSkillId property: The Alexa skill Id.static AlexaChannelPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AlexaChannelProperties from the JsonReader.booleanGet the isEnabled property: Whether this channel is enabled for the bot.Get the serviceEndpointUri property: Full Uri used to configured the skill in Alexa.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the urlFragment property: Url fragment used in part of the Uri configured in Alexa.voidvalidate()Validates the instance.withAlexaSkillId(String alexaSkillId) Set the alexaSkillId property: The Alexa skill Id.withIsEnabled(boolean isEnabled) Set the isEnabled property: Whether this channel is enabled for the bot.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AlexaChannelProperties
public AlexaChannelProperties()Creates an instance of AlexaChannelProperties class.
-
-
Method Details
-
alexaSkillId
Get the alexaSkillId property: The Alexa skill Id.- Returns:
- the alexaSkillId value.
-
withAlexaSkillId
Set the alexaSkillId property: The Alexa skill Id.- Parameters:
alexaSkillId- the alexaSkillId value to set.- Returns:
- the AlexaChannelProperties object itself.
-
urlFragment
Get the urlFragment property: Url fragment used in part of the Uri configured in Alexa.- Returns:
- the urlFragment value.
-
serviceEndpointUri
Get the serviceEndpointUri property: Full Uri used to configured the skill in Alexa.- Returns:
- the serviceEndpointUri value.
-
isEnabled
public boolean isEnabled()Get the isEnabled property: Whether this channel is enabled for the bot.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: Whether this channel is enabled for the bot.- Parameters:
isEnabled- the isEnabled value to set.- Returns:
- the AlexaChannelProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AlexaChannelProperties>- Throws:
IOException
-
fromJson
public static AlexaChannelProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the AlexaChannelProperties.
-