public AuthenticationMode withType(String type) {
        setType(type);
        return this;
    }
<p>
Specifies the authentication type. Possible options are IAM authentication, password and no password.
</p>

@param type
       Specifies the authentication type. Possible options are IAM authentication, password and no password.
@return Returns a reference to this object so that method calls can be chained together.
@see InputAuthenticationType
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/AuthenticationMode.java