@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePoolRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreatePoolRequest() |
Modifier and Type | Method and Description |
---|---|
CreatePoolRequest |
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 new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the new pool.
|
String |
getMessageType()
The type of message.
|
String |
getOriginationIdentity()
The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn.
|
List<Tag> |
getTags()
An array of tags (key and value pairs) associated with the pool.
|
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 new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the new pool.
|
void |
setMessageType(String messageType)
The type of message.
|
void |
setOriginationIdentity(String originationIdentity)
The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn.
|
void |
setTags(Collection<Tag> tags)
An array of tags (key and value pairs) associated with the pool.
|
String |
toString()
Returns a string representation of this object.
|
CreatePoolRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreatePoolRequest |
withDeletionProtectionEnabled(Boolean deletionProtectionEnabled)
By default this is set to false.
|
CreatePoolRequest |
withIsoCountryCode(String isoCountryCode)
The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the new pool.
|
CreatePoolRequest |
withMessageType(MessageType messageType)
The type of message.
|
CreatePoolRequest |
withMessageType(String messageType)
The type of message.
|
CreatePoolRequest |
withOriginationIdentity(String originationIdentity)
The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn.
|
CreatePoolRequest |
withTags(Collection<Tag> tags)
An array of tags (key and value pairs) associated with the pool.
|
CreatePoolRequest |
withTags(Tag... tags)
An array of tags (key and value pairs) associated with the pool.
|
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 setOriginationIdentity(String originationIdentity)
The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.
After the pool is created you can add more origination identities to the pool by using AssociateOriginationIdentity.
originationIdentity
- The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can
use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while
DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.
After the pool is created you can add more origination identities to the pool by using AssociateOriginationIdentity.
public String getOriginationIdentity()
The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.
After the pool is created you can add more origination identities to the pool by using AssociateOriginationIdentity.
After the pool is created you can add more origination identities to the pool by using AssociateOriginationIdentity.
public CreatePoolRequest withOriginationIdentity(String originationIdentity)
The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.
After the pool is created you can add more origination identities to the pool by using AssociateOriginationIdentity.
originationIdentity
- The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can
use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while
DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.
After the pool is created you can add more origination identities to the pool by using AssociateOriginationIdentity.
public void setIsoCountryCode(String isoCountryCode)
The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the new pool.
isoCountryCode
- The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the new pool.public String getIsoCountryCode()
The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the new pool.
public CreatePoolRequest withIsoCountryCode(String isoCountryCode)
The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the new pool.
isoCountryCode
- The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the new pool.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. After the pool is created the MessageType can't be changed.
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. After the pool is created the MessageType
can't be changed.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. After the pool is created the MessageType can't be changed.
MessageType
public CreatePoolRequest 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. After the pool is created the MessageType can't be changed.
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. After the pool is created the MessageType
can't be changed.MessageType
public CreatePoolRequest 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. After the pool is created the MessageType can't be changed.
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. After the pool is created the MessageType
can't be changed.MessageType
public void setDeletionProtectionEnabled(Boolean deletionProtectionEnabled)
By default this is set to false. When set to true the pool can't be deleted. You can change this value using the UpdatePool action.
deletionProtectionEnabled
- By default this is set to false. When set to true the pool can't be deleted. You can change this value
using the UpdatePool action.public Boolean getDeletionProtectionEnabled()
By default this is set to false. When set to true the pool can't be deleted. You can change this value using the UpdatePool action.
public CreatePoolRequest withDeletionProtectionEnabled(Boolean deletionProtectionEnabled)
By default this is set to false. When set to true the pool can't be deleted. You can change this value using the UpdatePool action.
deletionProtectionEnabled
- By default this is set to false. When set to true the pool can't be deleted. You can change this value
using the UpdatePool action.public Boolean isDeletionProtectionEnabled()
By default this is set to false. When set to true the pool can't be deleted. You can change this value using the UpdatePool action.
public List<Tag> getTags()
An array of tags (key and value pairs) associated with the pool.
public void setTags(Collection<Tag> tags)
An array of tags (key and value pairs) associated with the pool.
tags
- An array of tags (key and value pairs) associated with the pool.public CreatePoolRequest withTags(Tag... tags)
An array of tags (key and value pairs) associated with the pool.
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) associated with the pool.public CreatePoolRequest withTags(Collection<Tag> tags)
An array of tags (key and value pairs) associated with the pool.
tags
- An array of tags (key and value pairs) associated with the pool.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 CreatePoolRequest 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 CreatePoolRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()