public IamActionDefinition withRoles(String... roles) {
        if (this.roles == null) {
            setRoles(new java.util.ArrayList<String>(roles.length));
        }
        for (String ele : roles) {
            this.roles.add(ele);
        }
        return this;
    }
<p>
A list of roles to be attached. There must be at least one role.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRoles(java.util.Collection)} or {@link #withRoles(java.util.Collection)} if you want to override the
existing values.
</p>

@param roles
       A list of roles to be attached. There must be at least one role.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-budgets/src/main/java/com/amazonaws/services/budgets/model/IamActionDefinition.java