0de9b90d663a90716a55e75aefc523b1a483e1c8
[so.git] / common / src / main / java / org / onap / so / client / sdno / beans / AAIParamList.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.onap.so.client.sdno.beans;
22
23 import com.fasterxml.jackson.annotation.JsonInclude;
24 import com.fasterxml.jackson.annotation.JsonProperty;
25 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
26
27 @JsonInclude(JsonInclude.Include.NON_NULL)
28 @JsonPropertyOrder({
29 "key",
30 "value"
31 })
32 public class AAIParamList {
33
34 @JsonProperty("key")
35 private String key;
36 @JsonProperty("value")
37 private String value;
38
39 /**
40 * No args constructor for use in serialization
41
42 */
43 public AAIParamList() {
44  }
45
46 /**
47
48 * @param value
49 * @param key
50 */
51 public AAIParamList(String key, String value) {
52 super();
53 this.key = key;
54 this.value = value;
55  }
56
57 @JsonProperty("key")
58 public String getKey() {
59 return key;
60  }
61
62 @JsonProperty("key")
63 public void setKey(String key) {
64 this.key = key;
65  }
66
67 public AAIParamList withKey(String key) {
68 this.key = key;
69 return this;
70  }
71
72 @JsonProperty("value")
73 public String getValue() {
74 return value;
75  }
76
77 @JsonProperty("value")
78 public void setValue(String value) {
79 this.value = value;
80  }
81
82 public AAIParamList withValue(String value) {
83 this.value = value;
84 return this;
85  }
86
87 }