2 * Copyright (c) 2021 PANTHEON.tech, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.netconf.test.tool.model;
10 import com.google.gson.annotations.SerializedName;
11 import java.util.ArrayList;
12 import java.util.List;
14 public class Topology {
15 private String topologyId;
17 @SerializedName("node")
18 private List<Node> nodeList = new ArrayList<>();
24 public Topology(final String topologyId) {
25 this.topologyId = topologyId;
28 public void addNode(final Node node) {
29 this.nodeList.add(node);
32 public String getTopologyId() {
36 public void setTopologyId(String topologyId) {
37 this.topologyId = topologyId;
40 public List<Node> getNodeList() {
44 public void setNodeList(List<Node> nodeList) {
45 this.nodeList = nodeList;