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 * AssignVlanTagResponse.java Purpose: Provide Assign VlanTag Response Model
\r
31 * @author Saurav Paira
\r
34 public class AssignVlanTagResponse {
\r
36 private @Valid List<AssignVlanTagResponseOutput> output = new ArrayList<AssignVlanTagResponseOutput>();
\r
37 private @Valid Integer errorCode = null;
\r
38 private @Valid String errorMessage = null;
\r
40 public AssignVlanTagResponse() {}
\r
44 public AssignVlanTagResponse output(List<AssignVlanTagResponseOutput> output) {
\r
45 this.output = output;
\r
49 @ApiModelProperty(value = "")
\r
50 @JsonProperty("output")
\r
51 public List<AssignVlanTagResponseOutput> getOutput() {
\r
55 public void setOutput(List<AssignVlanTagResponseOutput> output) {
\r
56 this.output = output;
\r
61 public AssignVlanTagResponse errorCode(Integer errorCode) {
\r
62 this.errorCode = errorCode;
\r
66 @ApiModelProperty(value = "")
\r
67 @JsonProperty("error-code")
\r
68 public Integer getErrorCode() {
\r
72 public void setErrorCode(Integer errorCode) {
\r
73 this.errorCode = errorCode;
\r
78 public AssignVlanTagResponse errorMessage(String errorMessage) {
\r
79 this.errorMessage = errorMessage;
\r
83 @ApiModelProperty(value = "")
\r
84 @JsonProperty("error-message")
\r
85 public String getErrorMessage() {
\r
86 return errorMessage;
\r
89 public void setErrorMessage(String errorMessage) {
\r
90 this.errorMessage = errorMessage;
\r
94 public boolean equals(java.lang.Object o) {
\r
98 if (o == null || getClass() != o.getClass()) {
\r
101 AssignVlanTagResponse assignVlanTagResponse = (AssignVlanTagResponse) o;
\r
102 return Objects.equals(errorCode, assignVlanTagResponse.errorCode)
\r
103 && Objects.equals(errorMessage, assignVlanTagResponse.errorMessage)
\r
104 && Objects.equals(output, assignVlanTagResponse.output);
\r
108 public int hashCode() {
\r
109 return Objects.hash(output, errorCode, errorMessage);
\r
113 public String toString() {
\r
114 StringBuilder sb = new StringBuilder();
\r
115 sb.append("class AssignVlanTagResponse {\n");
\r
117 sb.append(" output: ").append(toIndentedString(output)).append("\n");
\r
118 sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n");
\r
119 sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n");
\r
121 return sb.toString();
\r
125 * Convert the given object to string with each line indented by 4 spaces
\r
126 * (except the first line).
\r
128 private String toIndentedString(java.lang.Object o) {
\r
132 return o.toString().replace("\n", "\n ");
\r