2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.vid.mso.model;
23 import com.fasterxml.jackson.annotation.*;
24 import org.apache.commons.lang.builder.EqualsBuilder;
25 import org.apache.commons.lang.builder.HashCodeBuilder;
26 import org.apache.commons.lang.builder.ToStringBuilder;
28 import java.util.ArrayList;
29 import java.util.HashMap;
30 import java.util.List;
33 @JsonInclude(JsonInclude.Include.NON_NULL)
35 "subscriptionServiceType",
39 public class RequestParameters {
41 @JsonProperty("subscriptionServiceType")
42 private String subscriptionServiceType;
43 @JsonProperty("testApi")
44 private String testApi;
45 @JsonProperty("userParams")
46 private List<UserParam> userParams = new ArrayList<>();
48 private Map<String, Object> additionalProperties = new HashMap<>();
53 * The subscriptionServiceType
55 @JsonProperty("subscriptionServiceType")
56 public String getSubscriptionServiceType() {
57 return subscriptionServiceType;
62 * @param subscriptionServiceType
63 * The subscriptionServiceType
65 @JsonProperty("subscriptionServiceType")
66 public void setSubscriptionServiceType(String subscriptionServiceType) {
67 this.subscriptionServiceType = subscriptionServiceType;
75 @JsonProperty("testApi")
76 public String getTestApi() {
85 @JsonProperty("testApi")
86 public void setTestApi(String testApi) {
87 this.testApi = testApi;
95 @JsonProperty("userParams")
96 public List<UserParam> getUserParams() {
105 @JsonProperty("userParams")
106 public void setUserParams(List<UserParam> userParams) {
107 this.userParams = userParams;
111 public String toString() {
112 return ToStringBuilder.reflectionToString(this);
116 public Map<String, Object> getAdditionalProperties() {
117 return this.additionalProperties;
121 public void setAdditionalProperty(String name, Object value) {
122 this.additionalProperties.put(name, value);
126 public int hashCode() {
127 return new HashCodeBuilder().append(subscriptionServiceType).append(testApi).append(userParams).append(additionalProperties).toHashCode();
131 public boolean equals(Object other) {
135 if (!(other instanceof RequestParameters)) {
138 RequestParameters rhs = ((RequestParameters) other);
139 return new EqualsBuilder().append(subscriptionServiceType, rhs.subscriptionServiceType).append(testApi, rhs.testApi).append(userParams, rhs.userParams).append(additionalProperties, rhs.additionalProperties).isEquals();