Replaced all tabs with spaces in java and pom.xml
[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 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({"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 {
34
35     /**
36          * 
37          */
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>();
53
54     /**
55      * No args constructor for use in serialization
56      * 
57      */
58     public RequestHdCustom() {}
59
60     /**
61      * 
62      * @param requestClientName
63      * @param operationType
64      * @param requestId
65      * @param healthDiagnosticCode
66      * @param aaiParamList
67      * @param requestUserId
68      */
69     public RequestHdCustom(String requestClientName, String requestUserId, String requestId,
70             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     public void setSendDetailedCmdResponse(String sendDetailedCmdResponse) {
156         this.sendDetailedCmdResponse = sendDetailedCmdResponse;
157     }
158
159     public String getSendDetailedCmdResponse() {
160         return sendDetailedCmdResponse;
161     }
162
163     public RequestHdCustom withSendDetailedCmdResponse(String sendDetailedCmdResponse) {
164         this.sendDetailedCmdResponse = sendDetailedCmdResponse;
165         return this;
166     }
167
168     @JsonProperty("aai-param-list")
169     public List<AAIParamList> getAaiParamList() {
170         return aaiParamList;
171     }
172
173     @JsonProperty("aai-param-list")
174     public void setAaiParamList(List<AAIParamList> aaiParamList) {
175         this.aaiParamList = aaiParamList;
176     }
177
178     public RequestHdCustom withAaiParamList(List<AAIParamList> aaiParamList) {
179         this.aaiParamList = aaiParamList;
180         return this;
181     }
182
183 }