public void setPasswords(java.util.Collection<String> passwords) {
        if (passwords == null) {
            this.passwords = null;
            return;
        }

        this.passwords = new com.amazonaws.internal.SdkInternalList<String>(passwords);
    }
<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>.
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/model/AuthenticationMode.java