public DBCluster withAssociatedRoles(DBClusterRole... associatedRoles) {
        if (this.associatedRoles == null) {
            setAssociatedRoles(new java.util.ArrayList<DBClusterRole>(associatedRoles.length));
        }
        for (DBClusterRole ele : associatedRoles) {
            this.associatedRoles.add(ele);
        }
        return this;
    }
<p>
Provides a list of the Identity and Access Management (IAM) roles that are associated with the cluster. (IAM)
roles that are associated with a cluster grant permission for the cluster to access other Amazon Web Services
services on your behalf.
</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
       Provides a list of the Identity and Access Management (IAM) roles that are associated with the cluster.
       (IAM) roles that are associated with a cluster grant permission for the cluster to access other Amazon Web
       Services services on your behalf.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-docdb/src/main/java/com/amazonaws/services/docdb/model/DBCluster.java