Class SmsChannelProperties
- java.lang.Object
-
- com.azure.resourcemanager.botservice.models.SmsChannelProperties
-
public final class SmsChannelProperties extends Object
The parameters to provide for the Sms channel.
-
-
Constructor Summary
Constructors Constructor Description SmsChannelProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
accountSid()
Get the accountSid property: The Sms account SID.String
authToken()
Get the authToken property: The Sms auth token.boolean
isEnabled()
Get the isEnabled property: Whether this channel is enabled for the bot.Boolean
isValidated()
Get the isValidated property: Whether this channel is validated for the bot.String
phone()
Get the phone property: The Sms phone.void
validate()
Validates the instance.SmsChannelProperties
withAccountSid(String accountSid)
Set the accountSid property: The Sms account SID.SmsChannelProperties
withAuthToken(String authToken)
Set the authToken property: The Sms auth token.SmsChannelProperties
withIsEnabled(boolean isEnabled)
Set the isEnabled property: Whether this channel is enabled for the bot.SmsChannelProperties
withIsValidated(Boolean isValidated)
Set the isValidated property: Whether this channel is validated for the bot.SmsChannelProperties
withPhone(String phone)
Set the phone property: The Sms phone.
-
-
-
Method Detail
-
phone
public String phone()
Get the phone property: The Sms phone.- Returns:
- the phone value.
-
withPhone
public SmsChannelProperties withPhone(String phone)
Set the phone property: The Sms phone.- Parameters:
phone
- the phone value to set.- Returns:
- the SmsChannelProperties object itself.
-
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:
- the accountSid value.
-
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:
accountSid
- the accountSid value to set.- Returns:
- the SmsChannelProperties object itself.
-
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:
- the authToken value.
-
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:
authToken
- the authToken value to set.- Returns:
- the SmsChannelProperties object itself.
-
isValidated
public Boolean isValidated()
Get the isValidated property: Whether this channel is validated for the bot.- Returns:
- the isValidated value.
-
withIsValidated
public SmsChannelProperties withIsValidated(Boolean isValidated)
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
public SmsChannelProperties withIsEnabled(boolean isEnabled)
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.
-
-