@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Prediction extends Object implements Serializable, Cloneable, StructuredPojo
Contains information regarding predicted values returned by Amazon Textract operations, including the predicted value and the confidence in the predicted value.
| Constructor and Description |
|---|
Prediction() |
| Modifier and Type | Method and Description |
|---|---|
Prediction |
clone() |
boolean |
equals(Object obj) |
Float |
getConfidence()
Amazon Textract's confidence in its predicted value.
|
String |
getValue()
The predicted value of a detected object.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setConfidence(Float confidence)
Amazon Textract's confidence in its predicted value.
|
void |
setValue(String value)
The predicted value of a detected object.
|
String |
toString()
Returns a string representation of this object.
|
Prediction |
withConfidence(Float confidence)
Amazon Textract's confidence in its predicted value.
|
Prediction |
withValue(String value)
The predicted value of a detected object.
|
public void setValue(String value)
The predicted value of a detected object.
value - The predicted value of a detected object.public String getValue()
The predicted value of a detected object.
public Prediction withValue(String value)
The predicted value of a detected object.
value - The predicted value of a detected object.public void setConfidence(Float confidence)
Amazon Textract's confidence in its predicted value.
confidence - Amazon Textract's confidence in its predicted value.public Float getConfidence()
Amazon Textract's confidence in its predicted value.
public Prediction withConfidence(Float confidence)
Amazon Textract's confidence in its predicted value.
confidence - Amazon Textract's confidence in its predicted value.public String toString()
toString in class ObjectObject.toString()public Prediction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.