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.HashMap;
26 import com.fasterxml.jackson.annotation.JsonAnyGetter;
27 import com.fasterxml.jackson.annotation.JsonAnySetter;
28 import com.fasterxml.jackson.annotation.JsonIgnore;
29 import com.fasterxml.jackson.annotation.JsonInclude;
30 import com.fasterxml.jackson.annotation.JsonProperty;
31 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
33 @JsonInclude(JsonInclude.Include.NON_NULL)
34 @JsonPropertyOrder({"request-client-name", "request-node-name", "request-node-uuid", "request-node-ip", "request-id",
35 "request-user-id", "request-node-type", "health-diagnostic-code"})
36 public class RequestHealthDiagnostic implements Serializable {
38 @JsonProperty("request-client-name")
39 private String requestClientName;
40 @JsonProperty("request-node-name")
41 private String requestNodeName;
42 @JsonProperty("request-node-uuid")
43 private String requestNodeUuid;
44 @JsonProperty("request-node-ip")
45 private String requestNodeIp;
46 @JsonProperty("request-id")
47 private String requestId;
48 @JsonProperty("request-user-id")
49 private String requestUserId;
50 @JsonProperty("request-node-type")
51 private String requestNodeType;
52 @JsonProperty("health-diagnostic-code")
53 private String healthDiagnosticCode;
55 private Map<String, Object> additionalProperties = new HashMap<String, Object>();
56 private final static long serialVersionUID = 1166788526178388021L;
58 @JsonProperty("request-client-name")
59 public String getRequestClientName() {
60 return requestClientName;
63 @JsonProperty("request-client-name")
64 public void setRequestClientName(String requestClientName) {
65 this.requestClientName = requestClientName;
68 public RequestHealthDiagnostic withRequestClientName(String requestClientName) {
69 this.requestClientName = requestClientName;
73 @JsonProperty("request-node-name")
74 public String getRequestNodeName() {
75 return requestNodeName;
78 @JsonProperty("request-node-name")
79 public void setRequestNodeName(String requestNodeName) {
80 this.requestNodeName = requestNodeName;
83 public RequestHealthDiagnostic withRequestNodeName(String requestNodeName) {
84 this.requestNodeName = requestNodeName;
88 @JsonProperty("request-node-uuid")
89 public String getRequestNodeUuid() {
90 return requestNodeUuid;
93 @JsonProperty("request-node-uuid")
94 public void setRequestNodeUuid(String requestNodeUuid) {
95 this.requestNodeUuid = requestNodeUuid;
98 public RequestHealthDiagnostic withRequestNodeUuid(String requestNodeUuid) {
99 this.requestNodeUuid = requestNodeUuid;
103 @JsonProperty("request-node-ip")
104 public String getRequestNodeIp() {
105 return requestNodeIp;
108 @JsonProperty("request-node-ip")
109 public void setRequestNodeIp(String requestNodeIp) {
110 this.requestNodeIp = requestNodeIp;
113 public RequestHealthDiagnostic withRequestNodeIp(String requestNodeIp) {
114 this.requestNodeIp = requestNodeIp;
118 @JsonProperty("request-id")
119 public String getRequestId() {
123 @JsonProperty("request-id")
124 public void setRequestId(String requestId) {
125 this.requestId = requestId;
128 public RequestHealthDiagnostic withRequestId(String requestId) {
129 this.requestId = requestId;
133 @JsonProperty("request-user-id")
134 public String getRequestUserId() {
135 return requestUserId;
138 @JsonProperty("request-user-id")
139 public void setRequestUserId(String requestUserId) {
140 this.requestUserId = requestUserId;
143 public RequestHealthDiagnostic withRequestUserId(String requestUserId) {
144 this.requestUserId = requestUserId;
148 @JsonProperty("request-node-type")
149 public String getRequestNodeType() {
150 return requestNodeType;
153 @JsonProperty("request-node-type")
154 public void setRequestNodeType(String requestNodeType) {
155 this.requestNodeType = requestNodeType;
158 public RequestHealthDiagnostic withRequestNodeType(String requestNodeType) {
159 this.requestNodeType = requestNodeType;
163 @JsonProperty("health-diagnostic-code")
164 public String getHealthDiagnosticCode() {
165 return healthDiagnosticCode;
168 @JsonProperty("health-diagnostic-code")
169 public void setHealthDiagnosticCode(String healthDiagnosticCode) {
170 this.healthDiagnosticCode = healthDiagnosticCode;
173 public RequestHealthDiagnostic withHealthDiagnosticCode(String healthDiagnosticCode) {
174 this.healthDiagnosticCode = healthDiagnosticCode;
179 public Map<String, Object> getAdditionalProperties() {
180 return this.additionalProperties;
184 public void setAdditionalProperty(String name, Object value) {
185 this.additionalProperties.put(name, value);
188 public void setAdditionalProperties(Map<String, Object> map) {
189 this.additionalProperties = map;
192 public RequestHealthDiagnostic withAdditionalProperty(String name, Object value) {
193 this.additionalProperties.put(name, value);