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