@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getSubmittedAt() == null) ? 0 : getSubmittedAt().hashCode()); hashCode = prime * hashCode + ((getComment() == null) ? 0 : getComment().hashCode()); return hashCode; }
/** * <p> * A complex type that describes change information about changes made to your hosted zone. * </p> * <p> * This element contains an ID that you use when performing a <a>GetChange</a> action to get detailed information * about the change. * </p> * * @param comment * A complex type that describes change information about changes made to your hosted zone.</p> * <p> * This element contains an ID that you use when performing a <a>GetChange</a> action to get detailed * information about the change. * @return Returns a reference to this object so that method calls can be chained together. */ public ChangeInfo withComment(String comment) { setComment(comment); return this; }
/** * Constructs a new ChangeInfo object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param id * The ID of the request. * @param status * The current state of the request. <code>PENDING</code> indicates that this request has not yet been * applied to all Amazon Route 53 DNS servers. * @param submittedAt * The date and time that the change request was submitted in <a * href="https://en.wikipedia.org/wiki/ISO_8601">ISO 8601 format</a> and Coordinated Universal Time (UTC). * For example, the value <code>2017-03-27T17:48:16.751Z</code> represents March 27, 2017 at 17:48:16.751 * UTC. */ public ChangeInfo(String id, String status, java.util.Date submittedAt) { setId(id); setStatus(status); setSubmittedAt(submittedAt); }
public ChangeInfo unmarshall(StaxUnmarshallerContext context) throws Exception { ChangeInfo changeInfo = new ChangeInfo(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; changeInfo.setId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; changeInfo.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; changeInfo.setSubmittedAt(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; changeInfo.setComment(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getChangeInfo() == null) ? 0 : getChangeInfo().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetChangeResult == false) return false; GetChangeResult other = (GetChangeResult) obj; if (other.getChangeInfo() == null ^ this.getChangeInfo() == null) return false; if (other.getChangeInfo() != null && other.getChangeInfo().equals(this.getChangeInfo()) == false) return false; return true; }
/** * <p> * The current state of the request. <code>PENDING</code> indicates that this request has not yet been applied to * all Amazon Route 53 DNS servers. * </p> * * @param status * The current state of the request. <code>PENDING</code> indicates that this request has not yet been * applied to all Amazon Route 53 DNS servers. * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeStatus */ public ChangeInfo withStatus(String status) { setStatus(status); return this; }
/** * <p> * The ID of the request. * </p> * * @param id * The ID of the request. * @return Returns a reference to this object so that method calls can be chained together. */ public ChangeInfo withId(String id) { setId(id); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getChangeInfo() == null) ? 0 : getChangeInfo().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteHostedZoneResult == false) return false; DeleteHostedZoneResult other = (DeleteHostedZoneResult) obj; if (other.getChangeInfo() == null ^ this.getChangeInfo() == null) return false; if (other.getChangeInfo() != null && other.getChangeInfo().equals(this.getChangeInfo()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ChangeInfo == false) return false; ChangeInfo other = (ChangeInfo) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getSubmittedAt() == null ^ this.getSubmittedAt() == null) return false; if (other.getSubmittedAt() != null && other.getSubmittedAt().equals(this.getSubmittedAt()) == false) return false; if (other.getComment() == null ^ this.getComment() == null) return false; if (other.getComment() != null && other.getComment().equals(this.getComment()) == false) return false; return true; }
/** * Constructs a new ChangeInfo object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param id * The ID of the request. * @param status * The current state of the request. <code>PENDING</code> indicates that this request has not yet been * applied to all Amazon Route 53 DNS servers. * @param submittedAt * The date and time that the change request was submitted in <a * href="https://en.wikipedia.org/wiki/ISO_8601">ISO 8601 format</a> and Coordinated Universal Time (UTC). * For example, the value <code>2017-03-27T17:48:16.751Z</code> represents March 27, 2017 at 17:48:16.751 * UTC. */ public ChangeInfo(String id, ChangeStatus status, java.util.Date submittedAt) { setId(id); setStatus(status.toString()); setSubmittedAt(submittedAt); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getChangeInfo() == null) ? 0 : getChangeInfo().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AssociateVPCWithHostedZoneResult == false) return false; AssociateVPCWithHostedZoneResult other = (AssociateVPCWithHostedZoneResult) obj; if (other.getChangeInfo() == null ^ this.getChangeInfo() == null) return false; if (other.getChangeInfo() != null && other.getChangeInfo().equals(this.getChangeInfo()) == 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 (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getSubmittedAt() != null) sb.append("SubmittedAt: ").append(getSubmittedAt()).append(","); if (getComment() != null) sb.append("Comment: ").append(getComment()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getChangeInfo() == null) ? 0 : getChangeInfo().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ChangeResourceRecordSetsResult == false) return false; ChangeResourceRecordSetsResult other = (ChangeResourceRecordSetsResult) obj; if (other.getChangeInfo() == null ^ this.getChangeInfo() == null) return false; if (other.getChangeInfo() != null && other.getChangeInfo().equals(this.getChangeInfo()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getChangeInfo() == null) ? 0 : getChangeInfo().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DisassociateVPCFromHostedZoneResult == false) return false; DisassociateVPCFromHostedZoneResult other = (DisassociateVPCFromHostedZoneResult) obj; if (other.getChangeInfo() == null ^ this.getChangeInfo() == null) return false; if (other.getChangeInfo() != null && other.getChangeInfo().equals(this.getChangeInfo()) == false) return false; return true; }