checkstyle: JavadocStyleCheck
[neutron.git] / neutron-spi / src / main / java / org / opendaylight / neutron / spi / NeutronPort_ExtraDHCPOption.java
1 /*
2  * Copyright (c) 2015 IBM Corporation and others.  All rights reserved.
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
9 package org.opendaylight.neutron.spi;
10
11 import java.io.Serializable;
12 import javax.xml.bind.annotation.XmlAccessType;
13 import javax.xml.bind.annotation.XmlAccessorType;
14 import javax.xml.bind.annotation.XmlElement;
15 import javax.xml.bind.annotation.XmlRootElement;
16
17 @XmlRootElement
18 @XmlAccessorType(XmlAccessType.NONE)
19 public final class NeutronPort_ExtraDHCPOption implements Serializable {
20     private static final long serialVersionUID = 1L;
21
22     @XmlElement(name = "opt_value")
23     String value;
24
25     @XmlElement(name = "opt_name")
26     String name;
27
28     @XmlElement(name = "ip_version", defaultValue = "4", required = false, nillable = true)
29     Integer ipVersion = 4;
30
31     public NeutronPort_ExtraDHCPOption() {
32     }
33
34     public NeutronPort_ExtraDHCPOption(String value, String name, Integer ipVersion) {
35         this.value = value;
36         this.name = name;
37         this.ipVersion = ipVersion;
38     }
39
40     public String getValue() {
41         return (value);
42     }
43
44     public void setValue(String value) {
45         this.value = value;
46     }
47
48     public String getName() {
49         return (name);
50     }
51
52     public void setName(String name) {
53         this.name = name;
54     }
55
56     public Integer getIpVersion() {
57         return ipVersion;
58     }
59
60     public void setIpVersion(Integer ipVersion) {
61         this.ipVersion = ipVersion;
62     }
63 }