public UserPoolType withDomain(String domain) {
        setDomain(domain);
        return this;
    }
<p>
The domain prefix, if the user pool has a domain associated with it.
</p>

@param domain
       The domain prefix, if the user pool has a domain associated with it.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/UserPoolType.java