setHostedZoneConfig(hostedZoneConfig); return this;
@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; }
/** * Constructs a new CreateHostedZoneRequest object. Callers should use the setter or fluent setter (with...) methods * to initialize any additional object members. * * @param name * The name of the domain. Specify a fully qualified domain name, for example, <i>www.example.com</i>. The * trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that * Route 53 treats <i>www.example.com</i> (without a trailing dot) and <i>www.example.com.</i> (with a * trailing dot) as identical.</p> * <p> * If you're creating a public hosted zone, this is the name you have registered with your DNS registrar. If * your domain name is registered with a registrar other than Route 53, change the name servers for your * domain to the set of <code>NameServers</code> that <code>CreateHostedZone</code> returns in * <code>DelegationSet</code>. * @param callerReference * A unique string that identifies the request and that allows failed <code>CreateHostedZone</code> requests * to be retried without the risk of executing the operation twice. You must use a unique * <code>CallerReference</code> string every time you submit a <code>CreateHostedZone</code> request. * <code>CallerReference</code> can be any unique string, for example, a date/time stamp. */ public CreateHostedZoneRequest(String name, String callerReference) { setName(name); setCallerReference(callerReference); }
CreateHostedZoneRequest req = new CreateHostedZoneRequest() .withName(hostedZoneName) .withCallerReference(callerReference); if (comment != null) { req.setHostedZoneConfig(new HostedZoneConfig().withComment(comment));
CreateHostedZoneResult createResult = r53Clinet_.createHostedZone(new CreateHostedZoneRequest() .withName(dnsName) .withCallerReference(callerRefPrefix_ + dnsName) );
/** * <p> * A unique string that identifies the request and that allows failed <code>CreateHostedZone</code> requests to be * retried without the risk of executing the operation twice. You must use a unique <code>CallerReference</code> * string every time you submit a <code>CreateHostedZone</code> request. <code>CallerReference</code> can be any * unique string, for example, a date/time stamp. * </p> * * @param callerReference * A unique string that identifies the request and that allows failed <code>CreateHostedZone</code> requests * to be retried without the risk of executing the operation twice. You must use a unique * <code>CallerReference</code> string every time you submit a <code>CreateHostedZone</code> request. * <code>CallerReference</code> can be any unique string, for example, a date/time stamp. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateHostedZoneRequest withCallerReference(String callerReference) { setCallerReference(callerReference); return this; }
return false; CreateHostedZoneRequest other = (CreateHostedZoneRequest) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == 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.getCallerReference() == null ^ this.getCallerReference() == null) return false; if (other.getCallerReference() != null && other.getCallerReference().equals(this.getCallerReference()) == false) return false; if (other.getHostedZoneConfig() == null ^ this.getHostedZoneConfig() == null) return false; if (other.getHostedZoneConfig() != null && other.getHostedZoneConfig().equals(this.getHostedZoneConfig()) == false) return false; if (other.getDelegationSetId() == null ^ this.getDelegationSetId() == null) return false; if (other.getDelegationSetId() != null && other.getDelegationSetId().equals(this.getDelegationSetId()) == 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getVPC() != null) sb.append("VPC: ").append(getVPC()).append(","); if (getCallerReference() != null) sb.append("CallerReference: ").append(getCallerReference()).append(","); if (getHostedZoneConfig() != null) sb.append("HostedZoneConfig: ").append(getHostedZoneConfig()).append(","); if (getDelegationSetId() != null) sb.append("DelegationSetId: ").append(getDelegationSetId()); sb.append("}"); return sb.toString(); }
if (createHostedZoneRequest != null) { if (createHostedZoneRequest.getName() != null) { xmlWriter.startElement("Name").value(createHostedZoneRequest.getName()).endElement(); VPC vPC = createHostedZoneRequest.getVPC(); if (vPC != null) { xmlWriter.startElement("VPC"); if (createHostedZoneRequest.getCallerReference() != null) { xmlWriter.startElement("CallerReference").value(createHostedZoneRequest.getCallerReference()).endElement(); HostedZoneConfig hostedZoneConfig = createHostedZoneRequest.getHostedZoneConfig(); if (hostedZoneConfig != null) { xmlWriter.startElement("HostedZoneConfig"); if (createHostedZoneRequest.getDelegationSetId() != null) { xmlWriter.startElement("DelegationSetId").value(createHostedZoneRequest.getDelegationSetId()).endElement();