
    for (auto& item : val["service"]) {
      ServiceJsonObject newItem{ item };
      m_service.push_back(newItem);
    }

    m_serviceIsSet = true;
  }

  if (val.count("fwd-table")) {
    for (auto& item : val["fwd-table"]) {
      FwdTableJsonObject newItem{ item };
      m_fwdTable.push_back(newItem);
    }

    m_fwdTableIsSet = true;
  }
}

nlohmann::json K8switchJsonObject::toJson() const {
  nlohmann::json val = nlohmann::json::object();
  if (!getBase().is_null()) {
    val.update(getBase());
  }

  if (m_nameIsSet) {
    val["name"] = m_name;
  }

  {
    nlohmann::json jsonArray;
    for (auto& item : m_ports) {
      jsonArray.push_back(JsonObjectBase::toJson(item));
    }

    if (jsonArray.size() > 0) {
      val["ports"] = jsonArray;
    }
  }

  if (m_clusterIpSubnetIsSet) {
    val["cluster-ip-subnet"] = m_clusterIpSubnet;
  }

  if (m_clientSubnetIsSet) {
    val["client-subnet"] = m_clientSubnet;
  }

  if (m_virtualClientSubnetIsSet) {
    val["virtual-client-subnet"] = m_virtualClientSubnet;
  }

  {
    nlohmann::json jsonArray;
    for (auto& item : m_service) {
      jsonArray.push_back(JsonObjectBase::toJson(item));
    }

    if (jsonArray.size() > 0) {
      val["service"] = jsonArray;
    }
  }

  {
    nlohmann::json jsonArray;
    for (auto& item : m_fwdTable) {
      jsonArray.push_back(JsonObjectBase::toJson(item));
    }

    if (jsonArray.size() > 0) {
      val["fwd-table"] = jsonArray;
    }
  }

  return val;
}

std::string K8switchJsonObject::getName() const {
  return m_name;
}

void K8switchJsonObject::setName(std::string value) {
  m_name = value;
  m_nameIsSet = true;
}

bool K8switchJsonObject::nameIsSet() const {
  return m_nameIsSet;
}



const std::vector<PortsJsonObject>& K8switchJsonObject::getPorts() const{
  return m_ports;
}

void K8switchJsonObject::addPorts(PortsJsonObject value) {
  m_ports.push_back(value);
  m_portsIsSet = true;
}


bool K8switchJsonObject::portsIsSet() const {
  return m_portsIsSet;
}

void K8switchJsonObject::unsetPorts() {
  m_portsIsSet = false;
}

std::string K8switchJsonObject::getClusterIpSubnet() const {
  return m_clusterIpSubnet;
}

void K8switchJsonObject::setClusterIpSubnet(std::string value) {
  m_clusterIpSubnet = value;
  m_clusterIpSubnetIsSet = true;
}

bool K8switchJsonObject::clusterIpSubnetIsSet() const {
  return m_clusterIpSubnetIsSet;
}



std::string K8switchJsonObject::getClientSubnet() const {
  return m_clientSubnet;
}

void K8switchJsonObject::setClientSubnet(std::string value) {
  m_clientSubnet = value;
  m_clientSubnetIsSet = true;
}

bool K8switchJsonObject::clientSubnetIsSet() const {
  return m_clientSubnetIsSet;
}



std::string K8switchJsonObject::getVirtualClientSubnet() const {
  return m_virtualClientSubnet;
}

void K8switchJsonObject::setVirtualClientSubnet(std::string value) {
  m_virtualClientSubnet = value;
  m_virtualClientSubnetIsSet = true;
}

bool K8switchJsonObject::virtualClientSubnetIsSet() const {
  return m_virtualClientSubnetIsSet;
}



const std::vector<ServiceJsonObject>& K8switchJsonObject::getService() const{
  return m_service;
}

void K8switchJsonObject::addService(ServiceJsonObject value) {
  m_service.push_back(value);
  m_serviceIsSet = true;
}


bool K8switchJsonObject::serviceIsSet() const {
  return m_serviceIsSet;
}

void K8switchJsonObject::unsetService() {
  m_serviceIsSet = false;
}

const std::vector<FwdTableJsonObject>& K8switchJsonObject::getFwdTable() const{
  return m_fwdTable;
}

void K8switchJsonObject::addFwdTable(FwdTableJsonObject value) {
  m_fwdTable.push_back(value);
  m_fwdTableIsSet = true;
}


bool K8switchJsonObject::fwdTableIsSet() const {
  return m_fwdTableIsSet;
}

void K8switchJsonObject::unsetFwdTable() {
  m_fwdTableIsSet = false;
}


}
}
}
}

What are the technologies and media access control method for Ethernet networks?
Ethernet is used in our daily life every day. No matter whether we are at office or at home, we must use the Ethernet cable and must know about the media access control methods for the networks which deal with the Ethernet cable's usage. Following is some information about what Ethernet is and how it works.
It is easily understandable, maintainable, and implementable.
Ensures some useful interconnection and the operations of some standard complaints products, no matter who their makers are.
The first Ethernet was created as a trial coaxial link network in the 1970s by Xerox Corporation to work with an information rate of 3 Mbps utilizing CSMA/CD protocols for the LANS with sporadic yet infrequently overwhelming traffic prerequisites. Accomplishment with that extend got some good amount of attraction which was needed and hence it led to 1980 joint improvement of the 10-Mbps Ethernet Version 1.0 detail by the three-organization consortium: Digital Equipment Corporation, Intel Corporation, and Xerox Corporation.
The first IEEE 802.3 standard was focused around, and was fundamentally the same as, the Ethernet Version 1.0 determination. The draft standard was endorsed by the 802.3 working gathering in 1983 and was therefore distributed as an authority standard in 1985 (ANSI/IEEE Std. 802.3-1985). From that point forward, various supplements to the standard have been characterized to exploit changes in the innovations and to help extra system media and higher information rate abilities, in addition to a few new discretionary system access control characteristics.
The two conceivable topologies for Ethernet are bus and star.
The bus topology is the least difficult (and the protocol) topology. Standard Ethernet (10base5) and Thin Ethernet (10base2), both focused around urge link frameworks, utilize the bus. In this one-link LAN, all workstations are joined in progression (a "bus" game plan) on a solitary link. All transmissions go to all the joined workstations. Every workstation then chooses the transmissions it ought to get focused around the location data contained in the transmission.
In a star topology, all appended workstations are wired specifically to a focal center that secures, keeps up, and softens associations between them (up the occasion of a mistake). The focal point of a star topology is that it's not difficult to disengage an issue hub. The disservice is that if the center point fizzles, the whole framework is bargained. Bent Pair Ethernet (10base-T), focused around unshielded contorted pair, and Fiber Optic Ethernet (FOIRL and 10base-FL), focused around fiber optic link, utilize the star.
Utilize a bus topology for an extensive system with numerous clients and more fragments. With repeaters or media converters, you can without much of a stretch interconnect to different systems with diverse topologies.
Utilize a star topology when you need to utilize bent pair cabling (10base-T Ethernet) for a different building grounds setup (you may have turned pair-phone wire-introduced on your premises). Utilize a star topology for your fiber optic connections.
The LLC sub