Interface Instance.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Instance.Builder,,Instance> SdkBuilder<Instance.Builder,,Instance> SdkPojo
- Enclosing class:
Instance
public static interface Instance.Builder
extends SdkPojo, CopyableBuilder<Instance.Builder,Instance>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Instance.BuilderboundingBox(Consumer<BoundingBox.Builder> boundingBox) The position of the label instance on the image.boundingBox(BoundingBox boundingBox) The position of the label instance on the image.confidence(Float confidence) The confidence that Amazon Rekognition has in the accuracy of the bounding box.dominantColors(Collection<DominantColor> dominantColors) The dominant colors found in an individual instance of a label.dominantColors(Consumer<DominantColor.Builder>... dominantColors) The dominant colors found in an individual instance of a label.dominantColors(DominantColor... dominantColors) The dominant colors found in an individual instance of a label.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
boundingBox
The position of the label instance on the image.
- Parameters:
boundingBox- The position of the label instance on the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
boundingBox
The position of the label instance on the image.
This is a convenience method that creates an instance of theBoundingBox.Builderavoiding the need to create one manually viaBoundingBox.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toboundingBox(BoundingBox).- Parameters:
boundingBox- a consumer that will call methods onBoundingBox.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
confidence
The confidence that Amazon Rekognition has in the accuracy of the bounding box.
- Parameters:
confidence- The confidence that Amazon Rekognition has in the accuracy of the bounding box.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dominantColors
The dominant colors found in an individual instance of a label.
- Parameters:
dominantColors- The dominant colors found in an individual instance of a label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dominantColors
The dominant colors found in an individual instance of a label.
- Parameters:
dominantColors- The dominant colors found in an individual instance of a label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dominantColors
The dominant colors found in an individual instance of a label.
This is a convenience method that creates an instance of theDominantColor.Builderavoiding the need to create one manually viaDominantColor.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todominantColors(List<DominantColor>).- Parameters:
dominantColors- a consumer that will call methods onDominantColor.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-