1 /*******************************************************************************
\r
2 * Copyright © 2017-2018 AT&T Intellectual Property.
\r
4 * Licensed under the Apache License, Version 2.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.apache.org/licenses/LICENSE-2.0
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
15 ******************************************************************************/
\r
16 package org.onap.ccsdk.apps.ms.vlantagapi.core.model;
\r
18 import javax.validation.Valid;
\r
19 import java.util.Objects;
\r
20 import com.fasterxml.jackson.annotation.JsonProperty;
\r
22 import io.swagger.annotations.ApiModelProperty;
\r
25 * AssignVlanTagRequestInput.java Purpose: Provide Assign VlanTag Request Input Model
\r
27 * @author Saurav Paira
\r
30 public class AssignVlanTagRequestInput {
\r
31 private @Valid String policyInstanceName = null;
\r
32 private @Valid String resourceName = null;
\r
33 private @Valid String resourceValue = null;
\r
34 private @Valid String scopeId = null;
\r
35 private @Valid String key = null;
\r
36 private @Valid String vlanType = null;
\r
39 public AssignVlanTagRequestInput policyInstanceName(String policyInstanceName) {
\r
40 this.policyInstanceName = policyInstanceName;
\r
44 @ApiModelProperty(value = "")
\r
45 @JsonProperty("policy-instance-name")
\r
46 public String getPolicyInstanceName() {
\r
47 return policyInstanceName;
\r
50 public void setPolicyInstanceName(String policyInstanceName) {
\r
51 this.policyInstanceName = policyInstanceName;
\r
56 public AssignVlanTagRequestInput resourceName(String resourceName) {
\r
57 this.resourceName = resourceName;
\r
61 @ApiModelProperty(value = "")
\r
62 @JsonProperty("resource-name")
\r
63 public String getResourceName() {
\r
64 return resourceName;
\r
67 public void setResourceName(String resourceName) {
\r
68 this.resourceName = resourceName;
\r
73 public AssignVlanTagRequestInput resourceValue(String resourceValue) {
\r
74 this.resourceValue = resourceValue;
\r
78 @ApiModelProperty(value = "")
\r
79 @JsonProperty("resource-value")
\r
80 public String getResourceValue() {
\r
81 return resourceValue;
\r
84 public void setResourceValue(String resourceValue) {
\r
85 this.resourceValue = resourceValue;
\r
90 public AssignVlanTagRequestInput scopeId(String scopeId) {
\r
91 this.scopeId = scopeId;
\r
95 @ApiModelProperty(value = "")
\r
96 @JsonProperty("scope-id")
\r
97 public String getScopeId() {
\r
101 public void setScopeId(String scopeId) {
\r
102 this.scopeId = scopeId;
\r
107 public AssignVlanTagRequestInput key(String key) {
\r
112 @ApiModelProperty(value = "")
\r
113 @JsonProperty("key")
\r
114 public String getKey() {
\r
118 public void setKey(String key) {
\r
124 public AssignVlanTagRequestInput vlanType(String vlanType) {
\r
125 this.vlanType = vlanType;
\r
129 @ApiModelProperty(value = "")
\r
130 @JsonProperty("vlan-type")
\r
131 public String getVlanType() {
\r
135 public void setVlanType(String vlanType) {
\r
136 this.vlanType = vlanType;
\r
140 public boolean equals(java.lang.Object o) {
\r
144 if (o == null || getClass() != o.getClass()) {
\r
147 AssignVlanTagRequestInput assignVlanTagRequestInput = (AssignVlanTagRequestInput) o;
\r
148 return Objects.equals(policyInstanceName, assignVlanTagRequestInput.policyInstanceName)
\r
149 && Objects.equals(resourceName, assignVlanTagRequestInput.resourceName)
\r
150 && Objects.equals(resourceValue, assignVlanTagRequestInput.resourceValue)
\r
151 && Objects.equals(scopeId, assignVlanTagRequestInput.scopeId)
\r
152 && Objects.equals(key, assignVlanTagRequestInput.key)
\r
153 && Objects.equals(vlanType, assignVlanTagRequestInput.vlanType);
\r
157 public int hashCode() {
\r
158 return Objects.hash(policyInstanceName, resourceName, resourceValue, scopeId, key, vlanType);
\r
162 public String toString() {
\r
163 StringBuilder sb = new StringBuilder();
\r
164 sb.append("class AssignVlanTagRequestInput {\n");
\r
166 sb.append(" policyInstanceName: ").append(toIndentedString(policyInstanceName)).append("\n");
\r
167 sb.append(" resourceName: ").append(toIndentedString(resourceName)).append("\n");
\r
168 sb.append(" resourceValue: ").append(toIndentedString(resourceValue)).append("\n");
\r
169 sb.append(" scopeId: ").append(toIndentedString(scopeId)).append("\n");
\r
170 sb.append(" key: ").append(toIndentedString(key)).append("\n");
\r
171 sb.append(" vlanType: ").append(toIndentedString(vlanType)).append("\n");
\r
173 return sb.toString();
\r
177 * Convert the given object to string with each line indented by 4 spaces
\r
178 * (except the first line).
\r
180 private String toIndentedString(java.lang.Object o) {
\r
184 return o.toString().replace("\n", "\n ");
\r