/** * <p> * An array of faces that were detected in the image but weren't indexed. They weren't indexed because the quality * filter identified them as low quality, or the <code>MaxFaces</code> request parameter filtered them out. To use * the quality filter, you specify the <code>QualityFilter</code> request parameter. * </p> * * @param unindexedFaces * An array of faces that were detected in the image but weren't indexed. They weren't indexed because the * quality filter identified them as low quality, or the <code>MaxFaces</code> request parameter filtered * them out. To use the quality filter, you specify the <code>QualityFilter</code> request parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public IndexFacesResult withUnindexedFaces(java.util.Collection<UnindexedFace> unindexedFaces) { setUnindexedFaces(unindexedFaces); return this; }
/** * <p> * An array of faces that were detected in the image but weren't indexed. They weren't indexed because the quality * filter identified them as low quality, or the <code>MaxFaces</code> request parameter filtered them out. To use * the quality filter, you specify the <code>QualityFilter</code> request parameter. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setUnindexedFaces(java.util.Collection)} or {@link #withUnindexedFaces(java.util.Collection)} if you want * to override the existing values. * </p> * * @param unindexedFaces * An array of faces that were detected in the image but weren't indexed. They weren't indexed because the * quality filter identified them as low quality, or the <code>MaxFaces</code> request parameter filtered * them out. To use the quality filter, you specify the <code>QualityFilter</code> request parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public IndexFacesResult withUnindexedFaces(UnindexedFace... unindexedFaces) { if (this.unindexedFaces == null) { setUnindexedFaces(new java.util.ArrayList<UnindexedFace>(unindexedFaces.length)); } for (UnindexedFace ele : unindexedFaces) { this.unindexedFaces.add(ele); } return this; }
indexFacesResult.setUnindexedFaces(new ListUnmarshaller<UnindexedFace>(UnindexedFaceJsonUnmarshaller.getInstance()).unmarshall(context));