@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 + ((getCelebrities() == null) ? 0 : getCelebrities().hashCode()); return hashCode; }
/** * <p> * Array of celebrities recognized in the video. * </p> * * @param celebrities * Array of celebrities recognized in the video. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCelebrityRecognitionResult withCelebrities(java.util.Collection<CelebrityRecognition> celebrities) { setCelebrities(celebrities); return this; }
/** * <p> * The current status of the celebrity recognition job. * </p> * * @param jobStatus * The current status of the celebrity recognition job. * @return Returns a reference to this object so that method calls can be chained together. * @see VideoJobStatus */ public GetCelebrityRecognitionResult 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 + ((getCelebrities() == null) ? 0 : getCelebrities().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 GetCelebrityRecognitionResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetCelebrityRecognitionResult getCelebrityRecognitionResult = new GetCelebrityRecognitionResult(); String name = reader.nextName(); if (name.equals("JobStatus")) { getCelebrityRecognitionResult.setJobStatus(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("StatusMessage")) { getCelebrityRecognitionResult.setStatusMessage(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("VideoMetadata")) { getCelebrityRecognitionResult.setVideoMetadata(VideoMetadataJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("NextToken")) { getCelebrityRecognitionResult.setNextToken(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Celebrities")) { getCelebrityRecognitionResult .setCelebrities(new ListUnmarshaller<CelebrityRecognition>( CelebrityRecognitionJsonUnmarshaller.getInstance() getCelebrityRecognitionResult.setBillableDurationSeconds(IntegerJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("ErrorCode")) { getCelebrityRecognitionResult.setErrorCode(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Warnings")) {
public GetCelebrityRecognitionResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetCelebrityRecognitionResult getCelebrityRecognitionResult = new GetCelebrityRecognitionResult(); if (context.testExpression("JobStatus", targetDepth)) { context.nextToken(); getCelebrityRecognitionResult.setJobStatus(context.getUnmarshaller(String.class).unmarshall(context)); getCelebrityRecognitionResult.setStatusMessage(context.getUnmarshaller(String.class).unmarshall(context)); getCelebrityRecognitionResult.setVideoMetadata(VideoMetadataJsonUnmarshaller.getInstance().unmarshall(context)); getCelebrityRecognitionResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context)); getCelebrityRecognitionResult.setCelebrities(new ListUnmarshaller<CelebrityRecognition>(CelebrityRecognitionJsonUnmarshaller.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 GetCelebrityRecognitionResult withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); return this; }
/** * <p> * If the response is truncated, Amazon Rekognition Video returns this token that you can use in the subsequent * request to retrieve the next set of celebrities. * </p> * * @param nextToken * If the response is truncated, Amazon Rekognition Video returns this token that you can use in the * subsequent request to retrieve the next set of celebrities. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCelebrityRecognitionResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
/** * <p> * Array of celebrities recognized in the video. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param celebrities <p> * Array of celebrities recognized in the video. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public GetCelebrityRecognitionResult withCelebrities(CelebrityRecognition... celebrities) { if (getCelebrities() == null) { this.celebrities = new java.util.ArrayList<CelebrityRecognition>(celebrities.length); } for (CelebrityRecognition value : celebrities) { this.celebrities.add(value); } return this; }
/** * 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 (getCelebrities() != null) sb.append("Celebrities: " + getCelebrities() + ","); 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(); }
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.getCelebrities() == null ^ this.getCelebrities() == null) return false; if (other.getCelebrities() != null && other.getCelebrities().equals(this.getCelebrities()) == false) return false; if (other.getBillableDurationSeconds() == null ^ this.getBillableDurationSeconds() == null) return false; if (other.getBillableDurationSeconds() != null && other.getBillableDurationSeconds().equals(this.getBillableDurationSeconds()) == false)
return false; GetCelebrityRecognitionResult other = (GetCelebrityRecognitionResult) 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.getCelebrities() == null ^ this.getCelebrities() == null) return false; if (other.getCelebrities() != null && other.getCelebrities().equals(this.getCelebrities()) == false) return false; return true;
/** * <p> * Array of celebrities recognized in the video. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setCelebrities(java.util.Collection)} or {@link #withCelebrities(java.util.Collection)} if you want to * override the existing values. * </p> * * @param celebrities * Array of celebrities recognized in the video. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCelebrityRecognitionResult withCelebrities(CelebrityRecognition... celebrities) { if (this.celebrities == null) { setCelebrities(new java.util.ArrayList<CelebrityRecognition>(celebrities.length)); } for (CelebrityRecognition ele : celebrities) { this.celebrities.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 (getCelebrities() != null) sb.append("Celebrities: ").append(getCelebrities()); sb.append("}"); return sb.toString(); }
/** * <p> * Array of celebrities recognized in the video. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param celebrities <p> * Array of celebrities recognized in the video. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public GetCelebrityRecognitionResult withCelebrities( java.util.Collection<CelebrityRecognition> celebrities) { setCelebrities(celebrities); return this; }