@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleStringExpression extends Object implements Serializable, Cloneable, StructuredPojo
A string expression is evaluated against strings or substrings of the email.
Constructor and Description |
---|
RuleStringExpression() |
Modifier and Type | Method and Description |
---|---|
RuleStringExpression |
clone() |
boolean |
equals(Object obj) |
RuleStringToEvaluate |
getEvaluate()
The string to evaluate in a string condition expression.
|
String |
getOperator()
The matching operator for a string condition expression.
|
List<String> |
getValues()
The string(s) to be evaluated in a string condition expression.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEvaluate(RuleStringToEvaluate evaluate)
The string to evaluate in a string condition expression.
|
void |
setOperator(String operator)
The matching operator for a string condition expression.
|
void |
setValues(Collection<String> values)
The string(s) to be evaluated in a string condition expression.
|
String |
toString()
Returns a string representation of this object.
|
RuleStringExpression |
withEvaluate(RuleStringToEvaluate evaluate)
The string to evaluate in a string condition expression.
|
RuleStringExpression |
withOperator(RuleStringOperator operator)
The matching operator for a string condition expression.
|
RuleStringExpression |
withOperator(String operator)
The matching operator for a string condition expression.
|
RuleStringExpression |
withValues(Collection<String> values)
The string(s) to be evaluated in a string condition expression.
|
RuleStringExpression |
withValues(String... values)
The string(s) to be evaluated in a string condition expression.
|
public void setEvaluate(RuleStringToEvaluate evaluate)
The string to evaluate in a string condition expression.
evaluate
- The string to evaluate in a string condition expression.public RuleStringToEvaluate getEvaluate()
The string to evaluate in a string condition expression.
public RuleStringExpression withEvaluate(RuleStringToEvaluate evaluate)
The string to evaluate in a string condition expression.
evaluate
- The string to evaluate in a string condition expression.public void setOperator(String operator)
The matching operator for a string condition expression.
operator
- The matching operator for a string condition expression.RuleStringOperator
public String getOperator()
The matching operator for a string condition expression.
RuleStringOperator
public RuleStringExpression withOperator(String operator)
The matching operator for a string condition expression.
operator
- The matching operator for a string condition expression.RuleStringOperator
public RuleStringExpression withOperator(RuleStringOperator operator)
The matching operator for a string condition expression.
operator
- The matching operator for a string condition expression.RuleStringOperator
public List<String> getValues()
The string(s) to be evaluated in a string condition expression. For all operators, except for NOT_EQUALS, if multiple values are given, the values are processed as an OR. That is, if any of the values match the email's string using the given operator, the condition is deemed to match. However, for NOT_EQUALS, the condition is only deemed to match if none of the given strings match the email's string.
public void setValues(Collection<String> values)
The string(s) to be evaluated in a string condition expression. For all operators, except for NOT_EQUALS, if multiple values are given, the values are processed as an OR. That is, if any of the values match the email's string using the given operator, the condition is deemed to match. However, for NOT_EQUALS, the condition is only deemed to match if none of the given strings match the email's string.
values
- The string(s) to be evaluated in a string condition expression. For all operators, except for NOT_EQUALS,
if multiple values are given, the values are processed as an OR. That is, if any of the values match the
email's string using the given operator, the condition is deemed to match. However, for NOT_EQUALS, the
condition is only deemed to match if none of the given strings match the email's string.public RuleStringExpression withValues(String... values)
The string(s) to be evaluated in a string condition expression. For all operators, except for NOT_EQUALS, if multiple values are given, the values are processed as an OR. That is, if any of the values match the email's string using the given operator, the condition is deemed to match. However, for NOT_EQUALS, the condition is only deemed to match if none of the given strings match the email's string.
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 string(s) to be evaluated in a string condition expression. For all operators, except for NOT_EQUALS,
if multiple values are given, the values are processed as an OR. That is, if any of the values match the
email's string using the given operator, the condition is deemed to match. However, for NOT_EQUALS, the
condition is only deemed to match if none of the given strings match the email's string.public RuleStringExpression withValues(Collection<String> values)
The string(s) to be evaluated in a string condition expression. For all operators, except for NOT_EQUALS, if multiple values are given, the values are processed as an OR. That is, if any of the values match the email's string using the given operator, the condition is deemed to match. However, for NOT_EQUALS, the condition is only deemed to match if none of the given strings match the email's string.
values
- The string(s) to be evaluated in a string condition expression. For all operators, except for NOT_EQUALS,
if multiple values are given, the values are processed as an OR. That is, if any of the values match the
email's string using the given operator, the condition is deemed to match. However, for NOT_EQUALS, the
condition is only deemed to match if none of the given strings match the email's string.public String toString()
toString
in class Object
Object.toString()
public RuleStringExpression clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.