2 * Copyright (c) 2014 NEC Corporation
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
10 package org.opendaylight.vtn.app.run.config.rest.response.beans;
12 import org.opendaylight.vtn.app.run.config.json.annotations.JsonElement;
13 import org.opendaylight.vtn.app.run.config.json.annotations.JsonObject;
15 * VTenantPathMapNorthBound - Bean Representaion for VTenantPathMapNorthBound object from the JSON Response.
18 public class VTenantPathMapNorthBound {
21 * unique pathmap value for vtenant.
23 @JsonElement(name = "index")
24 private int index = 0;
27 * Condition value for pathmap in vtenant.
29 @JsonElement(name = "condition")
30 private String condition = null;
33 * Policy for pathmap in vtenant.
35 @JsonElement(name = "policy")
36 private int policy = 0;
41 @JsonElement(name = "idleTimeout")
42 private int idleTimeout = 0;
45 * Life time the vtenant.
47 @JsonElement(name = "hardTimeout")
48 private int hardTimeout = 0;
51 * Default Constructor.
53 public VTenantPathMapNorthBound() {
57 * Parameterized Constructor.
58 * @param index, condition, idleTimeout, hardTimeout
60 public VTenantPathMapNorthBound(int index, String condition,
61 int idleTimeout, int hardTimeout) {
63 this.condition = condition;
64 this.idleTimeout = idleTimeout;
65 this.hardTimeout = hardTimeout;
69 * getPolicy - function to get the policy for this object.
71 * @return {@link int }
73 public int getIndex() {
78 * setIndex - function to set the index for this object.
82 public void setIndex(int index) {
87 * getCondition - function to get the condition for this object.
89 * @return {@link int }
91 public String getCondition() {
96 * setCondition - function to set the condition for this object.
100 public void setCondition(String condition) {
101 this.condition = condition;
105 * getPolicy - function to get the policy for this object.
107 * @return {@link int }
109 public int getPolicy() {
114 * setPolicy - function to set the policy for this object.
118 public void setPolicy(int policy) {
119 this.policy = policy;
123 * getIdleTimeout - function to get the idleTimeout for this object.
125 * @return {@link int }
127 public int getIdleTimeout() {
132 * setIdleTimeout - function to set the idleTimeout for this object.
136 public void setIdleTimeout(int idleTimeout) {
137 this.idleTimeout = idleTimeout;
141 * getVtnName - function to get the hardTimeout for this object.
143 * @return {@link int }
145 public int getHardTimeout() {
150 * setHardTimeout - function to set the hardTimeout for this object.
154 public void setHardTimeout(int hardTimeout) {
155 this.hardTimeout = hardTimeout;
160 * String representation of the object.
164 public String toString() {
165 return "pathmap [index :" + index + ",condition:" + condition
166 + ",policy:" + policy + ",idleTimeout:" + idleTimeout
167 + ",hardTimeout:" + hardTimeout + "]";