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