@Generated(value="software.amazon.awssdk:codegen") public final class DetectLabelsRequest extends RekognitionRequest implements ToCopyableBuilder<DetectLabelsRequest.Builder,DetectLabelsRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
DetectLabelsRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DetectLabelsRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<DetectLabelsFeatureName> |
features()
A list of the types of analysis to perform.
|
List<String> |
featuresAsStrings()
A list of the types of analysis to perform.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasFeatures()
For responses, this returns true if the service returned a value for the Features property.
|
int |
hashCode() |
Image |
image()
The input image as base64-encoded bytes or an S3 object.
|
Integer |
maxLabels()
Maximum number of labels you want the service to return in the response.
|
Float |
minConfidence()
Specifies the minimum confidence level for the labels to return.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DetectLabelsRequest.Builder> |
serializableBuilderClass() |
DetectLabelsSettings |
settings()
A list of the filters to be applied to returned detected labels and image properties.
|
DetectLabelsRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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.
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 final 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. Only valid when GENERAL_LABELS is specified as a feature type in the Feature input parameter.
public final 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. Only valid when GENERAL_LABELS is specified as a feature type in the Feature input
parameter.
If MinConfidence is not specified, the operation returns labels with a confidence values
greater than or equal to 55 percent. Only valid when GENERAL_LABELS is specified as a feature type in the
Feature input parameter.
public final List<DetectLabelsFeatureName> features()
A list of the types of analysis to perform. Specifying GENERAL_LABELS uses the label detection feature, while specifying IMAGE_PROPERTIES returns information regarding image color and quality. If no option is specified GENERAL_LABELS is used by default.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasFeatures() method.
public final boolean hasFeatures()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> featuresAsStrings()
A list of the types of analysis to perform. Specifying GENERAL_LABELS uses the label detection feature, while specifying IMAGE_PROPERTIES returns information regarding image color and quality. If no option is specified GENERAL_LABELS is used by default.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasFeatures() method.
public final DetectLabelsSettings settings()
A list of the filters to be applied to returned detected labels and image properties. Specified filters can be inclusive, exclusive, or a combination of both. Filters can be used for individual labels or label categories. The exact label names or label categories must be supplied. For a full list of labels and label categories, see Detecting labels.
public DetectLabelsRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DetectLabelsRequest.Builder,DetectLabelsRequest>toBuilder in class RekognitionRequestpublic static DetectLabelsRequest.Builder builder()
public static Class<? extends DetectLabelsRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.