@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobStatus() == null) ? 0 : getJobStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getVideoMetadata() == null) ? 0 : getVideoMetadata().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getFaces() == null) ? 0 : getFaces().hashCode()); return hashCode; }
/** * <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> * The current status of the face detection job. * </p> * * @param jobStatus * The current status of the face detection job. * @return Returns a reference to this object so that method calls can be chained together. * @see VideoJobStatus */ public GetFaceDetectionResult withJobStatus(String jobStatus) { setJobStatus(jobStatus); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobStatus() == null) ? 0 : getJobStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getVideoMetadata() == null) ? 0 : getVideoMetadata().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getFaces() == null) ? 0 : getFaces().hashCode()); hashCode = prime * hashCode + ((getBillableDurationSeconds() == null) ? 0 : getBillableDurationSeconds() .hashCode()); hashCode = prime * hashCode + ((getErrorCode() == null) ? 0 : getErrorCode().hashCode()); hashCode = prime * hashCode + ((getWarnings() == null) ? 0 : getWarnings().hashCode()); return hashCode; }
public GetFaceDetectionResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetFaceDetectionResult getFaceDetectionResult = new GetFaceDetectionResult(); String name = reader.nextName(); if (name.equals("JobStatus")) { getFaceDetectionResult.setJobStatus(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("StatusMessage")) { getFaceDetectionResult.setStatusMessage(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("VideoMetadata")) { getFaceDetectionResult.setVideoMetadata(VideoMetadataJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("NextToken")) { getFaceDetectionResult.setNextToken(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Faces")) { getFaceDetectionResult.setFaces(new ListUnmarshaller<FaceDetection>( FaceDetectionJsonUnmarshaller.getInstance() getFaceDetectionResult.setBillableDurationSeconds(IntegerJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("ErrorCode")) { getFaceDetectionResult.setErrorCode(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Warnings")) { getFaceDetectionResult.setWarnings(new ListUnmarshaller<Warning>( WarningJsonUnmarshaller.getInstance()
public GetFaceDetectionResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetFaceDetectionResult getFaceDetectionResult = new GetFaceDetectionResult(); if (context.testExpression("JobStatus", targetDepth)) { context.nextToken(); getFaceDetectionResult.setJobStatus(context.getUnmarshaller(String.class).unmarshall(context)); getFaceDetectionResult.setStatusMessage(context.getUnmarshaller(String.class).unmarshall(context)); getFaceDetectionResult.setVideoMetadata(VideoMetadataJsonUnmarshaller.getInstance().unmarshall(context)); getFaceDetectionResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context)); getFaceDetectionResult.setFaces(new ListUnmarshaller<FaceDetection>(FaceDetectionJsonUnmarshaller.getInstance()).unmarshall(context));
/** * <p> * If the job fails, <code>StatusMessage</code> provides a descriptive error message. * </p> * * @param statusMessage * If the job fails, <code>StatusMessage</code> provides a descriptive error message. * @return Returns a reference to this object so that method calls can be chained together. */ public GetFaceDetectionResult withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); return this; }
/** * <p> * If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent request to * retrieve the next set of faces. * </p> * * @param nextToken * If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent * request to retrieve the next set of faces. * @return Returns a reference to this object so that method calls can be chained together. */ public GetFaceDetectionResult withNextToken(String nextToken) { setNextToken(nextToken); 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> * 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(FaceDetection... faces) { if (getFaces() == null) { this.faces = new java.util.ArrayList<FaceDetection>(faces.length); } for (FaceDetection value : faces) { this.faces.add(value); } return this; }
if (other.getJobStatus() == null ^ this.getJobStatus() == null) return false; if (other.getJobStatus() != null && other.getJobStatus().equals(this.getJobStatus()) == false) return false; if (other.getStatusMessage() == null ^ this.getStatusMessage() == null) return false; if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false) return false; if (other.getVideoMetadata() == null ^ this.getVideoMetadata() == null) return false; if (other.getVideoMetadata() != null && other.getVideoMetadata().equals(this.getVideoMetadata()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getFaces() == null ^ this.getFaces() == null) return false; if (other.getFaces() != null && other.getFaces().equals(this.getFaces()) == false) return false; if (other.getBillableDurationSeconds() == null ^ this.getBillableDurationSeconds() == null) return false; if (other.getBillableDurationSeconds() != null && other.getBillableDurationSeconds().equals(this.getBillableDurationSeconds()) == false) return false;
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getJobStatus() != null) sb.append("JobStatus: " + getJobStatus() + ","); if (getStatusMessage() != null) sb.append("StatusMessage: " + getStatusMessage() + ","); if (getVideoMetadata() != null) sb.append("VideoMetadata: " + getVideoMetadata() + ","); if (getNextToken() != null) sb.append("NextToken: " + getNextToken() + ","); if (getFaces() != null) sb.append("Faces: " + getFaces() + ","); if (getBillableDurationSeconds() != null) sb.append("BillableDurationSeconds: " + getBillableDurationSeconds() + ","); if (getErrorCode() != null) sb.append("ErrorCode: " + getErrorCode() + ","); if (getWarnings() != null) sb.append("Warnings: " + getWarnings()); sb.append("}"); return sb.toString(); }
return false; GetFaceDetectionResult other = (GetFaceDetectionResult) obj; if (other.getJobStatus() == null ^ this.getJobStatus() == null) return false; if (other.getJobStatus() != null && other.getJobStatus().equals(this.getJobStatus()) == false) return false; if (other.getStatusMessage() == null ^ this.getStatusMessage() == null) return false; if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false) return false; if (other.getVideoMetadata() == null ^ this.getVideoMetadata() == null) return false; if (other.getVideoMetadata() != null && other.getVideoMetadata().equals(this.getVideoMetadata()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getFaces() == null ^ this.getFaces() == null) return false; if (other.getFaces() != null && other.getFaces().equals(this.getFaces()) == false) return false; return true;
/** * <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; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getJobStatus() != null) sb.append("JobStatus: ").append(getJobStatus()).append(","); if (getStatusMessage() != null) sb.append("StatusMessage: ").append(getStatusMessage()).append(","); if (getVideoMetadata() != null) sb.append("VideoMetadata: ").append(getVideoMetadata()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getFaces() != null) sb.append("Faces: ").append(getFaces()); sb.append("}"); return sb.toString(); }
/** * <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; }