Class LineRegistration

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

public final class LineRegistration extends Object implements com.azure.json.JsonSerializable<LineRegistration>
The properties corresponding to a line channel registration.
  • Constructor Details

    • LineRegistration

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

    • generatedId

      public String generatedId()
      Get the generatedId property: Id generated for the line channel registration.
      Returns:
      the generatedId value.
    • channelSecret

      public String channelSecret()
      Get the channelSecret property: Secret for the line channel registration.
      Returns:
      the channelSecret value.
    • withChannelSecret

      public LineRegistration withChannelSecret(String channelSecret)
      Set the channelSecret property: Secret for the line channel registration.
      Parameters:
      channelSecret - the channelSecret value to set.
      Returns:
      the LineRegistration object itself.
    • channelAccessToken

      public String channelAccessToken()
      Get the channelAccessToken property: Access token for the line channel registration.
      Returns:
      the channelAccessToken value.
    • withChannelAccessToken

      public LineRegistration withChannelAccessToken(String channelAccessToken)
      Set the channelAccessToken property: Access token for the line channel registration.
      Parameters:
      channelAccessToken - the channelAccessToken value to set.
      Returns:
      the LineRegistration 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<LineRegistration>
      Throws:
      IOException
    • fromJson

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