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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the callbackUrl property: Callback Url to enter in line registration.static LineChannelPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LineChannelProperties from the JsonReader.Get the isValidated property: Whether this channel is validated for the bot.Get the lineRegistrations property: The list of line channel registrations.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withLineRegistrations(List<LineRegistration> lineRegistrations) Set the lineRegistrations property: The list of line channel registrations.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
-
LineChannelProperties
public LineChannelProperties()Creates an instance of LineChannelProperties class.
-
-
Method Details
-
lineRegistrations
Get the lineRegistrations property: The list of line channel registrations.- Returns:
- the lineRegistrations value.
-
withLineRegistrations
Set the lineRegistrations property: The list of line channel registrations.- Parameters:
lineRegistrations- the lineRegistrations value to set.- Returns:
- the LineChannelProperties object itself.
-
callbackUrl
Get the callbackUrl property: Callback Url to enter in line registration.- Returns:
- the callbackUrl value.
-
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
- Specified by:
toJsonin interfacecom.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.
-