@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DetectAnomalyResult extends Object implements Serializable, Cloneable, StructuredPojo
The prediction results from a call to DetectAnomalies.
Constructor and Description |
---|
DetectAnomalyResult() |
Modifier and Type | Method and Description |
---|---|
DetectAnomalyResult |
clone() |
boolean |
equals(Object obj) |
Float |
getConfidence()
The confidence that Amazon Lookout for Vision has in the accuracy of the prediction.
|
Boolean |
getIsAnomalous()
True if the image contains an anomaly, otherwise false.
|
ImageSource |
getSource()
The source of the image that was analyzed.
|
int |
hashCode() |
Boolean |
isAnomalous()
True if the image contains an anomaly, otherwise false.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setConfidence(Float confidence)
The confidence that Amazon Lookout for Vision has in the accuracy of the prediction.
|
void |
setIsAnomalous(Boolean isAnomalous)
True if the image contains an anomaly, otherwise false.
|
void |
setSource(ImageSource source)
The source of the image that was analyzed.
|
String |
toString()
Returns a string representation of this object.
|
DetectAnomalyResult |
withConfidence(Float confidence)
The confidence that Amazon Lookout for Vision has in the accuracy of the prediction.
|
DetectAnomalyResult |
withIsAnomalous(Boolean isAnomalous)
True if the image contains an anomaly, otherwise false.
|
DetectAnomalyResult |
withSource(ImageSource source)
The source of the image that was analyzed.
|
public void setSource(ImageSource source)
The source of the image that was analyzed. direct
means that the images was supplied from the local
computer. No other values are supported.
source
- The source of the image that was analyzed. direct
means that the images was supplied from the
local computer. No other values are supported.public ImageSource getSource()
The source of the image that was analyzed. direct
means that the images was supplied from the local
computer. No other values are supported.
direct
means that the images was supplied from
the local computer. No other values are supported.public DetectAnomalyResult withSource(ImageSource source)
The source of the image that was analyzed. direct
means that the images was supplied from the local
computer. No other values are supported.
source
- The source of the image that was analyzed. direct
means that the images was supplied from the
local computer. No other values are supported.public void setIsAnomalous(Boolean isAnomalous)
True if the image contains an anomaly, otherwise false.
isAnomalous
- True if the image contains an anomaly, otherwise false.public Boolean getIsAnomalous()
True if the image contains an anomaly, otherwise false.
public DetectAnomalyResult withIsAnomalous(Boolean isAnomalous)
True if the image contains an anomaly, otherwise false.
isAnomalous
- True if the image contains an anomaly, otherwise false.public Boolean isAnomalous()
True if the image contains an anomaly, otherwise false.
public void setConfidence(Float confidence)
The confidence that Amazon Lookout for Vision has in the accuracy of the prediction.
confidence
- The confidence that Amazon Lookout for Vision has in the accuracy of the prediction.public Float getConfidence()
The confidence that Amazon Lookout for Vision has in the accuracy of the prediction.
public DetectAnomalyResult withConfidence(Float confidence)
The confidence that Amazon Lookout for Vision has in the accuracy of the prediction.
confidence
- The confidence that Amazon Lookout for Vision has in the accuracy of the prediction.public String toString()
toString
in class Object
Object.toString()
public DetectAnomalyResult clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.