2 * ============LICENSE_START=======================================================
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
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.so.client.sdno.beans;
23 import java.io.Serializable;
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;
30 @JsonInclude(JsonInclude.Include.NON_NULL)
31 @JsonPropertyOrder({"request-client-name", "request-user-id", "request-id", "health-diagnostic-code", "operation-type",
32 "send-detailed-cmd-response", "aai-param-list"})
33 public class RequestHdCustom implements Serializable {
38 private static final long serialVersionUID = -206110458275127710L;
39 @JsonProperty("request-client-name")
40 private String requestClientName;
41 @JsonProperty("request-user-id")
42 private String requestUserId;
43 @JsonProperty("request-id")
44 private String requestId;
45 @JsonProperty("health-diagnostic-code")
46 private String healthDiagnosticCode;
47 @JsonProperty("operation-type")
48 private String operationType;
49 @JsonProperty("send-detailed-cmd-response")
50 private String sendDetailedCmdResponse = "false";
51 @JsonProperty("aai-param-list")
52 private List<AAIParamList> aaiParamList = new ArrayList<AAIParamList>();
55 * No args constructor for use in serialization
58 public RequestHdCustom() {}
62 * @param requestClientName
63 * @param operationType
65 * @param healthDiagnosticCode
67 * @param requestUserId
69 public RequestHdCustom(String requestClientName, String requestUserId, String requestId,
70 String healthDiagnosticCode, String operationType, List<AAIParamList> aaiParamList) {
72 this.requestClientName = requestClientName;
73 this.requestUserId = requestUserId;
74 this.requestId = requestId;
75 this.healthDiagnosticCode = healthDiagnosticCode;
76 this.operationType = operationType;
77 this.aaiParamList = aaiParamList;
80 @JsonProperty("request-client-name")
81 public String getRequestClientName() {
82 return requestClientName;
85 @JsonProperty("request-client-name")
86 public void setRequestClientName(String requestClientName) {
87 this.requestClientName = requestClientName;
90 public RequestHdCustom withRequestClientName(String requestClientName) {
91 this.requestClientName = requestClientName;
95 @JsonProperty("request-user-id")
96 public String getRequestUserId() {
100 @JsonProperty("request-user-id")
101 public void setRequestUserId(String requestUserId) {
102 this.requestUserId = requestUserId;
105 public RequestHdCustom withRequestUserId(String requestUserId) {
106 this.requestUserId = requestUserId;
110 @JsonProperty("request-id")
111 public String getRequestId() {
115 @JsonProperty("request-id")
116 public void setRequestId(String requestId) {
117 this.requestId = requestId;
120 public RequestHdCustom withRequestId(String requestId) {
121 this.requestId = requestId;
125 @JsonProperty("health-diagnostic-code")
126 public String getHealthDiagnosticCode() {
127 return healthDiagnosticCode;
130 @JsonProperty("health-diagnostic-code")
131 public void setHealthDiagnosticCode(String healthDiagnosticCode) {
132 this.healthDiagnosticCode = healthDiagnosticCode;
135 public RequestHdCustom withHealthDiagnosticCode(String healthDiagnosticCode) {
136 this.healthDiagnosticCode = healthDiagnosticCode;
140 @JsonProperty("operation-type")
141 public String getOperationType() {
142 return operationType;
145 @JsonProperty("operation-type")
146 public void setOperationType(String operationType) {
147 this.operationType = operationType;
150 public RequestHdCustom withOperationType(String operationType) {
151 this.operationType = operationType;
155 public void setSendDetailedCmdResponse(String sendDetailedCmdResponse) {
156 this.sendDetailedCmdResponse = sendDetailedCmdResponse;
159 public String getSendDetailedCmdResponse() {
160 return sendDetailedCmdResponse;
163 public RequestHdCustom withSendDetailedCmdResponse(String sendDetailedCmdResponse) {
164 this.sendDetailedCmdResponse = sendDetailedCmdResponse;
168 @JsonProperty("aai-param-list")
169 public List<AAIParamList> getAaiParamList() {
173 @JsonProperty("aai-param-list")
174 public void setAaiParamList(List<AAIParamList> aaiParamList) {
175 this.aaiParamList = aaiParamList;
178 public RequestHdCustom withAaiParamList(List<AAIParamList> aaiParamList) {
179 this.aaiParamList = aaiParamList;