Code ReOrganization and Re-Architecture changes
[ovsdb.git] / library / src / main / java / org / opendaylight / ovsdb / lib / table / Interface.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
17 import com.fasterxml.jackson.annotation.JsonIgnore;
18
19 public class Interface extends Table<Interface> {
20
21     public static Name<Interface> NAME = new Name<Interface>("Interface") {};
22
23     private String name;
24     private OvsDBMap<String, String> options;
25     private String type;
26     private OvsDBSet<BigInteger> ofport;
27     private OvsDBSet<String> mac;
28     private OvsDBMap<String, Integer> statistics;
29     private OvsDBMap<String, String> status;
30     private OvsDBMap<String, String> other_config;
31     private OvsDBMap<String, String> external_ids;
32
33     public String getName() {
34         return name;
35     }
36
37     public void setName(String name) {
38         this.name = name;
39     }
40
41     public OvsDBMap<String, String> getOptions() {
42         return options;
43     }
44
45     public void setOptions(OvsDBMap<String, String> options) {
46         this.options = options;
47     }
48
49     public String getType() {
50         return type;
51     }
52
53     public void setType(String type) {
54         this.type = type;
55     }
56
57     public OvsDBSet<BigInteger> getOfport() {
58         return ofport;
59     }
60
61     public void setOfport(OvsDBSet<BigInteger> ofport) {
62         this.ofport = ofport;
63     }
64
65     public OvsDBSet<String> getMac() {
66         return mac;
67     }
68
69     public void setMac(OvsDBSet<String> mac) {
70         this.mac = mac;
71     }
72
73     public OvsDBMap<String, Integer> getStatistics() {
74         return statistics;
75     }
76
77     public void setStatistics(OvsDBMap<String, Integer> statistics) {
78         this.statistics = statistics;
79     }
80
81     public OvsDBMap<String, String> getStatus() {
82         return status;
83     }
84
85     public void setStatus(OvsDBMap<String, String> status) {
86         this.status = status;
87     }
88
89     public OvsDBMap<String, String> getOther_config() {
90         return other_config;
91     }
92
93     public void setOther_config(OvsDBMap<String, String> other_config) {
94         this.other_config = other_config;
95     }
96
97     public OvsDBMap<String, String> getExternal_ids() {
98         return external_ids;
99     }
100
101     public void setExternal_ids(OvsDBMap<String, String> external_ids) {
102         this.external_ids = external_ids;
103     }
104
105     @Override
106     @JsonIgnore
107     public Name<Interface> getTableName() {
108         return NAME;
109     }
110
111     @Override
112     public String toString() {
113         return "Interface [name=" + name + ", options=" + options + ", type="
114                 + type + ", ofport=" + ofport + ", mac=" + mac
115                 + ", statistics=" + statistics + ", status=" + status
116                 + ", other_config=" + other_config + ", external_ids="
117                 + external_ids + "]";
118     }
119 }