public Authentication withType(String type) {
        setType(type);
        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-memorydb/src/main/java/com/amazonaws/services/memorydb/model/Authentication.java