/** * <p> * An array of faces in the target image that match the source image face. Each <code>CompareFacesMatch</code> * object provides the bounding box, the confidence level that the bounding box contains a face, and the similarity * score for the face in the bounding box and the face in the source image. * </p> * * @param faceMatches * An array of faces in the target image that match the source image face. Each * <code>CompareFacesMatch</code> object provides the bounding box, the confidence level that the bounding * box contains a face, and the similarity score for the face in the bounding box and the face in the source * image. * @return Returns a reference to this object so that method calls can be chained together. */ public CompareFacesResult withFaceMatches(java.util.Collection<CompareFacesMatch> faceMatches) { setFaceMatches(faceMatches); return this; }
/** * <p> * An array of faces in the target image that match the source image face. Each <code>CompareFacesMatch</code> * object provides the bounding box, the confidence level that the bounding box contains a face, and the similarity * score for the face in the bounding box and the face in the source image. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setFaceMatches(java.util.Collection)} or {@link #withFaceMatches(java.util.Collection)} if you want to * override the existing values. * </p> * * @param faceMatches * An array of faces in the target image that match the source image face. Each * <code>CompareFacesMatch</code> object provides the bounding box, the confidence level that the bounding * box contains a face, and the similarity score for the face in the bounding box and the face in the source * image. * @return Returns a reference to this object so that method calls can be chained together. */ public CompareFacesResult withFaceMatches(CompareFacesMatch... faceMatches) { if (this.faceMatches == null) { setFaceMatches(new java.util.ArrayList<CompareFacesMatch>(faceMatches.length)); } for (CompareFacesMatch ele : faceMatches) { this.faceMatches.add(ele); } return this; }
compareFacesResult.setFaceMatches(new ListUnmarshaller<CompareFacesMatch>(CompareFacesMatchJsonUnmarshaller.getInstance()) .unmarshall(context));
/** * <p> * An array of faces in the target image that match the source image face. * Each <code>CompareFacesMatch</code> object provides the bounding box, the * confidence level that the bounding box contains a face, and the * similarity score for the face in the bounding box and the face in the * source image. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param faceMatches <p> * An array of faces in the target image that match the source * image face. Each <code>CompareFacesMatch</code> object * provides the bounding box, the confidence level that the * bounding box contains a face, and the similarity score for the * face in the bounding box and the face in the source image. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public CompareFacesResult withFaceMatches(java.util.Collection<CompareFacesMatch> faceMatches) { setFaceMatches(faceMatches); return this; }
.unmarshall(context)); } else if (name.equals("FaceMatches")) { compareFacesResult.setFaceMatches(new ListUnmarshaller<CompareFacesMatch>( CompareFacesMatchJsonUnmarshaller.getInstance()