645e7e71c4fc0cad2ebc319144072d7ba8a28ebd
[vtn.git] /
1 /**
2  * Copyright (c) 2014 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 package org.opendaylight.vtn.app.run.config.rest.response.beans;
10
11 import org.opendaylight.vtn.app.run.config.json.annotations.JsonObject;
12 import org.opendaylight.vtn.app.run.config.json.annotations.JsonObjectRef;
13
14 /**
15  * L4Match - Bean Representaion for L4Match object from the JSON Response.
16  *
17  */
18 @JsonObject
19 public class L4Match {
20
21     /**
22      * Reference attribute for Icmp
23      */
24     @JsonObjectRef(name = "icmp")
25     Icmp icmp = new Icmp();
26
27     public L4Match() {
28     }
29
30     public L4Match(Icmp icmp) {
31         this.icmp = icmp;
32     }
33
34     /**
35      * getIcmp - function to get the icmp reference for this object.
36      *
37      * @return {@link int}
38      */
39     public Icmp getIcmp() {
40         return icmp;
41     }
42
43     /**
44      * setIcmp - function to set the icmp reference for this object.
45      *
46      * @param icmp
47      */
48     public void setIcmp(Icmp icmp) {
49         this.icmp = icmp;
50     }
51
52     /**
53      * String representation of the object.
54      *
55      */
56     @Override
57     public String toString() {
58         return "L4Match [icmp = " + icmp + "]";
59     }
60 }