@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdatePhoneNumberRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdatePhoneNumberRequest() |
Modifier and Type | Method and Description |
---|---|
UpdatePhoneNumberRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getDeletionProtectionEnabled()
By default this is set to false.
|
String |
getOptOutListName()
The OptOutList to add the phone number to.
|
String |
getPhoneNumberId()
The unique identifier of the phone number.
|
Boolean |
getSelfManagedOptOutsEnabled()
By default this is set to false.
|
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()
By default this is set to false.
|
Boolean |
isSelfManagedOptOutsEnabled()
By default this is set to false.
|
Boolean |
isTwoWayEnabled()
By default this is set to false.
|
void |
setDeletionProtectionEnabled(Boolean deletionProtectionEnabled)
By default this is set to false.
|
void |
setOptOutListName(String optOutListName)
The OptOutList to add the phone number to.
|
void |
setPhoneNumberId(String phoneNumberId)
The unique identifier of the phone number.
|
void |
setSelfManagedOptOutsEnabled(Boolean selfManagedOptOutsEnabled)
By default this is set to false.
|
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.
|
UpdatePhoneNumberRequest |
withDeletionProtectionEnabled(Boolean deletionProtectionEnabled)
By default this is set to false.
|
UpdatePhoneNumberRequest |
withOptOutListName(String optOutListName)
The OptOutList to add the phone number to.
|
UpdatePhoneNumberRequest |
withPhoneNumberId(String phoneNumberId)
The unique identifier of the phone number.
|
UpdatePhoneNumberRequest |
withSelfManagedOptOutsEnabled(Boolean selfManagedOptOutsEnabled)
By default this is set to false.
|
UpdatePhoneNumberRequest |
withTwoWayChannelArn(String twoWayChannelArn)
The Amazon Resource Name (ARN) of the two way channel.
|
UpdatePhoneNumberRequest |
withTwoWayChannelRole(String twoWayChannelRole)
An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
|
UpdatePhoneNumberRequest |
withTwoWayEnabled(Boolean twoWayEnabled)
By default this is set to false.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setPhoneNumberId(String phoneNumberId)
The unique identifier of the phone number. Valid values for this field can be either the PhoneNumberId or PhoneNumberArn.
phoneNumberId
- The unique identifier of the phone number. Valid values for this field can be either the PhoneNumberId or
PhoneNumberArn.public String getPhoneNumberId()
The unique identifier of the phone number. Valid values for this field can be either the PhoneNumberId or PhoneNumberArn.
public UpdatePhoneNumberRequest withPhoneNumberId(String phoneNumberId)
The unique identifier of the phone number. Valid values for this field can be either the PhoneNumberId or PhoneNumberArn.
phoneNumberId
- The unique identifier of the phone number. Valid values for this field can be either the PhoneNumberId or
PhoneNumberArn.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 UpdatePhoneNumberRequest 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 UpdatePhoneNumberRequest 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 UpdatePhoneNumberRequest 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 UpdatePhoneNumberRequest 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 OptOutList to add the phone number to. Valid values for this field can be either the OutOutListName or OutOutListArn.
optOutListName
- The OptOutList to add the phone number to. Valid values for this field can be either the OutOutListName or
OutOutListArn.public String getOptOutListName()
The OptOutList to add the phone number to. Valid values for this field can be either the OutOutListName or OutOutListArn.
public UpdatePhoneNumberRequest withOptOutListName(String optOutListName)
The OptOutList to add the phone number to. Valid values for this field can be either the OutOutListName or OutOutListArn.
optOutListName
- The OptOutList to add the phone number to. Valid values for this field can be either the OutOutListName or
OutOutListArn.public void setDeletionProtectionEnabled(Boolean deletionProtectionEnabled)
By default this is set to false. When set to true the phone number can't be deleted.
deletionProtectionEnabled
- By default this is set to false. When set to true the phone number can't be deleted.public Boolean getDeletionProtectionEnabled()
By default this is set to false. When set to true the phone number can't be deleted.
public UpdatePhoneNumberRequest withDeletionProtectionEnabled(Boolean deletionProtectionEnabled)
By default this is set to false. When set to true the phone number can't be deleted.
deletionProtectionEnabled
- By default this is set to false. When set to true the phone number can't be deleted.public Boolean isDeletionProtectionEnabled()
By default this is set to false. When set to true the phone number can't be deleted.
public String toString()
toString
in class Object
Object.toString()
public UpdatePhoneNumberRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()