/** * 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 (getImageTags() != null) sb.append("ImageTags: ").append(getImageTags()).append(","); if (getImageDigest() != null) sb.append("ImageDigest: ").append(getImageDigest()).append(","); if (getImagePushedAt() != null) sb.append("ImagePushedAt: ").append(getImagePushedAt()).append(","); if (getAction() != null) sb.append("Action: ").append(getAction()).append(","); if (getAppliedRulePriority() != null) sb.append("AppliedRulePriority: ").append(getAppliedRulePriority()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getImageTags() == null) ? 0 : getImageTags().hashCode()); hashCode = prime * hashCode + ((getImageDigest() == null) ? 0 : getImageDigest().hashCode()); hashCode = prime * hashCode + ((getImagePushedAt() == null) ? 0 : getImagePushedAt().hashCode()); hashCode = prime * hashCode + ((getAction() == null) ? 0 : getAction().hashCode()); hashCode = prime * hashCode + ((getAppliedRulePriority() == null) ? 0 : getAppliedRulePriority().hashCode()); return hashCode; }
return false; LifecyclePolicyPreviewResult other = (LifecyclePolicyPreviewResult) obj; if (other.getImageTags() == null ^ this.getImageTags() == null) return false; if (other.getImageTags() != null && other.getImageTags().equals(this.getImageTags()) == false) return false; if (other.getImageDigest() == null ^ this.getImageDigest() == null)
/** * Marshall the given parameter object. */ public void marshall(LifecyclePolicyPreviewResult lifecyclePolicyPreviewResult, ProtocolMarshaller protocolMarshaller) { if (lifecyclePolicyPreviewResult == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(lifecyclePolicyPreviewResult.getImageTags(), IMAGETAGS_BINDING); protocolMarshaller.marshall(lifecyclePolicyPreviewResult.getImageDigest(), IMAGEDIGEST_BINDING); protocolMarshaller.marshall(lifecyclePolicyPreviewResult.getImagePushedAt(), IMAGEPUSHEDAT_BINDING); protocolMarshaller.marshall(lifecyclePolicyPreviewResult.getAction(), ACTION_BINDING); protocolMarshaller.marshall(lifecyclePolicyPreviewResult.getAppliedRulePriority(), APPLIEDRULEPRIORITY_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * 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 (getImageTags() != null) sb.append("ImageTags: ").append(getImageTags()).append(","); if (getImageDigest() != null) sb.append("ImageDigest: ").append(getImageDigest()).append(","); if (getImagePushedAt() != null) sb.append("ImagePushedAt: ").append(getImagePushedAt()).append(","); if (getAction() != null) sb.append("Action: ").append(getAction()).append(","); if (getAppliedRulePriority() != null) sb.append("AppliedRulePriority: ").append(getAppliedRulePriority()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getImageTags() == null) ? 0 : getImageTags().hashCode()); hashCode = prime * hashCode + ((getImageDigest() == null) ? 0 : getImageDigest().hashCode()); hashCode = prime * hashCode + ((getImagePushedAt() == null) ? 0 : getImagePushedAt().hashCode()); hashCode = prime * hashCode + ((getAction() == null) ? 0 : getAction().hashCode()); hashCode = prime * hashCode + ((getAppliedRulePriority() == null) ? 0 : getAppliedRulePriority().hashCode()); return hashCode; }
/** * Marshall the given parameter object. */ public void marshall(LifecyclePolicyPreviewResult lifecyclePolicyPreviewResult, ProtocolMarshaller protocolMarshaller) { if (lifecyclePolicyPreviewResult == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(lifecyclePolicyPreviewResult.getImageTags(), IMAGETAGS_BINDING); protocolMarshaller.marshall(lifecyclePolicyPreviewResult.getImageDigest(), IMAGEDIGEST_BINDING); protocolMarshaller.marshall(lifecyclePolicyPreviewResult.getImagePushedAt(), IMAGEPUSHEDAT_BINDING); protocolMarshaller.marshall(lifecyclePolicyPreviewResult.getAction(), ACTION_BINDING); protocolMarshaller.marshall(lifecyclePolicyPreviewResult.getAppliedRulePriority(), APPLIEDRULEPRIORITY_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
return false; LifecyclePolicyPreviewResult other = (LifecyclePolicyPreviewResult) obj; if (other.getImageTags() == null ^ this.getImageTags() == null) return false; if (other.getImageTags() != null && other.getImageTags().equals(this.getImageTags()) == false) return false; if (other.getImageDigest() == null ^ this.getImageDigest() == null)