code: public void setDBSecurityGroupMemberships(java.util.Collection<DBSecurityGroupMembership> dBSecurityGroupMemberships) {
          if (dBSecurityGroupMemberships == null) {
              this.dBSecurityGroupMemberships = null;
              return;
          }
  
          this.dBSecurityGroupMemberships = new com.amazonaws.internal.SdkInternalList<DBSecurityGroupMembership>(dBSecurityGroupMemberships);
      }
docs: <p>
  If the option requires access to a port, then this DB security group allows access to the port.
  </p>
  
  @param dBSecurityGroupMemberships
  If the option requires access to a port, then this DB security group allows access to the port.