Moving ipfix column to set<UUID> in Bridge table.
[ovsdb.git] / ovsdb / src / main / java / org / opendaylight / ovsdb / lib / table / Bridge.java
1 /*
2  * [[ Authors will Fill in the Copyright header ]]
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  * Authors : Brent Salisbury, Madhu Venugopal, Evan Zeller
9  */
10 package org.opendaylight.ovsdb.lib.table;
11
12 import org.opendaylight.ovsdb.lib.notation.OvsDBMap;
13 import org.opendaylight.ovsdb.lib.notation.OvsDBSet;
14 import org.opendaylight.ovsdb.lib.notation.UUID;
15 import org.opendaylight.ovsdb.lib.table.internal.Table;
16
17 import com.fasterxml.jackson.annotation.JsonIgnore;
18
19 public class Bridge extends Table<Bridge> {
20     public static final Name<Bridge> NAME = new Name<Bridge>("Bridge"){};
21     public enum Column implements org.opendaylight.ovsdb.lib.table.internal.Column<Bridge>{controller, fail_mode, name, ports}
22
23     private String name;
24     private OvsDBSet<UUID> ports;
25     private OvsDBSet<UUID> mirrors;
26     private OvsDBSet<UUID> controller;
27     private OvsDBSet<String> datapath_id;
28     private String datapath_type;
29     private OvsDBSet<String> fail_mode;
30     private OvsDBSet<UUID> sflow;
31     private OvsDBSet<UUID> netflow;
32     private OvsDBSet<String> protocols;
33     private OvsDBMap<String, String> status;
34     private Boolean stp_enable;
35     private OvsDBMap<String, String> other_config;
36     private OvsDBMap<String, String> external_ids;
37     private OvsDBSet<UUID> ipfix;
38
39     public Bridge() {
40     }
41
42     @Override
43     @JsonIgnore
44     public Name<Bridge> getTableName() {
45         return NAME;
46     }
47
48
49     public String getName() {
50         return name;
51     }
52
53     public void setName(String name) {
54         this.name = name;
55     }
56
57     public OvsDBSet<UUID> getPorts() {
58         return ports;
59     }
60
61     public void setPorts(OvsDBSet<UUID> ports) {
62         this.ports = ports;
63     }
64
65     public OvsDBSet<UUID> getMirrors() {
66         return mirrors;
67     }
68
69     public void setMirrors(OvsDBSet<UUID> mirrors) {
70         this.mirrors = mirrors;
71     }
72
73     public OvsDBSet<UUID> getController() {
74         return controller;
75     }
76
77     public void setController(OvsDBSet<UUID> controller) {
78         this.controller = controller;
79     }
80
81     public OvsDBSet<String> getDatapath_id() {
82         return datapath_id;
83     }
84
85     public void setDatapath_id(OvsDBSet<String> datapath_id) {
86         this.datapath_id = datapath_id;
87     }
88
89     public String getDatapath_type() {
90         return datapath_type;
91     }
92
93     public void setDatapath_type(String datapath_type) {
94         this.datapath_type = datapath_type;
95     }
96
97     public OvsDBSet<String> getFail_mode() {
98         return fail_mode;
99     }
100
101     public void setFail_mode(OvsDBSet<String> fail_mode) {
102         this.fail_mode = fail_mode;
103     }
104
105     public void setFlow(OvsDBSet<UUID> sflow){
106         this.sflow = sflow;
107     }
108
109     public void setNetflow(OvsDBSet<UUID> netflow){
110         this.netflow = netflow;
111     }
112
113     public OvsDBSet<UUID> getSflow() {
114         return sflow;
115     }
116
117     public OvsDBSet<UUID> getNetflow() {
118         return netflow;
119     }
120
121     public OvsDBMap<String, String> getStatus() {
122         return status;
123     }
124
125     public void setStatus(OvsDBMap<String, String> status) {
126         this.status = status;
127     }
128
129     public Boolean getStp_enable() {
130         return stp_enable;
131     }
132
133     public OvsDBSet<String> getProtocols() {
134         return protocols;
135     }
136
137     public void setProtocols(OvsDBSet<String> protocols) {
138         this.protocols = protocols;
139     }
140
141     public void setStp_enable(Boolean stp_enable) {
142         this.stp_enable = stp_enable;
143     }
144
145     public OvsDBMap<String, String> getOther_config() {
146         return other_config;
147     }
148
149     public void setOther_config(OvsDBMap<String, String> other_config) {
150         this.other_config = other_config;
151     }
152
153     public OvsDBMap<String, String> getExternal_ids() {
154         return external_ids;
155     }
156
157     public void setExternal_ids(OvsDBMap<String, String> external_ids) {
158         this.external_ids = external_ids;
159     }
160
161     public void setSflow(OvsDBSet<UUID> sflow) {
162         this.sflow = sflow;
163     }
164
165     public OvsDBSet<UUID> getIpfix() {
166         return ipfix;
167     }
168
169     public void setIpfix(OvsDBSet<UUID> ipfix) {
170         this.ipfix = ipfix;
171     }
172
173     @Override
174     public String toString() {
175         return "Bridge [name=" + name + ", ports=" + ports + ", mirrors="
176                 + mirrors + ", controller=" + controller + ", datapath_id="
177                 + datapath_id + ", datapath_type=" + datapath_type
178                 + ", fail_mode=" + fail_mode + ", sflow=" + sflow
179                 + ", netflow=" + netflow + ", protocols=" + protocols
180                 + ", status=" + status + ", stp_enable=" + stp_enable
181                 + ", other_config=" + other_config + ", external_ids="
182                 + external_ids + ", ipfix=" + ipfix + "]";
183     }
184 }