@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReleasePhoneNumberResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ReleasePhoneNumberResult() |
Modifier and Type | Method and Description |
---|---|
ReleasePhoneNumberResult |
clone() |
boolean |
equals(Object obj) |
Date |
getCreatedTimestamp()
The time when the phone number was created, in UNIX epoch time
format.
|
String |
getIsoCountryCode()
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
|
String |
getMessageType()
The message type that was associated with the phone number.
|
String |
getMonthlyLeasingPrice()
The monthly 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 released.
|
String |
getOptOutListName()
The name of the OptOutList that was associated with the phone number.
|
String |
getPhoneNumber()
The phone number that was released.
|
String |
getPhoneNumberArn()
The PhoneNumberArn of the phone number that was released.
|
String |
getPhoneNumberId()
The PhoneNumberId of the phone number that was released.
|
String |
getRegistrationId()
The unique identifier for the registration.
|
Boolean |
getSelfManagedOptOutsEnabled()
By default this is set to false.
|
String |
getStatus()
The current status of the request.
|
String |
getTwoWayChannelArn()
The Amazon Resource Name (ARN) of the TwoWayChannel.
|
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 |
isSelfManagedOptOutsEnabled()
By default this is set to false.
|
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 |
setIsoCountryCode(String isoCountryCode)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
|
void |
setMessageType(String messageType)
The message type that was associated with the phone number.
|
void |
setMonthlyLeasingPrice(String monthlyLeasingPrice)
The monthly 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 released.
|
void |
setOptOutListName(String optOutListName)
The name of the OptOutList that was associated with the phone number.
|
void |
setPhoneNumber(String phoneNumber)
The phone number that was released.
|
void |
setPhoneNumberArn(String phoneNumberArn)
The PhoneNumberArn of the phone number that was released.
|
void |
setPhoneNumberId(String phoneNumberId)
The PhoneNumberId of the phone number that was released.
|
void |
setRegistrationId(String registrationId)
The unique identifier for the registration.
|
void |
setSelfManagedOptOutsEnabled(Boolean selfManagedOptOutsEnabled)
By default this is set to false.
|
void |
setStatus(String status)
The current status of the request.
|
void |
setTwoWayChannelArn(String twoWayChannelArn)
The Amazon Resource Name (ARN) of the TwoWayChannel.
|
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.
|
ReleasePhoneNumberResult |
withCreatedTimestamp(Date createdTimestamp)
The time when the phone number was created, in UNIX epoch time
format.
|
ReleasePhoneNumberResult |
withIsoCountryCode(String isoCountryCode)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
|
ReleasePhoneNumberResult |
withMessageType(MessageType messageType)
The message type that was associated with the phone number.
|
ReleasePhoneNumberResult |
withMessageType(String messageType)
The message type that was associated with the phone number.
|
ReleasePhoneNumberResult |
withMonthlyLeasingPrice(String monthlyLeasingPrice)
The monthly price of the phone number, in US dollars.
|
ReleasePhoneNumberResult |
withNumberCapabilities(Collection<String> numberCapabilities)
Specifies if the number could be used for text messages, voice, or both.
|
ReleasePhoneNumberResult |
withNumberCapabilities(NumberCapability... numberCapabilities)
Specifies if the number could be used for text messages, voice, or both.
|
ReleasePhoneNumberResult |
withNumberCapabilities(String... numberCapabilities)
Specifies if the number could be used for text messages, voice, or both.
|
ReleasePhoneNumberResult |
withNumberType(NumberType numberType)
The type of number that was released.
|
ReleasePhoneNumberResult |
withNumberType(String numberType)
The type of number that was released.
|
ReleasePhoneNumberResult |
withOptOutListName(String optOutListName)
The name of the OptOutList that was associated with the phone number.
|
ReleasePhoneNumberResult |
withPhoneNumber(String phoneNumber)
The phone number that was released.
|
ReleasePhoneNumberResult |
withPhoneNumberArn(String phoneNumberArn)
The PhoneNumberArn of the phone number that was released.
|
ReleasePhoneNumberResult |
withPhoneNumberId(String phoneNumberId)
The PhoneNumberId of the phone number that was released.
|
ReleasePhoneNumberResult |
withRegistrationId(String registrationId)
The unique identifier for the registration.
|
ReleasePhoneNumberResult |
withSelfManagedOptOutsEnabled(Boolean selfManagedOptOutsEnabled)
By default this is set to false.
|
ReleasePhoneNumberResult |
withStatus(NumberStatus status)
The current status of the request.
|
ReleasePhoneNumberResult |
withStatus(String status)
The current status of the request.
|
ReleasePhoneNumberResult |
withTwoWayChannelArn(String twoWayChannelArn)
The Amazon Resource Name (ARN) of the TwoWayChannel.
|
ReleasePhoneNumberResult |
withTwoWayChannelRole(String twoWayChannelRole)
An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
|
ReleasePhoneNumberResult |
withTwoWayEnabled(Boolean twoWayEnabled)
By default this is set to false.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPhoneNumberArn(String phoneNumberArn)
The PhoneNumberArn of the phone number that was released.
phoneNumberArn
- The PhoneNumberArn of the phone number that was released.public String getPhoneNumberArn()
The PhoneNumberArn of the phone number that was released.
public ReleasePhoneNumberResult withPhoneNumberArn(String phoneNumberArn)
The PhoneNumberArn of the phone number that was released.
phoneNumberArn
- The PhoneNumberArn of the phone number that was released.public void setPhoneNumberId(String phoneNumberId)
The PhoneNumberId of the phone number that was released.
phoneNumberId
- The PhoneNumberId of the phone number that was released.public String getPhoneNumberId()
The PhoneNumberId of the phone number that was released.
public ReleasePhoneNumberResult withPhoneNumberId(String phoneNumberId)
The PhoneNumberId of the phone number that was released.
phoneNumberId
- The PhoneNumberId of the phone number that was released.public void setPhoneNumber(String phoneNumber)
The phone number that was released.
phoneNumber
- The phone number that was released.public String getPhoneNumber()
The phone number that was released.
public ReleasePhoneNumberResult withPhoneNumber(String phoneNumber)
The phone number that was released.
phoneNumber
- The phone number that was released.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 ReleasePhoneNumberResult withStatus(String status)
The current status of the request.
status
- The current status of the request.NumberStatus
public ReleasePhoneNumberResult 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 ReleasePhoneNumberResult 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 message type that was associated with the phone number.
messageType
- The message type that was associated with the phone number.MessageType
public String getMessageType()
The message type that was associated with the phone number.
MessageType
public ReleasePhoneNumberResult withMessageType(String messageType)
The message type that was associated with the phone number.
messageType
- The message type that was associated with the phone number.MessageType
public ReleasePhoneNumberResult withMessageType(MessageType messageType)
The message type that was associated with the phone number.
messageType
- The message type that was associated with the phone number.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 ReleasePhoneNumberResult 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 ReleasePhoneNumberResult 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 ReleasePhoneNumberResult 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 released.
numberType
- The type of number that was released.NumberType
public String getNumberType()
The type of number that was released.
NumberType
public ReleasePhoneNumberResult withNumberType(String numberType)
The type of number that was released.
numberType
- The type of number that was released.NumberType
public ReleasePhoneNumberResult withNumberType(NumberType numberType)
The type of number that was released.
numberType
- The type of number that was released.NumberType
public void setMonthlyLeasingPrice(String monthlyLeasingPrice)
The monthly price of the phone number, in US dollars.
monthlyLeasingPrice
- The monthly price of the phone number, in US dollars.public String getMonthlyLeasingPrice()
The monthly price of the phone number, in US dollars.
public ReleasePhoneNumberResult withMonthlyLeasingPrice(String monthlyLeasingPrice)
The monthly price of the phone number, in US dollars.
monthlyLeasingPrice
- The monthly 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 ReleasePhoneNumberResult 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 TwoWayChannel.
twoWayChannelArn
- The Amazon Resource Name (ARN) of the TwoWayChannel.public String getTwoWayChannelArn()
The Amazon Resource Name (ARN) of the TwoWayChannel.
public ReleasePhoneNumberResult withTwoWayChannelArn(String twoWayChannelArn)
The Amazon Resource Name (ARN) of the TwoWayChannel.
twoWayChannelArn
- The Amazon Resource Name (ARN) of the TwoWayChannel.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 ReleasePhoneNumberResult 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)
By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
selfManagedOptOutsEnabled
- By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to
one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a
customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for
responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.public Boolean getSelfManagedOptOutsEnabled()
By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
public ReleasePhoneNumberResult withSelfManagedOptOutsEnabled(Boolean selfManagedOptOutsEnabled)
By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
selfManagedOptOutsEnabled
- By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to
one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a
customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for
responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.public Boolean isSelfManagedOptOutsEnabled()
By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, AWS End User Messaging SMS and Voice automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
public void setOptOutListName(String optOutListName)
The name of the OptOutList that was associated with the phone number.
optOutListName
- The name of the OptOutList that was associated with the phone number.public String getOptOutListName()
The name of the OptOutList that was associated with the phone number.
public ReleasePhoneNumberResult withOptOutListName(String optOutListName)
The name of the OptOutList that was associated with the phone number.
optOutListName
- The name of the OptOutList that was associated with the phone number.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 ReleasePhoneNumberResult 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 ReleasePhoneNumberResult 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 ReleasePhoneNumberResult clone()