@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PolicyStatement extends Object implements Serializable, Cloneable, StructuredPojo
The structure containing traffic policy conditions and actions.
| Constructor and Description |
|---|
PolicyStatement() |
| Modifier and Type | Method and Description |
|---|---|
PolicyStatement |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
The action that informs a traffic policy resource to either allow or block the email if it matches a condition in
the policy statement.
|
List<PolicyCondition> |
getConditions()
The list of conditions to apply to incoming messages for filtering email traffic.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAction(String action)
The action that informs a traffic policy resource to either allow or block the email if it matches a condition in
the policy statement.
|
void |
setConditions(Collection<PolicyCondition> conditions)
The list of conditions to apply to incoming messages for filtering email traffic.
|
String |
toString()
Returns a string representation of this object.
|
PolicyStatement |
withAction(AcceptAction action)
The action that informs a traffic policy resource to either allow or block the email if it matches a condition in
the policy statement.
|
PolicyStatement |
withAction(String action)
The action that informs a traffic policy resource to either allow or block the email if it matches a condition in
the policy statement.
|
PolicyStatement |
withConditions(Collection<PolicyCondition> conditions)
The list of conditions to apply to incoming messages for filtering email traffic.
|
PolicyStatement |
withConditions(PolicyCondition... conditions)
The list of conditions to apply to incoming messages for filtering email traffic.
|
public void setAction(String action)
The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.
action - The action that informs a traffic policy resource to either allow or block the email if it matches a
condition in the policy statement.AcceptActionpublic String getAction()
The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.
AcceptActionpublic PolicyStatement withAction(String action)
The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.
action - The action that informs a traffic policy resource to either allow or block the email if it matches a
condition in the policy statement.AcceptActionpublic PolicyStatement withAction(AcceptAction action)
The action that informs a traffic policy resource to either allow or block the email if it matches a condition in the policy statement.
action - The action that informs a traffic policy resource to either allow or block the email if it matches a
condition in the policy statement.AcceptActionpublic List<PolicyCondition> getConditions()
The list of conditions to apply to incoming messages for filtering email traffic.
public void setConditions(Collection<PolicyCondition> conditions)
The list of conditions to apply to incoming messages for filtering email traffic.
conditions - The list of conditions to apply to incoming messages for filtering email traffic.public PolicyStatement withConditions(PolicyCondition... conditions)
The list of conditions to apply to incoming messages for filtering email traffic.
NOTE: This method appends the values to the existing list (if any). Use
setConditions(java.util.Collection) or withConditions(java.util.Collection) if you want to
override the existing values.
conditions - The list of conditions to apply to incoming messages for filtering email traffic.public PolicyStatement withConditions(Collection<PolicyCondition> conditions)
The list of conditions to apply to incoming messages for filtering email traffic.
conditions - The list of conditions to apply to incoming messages for filtering email traffic.public String toString()
toString in class ObjectObject.toString()public PolicyStatement clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.