Class RuleCondition
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<RuleCondition.Builder,
RuleCondition>
The conditional expression used to evaluate an email for determining if a rule action should be taken.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static enum
-
Method Summary
Modifier and TypeMethodDescriptionfinal RuleBooleanExpression
The condition applies to a boolean expression passed in this field.static RuleCondition.Builder
builder()
final RuleDmarcExpression
The condition applies to a DMARC policy expression passed in this field.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static RuleCondition
fromBooleanExpression
(Consumer<RuleBooleanExpression.Builder> booleanExpression) Create an instance of this class withbooleanExpression()
initialized to the given value.static RuleCondition
fromBooleanExpression
(RuleBooleanExpression booleanExpression) Create an instance of this class withbooleanExpression()
initialized to the given value.static RuleCondition
fromDmarcExpression
(Consumer<RuleDmarcExpression.Builder> dmarcExpression) Create an instance of this class withdmarcExpression()
initialized to the given value.static RuleCondition
fromDmarcExpression
(RuleDmarcExpression dmarcExpression) Create an instance of this class withdmarcExpression()
initialized to the given value.static RuleCondition
fromIpExpression
(Consumer<RuleIpExpression.Builder> ipExpression) Create an instance of this class withipExpression()
initialized to the given value.static RuleCondition
fromIpExpression
(RuleIpExpression ipExpression) Create an instance of this class withipExpression()
initialized to the given value.static RuleCondition
fromNumberExpression
(Consumer<RuleNumberExpression.Builder> numberExpression) Create an instance of this class withnumberExpression()
initialized to the given value.static RuleCondition
fromNumberExpression
(RuleNumberExpression numberExpression) Create an instance of this class withnumberExpression()
initialized to the given value.static RuleCondition
fromStringExpression
(Consumer<RuleStringExpression.Builder> stringExpression) Create an instance of this class withstringExpression()
initialized to the given value.static RuleCondition
fromStringExpression
(RuleStringExpression stringExpression) Create an instance of this class withstringExpression()
initialized to the given value.static RuleCondition
fromVerdictExpression
(Consumer<RuleVerdictExpression.Builder> verdictExpression) Create an instance of this class withverdictExpression()
initialized to the given value.static RuleCondition
fromVerdictExpression
(RuleVerdictExpression verdictExpression) Create an instance of this class withverdictExpression()
initialized to the given value.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final RuleIpExpression
The condition applies to an IP address expression passed in this field.final RuleNumberExpression
The condition applies to a number expression passed in this field.static Class
<? extends RuleCondition.Builder> final RuleStringExpression
The condition applies to a string expression passed in this field.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.type()
Retrieve an enum value representing which member of this object is populated.final RuleVerdictExpression
The condition applies to a verdict expression passed in this field.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
booleanExpression
The condition applies to a boolean expression passed in this field.
- Returns:
- The condition applies to a boolean expression passed in this field.
-
dmarcExpression
The condition applies to a DMARC policy expression passed in this field.
- Returns:
- The condition applies to a DMARC policy expression passed in this field.
-
ipExpression
The condition applies to an IP address expression passed in this field.
- Returns:
- The condition applies to an IP address expression passed in this field.
-
numberExpression
The condition applies to a number expression passed in this field.
- Returns:
- The condition applies to a number expression passed in this field.
-
stringExpression
The condition applies to a string expression passed in this field.
- Returns:
- The condition applies to a string expression passed in this field.
-
verdictExpression
The condition applies to a verdict expression passed in this field.
- Returns:
- The condition applies to a verdict expression passed in this field.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<RuleCondition.Builder,
RuleCondition> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromBooleanExpression
Create an instance of this class withbooleanExpression()
initialized to the given value.The condition applies to a boolean expression passed in this field.
- Parameters:
booleanExpression
- The condition applies to a boolean expression passed in this field.
-
fromBooleanExpression
public static RuleCondition fromBooleanExpression(Consumer<RuleBooleanExpression.Builder> booleanExpression) Create an instance of this class withbooleanExpression()
initialized to the given value.The condition applies to a boolean expression passed in this field.
- Parameters:
booleanExpression
- The condition applies to a boolean expression passed in this field.
-
fromDmarcExpression
Create an instance of this class withdmarcExpression()
initialized to the given value.The condition applies to a DMARC policy expression passed in this field.
- Parameters:
dmarcExpression
- The condition applies to a DMARC policy expression passed in this field.
-
fromDmarcExpression
public static RuleCondition fromDmarcExpression(Consumer<RuleDmarcExpression.Builder> dmarcExpression) Create an instance of this class withdmarcExpression()
initialized to the given value.The condition applies to a DMARC policy expression passed in this field.
- Parameters:
dmarcExpression
- The condition applies to a DMARC policy expression passed in this field.
-
fromIpExpression
Create an instance of this class withipExpression()
initialized to the given value.The condition applies to an IP address expression passed in this field.
- Parameters:
ipExpression
- The condition applies to an IP address expression passed in this field.
-
fromIpExpression
Create an instance of this class withipExpression()
initialized to the given value.The condition applies to an IP address expression passed in this field.
- Parameters:
ipExpression
- The condition applies to an IP address expression passed in this field.
-
fromNumberExpression
Create an instance of this class withnumberExpression()
initialized to the given value.The condition applies to a number expression passed in this field.
- Parameters:
numberExpression
- The condition applies to a number expression passed in this field.
-
fromNumberExpression
public static RuleCondition fromNumberExpression(Consumer<RuleNumberExpression.Builder> numberExpression) Create an instance of this class withnumberExpression()
initialized to the given value.The condition applies to a number expression passed in this field.
- Parameters:
numberExpression
- The condition applies to a number expression passed in this field.
-
fromStringExpression
Create an instance of this class withstringExpression()
initialized to the given value.The condition applies to a string expression passed in this field.
- Parameters:
stringExpression
- The condition applies to a string expression passed in this field.
-
fromStringExpression
public static RuleCondition fromStringExpression(Consumer<RuleStringExpression.Builder> stringExpression) Create an instance of this class withstringExpression()
initialized to the given value.The condition applies to a string expression passed in this field.
- Parameters:
stringExpression
- The condition applies to a string expression passed in this field.
-
fromVerdictExpression
Create an instance of this class withverdictExpression()
initialized to the given value.The condition applies to a verdict expression passed in this field.
- Parameters:
verdictExpression
- The condition applies to a verdict expression passed in this field.
-
fromVerdictExpression
public static RuleCondition fromVerdictExpression(Consumer<RuleVerdictExpression.Builder> verdictExpression) Create an instance of this class withverdictExpression()
initialized to the given value.The condition applies to a verdict expression passed in this field.
- Parameters:
verdictExpression
- The condition applies to a verdict expression passed in this field.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beRuleCondition.Type.UNKNOWN_TO_SDK_VERSION
if the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beRuleCondition.Type.UNKNOWN_TO_SDK_VERSION
if zero members are set, andnull
if more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-