public AuthenticationMode withPasswords(java.util.Collection<String> passwords) {
        setPasswords(passwords);
        return this;
    }
<p>
Specifies the passwords to use for authentication if <code>Type</code> is set to <code>password</code>.
</p>

@param passwords
       Specifies the passwords to use for authentication if <code>Type</code> is set to <code>password</code>.
@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/AuthenticationMode.java