code: public DBCluster withDBClusterOptionGroupMemberships(DBClusterOptionGroupStatus... dBClusterOptionGroupMemberships) {
          if (this.dBClusterOptionGroupMemberships == null) {
              setDBClusterOptionGroupMemberships(new com.amazonaws.internal.SdkInternalList<DBClusterOptionGroupStatus>(dBClusterOptionGroupMemberships.length));
          }
          for (DBClusterOptionGroupStatus ele : dBClusterOptionGroupMemberships) {
              this.dBClusterOptionGroupMemberships.add(ele);
          }
          return this;
      }
docs: <p>
  Provides the list of option group memberships for this DB cluster.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setDBClusterOptionGroupMemberships(java.util.Collection)} or
  {@link #withDBClusterOptionGroupMemberships(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param dBClusterOptionGroupMemberships
  Provides the list of option group memberships for this DB cluster.
  @return Returns a reference to this object so that method calls can be chained together.