Modernize test suite
[netconf.git] / netconf / tools / netconf-testtool / src / main / java / org / opendaylight / netconf / test / tool / model / Topology.java
1 /*
2  * Copyright (c) 2021 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.netconf.test.tool.model;
9
10 import com.google.gson.annotations.SerializedName;
11 import java.util.ArrayList;
12 import java.util.List;
13
14 public class Topology {
15     private String topologyId;
16
17     @SerializedName("node")
18     private List<Node> nodeList = new ArrayList<>();
19
20     public Topology() {
21
22     }
23
24     public Topology(final String topologyId) {
25         this.topologyId = topologyId;
26     }
27
28     public void addNode(final Node node) {
29         this.nodeList.add(node);
30     }
31
32     public String getTopologyId() {
33         return topologyId;
34     }
35
36     public void setTopologyId(String topologyId) {
37         this.topologyId = topologyId;
38     }
39
40     public List<Node> getNodeList() {
41         return nodeList;
42     }
43
44     public void setNodeList(List<Node> nodeList) {
45         this.nodeList = nodeList;
46     }
47 }