@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 + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getVideoMetadata() == null) ? 0 : getVideoMetadata().hashCode()); hashCode = prime * hashCode + ((getPersons() == null) ? 0 : getPersons().hashCode()); return hashCode; }
/** * <p> * The current status of the face search job. * </p> * * @param jobStatus * The current status of the face search job. * @return Returns a reference to this object so that method calls can be chained together. * @see VideoJobStatus */ public GetFaceSearchResult withJobStatus(String jobStatus) { setJobStatus(jobStatus); 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 search results. * </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 search results. * @return Returns a reference to this object so that method calls can be chained together. */ public GetFaceSearchResult withNextToken(String nextToken) { setNextToken(nextToken); 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 + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getVideoMetadata() == null) ? 0 : getVideoMetadata().hashCode()); hashCode = prime * hashCode + ((getPersons() == null) ? 0 : getPersons().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 GetFaceSearchResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetFaceSearchResult getFaceSearchResult = new GetFaceSearchResult(); String name = reader.nextName(); if (name.equals("JobStatus")) { getFaceSearchResult.setJobStatus(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("StatusMessage")) { getFaceSearchResult.setStatusMessage(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("NextToken")) { getFaceSearchResult.setNextToken(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("VideoMetadata")) { getFaceSearchResult.setVideoMetadata(VideoMetadataJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Persons")) { getFaceSearchResult.setPersons(new ListUnmarshaller<PersonMatch>( PersonMatchJsonUnmarshaller.getInstance() getFaceSearchResult.setBillableDurationSeconds(IntegerJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("ErrorCode")) { getFaceSearchResult.setErrorCode(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Warnings")) { getFaceSearchResult.setWarnings(new ListUnmarshaller<Warning>( WarningJsonUnmarshaller.getInstance()
public GetFaceSearchResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetFaceSearchResult getFaceSearchResult = new GetFaceSearchResult(); if (context.testExpression("JobStatus", targetDepth)) { context.nextToken(); getFaceSearchResult.setJobStatus(context.getUnmarshaller(String.class).unmarshall(context)); getFaceSearchResult.setStatusMessage(context.getUnmarshaller(String.class).unmarshall(context)); getFaceSearchResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context)); getFaceSearchResult.setVideoMetadata(VideoMetadataJsonUnmarshaller.getInstance().unmarshall(context)); getFaceSearchResult.setPersons(new ListUnmarshaller<PersonMatch>(PersonMatchJsonUnmarshaller.getInstance()).unmarshall(context));
/** * <p> * An array of persons, <a>PersonMatch</a>, in the video whose face(s) match the face(s) in an Amazon Rekognition * collection. It also includes time information for when persons are matched in the video. You specify the input * collection in an initial call to <code>StartFaceSearch</code>. Each <code>Persons</code> element includes a time * the person was matched, face match details (<code>FaceMatches</code>) for matching faces in the collection, and * person information (<code>Person</code>) for the matched person. * </p> * * @param persons * An array of persons, <a>PersonMatch</a>, in the video whose face(s) match the face(s) in an Amazon * Rekognition collection. It also includes time information for when persons are matched in the video. You * specify the input collection in an initial call to <code>StartFaceSearch</code>. Each <code>Persons</code> * element includes a time the person was matched, face match details (<code>FaceMatches</code>) for matching * faces in the collection, and person information (<code>Person</code>) for the matched person. * @return Returns a reference to this object so that method calls can be chained together. */ public GetFaceSearchResult withPersons(java.util.Collection<PersonMatch> persons) { setPersons(persons); return this; }
/** * <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 GetFaceSearchResult withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); return this; }
if (getPersons() == null) { this.persons = new java.util.ArrayList<PersonMatch>(persons.length);
/** * 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 (getNextToken() != null) sb.append("NextToken: " + getNextToken() + ","); if (getVideoMetadata() != null) sb.append("VideoMetadata: " + getVideoMetadata() + ","); if (getPersons() != null) sb.append("Persons: " + getPersons() + ","); 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(); }
setPersons(new java.util.ArrayList<PersonMatch>(persons.length));
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.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == 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.getPersons() == null ^ this.getPersons() == null) return false; if (other.getPersons() != null && other.getPersons().equals(this.getPersons()) == false) return false; if (other.getBillableDurationSeconds() == null ^ this.getBillableDurationSeconds() == null) return false; if (other.getBillableDurationSeconds() != null && other.getBillableDurationSeconds().equals(this.getBillableDurationSeconds()) == false) return false;
return false; GetFaceSearchResult other = (GetFaceSearchResult) 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.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == 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.getPersons() == null ^ this.getPersons() == null) return false; if (other.getPersons() != null && other.getPersons().equals(this.getPersons()) == false) return false; return true;
setPersons(persons); 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 (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getVideoMetadata() != null) sb.append("VideoMetadata: ").append(getVideoMetadata()).append(","); if (getPersons() != null) sb.append("Persons: ").append(getPersons()); sb.append("}"); return sb.toString(); }