Interface SearchUsersResponse.Builder

    • Method Detail

      • userMatches

        SearchUsersResponse.Builder userMatches​(Collection<UserMatch> userMatches)

        An array of UserMatch objects that matched the input face along with the confidence in the match. Array will be empty if there are no matches.

        Parameters:
        userMatches - An array of UserMatch objects that matched the input face along with the confidence in the match. Array will be empty if there are no matches.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • userMatches

        SearchUsersResponse.Builder userMatches​(UserMatch... userMatches)

        An array of UserMatch objects that matched the input face along with the confidence in the match. Array will be empty if there are no matches.

        Parameters:
        userMatches - An array of UserMatch objects that matched the input face along with the confidence in the match. Array will be empty if there are no matches.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • userMatches

        SearchUsersResponse.Builder userMatches​(Consumer<UserMatch.Builder>... userMatches)

        An array of UserMatch objects that matched the input face along with the confidence in the match. Array will be empty if there are no matches.

        This is a convenience method that creates an instance of the UserMatch.Builder avoiding the need to create one manually via UserMatch.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #userMatches(List).

        Parameters:
        userMatches - a consumer that will call methods on UserMatch.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #userMatches(java.util.Collection)
      • faceModelVersion

        SearchUsersResponse.Builder faceModelVersion​(String faceModelVersion)

        Version number of the face detection model associated with the input CollectionId.

        Parameters:
        faceModelVersion - Version number of the face detection model associated with the input CollectionId.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • searchedFace

        SearchUsersResponse.Builder searchedFace​(SearchedFace searchedFace)

        Contains the ID of a face that was used to search for matches in a collection.

        Parameters:
        searchedFace - Contains the ID of a face that was used to search for matches in a collection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • searchedUser

        SearchUsersResponse.Builder searchedUser​(SearchedUser searchedUser)

        Contains the ID of the UserID that was used to search for matches in a collection.

        Parameters:
        searchedUser - Contains the ID of the UserID that was used to search for matches in a collection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.