Interface SearchUsersByImageResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<SearchUsersByImageResponse.Builder,
,SearchUsersByImageResponse> RekognitionResponse.Builder
,SdkBuilder<SearchUsersByImageResponse.Builder,
,SearchUsersByImageResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
SearchUsersByImageResponse
-
Method Summary
Modifier and TypeMethodDescriptionfaceModelVersion
(String faceModelVersion) Version number of the face detection model associated with the input collection CollectionId.searchedFace
(Consumer<SearchedFaceDetails.Builder> searchedFace) A list of FaceDetail objects containing the BoundingBox for the largest face in image, as well as the confidence in the bounding box, that was searched for matches.searchedFace
(SearchedFaceDetails searchedFace) A list of FaceDetail objects containing the BoundingBox for the largest face in image, as well as the confidence in the bounding box, that was searched for matches.unsearchedFaces
(Collection<UnsearchedFace> unsearchedFaces) List of UnsearchedFace objects.unsearchedFaces
(Consumer<UnsearchedFace.Builder>... unsearchedFaces) List of UnsearchedFace objects.unsearchedFaces
(UnsearchedFace... unsearchedFaces) List of UnsearchedFace objects.userMatches
(Collection<UserMatch> userMatches) An array of UserID objects that matched the input face, along with the confidence in the match.userMatches
(Consumer<UserMatch.Builder>... userMatches) An array of UserID objects that matched the input face, along with the confidence in the match.userMatches
(UserMatch... userMatches) An array of UserID objects that matched the input face, along with the confidence in the match.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.rekognition.model.RekognitionResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
userMatches
An array of UserID objects that matched the input face, along with the confidence in the match. The returned structure will be empty if there are no matches. Returned if the SearchUsersByImageResponse action is successful.
- Parameters:
userMatches
- An array of UserID objects that matched the input face, along with the confidence in the match. The returned structure will be empty if there are no matches. Returned if the SearchUsersByImageResponse action is successful.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userMatches
An array of UserID objects that matched the input face, along with the confidence in the match. The returned structure will be empty if there are no matches. Returned if the SearchUsersByImageResponse action is successful.
- Parameters:
userMatches
- An array of UserID objects that matched the input face, along with the confidence in the match. The returned structure will be empty if there are no matches. Returned if the SearchUsersByImageResponse action is successful.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userMatches
An array of UserID objects that matched the input face, along with the confidence in the match. The returned structure will be empty if there are no matches. Returned if the SearchUsersByImageResponse action is successful.
This is a convenience method that creates an instance of theUserMatch.Builder
avoiding the need to create one manually viaUserMatch.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed touserMatches(List<UserMatch>)
.- Parameters:
userMatches
- a consumer that will call methods onUserMatch.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
faceModelVersion
Version number of the face detection model associated with the input collection CollectionId.
- Parameters:
faceModelVersion
- Version number of the face detection model associated with the input collection CollectionId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchedFace
A list of FaceDetail objects containing the BoundingBox for the largest face in image, as well as the confidence in the bounding box, that was searched for matches. If no valid face is detected in the image the response will contain no SearchedFace object.
- Parameters:
searchedFace
- A list of FaceDetail objects containing the BoundingBox for the largest face in image, as well as the confidence in the bounding box, that was searched for matches. If no valid face is detected in the image the response will contain no SearchedFace object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchedFace
default SearchUsersByImageResponse.Builder searchedFace(Consumer<SearchedFaceDetails.Builder> searchedFace) A list of FaceDetail objects containing the BoundingBox for the largest face in image, as well as the confidence in the bounding box, that was searched for matches. If no valid face is detected in the image the response will contain no SearchedFace object.
This is a convenience method that creates an instance of theSearchedFaceDetails.Builder
avoiding the need to create one manually viaSearchedFaceDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosearchedFace(SearchedFaceDetails)
.- Parameters:
searchedFace
- a consumer that will call methods onSearchedFaceDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unsearchedFaces
List of UnsearchedFace objects. Contains the face details infered from the specified image but not used for search. Contains reasons that describe why a face wasn't used for Search.
- Parameters:
unsearchedFaces
- List of UnsearchedFace objects. Contains the face details infered from the specified image but not used for search. Contains reasons that describe why a face wasn't used for Search.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unsearchedFaces
List of UnsearchedFace objects. Contains the face details infered from the specified image but not used for search. Contains reasons that describe why a face wasn't used for Search.
- Parameters:
unsearchedFaces
- List of UnsearchedFace objects. Contains the face details infered from the specified image but not used for search. Contains reasons that describe why a face wasn't used for Search.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unsearchedFaces
SearchUsersByImageResponse.Builder unsearchedFaces(Consumer<UnsearchedFace.Builder>... unsearchedFaces) List of UnsearchedFace objects. Contains the face details infered from the specified image but not used for search. Contains reasons that describe why a face wasn't used for Search.
This is a convenience method that creates an instance of theUnsearchedFace.Builder
avoiding the need to create one manually viaUnsearchedFace.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tounsearchedFaces(List<UnsearchedFace>)
.- Parameters:
unsearchedFaces
- a consumer that will call methods onUnsearchedFace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-