@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateTrafficPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateTrafficPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateTrafficPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
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()
The list of conditions to be updated for filtering email traffic.
|
String |
getTrafficPolicyId()
The identifier of the traffic policy that you want to update.
|
String |
getTrafficPolicyName()
A user-friendly name for the traffic policy resource.
|
int |
hashCode() |
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)
The list of conditions to be updated for filtering email traffic.
|
void |
setTrafficPolicyId(String trafficPolicyId)
The identifier of the traffic policy that you want to update.
|
void |
setTrafficPolicyName(String trafficPolicyName)
A user-friendly name for the traffic policy resource.
|
String |
toString()
Returns a string representation of this object.
|
UpdateTrafficPolicyRequest |
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
|
UpdateTrafficPolicyRequest |
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
|
UpdateTrafficPolicyRequest |
withMaxMessageSizeBytes(Integer maxMessageSizeBytes)
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be
blocked.
|
UpdateTrafficPolicyRequest |
withPolicyStatements(Collection<PolicyStatement> policyStatements)
The list of conditions to be updated for filtering email traffic.
|
UpdateTrafficPolicyRequest |
withPolicyStatements(PolicyStatement... policyStatements)
The list of conditions to be updated for filtering email traffic.
|
UpdateTrafficPolicyRequest |
withTrafficPolicyId(String trafficPolicyId)
The identifier of the traffic policy that you want to update.
|
UpdateTrafficPolicyRequest |
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 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 UpdateTrafficPolicyRequest 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 UpdateTrafficPolicyRequest 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 UpdateTrafficPolicyRequest 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()
The list of conditions to be updated for filtering email traffic.
public void setPolicyStatements(Collection<PolicyStatement> policyStatements)
The list of conditions to be updated for filtering email traffic.
policyStatements
- The list of conditions to be updated for filtering email traffic.public UpdateTrafficPolicyRequest withPolicyStatements(PolicyStatement... policyStatements)
The list of conditions to be updated 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
- The list of conditions to be updated for filtering email traffic.public UpdateTrafficPolicyRequest withPolicyStatements(Collection<PolicyStatement> policyStatements)
The list of conditions to be updated for filtering email traffic.
policyStatements
- The list of conditions to be updated for filtering email traffic.public void setTrafficPolicyId(String trafficPolicyId)
The identifier of the traffic policy that you want to update.
trafficPolicyId
- The identifier of the traffic policy that you want to update.public String getTrafficPolicyId()
The identifier of the traffic policy that you want to update.
public UpdateTrafficPolicyRequest withTrafficPolicyId(String trafficPolicyId)
The identifier of the traffic policy that you want to update.
trafficPolicyId
- The identifier of the traffic policy that you want to update.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 UpdateTrafficPolicyRequest 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 UpdateTrafficPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()