public DBCluster withAssociatedRoles(java.util.Collection<DBClusterRole> associatedRoles) {
        setAssociatedRoles(associatedRoles);
        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>

@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