/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.rekognition.model; import java.io.Serializable; public class SearchUsersByImageResult implements Serializable { /** *
* 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. *
*/ private java.util.List* Version number of the face detection model associated with the input * collection CollectionId. *
*/ private String faceModelVersion; /** ** 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. *
*/ private SearchedFaceDetails searchedFace; /** ** 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. *
*/ private java.util.List* 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. *
* * @return* 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. *
*/ public java.util.List* 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. *
* * @param 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. *
*/ public void setUserMatches(java.util.Collection* 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 a reference to this object so that method calls can be chained * together. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public SearchUsersByImageResult withUserMatches(UserMatch... userMatches) { if (getUserMatches() == null) { this.userMatches = new java.util.ArrayList* 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 a reference to this object so that method calls can be chained * together. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public SearchUsersByImageResult withUserMatches(java.util.Collection* Version number of the face detection model associated with the input * collection CollectionId. *
* * @return* Version number of the face detection model associated with the * input collection CollectionId. *
*/ public String getFaceModelVersion() { return faceModelVersion; } /** ** Version number of the face detection model associated with the input * collection CollectionId. *
* * @param faceModelVersion* Version number of the face detection model associated with the * input collection CollectionId. *
*/ public void setFaceModelVersion(String faceModelVersion) { this.faceModelVersion = faceModelVersion; } /** ** Version number of the face detection model associated with the input * collection CollectionId. *
** Returns a reference to this object so that method calls can be chained * together. * * @param faceModelVersion
* Version number of the face detection model associated with the * input collection CollectionId. *
* @return A reference to this updated object so that method calls can be * chained together. */ public SearchUsersByImageResult withFaceModelVersion(String faceModelVersion) { this.faceModelVersion = faceModelVersion; return this; } /** ** 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. *
* * @return* 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. *
*/ public SearchedFaceDetails getSearchedFace() { return 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. *
* * @param 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. *
*/ public void setSearchedFace(SearchedFaceDetails searchedFace) { this.searchedFace = 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 a reference to this object so that method calls can be chained * together. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public SearchUsersByImageResult withSearchedFace(SearchedFaceDetails searchedFace) { this.searchedFace = searchedFace; return this; } /** ** 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. *
* * @return* 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. *
*/ public java.util.List* 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. *
* * @param 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. *
*/ public void setUnsearchedFaces(java.util.Collection* 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 a reference to this object so that method calls can be chained * together. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public SearchUsersByImageResult withUnsearchedFaces(UnsearchedFace... unsearchedFaces) { if (getUnsearchedFaces() == null) { this.unsearchedFaces = new java.util.ArrayList* 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 a reference to this object so that method calls can be chained * together. * * @param 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. *
* @return A reference to this updated object so that method calls can be * chained together. */ public SearchUsersByImageResult withUnsearchedFaces( java.util.Collection