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