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