Class AlexaChannel

java.lang.Object
com.azure.resourcemanager.botservice.models.Channel
com.azure.resourcemanager.botservice.models.AlexaChannel
All Implemented Interfaces:
com.azure.json.JsonSerializable<Channel>

public final class AlexaChannel extends Channel
Alexa channel definition.
  • 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:
      channelName in class Channel
      Returns:
      the channelName value.
    • properties

      public AlexaChannelProperties properties()
      Get the properties property: The set of properties specific to Alexa channel resource.
      Returns:
      the properties value.
    • 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.
    • withEtag

      public AlexaChannel withEtag(String etag)
      Set the etag property: Entity Tag of the resource.
      Overrides:
      withEtag in class Channel
      Parameters:
      etag - the etag value to set.
      Returns:
      the Channel object itself.
    • withLocation

      public AlexaChannel withLocation(String location)
      Set the location property: Specifies the location of the resource.
      Overrides:
      withLocation in class Channel
      Parameters:
      location - the location value to set.
      Returns:
      the Channel object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class Channel
      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<Channel>
      Overrides:
      toJson in class Channel
      Throws:
      IOException
    • fromJson

      public static AlexaChannel fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.