1 /*******************************************************************************
\r
2 * Copyright © 2017-2018 AT&T Intellectual Property.
\r
3 * Modifications Copyright © 2017-2018 AT&T Intellectual Property.
\r
5 * Licensed under the Apache License, Version 2.0 (the "License");
\r
6 * you may not use this file except in compliance with the License.
\r
7 * You may obtain a copy of the License at
\r
9 * http://www.apache.org/licenses/LICENSE-2.0
\r
11 * Unless required by applicable law or agreed to in writing, software
\r
12 * distributed under the License is distributed on an "AS IS" BASIS,
\r
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
14 * See the License for the specific language governing permissions and
\r
15 * limitations under the License.
\r
16 ******************************************************************************/
\r
17 package org.onap.ccsdk.apps.ms.vlantagapi.core.model;
\r
19 import java.util.ArrayList;
\r
20 import java.util.List;
\r
21 import java.util.Objects;
\r
23 import javax.validation.Valid;
\r
25 import com.fasterxml.jackson.annotation.JsonProperty;
\r
27 import io.swagger.annotations.ApiModelProperty;
\r
30 * AssignVlanTagRequest.java Purpose: Provide Assign VlanTag Request Model
\r
32 * @author Saurav Paira
\r
35 public class AssignVlanTagRequest {
\r
37 private @Valid List<AssignVlanTagRequestInput> input = new ArrayList<>();
\r
41 public AssignVlanTagRequest input(List<AssignVlanTagRequestInput> input) {
\r
47 @ApiModelProperty(value = "")
\r
48 @JsonProperty("input")
\r
49 public List<AssignVlanTagRequestInput> getInput() {
\r
52 public void setInput(List<AssignVlanTagRequestInput> input) {
\r
58 public boolean equals(java.lang.Object o) {
\r
62 if (o == null || getClass() != o.getClass()) {
\r
65 AssignVlanTagRequest assignVlanTagRequest = (AssignVlanTagRequest) o;
\r
66 return Objects.equals(input, assignVlanTagRequest.input);
\r
70 public int hashCode() {
\r
71 return Objects.hash(input);
\r
75 public String toString() {
\r
76 StringBuilder sb = new StringBuilder();
\r
77 sb.append("class AssignVlanTagRequest {\n");
\r
79 sb.append(" input: ").append(toIndentedString(input)).append("\n");
\r
81 return sb.toString();
\r
85 * Convert the given object to string with each line indented by 4 spaces
\r
86 * (except the first line).
\r
88 private String toIndentedString(java.lang.Object o) {
\r
92 return o.toString().replace("\n", "\n ");
\r