a94b3447d7d7b342f1c8e2d996adf94a1516308e
[vtn.git] /
1 /**
2  * Copyright (c) 2014-2015 NEC Corporation
3  * All rights reserved.
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License v1.0 which accompanies this
7  * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
8  */
9
10 package org.opendaylight.vtn.app.run.config.rest.response.beans;
11
12 import java.util.List;
13
14 import org.opendaylight.vtn.app.run.config.rest.output.format.beans.VBridgeBean;
15 import org.opendaylight.vtn.app.run.config.rest.output.format.beans.VTerminalBean;
16
17 /**
18  * VTNConfigurationBean - Bean Representaion for VTNConfiguration object from
19  * the JSON Response.
20  *
21  */
22 public class VTNConfigurationBean {
23
24     /**
25      * name for vtn configuration.
26      */
27     String name = null;
28
29     /**
30      * description for vtn configuration.
31      */
32     String description = null;
33
34     /**
35      * idleTimeout for vtn configuration.
36      */
37     int idleTimeout = 0;
38
39     /**
40      * hardTimeout for vtn configuration.
41      */
42     int hardTimeout = 0;
43
44     /**
45      * FlowFilterList for the VTN.
46      */
47     private VTenantFlowFilterList vtnFlowfilter = null;
48
49     /**
50      * vbridge list for vtn configuration.
51      */
52     private List<VBridgeBean> vbridge = null;
53
54     /**
55      * vTerminal list for vtn configuration.
56      */
57     private List<VTerminalBean> vterminal = null;
58
59     /**
60      * DataFlowList for vtn configuration.
61      */
62     private DataFlowList dataflow = null;
63
64     /**
65      * Default Constructor.
66      */
67     public VTNConfigurationBean() {
68     }
69
70     /**
71      * getDataflow - function to get the list .
72      *
73      * @return {@link DataFlowList}
74      */
75     public DataFlowList getDataflow() {
76         return dataflow;
77     }
78
79     /**
80      * setDataflow - function to set the list .
81      *
82      * @param dataflow
83      */
84     public void setDataflow(DataFlowList dataflow) {
85         this.dataflow = dataflow;
86     }
87
88     /**
89      * getVtFlowfilter - function to get the flowfilter for this object.
90      *
91      * @return {@link VTenantFlowFilterList}
92      */
93     public VTenantFlowFilterList getVtnFlowfilter() {
94         return vtnFlowfilter;
95     }
96
97     /**
98      * setVtnFlowfilter - function to set the flowfilter for this object.
99      *
100      * @param vtnFlowfilter
101      */
102     public void setVtnFlowfilter(VTenantFlowFilterList vtnFlowfilter) {
103         this.vtnFlowfilter = vtnFlowfilter;
104     }
105
106     /**
107      * getPath - function to get the list .
108      *
109      * @return List of {@link VBridgeBean} objects
110      */
111     public List<VBridgeBean> getVbridge() {
112         return vbridge;
113     }
114
115     /**
116      * setVbridge - function to set the list .
117      *
118      * @param vbridge
119      */
120     public void setVbridge(List<VBridgeBean> vbridge) {
121         this.vbridge = vbridge;
122     }
123
124     /**
125      * getPath - function to get the list .
126      *
127      * @return List of {@link VTerminalBean} objects
128      */
129     public List<VTerminalBean> getVTerminal() {
130         return vterminal;
131     }
132
133     /**
134      * setVTerminal - function to set the list .
135      *
136      * @param vterminal
137      */
138     public void setVTerminal(List<VTerminalBean> vterminal) {
139         this.vterminal = vterminal;
140     }
141
142     /**
143      * getPath - function to get the name .
144      *
145      * @return {@link String }
146      */
147     public String getName() {
148         return name;
149     }
150
151     /**
152      * setName - function to set the name .
153      *
154      * @param name
155      */
156     public void setName(String name) {
157         this.name = name;
158     }
159
160     /**
161      * getPath - function to get the description .
162      *
163      * @return {@link String }
164      */
165     public String getDescription() {
166         return description;
167     }
168
169     /**
170      * setDescription - function to set the description .
171      *
172      * @param description
173      */
174     public void setDescription(String description) {
175         this.description = description;
176     }
177
178     /**
179      * getPath - function to get the IdleTimeout .
180      *
181      * @return {@link int }
182      */
183     public int getIdleTimeout() {
184         return idleTimeout;
185     }
186
187     /**
188      * setIdleTimeout - function to set the idleTimeout for object
189      *
190      * @param idleTimeout
191      */
192     public void setIdleTimeout(int idleTimeout) {
193         this.idleTimeout = idleTimeout;
194     }
195
196     /**
197      * getHardTimeout - function to get the hardTimeout .
198      *
199      * @return {@link int }
200      */
201     public int getHardTimeout() {
202         return hardTimeout;
203     }
204
205     /**
206      * setHardTimeout - function to set the hardTimeout for object
207      *
208      * @param hardTimeout
209      */
210     public void setHardTimeout(int hardTimeout) {
211         this.hardTimeout = hardTimeout;
212     }
213
214     /**
215      * String representation of this object.
216      */
217     @Override
218     public String toString() {
219         return "VTN RUN CONFIG [name:" + name + ",description:" + description
220               + ",idleTimeout:" + idleTimeout + ",hardTimeout:" + hardTimeout
221               + "]";
222     }
223 }
224