@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHostedZoneId() == null) ? 0 : getHostedZoneId().hashCode()); hashCode = prime * hashCode + ((getVPC() == null) ? 0 : getVPC().hashCode()); hashCode = prime * hashCode + ((getComment() == null) ? 0 : getComment().hashCode()); return hashCode; }
/** * <p> * <i>Optional:</i> A comment about the disassociation request. * </p> * * @param comment * <i>Optional:</i> A comment about the disassociation request. * @return Returns a reference to this object so that method calls can be chained together. */ public DisassociateVPCFromHostedZoneRequest withComment(String comment) { setComment(comment); return this; }
/** * <p> * The ID of the private hosted zone that you want to disassociate a VPC from. * </p> * * @param hostedZoneId * The ID of the private hosted zone that you want to disassociate a VPC from. * @return Returns a reference to this object so that method calls can be chained together. */ public DisassociateVPCFromHostedZoneRequest withHostedZoneId(String hostedZoneId) { setHostedZoneId(hostedZoneId); return this; }
/** * <p> * A complex type that contains information about the VPC that you're disassociating from the specified hosted zone. * </p> * * @param vPC * A complex type that contains information about the VPC that you're disassociating from the specified * hosted zone. * @return Returns a reference to this object so that method calls can be chained together. */ public DisassociateVPCFromHostedZoneRequest withVPC(VPC vPC) { setVPC(vPC); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DisassociateVPCFromHostedZoneRequest == false) return false; DisassociateVPCFromHostedZoneRequest other = (DisassociateVPCFromHostedZoneRequest) obj; if (other.getHostedZoneId() == null ^ this.getHostedZoneId() == null) return false; if (other.getHostedZoneId() != null && other.getHostedZoneId().equals(this.getHostedZoneId()) == false) return false; if (other.getVPC() == null ^ this.getVPC() == null) return false; if (other.getVPC() != null && other.getVPC().equals(this.getVPC()) == 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; }
/** * 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 (getHostedZoneId() != null) sb.append("HostedZoneId: ").append(getHostedZoneId()).append(","); if (getVPC() != null) sb.append("VPC: ").append(getVPC()).append(","); if (getComment() != null) sb.append("Comment: ").append(getComment()); sb.append("}"); return sb.toString(); }
disassociateVPCFromHostedZoneRequest.getHostedZoneId()); request.setResourcePath(uriResourcePath); if (disassociateVPCFromHostedZoneRequest != null) { VPC vPC = disassociateVPCFromHostedZoneRequest.getVPC(); if (vPC != null) { xmlWriter.startElement("VPC"); if (disassociateVPCFromHostedZoneRequest.getComment() != null) { xmlWriter.startElement("Comment").value(disassociateVPCFromHostedZoneRequest.getComment()).endElement();