public Authentication withType(AuthenticationType type) {
        this.type = type.toString();
        return this;
    }
<p>
Indicates whether the user requires a password to authenticate.
</p>

@param type
       Indicates whether the user requires a password to authenticate.
@return Returns a reference to this object so that method calls can be chained together.
@see AuthenticationType
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/Authentication.java