@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDocument() == null) ? 0 : getDocument().hashCode()); hashCode = prime * hashCode + ((getVersionId() == null) ? 0 : getVersionId().hashCode()); hashCode = prime * hashCode + ((getIsDefaultVersion() == null) ? 0 : getIsDefaultVersion().hashCode()); hashCode = prime * hashCode + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPolicyVersion() == null) ? 0 : getPolicyVersion().hashCode()); return hashCode; }
/** * <p> * The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601 date-time format</a>, when the policy * version was created. * </p> * * @param createDate * The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601 date-time format</a>, when the * policy version was created. * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyVersion withCreateDate(java.util.Date createDate) { setCreateDate(createDate); return this; }
public PolicyVersion unmarshall(StaxUnmarshallerContext context) throws Exception { PolicyVersion policyVersion = new PolicyVersion(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; policyVersion.setDocument(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; policyVersion.setVersionId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; policyVersion.setIsDefaultVersion(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; policyVersion.setCreateDate(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue;
PolicyVersion pv = versionResult.getPolicyVersion(); try { decode = URLDecoder.decode(pv.getDocument(), "UTF-8"); } catch (UnsupportedEncodingException e) { logger.error(e.getMessage());
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreatePolicyVersionResult == false) return false; CreatePolicyVersionResult other = (CreatePolicyVersionResult) obj; if (other.getPolicyVersion() == null ^ this.getPolicyVersion() == null) return false; if (other.getPolicyVersion() != null && other.getPolicyVersion().equals(this.getPolicyVersion()) == false) return false; return true; }
setDocument(document); return this;
public PolicyVersion unmarshall(StaxUnmarshallerContext context) throws Exception { PolicyVersion policyVersion = new PolicyVersion(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; policyVersion.setDocument(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; policyVersion.setVersionId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; policyVersion.setIsDefaultVersion(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; policyVersion.setCreateDate(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetPolicyVersionResult == false) return false; GetPolicyVersionResult other = (GetPolicyVersionResult) obj; if (other.getPolicyVersion() == null ^ this.getPolicyVersion() == null) return false; if (other.getPolicyVersion() != null && other.getPolicyVersion().equals(this.getPolicyVersion()) == false) return false; return true; }
setDocument(document); return this;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PolicyVersion == false) return false; PolicyVersion other = (PolicyVersion) obj; if (other.getDocument() == null ^ this.getDocument() == null) return false; if (other.getDocument() != null && other.getDocument().equals(this.getDocument()) == false) return false; if (other.getVersionId() == null ^ this.getVersionId() == null) return false; if (other.getVersionId() != null && other.getVersionId().equals(this.getVersionId()) == false) return false; if (other.getIsDefaultVersion() == null ^ this.getIsDefaultVersion() == null) return false; if (other.getIsDefaultVersion() != null && other.getIsDefaultVersion().equals(this.getIsDefaultVersion()) == false) return false; if (other.getCreateDate() == null ^ this.getCreateDate() == null) return false; if (other.getCreateDate() != null && other.getCreateDate().equals(this.getCreateDate()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPolicyVersion() == null) ? 0 : getPolicyVersion().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetPolicyVersionResult == false) return false; GetPolicyVersionResult other = (GetPolicyVersionResult) obj; if (other.getPolicyVersion() == null ^ this.getPolicyVersion() == null) return false; if (other.getPolicyVersion() != null && other.getPolicyVersion().equals(this.getPolicyVersion()) == false) return false; return true; }
/** * <p> * The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601 date-time format</a>, when the policy * version was created. * </p> * * @param createDate * The date and time, in <a href="http://www.iso.org/iso/iso8601">ISO 8601 date-time format</a>, when the * policy version was created. * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyVersion withCreateDate(java.util.Date createDate) { setCreateDate(createDate); 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 (getDocument() != null) sb.append("Document: ").append(getDocument()).append(","); if (getVersionId() != null) sb.append("VersionId: ").append(getVersionId()).append(","); if (getIsDefaultVersion() != null) sb.append("IsDefaultVersion: ").append(getIsDefaultVersion()).append(","); if (getCreateDate() != null) sb.append("CreateDate: ").append(getCreateDate()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPolicyVersion() == null) ? 0 : getPolicyVersion().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreatePolicyVersionResult == false) return false; CreatePolicyVersionResult other = (CreatePolicyVersionResult) obj; if (other.getPolicyVersion() == null ^ this.getPolicyVersion() == null) return false; if (other.getPolicyVersion() != null && other.getPolicyVersion().equals(this.getPolicyVersion()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDocument() == null) ? 0 : getDocument().hashCode()); hashCode = prime * hashCode + ((getVersionId() == null) ? 0 : getVersionId().hashCode()); hashCode = prime * hashCode + ((getIsDefaultVersion() == null) ? 0 : getIsDefaultVersion().hashCode()); hashCode = prime * hashCode + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPolicyVersion() == null) ? 0 : getPolicyVersion().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PolicyVersion == false) return false; PolicyVersion other = (PolicyVersion) obj; if (other.getDocument() == null ^ this.getDocument() == null) return false; if (other.getDocument() != null && other.getDocument().equals(this.getDocument()) == false) return false; if (other.getVersionId() == null ^ this.getVersionId() == null) return false; if (other.getVersionId() != null && other.getVersionId().equals(this.getVersionId()) == false) return false; if (other.getIsDefaultVersion() == null ^ this.getIsDefaultVersion() == null) return false; if (other.getIsDefaultVersion() != null && other.getIsDefaultVersion().equals(this.getIsDefaultVersion()) == false) return false; if (other.getCreateDate() == null ^ this.getCreateDate() == null) return false; if (other.getCreateDate() != null && other.getCreateDate().equals(this.getCreateDate()) == false) return false; return true; }