@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVPCRegion() == null) ? 0 : getVPCRegion().hashCode()); hashCode = prime * hashCode + ((getVPCId() == null) ? 0 : getVPCId().hashCode()); return hashCode; }
/** * @param vPCId * @return Returns a reference to this object so that method calls can be chained together. */ public VPC withVPCId(String vPCId) { setVPCId(vPCId); return this; }
/** * <p> * (Private hosted zones only) The region that an Amazon VPC was created in. * </p> * * @param vPCRegion * (Private hosted zones only) The region that an Amazon VPC was created in. * @return Returns a reference to this object so that method calls can be chained together. * @see VPCRegion */ public VPC withVPCRegion(String vPCRegion) { setVPCRegion(vPCRegion); return this; }
public VPC unmarshall(StaxUnmarshallerContext context) throws Exception { VPC vPC = new VPC(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return vPC; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("VPCRegion", targetDepth)) { vPC.setVPCRegion(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("VPCId", targetDepth)) { vPC.setVPCId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return vPC; } } } }
@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()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteVPCAssociationAuthorizationRequest == false) return false; DeleteVPCAssociationAuthorizationRequest other = (DeleteVPCAssociationAuthorizationRequest) 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; return true; }
/** * <p> * (Private hosted zones only) The region that an Amazon VPC was created in. * </p> * * @param vPCRegion * (Private hosted zones only) The region that an Amazon VPC was created in. * @see VPCRegion */ public void setVPCRegion(VPCRegion vPCRegion) { withVPCRegion(vPCRegion); }
@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()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateVPCAssociationAuthorizationResult == false) return false; CreateVPCAssociationAuthorizationResult other = (CreateVPCAssociationAuthorizationResult) 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; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof VPC == false) return false; VPC other = (VPC) obj; if (other.getVPCRegion() == null ^ this.getVPCRegion() == null) return false; if (other.getVPCRegion() != null && other.getVPCRegion().equals(this.getVPCRegion()) == false) return false; if (other.getVPCId() == null ^ this.getVPCId() == null) return false; if (other.getVPCId() != null && other.getVPCId().equals(this.getVPCId()) == false) return false; return true; }
@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()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateVPCAssociationAuthorizationRequest == false) return false; CreateVPCAssociationAuthorizationRequest other = (CreateVPCAssociationAuthorizationRequest) 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; 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 (getVPCRegion() != null) sb.append("VPCRegion: ").append(getVPCRegion()).append(","); if (getVPCId() != null) sb.append("VPCId: ").append(getVPCId()); sb.append("}"); return sb.toString(); }
@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; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AssociateVPCWithHostedZoneRequest == false) return false; AssociateVPCWithHostedZoneRequest other = (AssociateVPCWithHostedZoneRequest) 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; }
xmlWriter.startElement("VPC"); if (vPC.getVPCRegion() != null) { xmlWriter.startElement("VPCRegion").value(vPC.getVPCRegion()).endElement(); if (vPC.getVPCId() != null) { xmlWriter.startElement("VPCId").value(vPC.getVPCId()).endElement();
@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; }
@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; }
xmlWriter.startElement("VPC"); if (vPC.getVPCRegion() != null) { xmlWriter.startElement("VPCRegion").value(vPC.getVPCRegion()).endElement(); if (vPC.getVPCId() != null) { xmlWriter.startElement("VPCId").value(vPC.getVPCId()).endElement();
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getVPC() == null) ? 0 : getVPC().hashCode()); hashCode = prime * hashCode + ((getCallerReference() == null) ? 0 : getCallerReference().hashCode()); hashCode = prime * hashCode + ((getHostedZoneConfig() == null) ? 0 : getHostedZoneConfig().hashCode()); hashCode = prime * hashCode + ((getDelegationSetId() == null) ? 0 : getDelegationSetId().hashCode()); return hashCode; }