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 interfacestatic enum - 
Method Summary
Modifier and TypeMethodDescriptionfinal RuleBooleanExpressionThe condition applies to a boolean expression passed in this field.static RuleCondition.Builderbuilder()final RuleDmarcExpressionThe condition applies to a DMARC policy expression passed in this field.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static RuleConditionfromBooleanExpression(Consumer<RuleBooleanExpression.Builder> booleanExpression) Create an instance of this class withbooleanExpression()initialized to the given value.static RuleConditionfromBooleanExpression(RuleBooleanExpression booleanExpression) Create an instance of this class withbooleanExpression()initialized to the given value.static RuleConditionfromDmarcExpression(Consumer<RuleDmarcExpression.Builder> dmarcExpression) Create an instance of this class withdmarcExpression()initialized to the given value.static RuleConditionfromDmarcExpression(RuleDmarcExpression dmarcExpression) Create an instance of this class withdmarcExpression()initialized to the given value.static RuleConditionfromIpExpression(Consumer<RuleIpExpression.Builder> ipExpression) Create an instance of this class withipExpression()initialized to the given value.static RuleConditionfromIpExpression(RuleIpExpression ipExpression) Create an instance of this class withipExpression()initialized to the given value.static RuleConditionfromNumberExpression(Consumer<RuleNumberExpression.Builder> numberExpression) Create an instance of this class withnumberExpression()initialized to the given value.static RuleConditionfromNumberExpression(RuleNumberExpression numberExpression) Create an instance of this class withnumberExpression()initialized to the given value.static RuleConditionfromStringExpression(Consumer<RuleStringExpression.Builder> stringExpression) Create an instance of this class withstringExpression()initialized to the given value.static RuleConditionfromStringExpression(RuleStringExpression stringExpression) Create an instance of this class withstringExpression()initialized to the given value.static RuleConditionfromVerdictExpression(Consumer<RuleVerdictExpression.Builder> verdictExpression) Create an instance of this class withverdictExpression()initialized to the given value.static RuleConditionfromVerdictExpression(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 inthashCode()final RuleIpExpressionThe condition applies to an IP address expression passed in this field.final RuleNumberExpressionThe condition applies to a number expression passed in this field.static Class<? extends RuleCondition.Builder> final RuleStringExpressionThe 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 StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.final RuleVerdictExpressionThe 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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
 toBuilderin interfaceToCopyableBuilder<RuleCondition.Builder,RuleCondition> - Returns:
 - a builder for type T
 
 - 
builder
 - 
serializableBuilderClass
 - 
hashCode
 - 
equals
 - 
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
 equalsBySdkFieldsin 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_VERSIONif 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_VERSIONif zero members are set, andnullif more than one member is set. - 
sdkFields
 - 
sdkFieldNameToField
- Specified by:
 sdkFieldNameToFieldin interfaceSdkPojo- Returns:
 - The mapping between the field name and its corresponding field.
 
 
 -