Class KikChannelProperties
java.lang.Object
com.azure.resourcemanager.botservice.models.KikChannelProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KikChannelProperties>
public final class KikChannelProperties
extends Object
implements com.azure.json.JsonSerializable<KikChannelProperties>
The parameters to provide for the Kik channel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiKey()Get the apiKey property: Kik API key.static KikChannelPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KikChannelProperties from the JsonReader.booleanGet the isEnabled property: Whether this channel is enabled for the bot.Get the isValidated property: Whether this channel is validated for the bot.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) username()Get the username property: The Kik user name.voidvalidate()Validates the instance.withApiKey(String apiKey) Set the apiKey property: Kik API key.withIsEnabled(boolean isEnabled) Set the isEnabled property: Whether this channel is enabled for the bot.withIsValidated(Boolean isValidated) Set the isValidated property: Whether this channel is validated for the bot.withUsername(String username) Set the username property: The Kik user name.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
-
KikChannelProperties
public KikChannelProperties()Creates an instance of KikChannelProperties class.
-
-
Method Details
-
username
Get the username property: The Kik user name.- Returns:
- the username value.
-
withUsername
Set the username property: The Kik user name.- Parameters:
username- the username value to set.- Returns:
- the KikChannelProperties object itself.
-
apiKey
Get the apiKey property: Kik API key. Value only returned through POST to the action Channel List API, otherwise empty.- Returns:
- the apiKey value.
-
withApiKey
Set the apiKey property: Kik API key. Value only returned through POST to the action Channel List API, otherwise empty.- Parameters:
apiKey- the apiKey value to set.- Returns:
- the KikChannelProperties object itself.
-
isValidated
Get the isValidated property: Whether this channel is validated for the bot.- Returns:
- the isValidated value.
-
withIsValidated
Set the isValidated property: Whether this channel is validated for the bot.- Parameters:
isValidated- the isValidated value to set.- Returns:
- the KikChannelProperties object itself.
-
isEnabled
public boolean isEnabled()Get the isEnabled property: Whether this channel is enabled for the bot.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: Whether this channel is enabled for the bot.- Parameters:
isEnabled- the isEnabled value to set.- Returns:
- the KikChannelProperties 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<KikChannelProperties>- Throws:
IOException
-
fromJson
public static KikChannelProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KikChannelProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KikChannelProperties 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 KikChannelProperties.
-