Class SmsChannelProperties
java.lang.Object
com.azure.resourcemanager.botservice.models.SmsChannelProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SmsChannelProperties>
public final class SmsChannelProperties
extends Object
implements com.azure.json.JsonSerializable<SmsChannelProperties>
The parameters to provide for the Sms channel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the accountSid property: The Sms account SID.Get the authToken property: The Sms auth token.static SmsChannelPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SmsChannelProperties 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.phone()Get the phone property: The Sms phone.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAccountSid(String accountSid) Set the accountSid property: The Sms account SID.withAuthToken(String authToken) Set the authToken property: The Sms auth token.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.Set the phone property: The Sms phone.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
-
SmsChannelProperties
public SmsChannelProperties()Creates an instance of SmsChannelProperties class.
-
-
Method Details
-
phone
Get the phone property: The Sms phone.- Returns:
- the phone value.
-
withPhone
Set the phone property: The Sms phone.- Parameters:
phone- the phone value to set.- Returns:
- the SmsChannelProperties object itself.
-
accountSid
Get the accountSid property: The Sms account SID. Value only returned through POST to the action Channel List API, otherwise empty.- Returns:
- the accountSid value.
-
withAccountSid
Set the accountSid property: The Sms account SID. Value only returned through POST to the action Channel List API, otherwise empty.- Parameters:
accountSid- the accountSid value to set.- Returns:
- the SmsChannelProperties object itself.
-
authToken
Get the authToken property: The Sms auth token. Value only returned through POST to the action Channel List API, otherwise empty.- Returns:
- the authToken value.
-
withAuthToken
Set the authToken property: The Sms auth token. Value only returned through POST to the action Channel List API, otherwise empty.- Parameters:
authToken- the authToken value to set.- Returns:
- the SmsChannelProperties 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 SmsChannelProperties 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 SmsChannelProperties 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<SmsChannelProperties>- Throws:
IOException
-
fromJson
public static SmsChannelProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SmsChannelProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SmsChannelProperties 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 SmsChannelProperties.
-