@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RequestSenderIdResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
RequestSenderIdResult() |
Modifier and Type | Method and Description |
---|---|
RequestSenderIdResult |
clone() |
boolean |
equals(Object obj) |
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 |
getMonthlyLeasingPrice()
The monthly price, in US dollars, to lease the sender ID.
|
Boolean |
getRegistered()
True if the sender ID is registered.
|
String |
getSenderId()
The sender ID that was requested.
|
String |
getSenderIdArn()
The Amazon Resource Name (ARN) associated with the SenderId.
|
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.
|
Boolean |
isRegistered()
True if the sender ID is registered.
|
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 |
setMonthlyLeasingPrice(String monthlyLeasingPrice)
The monthly price, in US dollars, to lease the sender ID.
|
void |
setRegistered(Boolean registered)
True if the sender ID is registered.
|
void |
setSenderId(String senderId)
The sender ID that was requested.
|
void |
setSenderIdArn(String senderIdArn)
The Amazon Resource Name (ARN) associated with the SenderId.
|
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.
|
RequestSenderIdResult |
withDeletionProtectionEnabled(Boolean deletionProtectionEnabled)
By default this is set to false.
|
RequestSenderIdResult |
withIsoCountryCode(String isoCountryCode)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
|
RequestSenderIdResult |
withMessageTypes(Collection<String> messageTypes)
The type of message.
|
RequestSenderIdResult |
withMessageTypes(MessageType... messageTypes)
The type of message.
|
RequestSenderIdResult |
withMessageTypes(String... messageTypes)
The type of message.
|
RequestSenderIdResult |
withMonthlyLeasingPrice(String monthlyLeasingPrice)
The monthly price, in US dollars, to lease the sender ID.
|
RequestSenderIdResult |
withRegistered(Boolean registered)
True if the sender ID is registered.
|
RequestSenderIdResult |
withSenderId(String senderId)
The sender ID that was requested.
|
RequestSenderIdResult |
withSenderIdArn(String senderIdArn)
The Amazon Resource Name (ARN) associated with the SenderId.
|
RequestSenderIdResult |
withTags(Collection<Tag> tags)
An array of tags (key and value pairs) to associate with the sender ID.
|
RequestSenderIdResult |
withTags(Tag... tags)
An array of tags (key and value pairs) to associate with the sender ID.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setSenderIdArn(String senderIdArn)
The Amazon Resource Name (ARN) associated with the SenderId.
senderIdArn
- The Amazon Resource Name (ARN) associated with the SenderId.public String getSenderIdArn()
The Amazon Resource Name (ARN) associated with the SenderId.
public RequestSenderIdResult withSenderIdArn(String senderIdArn)
The Amazon Resource Name (ARN) associated with the SenderId.
senderIdArn
- The Amazon Resource Name (ARN) associated with the SenderId.public void setSenderId(String senderId)
The sender ID that was requested.
senderId
- The sender ID that was requested.public String getSenderId()
The sender ID that was requested.
public RequestSenderIdResult withSenderId(String senderId)
The sender ID that was requested.
senderId
- The sender ID that was requested.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 RequestSenderIdResult 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 RequestSenderIdResult 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 RequestSenderIdResult 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 RequestSenderIdResult 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 setMonthlyLeasingPrice(String monthlyLeasingPrice)
The monthly price, in US dollars, to lease the sender ID.
monthlyLeasingPrice
- The monthly price, in US dollars, to lease the sender ID.public String getMonthlyLeasingPrice()
The monthly price, in US dollars, to lease the sender ID.
public RequestSenderIdResult withMonthlyLeasingPrice(String monthlyLeasingPrice)
The monthly price, in US dollars, to lease the sender ID.
monthlyLeasingPrice
- The monthly price, in US dollars, to lease the sender ID.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 RequestSenderIdResult 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 void setRegistered(Boolean registered)
True if the sender ID is registered.
registered
- True if the sender ID is registered.public Boolean getRegistered()
True if the sender ID is registered.
public RequestSenderIdResult withRegistered(Boolean registered)
True if the sender ID is registered.
registered
- True if the sender ID is registered.public Boolean isRegistered()
True if the sender ID is registered.
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 RequestSenderIdResult 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 RequestSenderIdResult 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 String toString()
toString
in class Object
Object.toString()
public RequestSenderIdResult clone()