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.openecomp.mso.client.sdno.beans;
23 import java.io.Serializable;
24 import java.util.HashMap;
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;
34 @JsonInclude(JsonInclude.Include.NON_NULL)
36 "request-client-name",
42 "health-diagnostic-code"
44 public class RequestHealthDiagnostic implements Serializable
47 @JsonProperty("request-client-name")
48 private String requestClientName;
49 @JsonProperty("request-node-name")
50 private String requestNodeName;
51 @JsonProperty("request-node-ip")
52 private String requestNodeIp;
53 @JsonProperty("request-id")
54 private String requestId;
55 @JsonProperty("request-user-id")
56 private String requestUserId;
57 @JsonProperty("request-node-type")
58 private String requestNodeType;
59 @JsonProperty("health-diagnostic-code")
60 private String healthDiagnosticCode;
62 private Map<String, Object> additionalProperties = new HashMap<>();
63 private final static long serialVersionUID = 1166788526178388021L;
65 @JsonProperty("request-client-name")
66 public String getRequestClientName() {
67 return requestClientName;
70 @JsonProperty("request-client-name")
71 public void setRequestClientName(String requestClientName) {
72 this.requestClientName = requestClientName;
75 public RequestHealthDiagnostic withRequestClientName(String requestClientName) {
76 this.requestClientName = requestClientName;
80 @JsonProperty("request-node-name")
81 public String getRequestNodeName() {
82 return requestNodeName;
85 @JsonProperty("request-node-name")
86 public void setRequestNodeName(String requestNodeName) {
87 this.requestNodeName = requestNodeName;
90 public RequestHealthDiagnostic withRequestNodeName(String requestNodeName) {
91 this.requestNodeName = requestNodeName;
95 @JsonProperty("request-node-ip")
96 public String getRequestNodeIp() {
100 @JsonProperty("request-node-ip")
101 public void setRequestNodeIp(String requestNodeIp) {
102 this.requestNodeIp = requestNodeIp;
105 public RequestHealthDiagnostic withRequestNodeIp(String requestNodeIp) {
106 this.requestNodeIp = requestNodeIp;
110 @JsonProperty("request-id")
111 public String getRequestId() {
115 @JsonProperty("request-id")
116 public void setRequestId(String requestId) {
117 this.requestId = requestId;
120 public RequestHealthDiagnostic withRequestId(String requestId) {
121 this.requestId = requestId;
125 @JsonProperty("request-user-id")
126 public String getRequestUserId() {
127 return requestUserId;
130 @JsonProperty("request-user-id")
131 public void setRequestUserId(String requestUserId) {
132 this.requestUserId = requestUserId;
135 public RequestHealthDiagnostic withRequestUserId(String requestUserId) {
136 this.requestUserId = requestUserId;
140 @JsonProperty("request-node-type")
141 public String getRequestNodeType() {
142 return requestNodeType;
145 @JsonProperty("request-node-type")
146 public void setRequestNodeType(String requestNodeType) {
147 this.requestNodeType = requestNodeType;
150 public RequestHealthDiagnostic withRequestNodeType(String requestNodeType) {
151 this.requestNodeType = requestNodeType;
155 @JsonProperty("health-diagnostic-code")
156 public String getHealthDiagnosticCode() {
157 return healthDiagnosticCode;
160 @JsonProperty("health-diagnostic-code")
161 public void setHealthDiagnosticCode(String healthDiagnosticCode) {
162 this.healthDiagnosticCode = healthDiagnosticCode;
165 public RequestHealthDiagnostic withHealthDiagnosticCode(String healthDiagnosticCode) {
166 this.healthDiagnosticCode = healthDiagnosticCode;
171 public Map<String, Object> getAdditionalProperties() {
172 return this.additionalProperties;
176 public void setAdditionalProperty(String name, Object value) {
177 this.additionalProperties.put(name, value);
180 public void setAdditionalProperties(Map<String, Object> map) {
181 this.additionalProperties = map;
184 public RequestHealthDiagnostic withAdditionalProperty(String name, Object value) {
185 this.additionalProperties.put(name, value);