Class RejectRule
- java.lang.Object
-
- software.amazon.awssdk.services.datazone.model.RejectRule
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RejectRule.Builder,RejectRule>
@Generated("software.amazon.awssdk:codegen") public final class RejectRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RejectRule.Builder,RejectRule>
Specifies the rule and the threshold under which a prediction can be rejected.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRejectRule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RejectRule.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()RejectRuleBehaviorrule()Specifies whether you want to reject the top prediction for all targets or none.StringruleAsString()Specifies whether you want to reject the top prediction for all targets or none.List<SdkField<?>>sdkFields()static Class<? extends RejectRule.Builder>serializableBuilderClass()Floatthreshold()The confidence score that specifies the condition at which a prediction can be rejected.RejectRule.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
-
rule
public final RejectRuleBehavior rule()
Specifies whether you want to reject the top prediction for all targets or none.
If the service returns an enum value that is not available in the current SDK version,
rulewill returnRejectRuleBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromruleAsString().- Returns:
- Specifies whether you want to reject the top prediction for all targets or none.
- See Also:
RejectRuleBehavior
-
ruleAsString
public final String ruleAsString()
Specifies whether you want to reject the top prediction for all targets or none.
If the service returns an enum value that is not available in the current SDK version,
rulewill returnRejectRuleBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromruleAsString().- Returns:
- Specifies whether you want to reject the top prediction for all targets or none.
- See Also:
RejectRuleBehavior
-
threshold
public final Float threshold()
The confidence score that specifies the condition at which a prediction can be rejected.
- Returns:
- The confidence score that specifies the condition at which a prediction can be rejected.
-
toBuilder
public RejectRule.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RejectRule.Builder,RejectRule>
-
builder
public static RejectRule.Builder builder()
-
serializableBuilderClass
public static Class<? extends RejectRule.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.
-
-