Class CfnStreamProcessor.FaceSearchSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.rekognition.CfnStreamProcessor.FaceSearchSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStreamProcessor.FaceSearchSettingsProperty>
- Enclosing interface:
- CfnStreamProcessor.FaceSearchSettingsProperty
@Stability(Stable)
public static final class CfnStreamProcessor.FaceSearchSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStreamProcessor.FaceSearchSettingsProperty>
A builder for
CfnStreamProcessor.FaceSearchSettingsProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.collectionId
(String collectionId) Sets the value ofCfnStreamProcessor.FaceSearchSettingsProperty.getCollectionId()
faceMatchThreshold
(Number faceMatchThreshold) Sets the value ofCfnStreamProcessor.FaceSearchSettingsProperty.getFaceMatchThreshold()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
collectionId
@Stability(Stable) public CfnStreamProcessor.FaceSearchSettingsProperty.Builder collectionId(String collectionId) Sets the value ofCfnStreamProcessor.FaceSearchSettingsProperty.getCollectionId()
- Parameters:
collectionId
- The ID of a collection that contains faces that you want to search for. This parameter is required.- Returns:
this
-
faceMatchThreshold
@Stability(Stable) public CfnStreamProcessor.FaceSearchSettingsProperty.Builder faceMatchThreshold(Number faceMatchThreshold) Sets the value ofCfnStreamProcessor.FaceSearchSettingsProperty.getFaceMatchThreshold()
- Parameters:
faceMatchThreshold
- Minimum face match confidence score that must be met to return a result for a recognized face. The default is 80. 0 is the lowest confidence. 100 is the highest confidence. Values between 0 and 100 are accepted, and values lower than 80 are set to 80.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStreamProcessor.FaceSearchSettingsProperty>
- Returns:
- a new instance of
CfnStreamProcessor.FaceSearchSettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-