@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.AcceptRuleBehavior
public String getRule()
Specifies whether you want to accept the top prediction for all targets or none.
AcceptRuleBehavior
public 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.AcceptRuleBehavior
public 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.AcceptRuleBehavior
public 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 Object
Object.toString()
public AcceptRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.