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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the channelAccessToken property: Access token for the line channel registration.Get the channelSecret property: Secret for the line channel registration.static LineRegistrationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LineRegistration from the JsonReader.Get the generatedId property: Id generated for the line channel registration.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withChannelAccessToken(String channelAccessToken) Set the channelAccessToken property: Access token for the line channel registration.withChannelSecret(String channelSecret) Set the channelSecret property: Secret for the line channel registration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LineRegistration
public LineRegistration()Creates an instance of LineRegistration class.
-
-
Method Details
-
generatedId
Get the generatedId property: Id generated for the line channel registration.- Returns:
- the generatedId value.
-
channelSecret
Get the channelSecret property: Secret for the line channel registration.- Returns:
- the channelSecret value.
-
withChannelSecret
Set the channelSecret property: Secret for the line channel registration.- Parameters:
channelSecret- the channelSecret value to set.- Returns:
- the LineRegistration object itself.
-
channelAccessToken
Get the channelAccessToken property: Access token for the line channel registration.- Returns:
- the channelAccessToken value.
-
withChannelAccessToken
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<LineRegistration>- Throws:
IOException
-
fromJson
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.
-