83f58f857072c1042b1500bb1fe8899c96673298
[ovsdb.git] / ovsdb / src / main / java / org / opendaylight / ovsdb / lib / table / Port.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 java.math.BigInteger;
13
14 import org.opendaylight.ovsdb.lib.notation.OvsDBMap;
15 import org.opendaylight.ovsdb.lib.notation.OvsDBSet;
16 import org.opendaylight.ovsdb.lib.notation.UUID;
17 import org.opendaylight.ovsdb.lib.table.internal.Table;
18
19 import com.fasterxml.jackson.annotation.JsonIgnore;
20
21 public class Port extends Table<Port> {
22
23     public static final Name<Port> NAME = new Name<Port>("Port") {};
24
25     private String name;
26     private OvsDBSet<BigInteger> tag;
27     private OvsDBSet<BigInteger> trunks;
28     private OvsDBSet<UUID> interfaces;
29     private OvsDBSet<String> mac;
30     private OvsDBSet<UUID> qos;
31     private OvsDBMap<String, String> other_config;
32     private OvsDBMap<String, String> external_ids;
33
34     public Port() {
35     }
36
37     public String getName() {
38         return name;
39     }
40
41     public void setName(String name) {
42         this.name = name;
43     }
44
45     public OvsDBSet<BigInteger> getTag() {
46         return tag;
47     }
48
49     public void setTag(OvsDBSet<BigInteger> tag) {
50         this.tag = tag;
51     }
52
53     public OvsDBSet<BigInteger> getTrunks() {
54         return trunks;
55     }
56
57     public void setTrunks(OvsDBSet<BigInteger> trunks) {
58         this.trunks = trunks;
59     }
60
61     public OvsDBSet<UUID> getInterfaces() {
62         return interfaces;
63     }
64
65     public void setInterfaces(OvsDBSet<UUID> interfaces) {
66         this.interfaces = interfaces;
67     }
68
69     public OvsDBSet<String> getMac() {
70         return mac;
71     }
72
73     public void setMac(OvsDBSet<String> mac) {
74         this.mac = mac;
75     }
76
77     public OvsDBSet<UUID> getQos() {
78         return qos;
79     }
80
81     public void setQos(OvsDBSet<UUID> qos) {
82         this.qos = qos;
83     }
84
85     public OvsDBMap<String, String> getOther_config() {
86         return other_config;
87     }
88
89     public void setOther_config(OvsDBMap<String, String> other_config) {
90         this.other_config = other_config;
91     }
92
93     public OvsDBMap<String, String> getExternal_ids() {
94         return external_ids;
95     }
96
97     public void setExternal_ids(OvsDBMap<String, String> external_ids) {
98         this.external_ids = external_ids;
99     }
100
101     @Override
102     @JsonIgnore
103     public Name<Port> getTableName() {
104         return NAME;
105     }
106
107     @Override
108     public String toString() {
109         return "Port [name=" + name + ", tag=" + tag + ", trunks=" + trunks
110                 + ", interfaces=" + interfaces + ", mac=" + mac + ", qos="
111                 + qos + ", other_config=" + other_config + ", external_ids="
112                 + external_ids + "]";
113     }
114
115     public enum Column implements org.opendaylight.ovsdb.lib.table.internal.Column<Port> {
116         interfaces,
117         name,
118         tag,
119         trunks,
120         mac,
121         qos,
122         statistics,
123         other_config,
124         external_ids}
125 }