@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AcceptRule.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AcceptRule.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
AcceptRuleBehavior |
rule()
Specifies whether you want to accept the top prediction for all targets or none.
|
String |
ruleAsString()
Specifies whether you want to accept the top prediction for all targets or none.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AcceptRule.Builder> |
serializableBuilderClass() |
Float |
threshold()
The confidence score that specifies the condition at which a prediction can be accepted.
|
AcceptRule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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, rule will return
AcceptRuleBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
ruleAsString().
AcceptRuleBehaviorpublic 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, rule will return
AcceptRuleBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
ruleAsString().
AcceptRuleBehaviorpublic final Float threshold()
The confidence score that specifies the condition at which a prediction can be accepted.
public AcceptRule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AcceptRule.Builder,AcceptRule>public static AcceptRule.Builder builder()
public static Class<? extends AcceptRule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.