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.ArrayList;
\r
19 import java.util.List;
\r
20 import java.util.Objects;
\r
22 import javax.validation.Valid;
\r
24 import com.fasterxml.jackson.annotation.JsonProperty;
\r
26 import io.swagger.annotations.ApiModelProperty;
\r
29 * UnassignVlanTagResponse.java Purpose: Provide Unassign VlanTag Response Model
\r
31 * @author Saurav Paira
\r
34 public class UnassignVlanTagResponse {
\r
35 private @Valid List<UnassignVlanTagResponseOutput> output = new ArrayList<UnassignVlanTagResponseOutput>();
\r
36 private @Valid Integer errorCode = null;
\r
37 private @Valid String errorMessage = null;
\r
41 public UnassignVlanTagResponse output(List<UnassignVlanTagResponseOutput> output) {
\r
42 this.output = output;
\r
46 @ApiModelProperty(value = "")
\r
47 @JsonProperty("output")
\r
48 public List<UnassignVlanTagResponseOutput> getOutput() {
\r
52 public void setOutput(List<UnassignVlanTagResponseOutput> output) {
\r
53 this.output = output;
\r
58 public UnassignVlanTagResponse errorCode(Integer errorCode) {
\r
59 this.errorCode = errorCode;
\r
63 @ApiModelProperty(value = "")
\r
64 @JsonProperty("error-code")
\r
65 public Integer getErrorCode() {
\r
69 public void setErrorCode(Integer errorCode) {
\r
70 this.errorCode = errorCode;
\r
75 public UnassignVlanTagResponse errorMessage(String errorMessage) {
\r
76 this.errorMessage = errorMessage;
\r
80 @ApiModelProperty(value = "")
\r
81 @JsonProperty("error-message")
\r
82 public String getErrorMessage() {
\r
83 return errorMessage;
\r
86 public void setErrorMessage(String errorMessage) {
\r
87 this.errorMessage = errorMessage;
\r
91 public boolean equals(java.lang.Object o) {
\r
95 if (o == null || getClass() != o.getClass()) {
\r
98 UnassignVlanTagResponse unassignVlanTagResponse = (UnassignVlanTagResponse) o;
\r
99 return Objects.equals(output, unassignVlanTagResponse.output)
\r
100 && Objects.equals(errorCode, unassignVlanTagResponse.errorCode)
\r
101 && Objects.equals(errorMessage, unassignVlanTagResponse.errorMessage);
\r
105 public int hashCode() {
\r
106 return Objects.hash(output, errorCode, errorMessage);
\r
110 public String toString() {
\r
111 StringBuilder sb = new StringBuilder();
\r
112 sb.append("class UnassignVlanTagResponse {\n");
\r
114 sb.append(" output: ").append(toIndentedString(output)).append("\n");
\r
115 sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
\r
116 sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n");
\r
118 return sb.toString();
\r
122 * Convert the given object to string with each line indented by 4 spaces
\r
123 * (except the first line).
\r
125 private String toIndentedString(java.lang.Object o) {
\r
129 return o.toString().replace("\n", "\n ");
\r