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 java.util.Objects;
\r
20 import javax.validation.Valid;
\r
22 import com.fasterxml.jackson.annotation.JsonProperty;
\r
24 import io.swagger.annotations.ApiModelProperty;
\r
27 * VlanTag.java Purpose: Provide VlanTag Model for the Assign Response Output
\r
29 * @author Saurav Paira
\r
32 public class VlanTag {
\r
34 private @Valid String vlanUuid = null;
\r
35 private @Valid String vlantagName = null;
\r
36 private @Valid String vlantagValue = null;
\r
37 private @Valid String elementVlanRole = null;
\r
41 public VlanTag vlanUuid(String vlanUuid) {
\r
42 this.vlanUuid = vlanUuid;
\r
46 @ApiModelProperty(value = "")
\r
47 @JsonProperty("vlan-uuid")
\r
48 public String getVlanUuid() {
\r
52 public void setVlanUuid(String vlanUuid) {
\r
53 this.vlanUuid = vlanUuid;
\r
58 public VlanTag vlantagName(String vlantagName) {
\r
59 this.vlantagName = vlantagName;
\r
63 @ApiModelProperty(value = "")
\r
64 @JsonProperty("vlantag-name")
\r
65 public String getVlantagName() {
\r
69 public void setVlantagName(String vlantagName) {
\r
70 this.vlantagName = vlantagName;
\r
75 public VlanTag vlantagValue(String vlantagValue) {
\r
76 this.vlantagValue = vlantagValue;
\r
80 @ApiModelProperty(value = "")
\r
81 @JsonProperty("vlantag-value")
\r
82 public String getVlantagValue() {
\r
83 return vlantagValue;
\r
86 public void setVlantagValue(String vlantagValue) {
\r
87 this.vlantagValue = vlantagValue;
\r
92 public VlanTag elementVlanRole(String elementVlanRole) {
\r
93 this.elementVlanRole = elementVlanRole;
\r
97 @ApiModelProperty(value = "")
\r
98 @JsonProperty("element-vlan-role")
\r
99 public String getElementVlanRole() {
\r
100 return elementVlanRole;
\r
103 public void setElementVlanRole(String elementVlanRole) {
\r
104 this.elementVlanRole = elementVlanRole;
\r
108 public boolean equals(java.lang.Object o) {
\r
112 if (o == null || getClass() != o.getClass()) {
\r
115 VlanTag vlanTag = (VlanTag) o;
\r
116 return Objects.equals(vlanUuid, vlanTag.vlanUuid) && Objects.equals(vlantagName, vlanTag.vlantagName)
\r
117 && Objects.equals(vlantagValue, vlanTag.vlantagValue)
\r
118 && Objects.equals(elementVlanRole, vlanTag.elementVlanRole);
\r
122 public int hashCode() {
\r
123 return Objects.hash(vlanUuid, vlantagName, vlantagValue, elementVlanRole);
\r
127 public String toString() {
\r
128 StringBuilder sb = new StringBuilder();
\r
129 sb.append("class VlanTag {\n");
\r
131 sb.append(" vlanUuid: ").append(toIndentedString(vlanUuid)).append("\n");
\r
132 sb.append(" vlantagName: ").append(toIndentedString(vlantagName)).append("\n");
\r
133 sb.append(" vlantagValue: ").append(toIndentedString(vlantagValue)).append("\n");
\r
134 sb.append(" elementVlanRole: ").append(toIndentedString(elementVlanRole)).append("\n");
\r
136 return sb.toString();
\r
140 * Convert the given object to string with each line indented by 4 spaces
\r
141 * (except the first line).
\r
143 private String toIndentedString(java.lang.Object o) {
\r
147 return o.toString().replace("\n", "\n ");
\r