public ModifyUserRequest withPasswords(String... passwords) {
        if (this.passwords == null) {
            setPasswords(new com.amazonaws.internal.SdkInternalList<String>(passwords.length));
        }
        for (String ele : passwords) {
            this.passwords.add(ele);
        }
        return this;
    }
<p>
The passwords belonging to the user. You are allowed up to two.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPasswords(java.util.Collection)} or {@link #withPasswords(java.util.Collection)} if you want to
override the existing values.
</p>

@param passwords
       The passwords belonging to the user. You are allowed up to two.
@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/ModifyUserRequest.java