code: public DBInstance withAssociatedRoles(DBInstanceRole... associatedRoles) {
          if (this.associatedRoles == null) {
              setAssociatedRoles(new com.amazonaws.internal.SdkInternalList<DBInstanceRole>(associatedRoles.length));
          }
          for (DBInstanceRole ele : associatedRoles) {
              this.associatedRoles.add(ele);
          }
          return this;
      }
docs: <p>
  The AWS Identity and Access Management (IAM) roles associated with the DB instance.
  </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
  The AWS Identity and Access Management (IAM) roles associated with the DB instance.
  @return Returns a reference to this object so that method calls can be chained together.