@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RequestSenderIdRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
RequestSenderIdRequest() |
Modifier and Type | Method and Description |
---|---|
RequestSenderIdRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
Boolean |
getDeletionProtectionEnabled()
By default this is set to false.
|
String |
getIsoCountryCode()
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
|
List<String> |
getMessageTypes()
The type of message.
|
String |
getSenderId()
The sender ID string to request.
|
List<Tag> |
getTags()
An array of tags (key and value pairs) to associate with the sender ID.
|
int |
hashCode() |
Boolean |
isDeletionProtectionEnabled()
By default this is set to false.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setDeletionProtectionEnabled(Boolean deletionProtectionEnabled)
By default this is set to false.
|
void |
setIsoCountryCode(String isoCountryCode)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
|
void |
setMessageTypes(Collection<String> messageTypes)
The type of message.
|
void |
setSenderId(String senderId)
The sender ID string to request.
|
void |
setTags(Collection<Tag> tags)
An array of tags (key and value pairs) to associate with the sender ID.
|
String |
toString()
Returns a string representation of this object.
|
RequestSenderIdRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
RequestSenderIdRequest |
withDeletionProtectionEnabled(Boolean deletionProtectionEnabled)
By default this is set to false.
|
RequestSenderIdRequest |
withIsoCountryCode(String isoCountryCode)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
|
RequestSenderIdRequest |
withMessageTypes(Collection<String> messageTypes)
The type of message.
|
RequestSenderIdRequest |
withMessageTypes(MessageType... messageTypes)
The type of message.
|
RequestSenderIdRequest |
withMessageTypes(String... messageTypes)
The type of message.
|
RequestSenderIdRequest |
withSenderId(String senderId)
The sender ID string to request.
|
RequestSenderIdRequest |
withTags(Collection<Tag> tags)
An array of tags (key and value pairs) to associate with the sender ID.
|
RequestSenderIdRequest |
withTags(Tag... tags)
An array of tags (key and value pairs) to associate with the sender ID.
|
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 setSenderId(String senderId)
The sender ID string to request.
senderId
- The sender ID string to request.public String getSenderId()
The sender ID string to request.
public RequestSenderIdRequest withSenderId(String senderId)
The sender ID string to request.
senderId
- The sender ID string to request.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 RequestSenderIdRequest 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 List<String> getMessageTypes()
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 void setMessageTypes(Collection<String> messageTypes)
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.
messageTypes
- 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 RequestSenderIdRequest withMessageTypes(String... messageTypes)
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.
NOTE: This method appends the values to the existing list (if any). Use
setMessageTypes(java.util.Collection)
or withMessageTypes(java.util.Collection)
if you want to
override the existing values.
messageTypes
- 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 RequestSenderIdRequest withMessageTypes(Collection<String> messageTypes)
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.
messageTypes
- 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 RequestSenderIdRequest withMessageTypes(MessageType... messageTypes)
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.
messageTypes
- 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 void setDeletionProtectionEnabled(Boolean deletionProtectionEnabled)
By default this is set to false. When set to true the sender ID can't be deleted.
deletionProtectionEnabled
- By default this is set to false. When set to true the sender ID can't be deleted.public Boolean getDeletionProtectionEnabled()
By default this is set to false. When set to true the sender ID can't be deleted.
public RequestSenderIdRequest withDeletionProtectionEnabled(Boolean deletionProtectionEnabled)
By default this is set to false. When set to true the sender ID can't be deleted.
deletionProtectionEnabled
- By default this is set to false. When set to true the sender ID can't be deleted.public Boolean isDeletionProtectionEnabled()
By default this is set to false. When set to true the sender ID can't be deleted.
public List<Tag> getTags()
An array of tags (key and value pairs) to associate with the sender ID.
public void setTags(Collection<Tag> tags)
An array of tags (key and value pairs) to associate with the sender ID.
tags
- An array of tags (key and value pairs) to associate with the sender ID.public RequestSenderIdRequest withTags(Tag... tags)
An array of tags (key and value pairs) to associate with the sender ID.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- An array of tags (key and value pairs) to associate with the sender ID.public RequestSenderIdRequest withTags(Collection<Tag> tags)
An array of tags (key and value pairs) to associate with the sender ID.
tags
- An array of tags (key and value pairs) to associate with the sender ID.public void setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't
specify a client token, a randomly generated token is used for the request to ensure idempotency.public String getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
public RequestSenderIdRequest withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't
specify a client token, a randomly generated token is used for the request to ensure idempotency.public String toString()
toString
in class Object
Object.toString()
public RequestSenderIdRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()