@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RejectRule extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the rule and the threshold under which a prediction can be rejected.
| Constructor and Description |
|---|
RejectRule() |
| Modifier and Type | Method and Description |
|---|---|
RejectRule |
clone() |
boolean |
equals(Object obj) |
String |
getRule()
Specifies whether you want to reject the top prediction for all targets or none.
|
Float |
getThreshold()
The confidence score that specifies the condition at which a prediction can be rejected.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setRule(String rule)
Specifies whether you want to reject the top prediction for all targets or none.
|
void |
setThreshold(Float threshold)
The confidence score that specifies the condition at which a prediction can be rejected.
|
String |
toString()
Returns a string representation of this object.
|
RejectRule |
withRule(RejectRuleBehavior rule)
Specifies whether you want to reject the top prediction for all targets or none.
|
RejectRule |
withRule(String rule)
Specifies whether you want to reject the top prediction for all targets or none.
|
RejectRule |
withThreshold(Float threshold)
The confidence score that specifies the condition at which a prediction can be rejected.
|
public void setRule(String rule)
Specifies whether you want to reject the top prediction for all targets or none.
rule - Specifies whether you want to reject the top prediction for all targets or none.RejectRuleBehaviorpublic String getRule()
Specifies whether you want to reject the top prediction for all targets or none.
RejectRuleBehaviorpublic RejectRule withRule(String rule)
Specifies whether you want to reject the top prediction for all targets or none.
rule - Specifies whether you want to reject the top prediction for all targets or none.RejectRuleBehaviorpublic RejectRule withRule(RejectRuleBehavior rule)
Specifies whether you want to reject the top prediction for all targets or none.
rule - Specifies whether you want to reject the top prediction for all targets or none.RejectRuleBehaviorpublic void setThreshold(Float threshold)
The confidence score that specifies the condition at which a prediction can be rejected.
threshold - The confidence score that specifies the condition at which a prediction can be rejected.public Float getThreshold()
The confidence score that specifies the condition at which a prediction can be rejected.
public RejectRule withThreshold(Float threshold)
The confidence score that specifies the condition at which a prediction can be rejected.
threshold - The confidence score that specifies the condition at which a prediction can be rejected.public String toString()
toString in class ObjectObject.toString()public RejectRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.