/** * <p> * 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>. * </p> * * @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>. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateHostedZoneRequest withName(String name) { setName(name); return this; }
/** * 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); }