/** * <p> * An array of faces detected in the video. Each element contains a detected face's details and the time, in * milliseconds from the start of the video, the face was detected. * </p> * * @param faces * An array of faces detected in the video. Each element contains a detected face's details and the time, in * milliseconds from the start of the video, the face was detected. * @return Returns a reference to this object so that method calls can be chained together. */ public GetFaceDetectionResult withFaces(java.util.Collection<FaceDetection> faces) { setFaces(faces); return this; }
/** * <p> * An array of faces detected in the video. Each element contains a detected face's details and the time, in * milliseconds from the start of the video, the face was detected. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setFaces(java.util.Collection)} or {@link #withFaces(java.util.Collection)} if you want to override the * existing values. * </p> * * @param faces * An array of faces detected in the video. Each element contains a detected face's details and the time, in * milliseconds from the start of the video, the face was detected. * @return Returns a reference to this object so that method calls can be chained together. */ public GetFaceDetectionResult withFaces(FaceDetection... faces) { if (this.faces == null) { setFaces(new java.util.ArrayList<FaceDetection>(faces.length)); } for (FaceDetection ele : faces) { this.faces.add(ele); } return this; }
getFaceDetectionResult.setFaces(new ListUnmarshaller<FaceDetection>(FaceDetectionJsonUnmarshaller.getInstance()).unmarshall(context));
/** * <p> * An array of faces detected in the video. Each element contains a detected * face's details and the time, in milliseconds from the start of the video, * the face was detected. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param faces <p> * An array of faces detected in the video. Each element contains * a detected face's details and the time, in milliseconds from * the start of the video, the face was detected. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public GetFaceDetectionResult withFaces(java.util.Collection<FaceDetection> faces) { setFaces(faces); return this; }
.unmarshall(context)); } else if (name.equals("Faces")) { getFaceDetectionResult.setFaces(new ListUnmarshaller<FaceDetection>( FaceDetectionJsonUnmarshaller.getInstance()