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 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.
    • 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.
    • urlFragment

      public String urlFragment()
      Get the urlFragment property: Url fragment used in part of the Uri configured in Alexa.
      Returns:
      the urlFragment value.
    • serviceEndpointUri

      public String 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

      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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.