@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateTrafficPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateTrafficPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
CreateTrafficPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
A unique token that Amazon SES uses to recognize subsequent retries of the same request.
|
String |
getDefaultAction()
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not
addressed by) the conditions of your policy statements
|
Integer |
getMaxMessageSizeBytes()
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be
blocked.
|
List<PolicyStatement> |
getPolicyStatements()
Conditional statements for filtering email traffic.
|
List<Tag> |
getTags()
The tags used to organize, track, or control access for the resource.
|
String |
getTrafficPolicyName()
A user-friendly name for the traffic policy resource.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
A unique token that Amazon SES uses to recognize subsequent retries of the same request.
|
void |
setDefaultAction(String defaultAction)
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not
addressed by) the conditions of your policy statements
|
void |
setMaxMessageSizeBytes(Integer maxMessageSizeBytes)
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be
blocked.
|
void |
setPolicyStatements(Collection<PolicyStatement> policyStatements)
Conditional statements for filtering email traffic.
|
void |
setTags(Collection<Tag> tags)
The tags used to organize, track, or control access for the resource.
|
void |
setTrafficPolicyName(String trafficPolicyName)
A user-friendly name for the traffic policy resource.
|
String |
toString()
Returns a string representation of this object.
|
CreateTrafficPolicyRequest |
withClientToken(String clientToken)
A unique token that Amazon SES uses to recognize subsequent retries of the same request.
|
CreateTrafficPolicyRequest |
withDefaultAction(AcceptAction defaultAction)
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not
addressed by) the conditions of your policy statements
|
CreateTrafficPolicyRequest |
withDefaultAction(String defaultAction)
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not
addressed by) the conditions of your policy statements
|
CreateTrafficPolicyRequest |
withMaxMessageSizeBytes(Integer maxMessageSizeBytes)
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be
blocked.
|
CreateTrafficPolicyRequest |
withPolicyStatements(Collection<PolicyStatement> policyStatements)
Conditional statements for filtering email traffic.
|
CreateTrafficPolicyRequest |
withPolicyStatements(PolicyStatement... policyStatements)
Conditional statements for filtering email traffic.
|
CreateTrafficPolicyRequest |
withTags(Collection<Tag> tags)
The tags used to organize, track, or control access for the resource.
|
CreateTrafficPolicyRequest |
withTags(Tag... tags)
The tags used to organize, track, or control access for the resource.
|
CreateTrafficPolicyRequest |
withTrafficPolicyName(String trafficPolicyName)
A user-friendly name for the traffic policy resource.
|
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 setClientToken(String clientToken)
A unique token that Amazon SES uses to recognize subsequent retries of the same request.
clientToken
- A unique token that Amazon SES uses to recognize subsequent retries of the same request.public String getClientToken()
A unique token that Amazon SES uses to recognize subsequent retries of the same request.
public CreateTrafficPolicyRequest withClientToken(String clientToken)
A unique token that Amazon SES uses to recognize subsequent retries of the same request.
clientToken
- A unique token that Amazon SES uses to recognize subsequent retries of the same request.public void setDefaultAction(String defaultAction)
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements
defaultAction
- Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of
(or not addressed by) the conditions of your policy statementsAcceptAction
public String getDefaultAction()
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements
AcceptAction
public CreateTrafficPolicyRequest withDefaultAction(String defaultAction)
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements
defaultAction
- Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of
(or not addressed by) the conditions of your policy statementsAcceptAction
public CreateTrafficPolicyRequest withDefaultAction(AcceptAction defaultAction)
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements
defaultAction
- Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of
(or not addressed by) the conditions of your policy statementsAcceptAction
public void setMaxMessageSizeBytes(Integer maxMessageSizeBytes)
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
maxMessageSizeBytes
- The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will
be blocked.public Integer getMaxMessageSizeBytes()
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
public CreateTrafficPolicyRequest withMaxMessageSizeBytes(Integer maxMessageSizeBytes)
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
maxMessageSizeBytes
- The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will
be blocked.public List<PolicyStatement> getPolicyStatements()
Conditional statements for filtering email traffic.
public void setPolicyStatements(Collection<PolicyStatement> policyStatements)
Conditional statements for filtering email traffic.
policyStatements
- Conditional statements for filtering email traffic.public CreateTrafficPolicyRequest withPolicyStatements(PolicyStatement... policyStatements)
Conditional statements for filtering email traffic.
NOTE: This method appends the values to the existing list (if any). Use
setPolicyStatements(java.util.Collection)
or withPolicyStatements(java.util.Collection)
if you
want to override the existing values.
policyStatements
- Conditional statements for filtering email traffic.public CreateTrafficPolicyRequest withPolicyStatements(Collection<PolicyStatement> policyStatements)
Conditional statements for filtering email traffic.
policyStatements
- Conditional statements for filtering email traffic.public List<Tag> getTags()
The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public void setTags(Collection<Tag> tags)
The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
tags
- The tags used to organize, track, or control access for the resource. For example, { "tags":
{"key1":"value1", "key2":"value2"} }.public CreateTrafficPolicyRequest withTags(Tag... tags)
The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
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
- The tags used to organize, track, or control access for the resource. For example, { "tags":
{"key1":"value1", "key2":"value2"} }.public CreateTrafficPolicyRequest withTags(Collection<Tag> tags)
The tags used to organize, track, or control access for the resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
tags
- The tags used to organize, track, or control access for the resource. For example, { "tags":
{"key1":"value1", "key2":"value2"} }.public void setTrafficPolicyName(String trafficPolicyName)
A user-friendly name for the traffic policy resource.
trafficPolicyName
- A user-friendly name for the traffic policy resource.public String getTrafficPolicyName()
A user-friendly name for the traffic policy resource.
public CreateTrafficPolicyRequest withTrafficPolicyName(String trafficPolicyName)
A user-friendly name for the traffic policy resource.
trafficPolicyName
- A user-friendly name for the traffic policy resource.public String toString()
toString
in class Object
Object.toString()
public CreateTrafficPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()