@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; }
/** * <p> * The type of action to be taken. * </p> * * @param action * The type of action to be taken. * @return Returns a reference to this object so that method calls can be chained together. */ public LifecyclePolicyPreviewResult withAction(LifecyclePolicyRuleAction action) { setAction(action); return this; }
/** * <p> * The priority of the applied rule. * </p> * * @param appliedRulePriority * The priority of the applied rule. * @return Returns a reference to this object so that method calls can be chained together. */ public LifecyclePolicyPreviewResult withAppliedRulePriority(Integer appliedRulePriority) { setAppliedRulePriority(appliedRulePriority); return this; }
public LifecyclePolicyPreviewResult unmarshall(JsonUnmarshallerContext context) throws Exception { LifecyclePolicyPreviewResult lifecyclePolicyPreviewResult = new LifecyclePolicyPreviewResult(); if (context.testExpression("imageTags", targetDepth)) { context.nextToken(); lifecyclePolicyPreviewResult.setImageTags(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context)); lifecyclePolicyPreviewResult.setImageDigest(context.getUnmarshaller(String.class).unmarshall(context)); lifecyclePolicyPreviewResult.setImagePushedAt(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); lifecyclePolicyPreviewResult.setAction(LifecyclePolicyRuleActionJsonUnmarshaller.getInstance().unmarshall(context)); lifecyclePolicyPreviewResult.setAppliedRulePriority(context.getUnmarshaller(Integer.class).unmarshall(context));
/** * <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 LifecyclePolicyPreviewResult withImageDigest(String imageDigest) { setImageDigest(imageDigest); return this; }
/** * <p> * The date and time, expressed in standard JavaScript date format, at which the current image was pushed to the * repository. * </p> * * @param imagePushedAt * The date and time, expressed in standard JavaScript date format, at which the current image was pushed to * the repository. * @return Returns a reference to this object so that method calls can be chained together. */ public LifecyclePolicyPreviewResult withImagePushedAt(java.util.Date imagePushedAt) { setImagePushedAt(imagePushedAt); return this; }
public LifecyclePolicyPreviewResult unmarshall(JsonUnmarshallerContext context) throws Exception { LifecyclePolicyPreviewResult lifecyclePolicyPreviewResult = new LifecyclePolicyPreviewResult(); if (context.testExpression("imageTags", targetDepth)) { context.nextToken(); lifecyclePolicyPreviewResult.setImageTags(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context)); lifecyclePolicyPreviewResult.setImageDigest(context.getUnmarshaller(String.class).unmarshall(context)); lifecyclePolicyPreviewResult.setImagePushedAt(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); lifecyclePolicyPreviewResult.setAction(LifecyclePolicyRuleActionJsonUnmarshaller.getInstance().unmarshall(context)); lifecyclePolicyPreviewResult.setAppliedRulePriority(context.getUnmarshaller(Integer.class).unmarshall(context));
/** * <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 LifecyclePolicyPreviewResult withImageDigest(String imageDigest) { setImageDigest(imageDigest); return this; }
/** * <p> * The date and time, expressed in standard JavaScript date format, at which the current image was pushed to the * repository. * </p> * * @param imagePushedAt * The date and time, expressed in standard JavaScript date format, at which the current image was pushed to * the repository. * @return Returns a reference to this object so that method calls can be chained together. */ public LifecyclePolicyPreviewResult withImagePushedAt(java.util.Date imagePushedAt) { setImagePushedAt(imagePushedAt); return this; }
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) return false; if (other.getImageDigest() != null && other.getImageDigest().equals(this.getImageDigest()) == false) return false; if (other.getImagePushedAt() == null ^ this.getImagePushedAt() == null) return false; if (other.getImagePushedAt() != null && other.getImagePushedAt().equals(this.getImagePushedAt()) == false) return false; if (other.getAction() == null ^ this.getAction() == null) return false; if (other.getAction() != null && other.getAction().equals(this.getAction()) == false) return false; if (other.getAppliedRulePriority() == null ^ this.getAppliedRulePriority() == null) return false; if (other.getAppliedRulePriority() != null && other.getAppliedRulePriority().equals(this.getAppliedRulePriority()) == false) return false; return true;
/** * <p> * The priority of the applied rule. * </p> * * @param appliedRulePriority * The priority of the applied rule. * @return Returns a reference to this object so that method calls can be chained together. */ public LifecyclePolicyPreviewResult withAppliedRulePriority(Integer appliedRulePriority) { setAppliedRulePriority(appliedRulePriority); return this; }
/** * <p> * The type of action to be taken. * </p> * * @param action * The type of action to be taken. * @return Returns a reference to this object so that method calls can be chained together. */ public LifecyclePolicyPreviewResult withAction(LifecyclePolicyRuleAction action) { setAction(action); 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 (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(); }
/** * 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); } }
@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) return false; if (other.getImageDigest() != null && other.getImageDigest().equals(this.getImageDigest()) == false) return false; if (other.getImagePushedAt() == null ^ this.getImagePushedAt() == null) return false; if (other.getImagePushedAt() != null && other.getImagePushedAt().equals(this.getImagePushedAt()) == false) return false; if (other.getAction() == null ^ this.getAction() == null) return false; if (other.getAction() != null && other.getAction().equals(this.getAction()) == false) return false; if (other.getAppliedRulePriority() == null ^ this.getAppliedRulePriority() == null) return false; if (other.getAppliedRulePriority() != null && other.getAppliedRulePriority().equals(this.getAppliedRulePriority()) == 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 (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(); }
/** * 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); } }