public UsernamePassword withUsername(String username) {
        setUsername(username);
        return this;
    }
<p>
The username associated with the temporary credentials that you use to connect to cluster endpoints.
</p>

@param username
       The username associated with the temporary credentials that you use to connect to cluster endpoints.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/UsernamePassword.java