@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getImageDigest() == null) ? 0 : getImageDigest().hashCode()); hashCode = prime * hashCode + ((getImageTag() == null) ? 0 : getImageTag().hashCode()); return hashCode; }
/** * <p> * The <code>sha256</code> digest of the image manifest. * </p> * * @param imageDigest * The <code>sha256</code> digest of the image manifest. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageIdentifier withImageDigest(String imageDigest) { setImageDigest(imageDigest); return this; }
/** * <p> * The tag used for the image. * </p> * * @param imageTag * The tag used for the image. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageIdentifier withImageTag(String imageTag) { setImageTag(imageTag); return this; }
public ImageIdentifier unmarshall(JsonUnmarshallerContext context) throws Exception { ImageIdentifier imageIdentifier = new ImageIdentifier(); if (context.testExpression("imageDigest", targetDepth)) { context.nextToken(); imageIdentifier.setImageDigest(context.getUnmarshaller(String.class).unmarshall(context)); imageIdentifier.setImageTag(context.getUnmarshaller(String.class).unmarshall(context));
ImageIdentifier imageIdentifier = new ImageIdentifier(); imageIdentifier.setImageDigest(imageId.getSha()); imageIdentifiers.add(imageIdentifier); if ( imageIdentifiers.size() >= pageIterator.getPageSize() ) {
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getImageId() == null) ? 0 : getImageId().hashCode()); hashCode = prime * hashCode + ((getFailureCode() == null) ? 0 : getFailureCode().hashCode()); hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ImageFailure == false) return false; ImageFailure other = (ImageFailure) obj; if (other.getImageId() == null ^ this.getImageId() == null) return false; if (other.getImageId() != null && other.getImageId().equals(this.getImageId()) == false) return false; if (other.getFailureCode() == null ^ this.getFailureCode() == null) return false; if (other.getFailureCode() != null && other.getFailureCode().equals(this.getFailureCode()) == false) return false; if (other.getFailureReason() == null ^ this.getFailureReason() == null) return false; if (other.getFailureReason() != null && other.getFailureReason().equals(this.getFailureReason()) == false) return false; return true; }
public ImageIdentifier unmarshall(JsonUnmarshallerContext context) throws Exception { ImageIdentifier imageIdentifier = new ImageIdentifier(); if (context.testExpression("imageDigest", targetDepth)) { context.nextToken(); imageIdentifier.setImageDigest(context.getUnmarshaller(String.class).unmarshall(context)); imageIdentifier.setImageTag(context.getUnmarshaller(String.class).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRegistryId() == null) ? 0 : getRegistryId().hashCode()); hashCode = prime * hashCode + ((getRepositoryName() == null) ? 0 : getRepositoryName().hashCode()); hashCode = prime * hashCode + ((getImageId() == null) ? 0 : getImageId().hashCode()); hashCode = prime * hashCode + ((getImageManifest() == null) ? 0 : getImageManifest().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Image == false) return false; Image other = (Image) obj; if (other.getRegistryId() == null ^ this.getRegistryId() == null) return false; if (other.getRegistryId() != null && other.getRegistryId().equals(this.getRegistryId()) == false) return false; if (other.getRepositoryName() == null ^ this.getRepositoryName() == null) return false; if (other.getRepositoryName() != null && other.getRepositoryName().equals(this.getRepositoryName()) == false) return false; if (other.getImageId() == null ^ this.getImageId() == null) return false; if (other.getImageId() != null && other.getImageId().equals(this.getImageId()) == false) return false; if (other.getImageManifest() == null ^ this.getImageManifest() == null) return false; if (other.getImageManifest() != null && other.getImageManifest().equals(this.getImageManifest()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ImageIdentifier == false) return false; ImageIdentifier other = (ImageIdentifier) obj; if (other.getImageDigest() == null ^ this.getImageDigest() == null) return false; if (other.getImageDigest() != null && other.getImageDigest().equals(this.getImageDigest()) == false) return false; if (other.getImageTag() == null ^ this.getImageTag() == null) return false; if (other.getImageTag() != null && other.getImageTag().equals(this.getImageTag()) == false) return false; return true; }
/** * <p> * The <code>sha256</code> digest of the image manifest. * </p> * * @param imageDigest * The <code>sha256</code> digest of the image manifest. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageIdentifier withImageDigest(String imageDigest) { setImageDigest(imageDigest); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getImageId() == null) ? 0 : getImageId().hashCode()); hashCode = prime * hashCode + ((getFailureCode() == null) ? 0 : getFailureCode().hashCode()); hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ImageFailure == false) return false; ImageFailure other = (ImageFailure) obj; if (other.getImageId() == null ^ this.getImageId() == null) return false; if (other.getImageId() != null && other.getImageId().equals(this.getImageId()) == false) return false; if (other.getFailureCode() == null ^ this.getFailureCode() == null) return false; if (other.getFailureCode() != null && other.getFailureCode().equals(this.getFailureCode()) == false) return false; if (other.getFailureReason() == null ^ this.getFailureReason() == null) return false; if (other.getFailureReason() != null && other.getFailureReason().equals(this.getFailureReason()) == false) return false; return true; }
/** * <p> * The tag used for the image. * </p> * * @param imageTag * The tag used for the image. * @return Returns a reference to this object so that method calls can be chained together. */ public ImageIdentifier withImageTag(String imageTag) { setImageTag(imageTag); 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 (getImageDigest() != null) sb.append("ImageDigest: ").append(getImageDigest()).append(","); if (getImageTag() != null) sb.append("ImageTag: ").append(getImageTag()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRegistryId() == null) ? 0 : getRegistryId().hashCode()); hashCode = prime * hashCode + ((getRepositoryName() == null) ? 0 : getRepositoryName().hashCode()); hashCode = prime * hashCode + ((getImageId() == null) ? 0 : getImageId().hashCode()); hashCode = prime * hashCode + ((getImageManifest() == null) ? 0 : getImageManifest().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Image == false) return false; Image other = (Image) obj; if (other.getRegistryId() == null ^ this.getRegistryId() == null) return false; if (other.getRegistryId() != null && other.getRegistryId().equals(this.getRegistryId()) == false) return false; if (other.getRepositoryName() == null ^ this.getRepositoryName() == null) return false; if (other.getRepositoryName() != null && other.getRepositoryName().equals(this.getRepositoryName()) == false) return false; if (other.getImageId() == null ^ this.getImageId() == null) return false; if (other.getImageId() != null && other.getImageId().equals(this.getImageId()) == false) return false; if (other.getImageManifest() == null ^ this.getImageManifest() == null) return false; if (other.getImageManifest() != null && other.getImageManifest().equals(this.getImageManifest()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(ImageIdentifier imageIdentifier, ProtocolMarshaller protocolMarshaller) { if (imageIdentifier == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(imageIdentifier.getImageDigest(), IMAGEDIGEST_BINDING); protocolMarshaller.marshall(imageIdentifier.getImageTag(), IMAGETAG_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getImageDigest() == null) ? 0 : getImageDigest().hashCode()); hashCode = prime * hashCode + ((getImageTag() == null) ? 0 : getImageTag().hashCode()); return hashCode; }