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