/* * Copyright (c) 2021 PANTHEON.tech, s.r.o. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.netconf.test.tool.model; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; import java.util.List; public class Topology { private String topologyId; @SerializedName("node") private List nodeList = new ArrayList<>(); public Topology() { } public Topology(final String topologyId) { this.topologyId = topologyId; } public void addNode(final Node node) { this.nodeList.add(node); } public String getTopologyId() { return topologyId; } public void setTopologyId(String topologyId) { this.topologyId = topologyId; } public List getNodeList() { return nodeList; } public void setNodeList(List nodeList) { this.nodeList = nodeList; } }