Interface ComparedFace.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ComparedFace.Builder,ComparedFace>,SdkBuilder<ComparedFace.Builder,ComparedFace>,SdkPojo
- Enclosing class:
- ComparedFace
public static interface ComparedFace.Builder extends SdkPojo, CopyableBuilder<ComparedFace.Builder,ComparedFace>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ComparedFace.BuilderboundingBox(Consumer<BoundingBox.Builder> boundingBox)Bounding box of the face.ComparedFace.BuilderboundingBox(BoundingBox boundingBox)Bounding box of the face.ComparedFace.Builderconfidence(Float confidence)Level of confidence that what the bounding box contains is a face.ComparedFace.Builderemotions(Collection<Emotion> emotions)The emotions that appear to be expressed on the face, and the confidence level in the determination.ComparedFace.Builderemotions(Consumer<Emotion.Builder>... emotions)The emotions that appear to be expressed on the face, and the confidence level in the determination.ComparedFace.Builderemotions(Emotion... emotions)The emotions that appear to be expressed on the face, and the confidence level in the determination.ComparedFace.Builderlandmarks(Collection<Landmark> landmarks)An array of facial landmarks.ComparedFace.Builderlandmarks(Consumer<Landmark.Builder>... landmarks)An array of facial landmarks.ComparedFace.Builderlandmarks(Landmark... landmarks)An array of facial landmarks.default ComparedFace.Builderpose(Consumer<Pose.Builder> pose)Indicates the pose of the face as determined by its pitch, roll, and yaw.ComparedFace.Builderpose(Pose pose)Indicates the pose of the face as determined by its pitch, roll, and yaw.default ComparedFace.Builderquality(Consumer<ImageQuality.Builder> quality)Identifies face image brightness and sharpness.ComparedFace.Builderquality(ImageQuality quality)Identifies face image brightness and sharpness.default ComparedFace.Buildersmile(Consumer<Smile.Builder> smile)Indicates whether or not the face is smiling, and the confidence level in the determination.ComparedFace.Buildersmile(Smile smile)Indicates whether or not the face is smiling, and the confidence level in the determination.-
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, sdkFields
-
-
-
-
Method Detail
-
boundingBox
ComparedFace.Builder boundingBox(BoundingBox boundingBox)
Bounding box of the face.
- Parameters:
boundingBox- Bounding box of the face.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
boundingBox
default ComparedFace.Builder boundingBox(Consumer<BoundingBox.Builder> boundingBox)
Bounding box of the face.
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
ComparedFace.Builder confidence(Float confidence)
Level of confidence that what the bounding box contains is a face.
- Parameters:
confidence- Level of confidence that what the bounding box contains is a face.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
landmarks
ComparedFace.Builder landmarks(Collection<Landmark> landmarks)
An array of facial landmarks.
- Parameters:
landmarks- An array of facial landmarks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
landmarks
ComparedFace.Builder landmarks(Landmark... landmarks)
An array of facial landmarks.
- Parameters:
landmarks- An array of facial landmarks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
landmarks
ComparedFace.Builder landmarks(Consumer<Landmark.Builder>... landmarks)
An array of facial landmarks.
This is a convenience method that creates an instance of theLandmark.Builderavoiding the need to create one manually viaLandmark.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#landmarks(List.) - Parameters:
landmarks- a consumer that will call methods onLandmark.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#landmarks(java.util.Collection)
-
pose
ComparedFace.Builder pose(Pose pose)
Indicates the pose of the face as determined by its pitch, roll, and yaw.
- Parameters:
pose- Indicates the pose of the face as determined by its pitch, roll, and yaw.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pose
default ComparedFace.Builder pose(Consumer<Pose.Builder> pose)
Indicates the pose of the face as determined by its pitch, roll, and yaw.
This is a convenience method that creates an instance of thePose.Builderavoiding the need to create one manually viaPose.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topose(Pose).- Parameters:
pose- a consumer that will call methods onPose.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
pose(Pose)
-
quality
ComparedFace.Builder quality(ImageQuality quality)
Identifies face image brightness and sharpness.
- Parameters:
quality- Identifies face image brightness and sharpness.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quality
default ComparedFace.Builder quality(Consumer<ImageQuality.Builder> quality)
Identifies face image brightness and sharpness.
This is a convenience method that creates an instance of theImageQuality.Builderavoiding the need to create one manually viaImageQuality.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toquality(ImageQuality).- Parameters:
quality- a consumer that will call methods onImageQuality.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
quality(ImageQuality)
-
emotions
ComparedFace.Builder emotions(Collection<Emotion> emotions)
The emotions that appear to be expressed on the face, and the confidence level in the determination. Valid values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and "Fear".
- Parameters:
emotions- The emotions that appear to be expressed on the face, and the confidence level in the determination. Valid values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and "Fear".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emotions
ComparedFace.Builder emotions(Emotion... emotions)
The emotions that appear to be expressed on the face, and the confidence level in the determination. Valid values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and "Fear".
- Parameters:
emotions- The emotions that appear to be expressed on the face, and the confidence level in the determination. Valid values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and "Fear".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emotions
ComparedFace.Builder emotions(Consumer<Emotion.Builder>... emotions)
The emotions that appear to be expressed on the face, and the confidence level in the determination. Valid values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and "Fear".
This is a convenience method that creates an instance of theEmotion.Builderavoiding the need to create one manually viaEmotion.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#emotions(List.) - Parameters:
emotions- a consumer that will call methods onEmotion.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#emotions(java.util.Collection)
-
smile
ComparedFace.Builder smile(Smile smile)
Indicates whether or not the face is smiling, and the confidence level in the determination.
- Parameters:
smile- Indicates whether or not the face is smiling, and the confidence level in the determination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
smile
default ComparedFace.Builder smile(Consumer<Smile.Builder> smile)
Indicates whether or not the face is smiling, and the confidence level in the determination.
This is a convenience method that creates an instance of theSmile.Builderavoiding the need to create one manually viaSmile.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosmile(Smile).- Parameters:
smile- a consumer that will call methods onSmile.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
smile(Smile)
-
-