2bc95daaeeda085eb2d86d1239186e94cc394fb3
[ccsdk/apps.git] /
1 /*******************************************************************************\r
2  * Copyright © 2017-2018 AT&T Intellectual Property.\r
3  * \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
7  * \r
8  *     http://www.apache.org/licenses/LICENSE-2.0\r
9  * \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
17 \r
18 import java.util.ArrayList;\r
19 import java.util.List;\r
20 import java.util.Objects;\r
21 \r
22 import javax.validation.Valid;\r
23 \r
24 import com.fasterxml.jackson.annotation.JsonProperty;\r
25 \r
26 import io.swagger.annotations.ApiModelProperty;\r
27 \r
28 /**\r
29  * UnassignVlanTagResponse.java Purpose: Provide Unassign VlanTag Response Model\r
30  *\r
31  * @author Saurav Paira\r
32  * @version 1.0\r
33  */\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
38 \r
39         /**\r
40          **/\r
41         public UnassignVlanTagResponse output(List<UnassignVlanTagResponseOutput> output) {\r
42                 this.output = output;\r
43                 return this;\r
44         }\r
45 \r
46         @ApiModelProperty(value = "")\r
47         @JsonProperty("output")\r
48         public List<UnassignVlanTagResponseOutput> getOutput() {\r
49                 return output;\r
50         }\r
51 \r
52         public void setOutput(List<UnassignVlanTagResponseOutput> output) {\r
53                 this.output = output;\r
54         }\r
55         \r
56         /**\r
57          **/\r
58         public UnassignVlanTagResponse errorCode(Integer errorCode) {\r
59                 this.errorCode = errorCode;\r
60                 return this;\r
61         }\r
62 \r
63         @ApiModelProperty(value = "")\r
64         @JsonProperty("error-code")\r
65         public Integer getErrorCode() {\r
66                 return errorCode;\r
67         }\r
68 \r
69         public void setErrorCode(Integer errorCode) {\r
70                 this.errorCode = errorCode;\r
71         }\r
72 \r
73         /**\r
74          **/\r
75         public UnassignVlanTagResponse errorMessage(String errorMessage) {\r
76                 this.errorMessage = errorMessage;\r
77                 return this;\r
78         }\r
79 \r
80         @ApiModelProperty(value = "")\r
81         @JsonProperty("error-message")\r
82         public String getErrorMessage() {\r
83                 return errorMessage;\r
84         }\r
85 \r
86         public void setErrorMessage(String errorMessage) {\r
87                 this.errorMessage = errorMessage;\r
88         }\r
89 \r
90         @Override\r
91         public boolean equals(java.lang.Object o) {\r
92                 if (this == o) {\r
93                         return true;\r
94                 }\r
95                 if (o == null || getClass() != o.getClass()) {\r
96                         return false;\r
97                 }\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
102         }\r
103 \r
104         @Override\r
105         public int hashCode() {\r
106                 return Objects.hash(output, errorCode, errorMessage);\r
107         }\r
108 \r
109         @Override\r
110         public String toString() {\r
111                 StringBuilder sb = new StringBuilder();\r
112                 sb.append("class UnassignVlanTagResponse {\n");\r
113 \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
117                 sb.append("}");\r
118                 return sb.toString();\r
119         }\r
120 \r
121         /**\r
122          * Convert the given object to string with each line indented by 4 spaces\r
123          * (except the first line).\r
124          */\r
125         private String toIndentedString(java.lang.Object o) {\r
126                 if (o == null) {\r
127                         return "null";\r
128                 }\r
129                 return o.toString().replace("\n", "\n    ");\r
130         }\r
131 }\r