Interface FaceDetail.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<FaceDetail.Builder,,- FaceDetail> - SdkBuilder<FaceDetail.Builder,,- FaceDetail> - SdkPojo
- Enclosing class:
- FaceDetail
- 
Method SummaryModifier and TypeMethodDescriptiondefault FaceDetail.BuilderageRange(Consumer<AgeRange.Builder> ageRange) The estimated age range, in years, for the face.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.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.boundingBox(BoundingBox boundingBox) Bounding box of the face.confidence(Float confidence) Confidence level that the bounding box contains a face (and not a different object such as a tree).emotions(Collection<Emotion> emotions) The emotions that appear to be expressed on the face, and the confidence level in the determination.emotions(Consumer<Emotion.Builder>... emotions) The emotions that appear to be expressed on the face, and the confidence level in the determination.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.eyeDirection(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.eyeglasses(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.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.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.default FaceDetail.Buildergender(Consumer<Gender.Builder> gender) The predicted gender of a detected face.The predicted gender of a detected face.landmarks(Collection<Landmark> landmarks) Indicates the location of landmarks on the face.landmarks(Consumer<Landmark.Builder>... landmarks) Indicates the location of landmarks on the face.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.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.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.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.quality(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.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.sunglasses(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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
boundingBoxBounding 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.
 
- 
boundingBoxBounding 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 on- BoundingBox.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
ageRangeThe 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.
 
- 
ageRangeThe 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 on- AgeRange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
smileIndicates 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.
 
- 
smileIndicates 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 on- Smile.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
eyeglassesIndicates 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.
 
- 
eyeglassesIndicates 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 on- Eyeglasses.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
sunglassesIndicates 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.
 
- 
sunglassesIndicates 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 on- Sunglasses.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
genderThe 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.
 
- 
genderThe 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 on- Gender.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
beardIndicates 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.
 
- 
beardIndicates 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 on- Beard.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
mustacheIndicates 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.
 
- 
mustacheIndicates 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 on- Mustache.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
eyesOpenIndicates 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.
 
- 
eyesOpenIndicates 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 on- EyeOpen.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
mouthOpenIndicates 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.
 
- 
mouthOpenIndicates 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 on- MouthOpen.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
emotionsThe 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.
 
- 
emotionsThe 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.
 
- 
emotionsThe 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 toemotions(List<Emotion>).- Parameters:
- emotions- a consumer that will call methods on- Emotion.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
landmarksIndicates 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.
 
- 
landmarksIndicates 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.
 
- 
landmarksIndicates 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 tolandmarks(List<Landmark>).- Parameters:
- landmarks- a consumer that will call methods on- Landmark.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
poseIndicates 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.
 
- 
poseIndicates 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 on- Pose.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
qualityIdentifies 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.
 
- 
qualityIdentifies 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 on- ImageQuality.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
confidenceConfidence 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.
 
- 
faceOccludedFaceOccludedshould 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
 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 on- FaceOccluded.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
eyeDirectionIndicates 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.
 
- 
eyeDirectionIndicates 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 on- EyeDirection.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-