public ModifyUserRequest withAuthenticationMode(AuthenticationMode authenticationMode) {
        setAuthenticationMode(authenticationMode);
        return this;
    }
<p>
Specifies how to authenticate the user.
</p>

@param authenticationMode
       Specifies how to authenticate the user.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/ModifyUserRequest.java