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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Instance.BuilderboundingBox(Consumer<BoundingBox.Builder> boundingBox)The position of the label instance on the image.Instance.BuilderboundingBox(BoundingBox boundingBox)The position of the label instance on the image.Instance.Builderconfidence(Float confidence)The confidence that Amazon Rekognition has in the accuracy of the bounding box.Instance.BuilderdominantColors(Collection<DominantColor> dominantColors)The dominant colors found in an individual instance of a label.Instance.BuilderdominantColors(Consumer<DominantColor.Builder>... dominantColors)The dominant colors found in an individual instance of a label.Instance.BuilderdominantColors(DominantColor... dominantColors)The dominant colors found in an individual instance of a label.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
boundingBox
Instance.Builder boundingBox(BoundingBox 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
default Instance.Builder boundingBox(Consumer<BoundingBox.Builder> 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:
boundingBox(BoundingBox)
-
confidence
Instance.Builder confidence(Float 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
Instance.Builder dominantColors(Collection<DominantColor> 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
Instance.Builder dominantColors(DominantColor... 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
Instance.Builder dominantColors(Consumer<DominantColor.Builder>... 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 to#dominantColors(List.) - 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:
#dominantColors(java.util.Collection)
-
-