Interface DetectCustomLabelsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DetectCustomLabelsResponse.Builder,
,DetectCustomLabelsResponse> RekognitionResponse.Builder
,SdkBuilder<DetectCustomLabelsResponse.Builder,
,DetectCustomLabelsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DetectCustomLabelsResponse
public static interface DetectCustomLabelsResponse.Builder
extends RekognitionResponse.Builder, SdkPojo, CopyableBuilder<DetectCustomLabelsResponse.Builder,DetectCustomLabelsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncustomLabels
(Collection<CustomLabel> customLabels) An array of custom labels detected in the input image.customLabels
(Consumer<CustomLabel.Builder>... customLabels) An array of custom labels detected in the input image.customLabels
(CustomLabel... customLabels) An array of custom labels detected in the input image.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.rekognition.model.RekognitionResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
customLabels
An array of custom labels detected in the input image.
- Parameters:
customLabels
- An array of custom labels detected in the input image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customLabels
An array of custom labels detected in the input image.
- Parameters:
customLabels
- An array of custom labels detected in the input image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customLabels
An array of custom labels detected in the input image.
This is a convenience method that creates an instance of theCustomLabel.Builder
avoiding the need to create one manually viaCustomLabel.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomLabels(List<CustomLabel>)
.- Parameters:
customLabels
- a consumer that will call methods onCustomLabel.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-