Class LineChannelProperties

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

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

    • LineChannelProperties

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

    • lineRegistrations

      public List<LineRegistration> lineRegistrations()
      Get the lineRegistrations property: The list of line channel registrations.
      Returns:
      the lineRegistrations value.
    • withLineRegistrations

      public LineChannelProperties withLineRegistrations(List<LineRegistration> lineRegistrations)
      Set the lineRegistrations property: The list of line channel registrations.
      Parameters:
      lineRegistrations - the lineRegistrations value to set.
      Returns:
      the LineChannelProperties object itself.
    • callbackUrl

      public String callbackUrl()
      Get the callbackUrl property: Callback Url to enter in line registration.
      Returns:
      the callbackUrl value.
    • isValidated

      public Boolean isValidated()
      Get the isValidated property: Whether this channel is validated for the bot.
      Returns:
      the isValidated value.
    • 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<LineChannelProperties>
      Throws:
      IOException
    • fromJson

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