@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdatePhoneNumberResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
UpdatePhoneNumberResult() |
Modifier and Type | Method and Description |
---|---|
UpdatePhoneNumberResult |
clone() |
boolean |
equals(Object obj) |
Date |
getCreatedTimestamp()
The time when the phone number was created, in UNIX epoch time
format.
|
Boolean |
getDeletionProtectionEnabled()
When set to true the phone number can't be deleted.
|
String |
getIsoCountryCode()
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
|
String |
getMessageType()
The type of message.
|
String |
getMonthlyLeasingPrice()
The monthly leasing price of the phone number, in US dollars.
|
List<String> |
getNumberCapabilities()
Specifies if the number could be used for text messages, voice or both.
|
String |
getNumberType()
The type of number that was requested.
|
String |
getOptOutListName()
The name of the OptOutList associated with the phone number.
|
String |
getPhoneNumber()
The phone number that was updated.
|
String |
getPhoneNumberArn()
The Amazon Resource Name (ARN) of the updated phone number.
|
String |
getPhoneNumberId()
The unique identifier of the phone number.
|
String |
getRegistrationId()
The unique identifier for the registration.
|
Boolean |
getSelfManagedOptOutsEnabled()
This is true if self managed opt-out are enabled.
|
String |
getStatus()
The current status of the request.
|
String |
getTwoWayChannelArn()
The Amazon Resource Name (ARN) of the two way channel.
|
String |
getTwoWayChannelRole()
An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
|
Boolean |
getTwoWayEnabled()
By default this is set to false.
|
int |
hashCode() |
Boolean |
isDeletionProtectionEnabled()
When set to true the phone number can't be deleted.
|
Boolean |
isSelfManagedOptOutsEnabled()
This is true if self managed opt-out are enabled.
|
Boolean |
isTwoWayEnabled()
By default this is set to false.
|
void |
setCreatedTimestamp(Date createdTimestamp)
The time when the phone number was created, in UNIX epoch time
format.
|
void |
setDeletionProtectionEnabled(Boolean deletionProtectionEnabled)
When set to true the phone number can't be deleted.
|
void |
setIsoCountryCode(String isoCountryCode)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
|
void |
setMessageType(String messageType)
The type of message.
|
void |
setMonthlyLeasingPrice(String monthlyLeasingPrice)
The monthly leasing price of the phone number, in US dollars.
|
void |
setNumberCapabilities(Collection<String> numberCapabilities)
Specifies if the number could be used for text messages, voice or both.
|
void |
setNumberType(String numberType)
The type of number that was requested.
|
void |
setOptOutListName(String optOutListName)
The name of the OptOutList associated with the phone number.
|
void |
setPhoneNumber(String phoneNumber)
The phone number that was updated.
|
void |
setPhoneNumberArn(String phoneNumberArn)
The Amazon Resource Name (ARN) of the updated phone number.
|
void |
setPhoneNumberId(String phoneNumberId)
The unique identifier of the phone number.
|
void |
setRegistrationId(String registrationId)
The unique identifier for the registration.
|
void |
setSelfManagedOptOutsEnabled(Boolean selfManagedOptOutsEnabled)
This is true if self managed opt-out are enabled.
|
void |
setStatus(String status)
The current status of the request.
|
void |
setTwoWayChannelArn(String twoWayChannelArn)
The Amazon Resource Name (ARN) of the two way channel.
|
void |
setTwoWayChannelRole(String twoWayChannelRole)
An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
|
void |
setTwoWayEnabled(Boolean twoWayEnabled)
By default this is set to false.
|
String |
toString()
Returns a string representation of this object.
|
UpdatePhoneNumberResult |
withCreatedTimestamp(Date createdTimestamp)
The time when the phone number was created, in UNIX epoch time
format.
|
UpdatePhoneNumberResult |
withDeletionProtectionEnabled(Boolean deletionProtectionEnabled)
When set to true the phone number can't be deleted.
|
UpdatePhoneNumberResult |
withIsoCountryCode(String isoCountryCode)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
|
UpdatePhoneNumberResult |
withMessageType(MessageType messageType)
The type of message.
|
UpdatePhoneNumberResult |
withMessageType(String messageType)
The type of message.
|
UpdatePhoneNumberResult |
withMonthlyLeasingPrice(String monthlyLeasingPrice)
The monthly leasing price of the phone number, in US dollars.
|
UpdatePhoneNumberResult |
withNumberCapabilities(Collection<String> numberCapabilities)
Specifies if the number could be used for text messages, voice or both.
|
UpdatePhoneNumberResult |
withNumberCapabilities(NumberCapability... numberCapabilities)
Specifies if the number could be used for text messages, voice or both.
|
UpdatePhoneNumberResult |
withNumberCapabilities(String... numberCapabilities)
Specifies if the number could be used for text messages, voice or both.
|
UpdatePhoneNumberResult |
withNumberType(NumberType numberType)
The type of number that was requested.
|
UpdatePhoneNumberResult |
withNumberType(String numberType)
The type of number that was requested.
|
UpdatePhoneNumberResult |
withOptOutListName(String optOutListName)
The name of the OptOutList associated with the phone number.
|
UpdatePhoneNumberResult |
withPhoneNumber(String phoneNumber)
The phone number that was updated.
|
UpdatePhoneNumberResult |
withPhoneNumberArn(String phoneNumberArn)
The Amazon Resource Name (ARN) of the updated phone number.
|
UpdatePhoneNumberResult |
withPhoneNumberId(String phoneNumberId)
The unique identifier of the phone number.
|
UpdatePhoneNumberResult |
withRegistrationId(String registrationId)
The unique identifier for the registration.
|
UpdatePhoneNumberResult |
withSelfManagedOptOutsEnabled(Boolean selfManagedOptOutsEnabled)
This is true if self managed opt-out are enabled.
|
UpdatePhoneNumberResult |
withStatus(NumberStatus status)
The current status of the request.
|
UpdatePhoneNumberResult |
withStatus(String status)
The current status of the request.
|
UpdatePhoneNumberResult |
withTwoWayChannelArn(String twoWayChannelArn)
The Amazon Resource Name (ARN) of the two way channel.
|
UpdatePhoneNumberResult |
withTwoWayChannelRole(String twoWayChannelRole)
An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
|
UpdatePhoneNumberResult |
withTwoWayEnabled(Boolean twoWayEnabled)
By default this is set to false.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPhoneNumberArn(String phoneNumberArn)
The Amazon Resource Name (ARN) of the updated phone number.
phoneNumberArn
- The Amazon Resource Name (ARN) of the updated phone number.public String getPhoneNumberArn()
The Amazon Resource Name (ARN) of the updated phone number.
public UpdatePhoneNumberResult withPhoneNumberArn(String phoneNumberArn)
The Amazon Resource Name (ARN) of the updated phone number.
phoneNumberArn
- The Amazon Resource Name (ARN) of the updated phone number.public void setPhoneNumberId(String phoneNumberId)
The unique identifier of the phone number.
phoneNumberId
- The unique identifier of the phone number.public String getPhoneNumberId()
The unique identifier of the phone number.
public UpdatePhoneNumberResult withPhoneNumberId(String phoneNumberId)
The unique identifier of the phone number.
phoneNumberId
- The unique identifier of the phone number.public void setPhoneNumber(String phoneNumber)
The phone number that was updated.
phoneNumber
- The phone number that was updated.public String getPhoneNumber()
The phone number that was updated.
public UpdatePhoneNumberResult withPhoneNumber(String phoneNumber)
The phone number that was updated.
phoneNumber
- The phone number that was updated.public void setStatus(String status)
The current status of the request.
status
- The current status of the request.NumberStatus
public String getStatus()
The current status of the request.
NumberStatus
public UpdatePhoneNumberResult withStatus(String status)
The current status of the request.
status
- The current status of the request.NumberStatus
public UpdatePhoneNumberResult withStatus(NumberStatus status)
The current status of the request.
status
- The current status of the request.NumberStatus
public void setIsoCountryCode(String isoCountryCode)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
isoCountryCode
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.public String getIsoCountryCode()
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
public UpdatePhoneNumberResult withIsoCountryCode(String isoCountryCode)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
isoCountryCode
- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.public void setMessageType(String messageType)
The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
messageType
- The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and
PROMOTIONAL for messages that aren't critical or time-sensitive.MessageType
public String getMessageType()
The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
MessageType
public UpdatePhoneNumberResult withMessageType(String messageType)
The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
messageType
- The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and
PROMOTIONAL for messages that aren't critical or time-sensitive.MessageType
public UpdatePhoneNumberResult withMessageType(MessageType messageType)
The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
messageType
- The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and
PROMOTIONAL for messages that aren't critical or time-sensitive.MessageType
public List<String> getNumberCapabilities()
Specifies if the number could be used for text messages, voice or both.
NumberCapability
public void setNumberCapabilities(Collection<String> numberCapabilities)
Specifies if the number could be used for text messages, voice or both.
numberCapabilities
- Specifies if the number could be used for text messages, voice or both.NumberCapability
public UpdatePhoneNumberResult withNumberCapabilities(String... numberCapabilities)
Specifies if the number could be used for text messages, voice or both.
NOTE: This method appends the values to the existing list (if any). Use
setNumberCapabilities(java.util.Collection)
or withNumberCapabilities(java.util.Collection)
if
you want to override the existing values.
numberCapabilities
- Specifies if the number could be used for text messages, voice or both.NumberCapability
public UpdatePhoneNumberResult withNumberCapabilities(Collection<String> numberCapabilities)
Specifies if the number could be used for text messages, voice or both.
numberCapabilities
- Specifies if the number could be used for text messages, voice or both.NumberCapability
public UpdatePhoneNumberResult withNumberCapabilities(NumberCapability... numberCapabilities)
Specifies if the number could be used for text messages, voice or both.
numberCapabilities
- Specifies if the number could be used for text messages, voice or both.NumberCapability
public void setNumberType(String numberType)
The type of number that was requested.
numberType
- The type of number that was requested.NumberType
public String getNumberType()
The type of number that was requested.
NumberType
public UpdatePhoneNumberResult withNumberType(String numberType)
The type of number that was requested.
numberType
- The type of number that was requested.NumberType
public UpdatePhoneNumberResult withNumberType(NumberType numberType)
The type of number that was requested.
numberType
- The type of number that was requested.NumberType
public void setMonthlyLeasingPrice(String monthlyLeasingPrice)
The monthly leasing price of the phone number, in US dollars.
monthlyLeasingPrice
- The monthly leasing price of the phone number, in US dollars.public String getMonthlyLeasingPrice()
The monthly leasing price of the phone number, in US dollars.
public UpdatePhoneNumberResult withMonthlyLeasingPrice(String monthlyLeasingPrice)
The monthly leasing price of the phone number, in US dollars.
monthlyLeasingPrice
- The monthly leasing price of the phone number, in US dollars.public void setTwoWayEnabled(Boolean twoWayEnabled)
By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
twoWayEnabled
- By default this is set to false. When set to true you can receive incoming text messages from your end
recipients.public Boolean getTwoWayEnabled()
By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
public UpdatePhoneNumberResult withTwoWayEnabled(Boolean twoWayEnabled)
By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
twoWayEnabled
- By default this is set to false. When set to true you can receive incoming text messages from your end
recipients.public Boolean isTwoWayEnabled()
By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
public void setTwoWayChannelArn(String twoWayChannelArn)
The Amazon Resource Name (ARN) of the two way channel.
twoWayChannelArn
- The Amazon Resource Name (ARN) of the two way channel.public String getTwoWayChannelArn()
The Amazon Resource Name (ARN) of the two way channel.
public UpdatePhoneNumberResult withTwoWayChannelArn(String twoWayChannelArn)
The Amazon Resource Name (ARN) of the two way channel.
twoWayChannelArn
- The Amazon Resource Name (ARN) of the two way channel.public void setTwoWayChannelRole(String twoWayChannelRole)
An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
twoWayChannelRole
- An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.public String getTwoWayChannelRole()
An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
public UpdatePhoneNumberResult withTwoWayChannelRole(String twoWayChannelRole)
An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
twoWayChannelRole
- An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.public void setSelfManagedOptOutsEnabled(Boolean selfManagedOptOutsEnabled)
This is true if self managed opt-out are enabled.
selfManagedOptOutsEnabled
- This is true if self managed opt-out are enabled.public Boolean getSelfManagedOptOutsEnabled()
This is true if self managed opt-out are enabled.
public UpdatePhoneNumberResult withSelfManagedOptOutsEnabled(Boolean selfManagedOptOutsEnabled)
This is true if self managed opt-out are enabled.
selfManagedOptOutsEnabled
- This is true if self managed opt-out are enabled.public Boolean isSelfManagedOptOutsEnabled()
This is true if self managed opt-out are enabled.
public void setOptOutListName(String optOutListName)
The name of the OptOutList associated with the phone number.
optOutListName
- The name of the OptOutList associated with the phone number.public String getOptOutListName()
The name of the OptOutList associated with the phone number.
public UpdatePhoneNumberResult withOptOutListName(String optOutListName)
The name of the OptOutList associated with the phone number.
optOutListName
- The name of the OptOutList associated with the phone number.public void setDeletionProtectionEnabled(Boolean deletionProtectionEnabled)
When set to true the phone number can't be deleted.
deletionProtectionEnabled
- When set to true the phone number can't be deleted.public Boolean getDeletionProtectionEnabled()
When set to true the phone number can't be deleted.
public UpdatePhoneNumberResult withDeletionProtectionEnabled(Boolean deletionProtectionEnabled)
When set to true the phone number can't be deleted.
deletionProtectionEnabled
- When set to true the phone number can't be deleted.public Boolean isDeletionProtectionEnabled()
When set to true the phone number can't be deleted.
public void setRegistrationId(String registrationId)
The unique identifier for the registration.
registrationId
- The unique identifier for the registration.public String getRegistrationId()
The unique identifier for the registration.
public UpdatePhoneNumberResult withRegistrationId(String registrationId)
The unique identifier for the registration.
registrationId
- The unique identifier for the registration.public void setCreatedTimestamp(Date createdTimestamp)
The time when the phone number was created, in UNIX epoch time format.
createdTimestamp
- The time when the phone number was created, in UNIX epoch
time format.public Date getCreatedTimestamp()
The time when the phone number was created, in UNIX epoch time format.
public UpdatePhoneNumberResult withCreatedTimestamp(Date createdTimestamp)
The time when the phone number was created, in UNIX epoch time format.
createdTimestamp
- The time when the phone number was created, in UNIX epoch
time format.public String toString()
toString
in class Object
Object.toString()
public UpdatePhoneNumberResult clone()