public AwsRdsDbClusterDetails withAssociatedRoles(AwsRdsDbClusterAssociatedRole... associatedRoles) {
        if (this.associatedRoles == null) {
            setAssociatedRoles(new java.util.ArrayList<AwsRdsDbClusterAssociatedRole>(associatedRoles.length));
        }
        for (AwsRdsDbClusterAssociatedRole ele : associatedRoles) {
            this.associatedRoles.add(ele);
        }
        return this;
    }
<p>
A list of the IAM roles that are associated with the DB cluster.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAssociatedRoles(java.util.Collection)} or {@link #withAssociatedRoles(java.util.Collection)} if you
want to override the existing values.
</p>

@param associatedRoles
       A list of the IAM roles that are associated with the DB cluster.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsRdsDbClusterDetails.java