049363119dd66cfec0c0aca6d2092fff2e7201af
[groupbasedpolicy.git] / renderers / vpp / src / main / java / org / opendaylight / groupbasedpolicy / renderer / vpp / commands / AbstractInterfaceCommand.java
1 /*\r
2  * Copyright (c) 2016 Cisco Systems. All rights reserved.\r
3  *\r
4  * This program and the accompanying materials are made available under the\r
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
6  * and is available at http://www.eclipse.org/legal/epl-v10.html\r
7  */\r
8 \r
9 package org.opendaylight.groupbasedpolicy.renderer.vpp.commands;\r
10 \r
11 import org.opendaylight.groupbasedpolicy.renderer.vpp.util.General;\r
12 \r
13 public abstract class AbstractInterfaceCommand<T extends AbstractInterfaceCommand<T>> implements ConfigCommand {\r
14 \r
15     protected General.Operations operation;\r
16     protected String name;\r
17     protected String description;\r
18     protected Boolean enabled;\r
19 \r
20     protected enum linkUpDownTrap {\r
21         ENABLED, DISABLED\r
22     }\r
23 \r
24     public General.Operations getOperation() {\r
25         return operation;\r
26     }\r
27 \r
28     public String getName() {\r
29         return name;\r
30     }\r
31 \r
32     public String getDescription() {\r
33         return description;\r
34     }\r
35 \r
36     public AbstractInterfaceCommand<T> setDescription(String description) {\r
37         this.description = description;\r
38         return this;\r
39     }\r
40 \r
41     public Boolean getEnabled() {\r
42         return enabled;\r
43     }\r
44 \r
45     public AbstractInterfaceCommand<T> setEnabled(Boolean enabled) {\r
46         this.enabled = enabled;\r
47         return this;\r
48     }\r
49 \r
50 }\r