java.lang.Object
com.azure.resourcemanager.botservice.models.Channel
All Implemented Interfaces:
com.azure.json.JsonSerializable<Channel>
Direct Known Subclasses:
AcsChatChannel, AlexaChannel, DirectLineChannel, DirectLineSpeechChannel, EmailChannel, FacebookChannel, KikChannel, LineChannel, M365Extensions, MsTeamsChannel, Omnichannel, OutlookChannel, SearchAssistant, SkypeChannel, SlackChannel, SmsChannel, TelegramChannel, TelephonyChannel, WebChatChannel

public class Channel extends Object implements com.azure.json.JsonSerializable<Channel>
Channel definition.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of Channel class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the channelName property: The channel name.
    Get the etag property: Entity Tag of the resource.
    static Channel
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of Channel from the JsonReader.
    Get the location property: Specifies the location of the resource.
    Get the provisioningState property: Provisioning state of the resource.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Set the etag property: Entity Tag of the resource.
    withLocation(String location)
    Set the location property: Specifies the location of the resource.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • Channel

      public Channel()
      Creates an instance of Channel class.
  • Method Details

    • channelName

      public String channelName()
      Get the channelName property: The channel name.
      Returns:
      the channelName value.
    • etag

      public String etag()
      Get the etag property: Entity Tag of the resource.
      Returns:
      the etag value.
    • withEtag

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

      public String provisioningState()
      Get the provisioningState property: Provisioning state of the resource.
      Returns:
      the provisioningState value.
    • location

      public String location()
      Get the location property: Specifies the location of the resource.
      Returns:
      the location value.
    • withLocation

      public Channel withLocation(String location)
      Set the location property: Specifies the location of the resource.
      Parameters:
      location - the location value to set.
      Returns:
      the Channel 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<Channel>
      Throws:
      IOException
    • fromJson

      public static Channel fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of Channel from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of Channel 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 Channel.