public PutDomainPermissionsPolicyRequest withDomain(String domain) {
        setDomain(domain);
        return this;
    }
<p>
The name of the domain on which to set the resource policy.
</p>

@param domain
       The name of the domain on which to set the resource policy.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codeartifact/src/main/java/com/amazonaws/services/codeartifact/model/PutDomainPermissionsPolicyRequest.java