69745d6bfba4743fbd291f12ca1ca351b322ca74
[so.git] / common / src / main / java / org / onap / so / client / sdno / beans / RequestHealthDiagnostic.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.HashMap;
25 import java.util.Map;
26
27 import com.fasterxml.jackson.annotation.JsonAnyGetter;
28 import com.fasterxml.jackson.annotation.JsonAnySetter;
29 import com.fasterxml.jackson.annotation.JsonIgnore;
30 import com.fasterxml.jackson.annotation.JsonInclude;
31 import com.fasterxml.jackson.annotation.JsonProperty;
32 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
33
34 @JsonInclude(JsonInclude.Include.NON_NULL)
35 @JsonPropertyOrder({
36     "request-client-name",
37     "request-node-name",
38     "request-node-uuid",
39     "request-node-ip",
40     "request-id",
41     "request-user-id",
42     "request-node-type",
43     "health-diagnostic-code"
44 })
45 public class RequestHealthDiagnostic implements Serializable
46 {
47
48     @JsonProperty("request-client-name")
49     private String requestClientName;
50     @JsonProperty("request-node-name")
51     private String requestNodeName;
52     @JsonProperty("request-node-uuid")
53     private String requestNodeUuid;
54     @JsonProperty("request-node-ip")
55     private String requestNodeIp;
56     @JsonProperty("request-id")
57     private String requestId;
58     @JsonProperty("request-user-id")
59     private String requestUserId;
60     @JsonProperty("request-node-type")
61     private String requestNodeType;
62     @JsonProperty("health-diagnostic-code")
63     private String healthDiagnosticCode;
64     @JsonIgnore
65     private Map<String, Object> additionalProperties = new HashMap<String, Object>();
66     private final static long serialVersionUID = 1166788526178388021L;
67
68     @JsonProperty("request-client-name")
69     public String getRequestClientName() {
70         return requestClientName;
71     }
72
73     @JsonProperty("request-client-name")
74     public void setRequestClientName(String requestClientName) {
75         this.requestClientName = requestClientName;
76     }
77
78     public RequestHealthDiagnostic withRequestClientName(String requestClientName) {
79         this.requestClientName = requestClientName;
80         return this;
81     }
82
83     @JsonProperty("request-node-name")
84     public String getRequestNodeName() {
85         return requestNodeName;
86     }
87
88     @JsonProperty("request-node-name")
89     public void setRequestNodeName(String requestNodeName) {
90         this.requestNodeName = requestNodeName;
91     }
92
93     public RequestHealthDiagnostic withRequestNodeName(String requestNodeName) {
94         this.requestNodeName = requestNodeName;
95         return this;
96     }
97     
98     @JsonProperty("request-node-uuid")
99     public String getRequestNodeUuid() {
100         return requestNodeUuid;
101     }
102
103     @JsonProperty("request-node-uuid")
104     public void setRequestNodeUuid(String requestNodeUuid) {
105         this.requestNodeUuid = requestNodeUuid;
106     }
107
108     public RequestHealthDiagnostic withRequestNodeUuid(String requestNodeUuid) {
109         this.requestNodeUuid = requestNodeUuid;
110         return this;
111     }
112
113     @JsonProperty("request-node-ip")
114     public String getRequestNodeIp() {
115         return requestNodeIp;
116     }
117
118     @JsonProperty("request-node-ip")
119     public void setRequestNodeIp(String requestNodeIp) {
120         this.requestNodeIp = requestNodeIp;
121     }
122
123     public RequestHealthDiagnostic withRequestNodeIp(String requestNodeIp) {
124         this.requestNodeIp = requestNodeIp;
125         return this;
126     }
127
128     @JsonProperty("request-id")
129     public String getRequestId() {
130         return requestId;
131     }
132
133     @JsonProperty("request-id")
134     public void setRequestId(String requestId) {
135         this.requestId = requestId;
136     }
137
138     public RequestHealthDiagnostic withRequestId(String requestId) {
139         this.requestId = requestId;
140         return this;
141     }
142
143     @JsonProperty("request-user-id")
144     public String getRequestUserId() {
145         return requestUserId;
146     }
147
148     @JsonProperty("request-user-id")
149     public void setRequestUserId(String requestUserId) {
150         this.requestUserId = requestUserId;
151     }
152
153     public RequestHealthDiagnostic withRequestUserId(String requestUserId) {
154         this.requestUserId = requestUserId;
155         return this;
156     }
157
158     @JsonProperty("request-node-type")
159     public String getRequestNodeType() {
160         return requestNodeType;
161     }
162
163     @JsonProperty("request-node-type")
164     public void setRequestNodeType(String requestNodeType) {
165         this.requestNodeType = requestNodeType;
166     }
167
168     public RequestHealthDiagnostic withRequestNodeType(String requestNodeType) {
169         this.requestNodeType = requestNodeType;
170         return this;
171     }
172
173     @JsonProperty("health-diagnostic-code")
174     public String getHealthDiagnosticCode() {
175         return healthDiagnosticCode;
176     }
177
178     @JsonProperty("health-diagnostic-code")
179     public void setHealthDiagnosticCode(String healthDiagnosticCode) {
180         this.healthDiagnosticCode = healthDiagnosticCode;
181     }
182
183     public RequestHealthDiagnostic withHealthDiagnosticCode(String healthDiagnosticCode) {
184         this.healthDiagnosticCode = healthDiagnosticCode;
185         return this;
186     }
187
188     @JsonAnyGetter
189     public Map<String, Object> getAdditionalProperties() {
190         return this.additionalProperties;
191     }
192
193     @JsonAnySetter
194     public void setAdditionalProperty(String name, Object value) {
195         this.additionalProperties.put(name, value);
196     }
197     
198     public void setAdditionalProperties(Map<String, Object> map) {
199         this.additionalProperties = map;
200     }
201
202     public RequestHealthDiagnostic withAdditionalProperty(String name, Object value) {
203         this.additionalProperties.put(name, value);
204         return this;
205     }
206
207 }