@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DetectLabelsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
DetectLabelsRequest() |
| Modifier and Type | Method and Description |
|---|---|
DetectLabelsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Image |
getImage()
The input image as base64-encoded bytes or an S3 object.
|
Integer |
getMaxLabels()
Maximum number of labels you want the service to return in the response.
|
Float |
getMinConfidence()
Specifies the minimum confidence level for the labels to return.
|
int |
hashCode() |
void |
setImage(Image image)
The input image as base64-encoded bytes or an S3 object.
|
void |
setMaxLabels(Integer maxLabels)
Maximum number of labels you want the service to return in the response.
|
void |
setMinConfidence(Float minConfidence)
Specifies the minimum confidence level for the labels to return.
|
String |
toString()
Returns a string representation of this object.
|
DetectLabelsRequest |
withImage(Image image)
The input image as base64-encoded bytes or an S3 object.
|
DetectLabelsRequest |
withMaxLabels(Integer maxLabels)
Maximum number of labels you want the service to return in the response.
|
DetectLabelsRequest |
withMinConfidence(Float minConfidence)
Specifies the minimum confidence level for the labels to return.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setImage(Image image)
The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. Images stored in an S3 Bucket do not need to be base64-encoded.
If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes passed
using the Bytes field. For more information, see Images in the Amazon Rekognition developer guide.
image - The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition
operations, passing image bytes is not supported. Images stored in an S3 Bucket do not need to be
base64-encoded.
If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes
passed using the Bytes field. For more information, see Images in the Amazon Rekognition
developer guide.
public Image getImage()
The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. Images stored in an S3 Bucket do not need to be base64-encoded.
If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes passed
using the Bytes field. For more information, see Images in the Amazon Rekognition developer guide.
If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes
passed using the Bytes field. For more information, see Images in the Amazon Rekognition
developer guide.
public DetectLabelsRequest withImage(Image image)
The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. Images stored in an S3 Bucket do not need to be base64-encoded.
If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes passed
using the Bytes field. For more information, see Images in the Amazon Rekognition developer guide.
image - The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition
operations, passing image bytes is not supported. Images stored in an S3 Bucket do not need to be
base64-encoded.
If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes
passed using the Bytes field. For more information, see Images in the Amazon Rekognition
developer guide.
public void setMaxLabels(Integer maxLabels)
Maximum number of labels you want the service to return in the response. The service returns the specified number of highest confidence labels.
maxLabels - Maximum number of labels you want the service to return in the response. The service returns the specified
number of highest confidence labels.public Integer getMaxLabels()
Maximum number of labels you want the service to return in the response. The service returns the specified number of highest confidence labels.
public DetectLabelsRequest withMaxLabels(Integer maxLabels)
Maximum number of labels you want the service to return in the response. The service returns the specified number of highest confidence labels.
maxLabels - Maximum number of labels you want the service to return in the response. The service returns the specified
number of highest confidence labels.public void setMinConfidence(Float minConfidence)
Specifies the minimum confidence level for the labels to return. Amazon Rekognition doesn't return any labels with confidence lower than this specified value.
If MinConfidence is not specified, the operation returns labels with a confidence values greater
than or equal to 55 percent.
minConfidence - Specifies the minimum confidence level for the labels to return. Amazon Rekognition doesn't return any
labels with confidence lower than this specified value.
If MinConfidence is not specified, the operation returns labels with a confidence values
greater than or equal to 55 percent.
public Float getMinConfidence()
Specifies the minimum confidence level for the labels to return. Amazon Rekognition doesn't return any labels with confidence lower than this specified value.
If MinConfidence is not specified, the operation returns labels with a confidence values greater
than or equal to 55 percent.
If MinConfidence is not specified, the operation returns labels with a confidence values
greater than or equal to 55 percent.
public DetectLabelsRequest withMinConfidence(Float minConfidence)
Specifies the minimum confidence level for the labels to return. Amazon Rekognition doesn't return any labels with confidence lower than this specified value.
If MinConfidence is not specified, the operation returns labels with a confidence values greater
than or equal to 55 percent.
minConfidence - Specifies the minimum confidence level for the labels to return. Amazon Rekognition doesn't return any
labels with confidence lower than this specified value.
If MinConfidence is not specified, the operation returns labels with a confidence values
greater than or equal to 55 percent.
public String toString()
toString in class ObjectObject.toString()public DetectLabelsRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.