Interface FaceDetail.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<FaceDetail.Builder,FaceDetail>,SdkBuilder<FaceDetail.Builder,FaceDetail>,SdkPojo
- Enclosing class:
- FaceDetail
public static interface FaceDetail.Builder extends SdkPojo, CopyableBuilder<FaceDetail.Builder,FaceDetail>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default FaceDetail.BuilderageRange(Consumer<AgeRange.Builder> ageRange)The estimated age range, in years, for the face.FaceDetail.BuilderageRange(AgeRange ageRange)The estimated age range, in years, for the face.default FaceDetail.Builderbeard(Consumer<Beard.Builder> beard)Indicates whether or not the face has a beard, and the confidence level in the determination.FaceDetail.Builderbeard(Beard beard)Indicates whether or not the face has a beard, and the confidence level in the determination.default FaceDetail.BuilderboundingBox(Consumer<BoundingBox.Builder> boundingBox)Bounding box of the face.FaceDetail.BuilderboundingBox(BoundingBox boundingBox)Bounding box of the face.FaceDetail.Builderconfidence(Float confidence)Confidence level that the bounding box contains a face (and not a different object such as a tree).FaceDetail.Builderemotions(Collection<Emotion> emotions)The emotions that appear to be expressed on the face, and the confidence level in the determination.FaceDetail.Builderemotions(Consumer<Emotion.Builder>... emotions)The emotions that appear to be expressed on the face, and the confidence level in the determination.FaceDetail.Builderemotions(Emotion... emotions)The emotions that appear to be expressed on the face, and the confidence level in the determination.default FaceDetail.BuildereyeDirection(Consumer<EyeDirection.Builder> eyeDirection)Indicates the direction the eyes are gazing in, as defined by pitch and yaw.FaceDetail.BuildereyeDirection(EyeDirection eyeDirection)Indicates the direction the eyes are gazing in, as defined by pitch and yaw.default FaceDetail.Buildereyeglasses(Consumer<Eyeglasses.Builder> eyeglasses)Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.FaceDetail.Buildereyeglasses(Eyeglasses eyeglasses)Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.default FaceDetail.BuildereyesOpen(Consumer<EyeOpen.Builder> eyesOpen)Indicates whether or not the eyes on the face are open, and the confidence level in the determination.FaceDetail.BuildereyesOpen(EyeOpen eyesOpen)Indicates whether or not the eyes on the face are open, and the confidence level in the determination.default FaceDetail.BuilderfaceOccluded(Consumer<FaceOccluded.Builder> faceOccluded)FaceOccludedshould return "true" with a high confidence score if a detected face’s eyes, nose, and mouth are partially captured or if they are covered by masks, dark sunglasses, cell phones, hands, or other objects.FaceDetail.BuilderfaceOccluded(FaceOccluded faceOccluded)FaceOccludedshould return "true" with a high confidence score if a detected face’s eyes, nose, and mouth are partially captured or if they are covered by masks, dark sunglasses, cell phones, hands, or other objects.default FaceDetail.Buildergender(Consumer<Gender.Builder> gender)The predicted gender of a detected face.FaceDetail.Buildergender(Gender gender)The predicted gender of a detected face.FaceDetail.Builderlandmarks(Collection<Landmark> landmarks)Indicates the location of landmarks on the face.FaceDetail.Builderlandmarks(Consumer<Landmark.Builder>... landmarks)Indicates the location of landmarks on the face.FaceDetail.Builderlandmarks(Landmark... landmarks)Indicates the location of landmarks on the face.default FaceDetail.BuildermouthOpen(Consumer<MouthOpen.Builder> mouthOpen)Indicates whether or not the mouth on the face is open, and the confidence level in the determination.FaceDetail.BuildermouthOpen(MouthOpen mouthOpen)Indicates whether or not the mouth on the face is open, and the confidence level in the determination.default FaceDetail.Buildermustache(Consumer<Mustache.Builder> mustache)Indicates whether or not the face has a mustache, and the confidence level in the determination.FaceDetail.Buildermustache(Mustache mustache)Indicates whether or not the face has a mustache, and the confidence level in the determination.default FaceDetail.Builderpose(Consumer<Pose.Builder> pose)Indicates the pose of the face as determined by its pitch, roll, and yaw.FaceDetail.Builderpose(Pose pose)Indicates the pose of the face as determined by its pitch, roll, and yaw.default FaceDetail.Builderquality(Consumer<ImageQuality.Builder> quality)Identifies image brightness and sharpness.FaceDetail.Builderquality(ImageQuality quality)Identifies image brightness and sharpness.default FaceDetail.Buildersmile(Consumer<Smile.Builder> smile)Indicates whether or not the face is smiling, and the confidence level in the determination.FaceDetail.Buildersmile(Smile smile)Indicates whether or not the face is smiling, and the confidence level in the determination.default FaceDetail.Buildersunglasses(Consumer<Sunglasses.Builder> sunglasses)Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.FaceDetail.Buildersunglasses(Sunglasses sunglasses)Indicates whether or not the face is wearing sunglasses, 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
FaceDetail.Builder boundingBox(BoundingBox boundingBox)
Bounding box of the face. Default attribute.
- Parameters:
boundingBox- Bounding box of the face. Default attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
boundingBox
default FaceDetail.Builder boundingBox(Consumer<BoundingBox.Builder> boundingBox)
Bounding box of the face. Default attribute.
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)
-
ageRange
FaceDetail.Builder ageRange(AgeRange ageRange)
The estimated age range, in years, for the face. Low represents the lowest estimated age and High represents the highest estimated age.
- Parameters:
ageRange- The estimated age range, in years, for the face. Low represents the lowest estimated age and High represents the highest estimated age.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ageRange
default FaceDetail.Builder ageRange(Consumer<AgeRange.Builder> ageRange)
The estimated age range, in years, for the face. Low represents the lowest estimated age and High represents the highest estimated age.
This is a convenience method that creates an instance of theAgeRange.Builderavoiding the need to create one manually viaAgeRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toageRange(AgeRange).- Parameters:
ageRange- a consumer that will call methods onAgeRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ageRange(AgeRange)
-
smile
FaceDetail.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 FaceDetail.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)
-
eyeglasses
FaceDetail.Builder eyeglasses(Eyeglasses eyeglasses)
Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.
- Parameters:
eyeglasses- Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eyeglasses
default FaceDetail.Builder eyeglasses(Consumer<Eyeglasses.Builder> eyeglasses)
Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.
This is a convenience method that creates an instance of theEyeglasses.Builderavoiding the need to create one manually viaEyeglasses.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeyeglasses(Eyeglasses).- Parameters:
eyeglasses- a consumer that will call methods onEyeglasses.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
eyeglasses(Eyeglasses)
-
sunglasses
FaceDetail.Builder sunglasses(Sunglasses sunglasses)
Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.
- Parameters:
sunglasses- Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sunglasses
default FaceDetail.Builder sunglasses(Consumer<Sunglasses.Builder> sunglasses)
Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.
This is a convenience method that creates an instance of theSunglasses.Builderavoiding the need to create one manually viaSunglasses.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosunglasses(Sunglasses).- Parameters:
sunglasses- a consumer that will call methods onSunglasses.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
sunglasses(Sunglasses)
-
gender
FaceDetail.Builder gender(Gender gender)
The predicted gender of a detected face.
- Parameters:
gender- The predicted gender of a detected face.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gender
default FaceDetail.Builder gender(Consumer<Gender.Builder> gender)
The predicted gender of a detected face.
This is a convenience method that creates an instance of theGender.Builderavoiding the need to create one manually viaGender.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togender(Gender).- Parameters:
gender- a consumer that will call methods onGender.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
gender(Gender)
-
beard
FaceDetail.Builder beard(Beard beard)
Indicates whether or not the face has a beard, and the confidence level in the determination.
- Parameters:
beard- Indicates whether or not the face has a beard, and the confidence level in the determination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
beard
default FaceDetail.Builder beard(Consumer<Beard.Builder> beard)
Indicates whether or not the face has a beard, and the confidence level in the determination.
This is a convenience method that creates an instance of theBeard.Builderavoiding the need to create one manually viaBeard.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobeard(Beard).- Parameters:
beard- a consumer that will call methods onBeard.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
beard(Beard)
-
mustache
FaceDetail.Builder mustache(Mustache mustache)
Indicates whether or not the face has a mustache, and the confidence level in the determination.
- Parameters:
mustache- Indicates whether or not the face has a mustache, and the confidence level in the determination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mustache
default FaceDetail.Builder mustache(Consumer<Mustache.Builder> mustache)
Indicates whether or not the face has a mustache, and the confidence level in the determination.
This is a convenience method that creates an instance of theMustache.Builderavoiding the need to create one manually viaMustache.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomustache(Mustache).- Parameters:
mustache- a consumer that will call methods onMustache.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
mustache(Mustache)
-
eyesOpen
FaceDetail.Builder eyesOpen(EyeOpen eyesOpen)
Indicates whether or not the eyes on the face are open, and the confidence level in the determination.
- Parameters:
eyesOpen- Indicates whether or not the eyes on the face are open, and the confidence level in the determination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eyesOpen
default FaceDetail.Builder eyesOpen(Consumer<EyeOpen.Builder> eyesOpen)
Indicates whether or not the eyes on the face are open, and the confidence level in the determination.
This is a convenience method that creates an instance of theEyeOpen.Builderavoiding the need to create one manually viaEyeOpen.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeyesOpen(EyeOpen).- Parameters:
eyesOpen- a consumer that will call methods onEyeOpen.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
eyesOpen(EyeOpen)
-
mouthOpen
FaceDetail.Builder mouthOpen(MouthOpen mouthOpen)
Indicates whether or not the mouth on the face is open, and the confidence level in the determination.
- Parameters:
mouthOpen- Indicates whether or not the mouth on the face is open, and the confidence level in the determination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mouthOpen
default FaceDetail.Builder mouthOpen(Consumer<MouthOpen.Builder> mouthOpen)
Indicates whether or not the mouth on the face is open, and the confidence level in the determination.
This is a convenience method that creates an instance of theMouthOpen.Builderavoiding the need to create one manually viaMouthOpen.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomouthOpen(MouthOpen).- Parameters:
mouthOpen- a consumer that will call methods onMouthOpen.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
mouthOpen(MouthOpen)
-
emotions
FaceDetail.Builder emotions(Collection<Emotion> emotions)
The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally.
- Parameters:
emotions- The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emotions
FaceDetail.Builder emotions(Emotion... emotions)
The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally.
- Parameters:
emotions- The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emotions
FaceDetail.Builder emotions(Consumer<Emotion.Builder>... emotions)
The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally.
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)
-
landmarks
FaceDetail.Builder landmarks(Collection<Landmark> landmarks)
Indicates the location of landmarks on the face. Default attribute.
- Parameters:
landmarks- Indicates the location of landmarks on the face. Default attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
landmarks
FaceDetail.Builder landmarks(Landmark... landmarks)
Indicates the location of landmarks on the face. Default attribute.
- Parameters:
landmarks- Indicates the location of landmarks on the face. Default attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
landmarks
FaceDetail.Builder landmarks(Consumer<Landmark.Builder>... landmarks)
Indicates the location of landmarks on the face. Default attribute.
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
FaceDetail.Builder pose(Pose pose)
Indicates the pose of the face as determined by its pitch, roll, and yaw. Default attribute.
- Parameters:
pose- Indicates the pose of the face as determined by its pitch, roll, and yaw. Default attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pose
default FaceDetail.Builder pose(Consumer<Pose.Builder> pose)
Indicates the pose of the face as determined by its pitch, roll, and yaw. Default attribute.
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
FaceDetail.Builder quality(ImageQuality quality)
Identifies image brightness and sharpness. Default attribute.
- Parameters:
quality- Identifies image brightness and sharpness. Default attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quality
default FaceDetail.Builder quality(Consumer<ImageQuality.Builder> quality)
Identifies image brightness and sharpness. Default attribute.
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)
-
confidence
FaceDetail.Builder confidence(Float confidence)
Confidence level that the bounding box contains a face (and not a different object such as a tree). Default attribute.
- Parameters:
confidence- Confidence level that the bounding box contains a face (and not a different object such as a tree). Default attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
faceOccluded
FaceDetail.Builder faceOccluded(FaceOccluded faceOccluded)
FaceOccludedshould return "true" with a high confidence score if a detected face’s eyes, nose, and mouth are partially captured or if they are covered by masks, dark sunglasses, cell phones, hands, or other objects.FaceOccludedshould return "false" with a high confidence score if common occurrences that do not impact face verification are detected, such as eye glasses, lightly tinted sunglasses, strands of hair, and others.- Parameters:
faceOccluded-FaceOccludedshould return "true" with a high confidence score if a detected face’s eyes, nose, and mouth are partially captured or if they are covered by masks, dark sunglasses, cell phones, hands, or other objects.FaceOccludedshould return "false" with a high confidence score if common occurrences that do not impact face verification are detected, such as eye glasses, lightly tinted sunglasses, strands of hair, and others.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
faceOccluded
default FaceDetail.Builder faceOccluded(Consumer<FaceOccluded.Builder> faceOccluded)
This is a convenience method that creates an instance of theFaceOccludedshould return "true" with a high confidence score if a detected face’s eyes, nose, and mouth are partially captured or if they are covered by masks, dark sunglasses, cell phones, hands, or other objects.FaceOccludedshould return "false" with a high confidence score if common occurrences that do not impact face verification are detected, such as eye glasses, lightly tinted sunglasses, strands of hair, and others.FaceOccluded.Builderavoiding the need to create one manually viaFaceOccluded.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofaceOccluded(FaceOccluded).- Parameters:
faceOccluded- a consumer that will call methods onFaceOccluded.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
faceOccluded(FaceOccluded)
-
eyeDirection
FaceDetail.Builder eyeDirection(EyeDirection eyeDirection)
Indicates the direction the eyes are gazing in, as defined by pitch and yaw.
- Parameters:
eyeDirection- Indicates the direction the eyes are gazing in, as defined by pitch and yaw.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eyeDirection
default FaceDetail.Builder eyeDirection(Consumer<EyeDirection.Builder> eyeDirection)
Indicates the direction the eyes are gazing in, as defined by pitch and yaw.
This is a convenience method that creates an instance of theEyeDirection.Builderavoiding the need to create one manually viaEyeDirection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeyeDirection(EyeDirection).- Parameters:
eyeDirection- a consumer that will call methods onEyeDirection.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
eyeDirection(EyeDirection)
-
-