Share via


SmsChannelProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.botservice.models.SmsChannelProperties

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 SmsChannelProperties class.

Method Summary

Modifier and Type Method and Description
String accountSid()

Get the accountSid property: The Sms account SID.

String authToken()

Get the authToken property: The Sms auth token.

static SmsChannelProperties fromJson(JsonReader jsonReader)

Reads an instance of SmsChannelProperties from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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.

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:

the accountSid value.

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.

fromJson

public static SmsChannelProperties fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

isEnabled

public boolean isEnabled()

Get the isEnabled property: Whether this channel is enabled for the bot.

Returns:

the isEnabled value.

isValidated

public Boolean isValidated()

Get the isValidated property: Whether this channel is validated for the bot.

Returns:

the isValidated value.

phone

public String phone()

Get the phone property: The Sms phone.

Returns:

the phone value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

accountSid - the accountSid value to set.

Returns:

the SmsChannelProperties object itself.

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.

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.

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.

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.

Applies to