public UpdateLocationSmbRequest withUser(String user) {
        setUser(user);
        return this;
    }
<p>
Specifies the user name that can mount your SMB file server and has permission to access the files and folders
involved in your transfer.
</p>
<p>
For information about choosing a user with the right level of access for your transfer, 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 user
       Specifies the user name that can mount your SMB file server and has permission to access the files and
       folders involved in your transfer.</p>
       <p>
       For information about choosing a user with the right level of access for your transfer, 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