code: public Option withDBSecurityGroupMemberships(DBSecurityGroupMembership... dBSecurityGroupMemberships) {
          if (this.dBSecurityGroupMemberships == null) {
              setDBSecurityGroupMemberships(new com.amazonaws.internal.SdkInternalList<DBSecurityGroupMembership>(dBSecurityGroupMemberships.length));
          }
          for (DBSecurityGroupMembership ele : dBSecurityGroupMemberships) {
              this.dBSecurityGroupMemberships.add(ele);
          }
          return this;
      }
docs: <p>
  If the option requires access to a port, then this DB security group allows access to the port.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setDBSecurityGroupMemberships(java.util.Collection)} or
  {@link #withDBSecurityGroupMemberships(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param dBSecurityGroupMemberships
  If the option requires access to a port, then this DB security group allows access to the port.
  @return Returns a reference to this object so that method calls can be chained together.