public CreateServerRequest withDomain(String domain) {
        setDomain(domain);
        return this;
    }
<p>
The domain of the storage system that is used for file transfers. There are two domains available: Amazon Simple
Storage Service (Amazon S3) and Amazon Elastic File System (Amazon EFS). The default value is S3.
</p>
<note>
<p>
After the server is created, the domain cannot be changed.
</p>
</note>

@param domain
       The domain of the storage system that is used for file transfers. There are two domains available: Amazon
       Simple Storage Service (Amazon S3) and Amazon Elastic File System (Amazon EFS). The default value is
       S3.</p> <note>
       <p>
       After the server is created, the domain cannot be changed.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
@see Domain
aws-java-sdk-transfer/src/main/java/com/amazonaws/services/transfer/model/CreateServerRequest.java