@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatusCode() == null) ? 0 : getStatusCode().hashCode()); hashCode = prime * hashCode + ((getCollectionArn() == null) ? 0 : getCollectionArn().hashCode()); hashCode = prime * hashCode + ((getFaceModelVersion() == null) ? 0 : getFaceModelVersion().hashCode()); return hashCode; }
/** * <p> * Amazon Resource Name (ARN) of the collection. You can use this to manage permissions on your resources. * </p> * * @param collectionArn * Amazon Resource Name (ARN) of the collection. You can use this to manage permissions on your resources. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCollectionResult withCollectionArn(String collectionArn) { setCollectionArn(collectionArn); return this; }
/** * <p> * Version number of the face detection model associated with the collection you are creating. * </p> * * @param faceModelVersion * Version number of the face detection model associated with the collection you are creating. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCollectionResult withFaceModelVersion(String faceModelVersion) { setFaceModelVersion(faceModelVersion); return this; }
public CreateCollectionResult unmarshall(JsonUnmarshallerContext context) throws Exception { CreateCollectionResult createCollectionResult = new CreateCollectionResult(); if (context.testExpression("StatusCode", targetDepth)) { context.nextToken(); createCollectionResult.setStatusCode(context.getUnmarshaller(Integer.class).unmarshall(context)); createCollectionResult.setCollectionArn(context.getUnmarshaller(String.class).unmarshall(context)); createCollectionResult.setFaceModelVersion(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * HTTP status code indicating the result of the operation. * </p> * * @param statusCode * HTTP status code indicating the result of the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCollectionResult withStatusCode(Integer statusCode) { setStatusCode(statusCode); return this; }
public CreateCollectionResult unmarshall(JsonUnmarshallerContext context) throws Exception { CreateCollectionResult createCollectionResult = new CreateCollectionResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("StatusCode")) { createCollectionResult.setStatusCode(IntegerJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("CollectionArn")) { createCollectionResult.setCollectionArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("FaceModelVersion")) { createCollectionResult.setFaceModelVersion(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return createCollectionResult; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateCollectionResult == false) return false; CreateCollectionResult other = (CreateCollectionResult) obj; if (other.getStatusCode() == null ^ this.getStatusCode() == null) return false; if (other.getStatusCode() != null && other.getStatusCode().equals(this.getStatusCode()) == false) return false; if (other.getCollectionArn() == null ^ this.getCollectionArn() == null) return false; if (other.getCollectionArn() != null && other.getCollectionArn().equals(this.getCollectionArn()) == false) return false; if (other.getFaceModelVersion() == null ^ this.getFaceModelVersion() == null) return false; if (other.getFaceModelVersion() != null && other.getFaceModelVersion().equals(this.getFaceModelVersion()) == false) return false; return true; }
/** * 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 (getStatusCode() != null) sb.append("StatusCode: ").append(getStatusCode()).append(","); if (getCollectionArn() != null) sb.append("CollectionArn: ").append(getCollectionArn()).append(","); if (getFaceModelVersion() != null) sb.append("FaceModelVersion: ").append(getFaceModelVersion()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatusCode() == null) ? 0 : getStatusCode().hashCode()); hashCode = prime * hashCode + ((getCollectionArn() == null) ? 0 : getCollectionArn().hashCode()); hashCode = prime * hashCode + ((getFaceModelVersion() == null) ? 0 : getFaceModelVersion().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateCollectionResult == false) return false; CreateCollectionResult other = (CreateCollectionResult) obj; if (other.getStatusCode() == null ^ this.getStatusCode() == null) return false; if (other.getStatusCode() != null && other.getStatusCode().equals(this.getStatusCode()) == false) return false; if (other.getCollectionArn() == null ^ this.getCollectionArn() == null) return false; if (other.getCollectionArn() != null && other.getCollectionArn().equals(this.getCollectionArn()) == false) return false; if (other.getFaceModelVersion() == null ^ this.getFaceModelVersion() == null) return false; if (other.getFaceModelVersion() != null && other.getFaceModelVersion().equals(this.getFaceModelVersion()) == false) return false; return true; } }
/** * 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 (getStatusCode() != null) sb.append("StatusCode: " + getStatusCode() + ","); if (getCollectionArn() != null) sb.append("CollectionArn: " + getCollectionArn() + ","); if (getFaceModelVersion() != null) sb.append("FaceModelVersion: " + getFaceModelVersion()); sb.append("}"); return sb.toString(); }