AT&T 1712 and 1802 release code
[so.git] / common / src / main / java / org / openecomp / mso / client / sdno / beans / RequestHdCustom.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
22 package org.openecomp.mso.client.sdno.beans;
23
24 import java.util.ArrayList;
25 import java.util.List;
26 import com.fasterxml.jackson.annotation.JsonInclude;
27 import com.fasterxml.jackson.annotation.JsonProperty;
28 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
29
30 @JsonInclude(JsonInclude.Include.NON_NULL)
31 @JsonPropertyOrder({
32 "request-client-name",
33 "request-user-id",
34 "request-id",
35 "health-diagnostic-code",
36 "operation-type",
37 "aai-param-list"
38 })
39 public class RequestHdCustom {
40
41 @JsonProperty("request-client-name")
42 private String requestClientName;
43 @JsonProperty("request-user-id")
44 private String requestUserId;
45 @JsonProperty("request-id")
46 private String requestId;
47 @JsonProperty("health-diagnostic-code")
48 private String healthDiagnosticCode;
49 @JsonProperty("operation-type")
50 private String operationType;
51 @JsonProperty("aai-param-list")
52 private List<AAIParamList> aaiParamList = new ArrayList<AAIParamList>();
53
54 /**
55 * No args constructor for use in serialization
56
57 */
58 public RequestHdCustom() {
59  }
60
61 /**
62
63 * @param requestClientName
64 * @param operationType
65 * @param requestId
66 * @param healthDiagnosticCode
67 * @param aaiParamList
68 * @param requestUserId
69 */
70 public RequestHdCustom(String requestClientName, String requestUserId, String requestId, String healthDiagnosticCode, String operationType, List<AAIParamList> aaiParamList) {
71 super();
72 this.requestClientName = requestClientName;
73 this.requestUserId = requestUserId;
74 this.requestId = requestId;
75 this.healthDiagnosticCode = healthDiagnosticCode;
76 this.operationType = operationType;
77 this.aaiParamList = aaiParamList;
78  }
79
80 @JsonProperty("request-client-name")
81 public String getRequestClientName() {
82 return requestClientName;
83  }
84
85 @JsonProperty("request-client-name")
86 public void setRequestClientName(String requestClientName) {
87 this.requestClientName = requestClientName;
88  }
89
90 public RequestHdCustom withRequestClientName(String requestClientName) {
91 this.requestClientName = requestClientName;
92 return this;
93  }
94
95 @JsonProperty("request-user-id")
96 public String getRequestUserId() {
97 return requestUserId;
98  }
99
100 @JsonProperty("request-user-id")
101 public void setRequestUserId(String requestUserId) {
102 this.requestUserId = requestUserId;
103  }
104
105 public RequestHdCustom withRequestUserId(String requestUserId) {
106 this.requestUserId = requestUserId;
107 return this;
108  }
109
110 @JsonProperty("request-id")
111 public String getRequestId() {
112 return requestId;
113  }
114
115 @JsonProperty("request-id")
116 public void setRequestId(String requestId) {
117 this.requestId = requestId;
118  }
119
120 public RequestHdCustom withRequestId(String requestId) {
121 this.requestId = requestId;
122 return this;
123  }
124
125 @JsonProperty("health-diagnostic-code")
126 public String getHealthDiagnosticCode() {
127 return healthDiagnosticCode;
128  }
129
130 @JsonProperty("health-diagnostic-code")
131 public void setHealthDiagnosticCode(String healthDiagnosticCode) {
132 this.healthDiagnosticCode = healthDiagnosticCode;
133  }
134
135 public RequestHdCustom withHealthDiagnosticCode(String healthDiagnosticCode) {
136 this.healthDiagnosticCode = healthDiagnosticCode;
137 return this;
138  }
139
140 @JsonProperty("operation-type")
141 public String getOperationType() {
142 return operationType;
143  }
144
145 @JsonProperty("operation-type")
146 public void setOperationType(String operationType) {
147 this.operationType = operationType;
148  }
149
150 public RequestHdCustom withOperationType(String operationType) {
151 this.operationType = operationType;
152 return this;
153  }
154
155 @JsonProperty("aai-param-list")
156 public List<AAIParamList> getAaiParamList() {
157 return aaiParamList;
158  }
159
160 @JsonProperty("aai-param-list")
161 public void setAaiParamList(List<AAIParamList> aaiParamList) {
162 this.aaiParamList = aaiParamList;
163  }
164
165 public RequestHdCustom withAaiParamList(List<AAIParamList> aaiParamList) {
166 this.aaiParamList = aaiParamList;
167 return this;
168  }
169
170 }