Class EvaluatedRule
- java.lang.Object
-
- software.amazon.awssdk.services.frauddetector.model.EvaluatedRule
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EvaluatedRule.Builder,EvaluatedRule>
@Generated("software.amazon.awssdk:codegen") public final class EvaluatedRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EvaluatedRule.Builder,EvaluatedRule>
The details of the rule used for evaluating variable values.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEvaluatedRule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EvaluatedRule.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Booleanevaluated()Indicates whether the rule was evaluated.Stringexpression()The rule expression.StringexpressionWithValues()The rule expression value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasOutcomes()For responses, this returns true if the service returned a value for the Outcomes property.Booleanmatched()Indicates whether the rule matched.List<String>outcomes()The rule outcome.StringruleId()The rule ID.StringruleVersion()The rule version.List<SdkField<?>>sdkFields()static Class<? extends EvaluatedRule.Builder>serializableBuilderClass()EvaluatedRule.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
ruleId
public final String ruleId()
The rule ID.
- Returns:
- The rule ID.
-
ruleVersion
public final String ruleVersion()
The rule version.
- Returns:
- The rule version.
-
expression
public final String expression()
The rule expression.
- Returns:
- The rule expression.
-
expressionWithValues
public final String expressionWithValues()
The rule expression value.
- Returns:
- The rule expression value.
-
hasOutcomes
public final boolean hasOutcomes()
For responses, this returns true if the service returned a value for the Outcomes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
outcomes
public final List<String> outcomes()
The rule outcome.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasOutcomes()method.- Returns:
- The rule outcome.
-
evaluated
public final Boolean evaluated()
Indicates whether the rule was evaluated.
- Returns:
- Indicates whether the rule was evaluated.
-
matched
public final Boolean matched()
Indicates whether the rule matched.
- Returns:
- Indicates whether the rule matched.
-
toBuilder
public EvaluatedRule.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EvaluatedRule.Builder,EvaluatedRule>
-
builder
public static EvaluatedRule.Builder builder()
-
serializableBuilderClass
public static Class<? extends EvaluatedRule.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-