public UpdateLocationSmbRequest withDomain(String domain) {
        setDomain(domain);
        return this;
    }
<p>
Specifies the Windows domain name that your SMB file server belongs to.
</p>
<p>
If you have multiple domains in your environment, configuring this parameter makes sure that DataSync connects to
the right file server.
</p>
<p>
For more information, see <a href=
"https://docs.aws.amazon.com/datasync/latest/userguide/create-smb-location.html#configuring-smb-permissions"
>required permissions</a> for SMB locations.
</p>

@param domain
       Specifies the Windows domain name that your SMB file server belongs to. </p>
       <p>
       If you have multiple domains in your environment, configuring this parameter makes sure that DataSync
       connects to the right file server.
       </p>
       <p>
       For more information, see <a href=
       "https://docs.aws.amazon.com/datasync/latest/userguide/create-smb-location.html#configuring-smb-permissions"
       >required permissions</a> for SMB locations.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-datasync/src/main/java/com/amazonaws/services/datasync/model/UpdateLocationSmbRequest.java