@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleDmarcExpression extends Object implements Serializable, Cloneable, StructuredPojo
A DMARC policy expression. The condition matches if the given DMARC policy matches that of the incoming email.
| Constructor and Description |
|---|
RuleDmarcExpression() |
| Modifier and Type | Method and Description |
|---|---|
RuleDmarcExpression |
clone() |
boolean |
equals(Object obj) |
String |
getOperator()
The operator to apply to the DMARC policy of the incoming email.
|
List<String> |
getValues()
The values to use for the given DMARC policy operator.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setOperator(String operator)
The operator to apply to the DMARC policy of the incoming email.
|
void |
setValues(Collection<String> values)
The values to use for the given DMARC policy operator.
|
String |
toString()
Returns a string representation of this object.
|
RuleDmarcExpression |
withOperator(RuleDmarcOperator operator)
The operator to apply to the DMARC policy of the incoming email.
|
RuleDmarcExpression |
withOperator(String operator)
The operator to apply to the DMARC policy of the incoming email.
|
RuleDmarcExpression |
withValues(Collection<String> values)
The values to use for the given DMARC policy operator.
|
RuleDmarcExpression |
withValues(RuleDmarcPolicy... values)
The values to use for the given DMARC policy operator.
|
RuleDmarcExpression |
withValues(String... values)
The values to use for the given DMARC policy operator.
|
public void setOperator(String operator)
The operator to apply to the DMARC policy of the incoming email.
operator - The operator to apply to the DMARC policy of the incoming email.RuleDmarcOperatorpublic String getOperator()
The operator to apply to the DMARC policy of the incoming email.
RuleDmarcOperatorpublic RuleDmarcExpression withOperator(String operator)
The operator to apply to the DMARC policy of the incoming email.
operator - The operator to apply to the DMARC policy of the incoming email.RuleDmarcOperatorpublic RuleDmarcExpression withOperator(RuleDmarcOperator operator)
The operator to apply to the DMARC policy of the incoming email.
operator - The operator to apply to the DMARC policy of the incoming email.RuleDmarcOperatorpublic List<String> getValues()
The values to use for the given DMARC policy operator. For the operator EQUALS, if multiple values are given, they are evaluated as an OR. That is, if any of the given values match, the condition is deemed to match. For the operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is, only if the email's DMARC policy is not equal to any of the given values, then the condition is deemed to match.
RuleDmarcPolicypublic void setValues(Collection<String> values)
The values to use for the given DMARC policy operator. For the operator EQUALS, if multiple values are given, they are evaluated as an OR. That is, if any of the given values match, the condition is deemed to match. For the operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is, only if the email's DMARC policy is not equal to any of the given values, then the condition is deemed to match.
values - The values to use for the given DMARC policy operator. For the operator EQUALS, if multiple values are
given, they are evaluated as an OR. That is, if any of the given values match, the condition is deemed to
match. For the operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is,
only if the email's DMARC policy is not equal to any of the given values, then the condition is deemed to
match.RuleDmarcPolicypublic RuleDmarcExpression withValues(String... values)
The values to use for the given DMARC policy operator. For the operator EQUALS, if multiple values are given, they are evaluated as an OR. That is, if any of the given values match, the condition is deemed to match. For the operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is, only if the email's DMARC policy is not equal to any of the given values, then the condition is deemed to match.
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection) or withValues(java.util.Collection) if you want to override the
existing values.
values - The values to use for the given DMARC policy operator. For the operator EQUALS, if multiple values are
given, they are evaluated as an OR. That is, if any of the given values match, the condition is deemed to
match. For the operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is,
only if the email's DMARC policy is not equal to any of the given values, then the condition is deemed to
match.RuleDmarcPolicypublic RuleDmarcExpression withValues(Collection<String> values)
The values to use for the given DMARC policy operator. For the operator EQUALS, if multiple values are given, they are evaluated as an OR. That is, if any of the given values match, the condition is deemed to match. For the operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is, only if the email's DMARC policy is not equal to any of the given values, then the condition is deemed to match.
values - The values to use for the given DMARC policy operator. For the operator EQUALS, if multiple values are
given, they are evaluated as an OR. That is, if any of the given values match, the condition is deemed to
match. For the operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is,
only if the email's DMARC policy is not equal to any of the given values, then the condition is deemed to
match.RuleDmarcPolicypublic RuleDmarcExpression withValues(RuleDmarcPolicy... values)
The values to use for the given DMARC policy operator. For the operator EQUALS, if multiple values are given, they are evaluated as an OR. That is, if any of the given values match, the condition is deemed to match. For the operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is, only if the email's DMARC policy is not equal to any of the given values, then the condition is deemed to match.
values - The values to use for the given DMARC policy operator. For the operator EQUALS, if multiple values are
given, they are evaluated as an OR. That is, if any of the given values match, the condition is deemed to
match. For the operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is,
only if the email's DMARC policy is not equal to any of the given values, then the condition is deemed to
match.RuleDmarcPolicypublic String toString()
toString in class ObjectObject.toString()public RuleDmarcExpression clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.