SmsChannelProperties Class
- java.
lang. Object - com.
azure. resourcemanager. botservice. models. SmsChannelProperties
- com.
Implements
public final class SmsChannelProperties
implements JsonSerializable<SmsChannelProperties>
The parameters to provide for the Sms channel.
Constructor Summary
| Constructor | Description |
|---|---|
| SmsChannelProperties() |
Creates an instance of Sms |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
accountSid()
Get the account |
| String |
authToken()
Get the auth |
|
static
Sms |
fromJson(JsonReader jsonReader)
Reads an instance of Sms |
| boolean |
isEnabled()
Get the is |
| Boolean |
isValidated()
Get the is |
| String |
phone()
Get the phone property: The Sms phone. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Sms |
withAccountSid(String accountSid)
Set the account |
|
Sms |
withAuthToken(String authToken)
Set the auth |
|
Sms |
withIsEnabled(boolean isEnabled)
Set the is |
|
Sms |
withIsValidated(Boolean isValidated)
Set the is |
|
Sms |
withPhone(String phone)
Set the phone property: The Sms phone. |
Methods inherited from java.lang.Object
Constructor Details
SmsChannelProperties
public SmsChannelProperties()
Creates an instance of SmsChannelProperties class.
Method Details
accountSid
public String accountSid()
Get the accountSid property: The Sms account SID. Value only returned through POST to the action Channel List API, otherwise empty.
Returns:
authToken
public String authToken()
Get the authToken property: The Sms auth token. Value only returned through POST to the action Channel List API, otherwise empty.
Returns:
fromJson
public static SmsChannelProperties fromJson(JsonReader jsonReader)
Reads an instance of SmsChannelProperties from the JsonReader.
Parameters:
Returns:
Throws:
isEnabled
public boolean isEnabled()
Get the isEnabled property: Whether this channel is enabled for the bot.
Returns:
isValidated
public Boolean isValidated()
Get the isValidated property: Whether this channel is validated for the bot.
Returns:
phone
public String phone()
Get the phone property: The Sms phone.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAccountSid
public SmsChannelProperties withAccountSid(String accountSid)
Set the accountSid property: The Sms account SID. Value only returned through POST to the action Channel List API, otherwise empty.
Parameters:
Returns:
withAuthToken
public SmsChannelProperties withAuthToken(String authToken)
Set the authToken property: The Sms auth token. Value only returned through POST to the action Channel List API, otherwise empty.
Parameters:
Returns:
withIsEnabled
public SmsChannelProperties withIsEnabled(boolean isEnabled)
Set the isEnabled property: Whether this channel is enabled for the bot.
Parameters:
Returns:
withIsValidated
public SmsChannelProperties withIsValidated(Boolean isValidated)
Set the isValidated property: Whether this channel is validated for the bot.
Parameters:
Returns:
withPhone
public SmsChannelProperties withPhone(String phone)
Set the phone property: The Sms phone.
Parameters:
Returns: