Class DirectLineChannelProperties

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

public final class DirectLineChannelProperties extends Object implements com.azure.json.JsonSerializable<DirectLineChannelProperties>
The parameters to provide for the Direct Line channel.
  • Constructor Details

    • DirectLineChannelProperties

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

    • sites

      public List<DirectLineSite> sites()
      Get the sites property: The list of Direct Line sites.
      Returns:
      the sites value.
    • withSites

      public DirectLineChannelProperties withSites(List<DirectLineSite> sites)
      Set the sites property: The list of Direct Line sites.
      Parameters:
      sites - the sites value to set.
      Returns:
      the DirectLineChannelProperties object itself.
    • extensionKey1

      public String extensionKey1()
      Get the extensionKey1 property: The extensionKey1.
      Returns:
      the extensionKey1 value.
    • withExtensionKey1

      public DirectLineChannelProperties withExtensionKey1(String extensionKey1)
      Set the extensionKey1 property: The extensionKey1.
      Parameters:
      extensionKey1 - the extensionKey1 value to set.
      Returns:
      the DirectLineChannelProperties object itself.
    • extensionKey2

      public String extensionKey2()
      Get the extensionKey2 property: The extensionKey2.
      Returns:
      the extensionKey2 value.
    • withExtensionKey2

      public DirectLineChannelProperties withExtensionKey2(String extensionKey2)
      Set the extensionKey2 property: The extensionKey2.
      Parameters:
      extensionKey2 - the extensionKey2 value to set.
      Returns:
      the DirectLineChannelProperties object itself.
    • directLineEmbedCode

      public String directLineEmbedCode()
      Get the directLineEmbedCode property: Direct Line embed code of the resource.
      Returns:
      the directLineEmbedCode value.
    • withDirectLineEmbedCode

      public DirectLineChannelProperties withDirectLineEmbedCode(String directLineEmbedCode)
      Set the directLineEmbedCode property: Direct Line embed code of the resource.
      Parameters:
      directLineEmbedCode - the directLineEmbedCode value to set.
      Returns:
      the DirectLineChannelProperties 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<DirectLineChannelProperties>
      Throws:
      IOException
    • fromJson

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