@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateOptOutListRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateOptOutListRequest() |
Modifier and Type | Method and Description |
---|---|
CreateOptOutListRequest |
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.
|
String |
getOptOutListName()
The name of the new OptOutList.
|
List<Tag> |
getTags()
An array of tags (key and value pairs) to associate with the new OptOutList.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setOptOutListName(String optOutListName)
The name of the new OptOutList.
|
void |
setTags(Collection<Tag> tags)
An array of tags (key and value pairs) to associate with the new OptOutList.
|
String |
toString()
Returns a string representation of this object.
|
CreateOptOutListRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateOptOutListRequest |
withOptOutListName(String optOutListName)
The name of the new OptOutList.
|
CreateOptOutListRequest |
withTags(Collection<Tag> tags)
An array of tags (key and value pairs) to associate with the new OptOutList.
|
CreateOptOutListRequest |
withTags(Tag... tags)
An array of tags (key and value pairs) to associate with the new OptOutList.
|
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 setOptOutListName(String optOutListName)
The name of the new OptOutList.
optOutListName
- The name of the new OptOutList.public String getOptOutListName()
The name of the new OptOutList.
public CreateOptOutListRequest withOptOutListName(String optOutListName)
The name of the new OptOutList.
optOutListName
- The name of the new OptOutList.public List<Tag> getTags()
An array of tags (key and value pairs) to associate with the new OptOutList.
public void setTags(Collection<Tag> tags)
An array of tags (key and value pairs) to associate with the new OptOutList.
tags
- An array of tags (key and value pairs) to associate with the new OptOutList.public CreateOptOutListRequest withTags(Tag... tags)
An array of tags (key and value pairs) to associate with the new OptOutList.
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 new OptOutList.public CreateOptOutListRequest withTags(Collection<Tag> tags)
An array of tags (key and value pairs) to associate with the new OptOutList.
tags
- An array of tags (key and value pairs) to associate with the new OptOutList.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 CreateOptOutListRequest 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 CreateOptOutListRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()