public RegisterDomainRequest withName(String name) {
        setName(name);
        return this;
    }
<p>
Name of the domain to register. The name must be unique in the region that the domain is registered in.
</p>
<p>
The specified string must not start or end with whitespace. It must not contain a <code>:</code> (colon),
<code>/</code> (slash), <code>|</code> (vertical bar), or any control characters (<code>\u0000-\u001f</code> |
<code>\u007f-\u009f</code>). Also, it must <i>not</i> be the literal string <code>arn</code>.
</p>

@param name
       Name of the domain to register. The name must be unique in the region that the domain is registered
       in.</p>
       <p>
       The specified string must not start or end with whitespace. It must not contain a <code>:</code> (colon),
       <code>/</code> (slash), <code>|</code> (vertical bar), or any control characters (
       <code>\u0000-\u001f</code> | <code>\u007f-\u009f</code>). Also, it must <i>not</i> be the literal string
       <code>arn</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-simpleworkflow/src/main/java/com/amazonaws/services/simpleworkflow/model/RegisterDomainRequest.java