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