Merge "Change the copyright to 2018"
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / openecomp / mso / 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.openecomp.mso.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-ip",
39     "request-id",
40     "request-user-id",
41     "request-node-type",
42     "health-diagnostic-code"
43 })
44 public class RequestHealthDiagnostic implements Serializable
45 {
46
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;
61     @JsonIgnore
62     private Map<String, Object> additionalProperties = new HashMap<>();
63     private final static long serialVersionUID = 1166788526178388021L;
64
65     @JsonProperty("request-client-name")
66     public String getRequestClientName() {
67         return requestClientName;
68     }
69
70     @JsonProperty("request-client-name")
71     public void setRequestClientName(String requestClientName) {
72         this.requestClientName = requestClientName;
73     }
74
75     public RequestHealthDiagnostic withRequestClientName(String requestClientName) {
76         this.requestClientName = requestClientName;
77         return this;
78     }
79
80     @JsonProperty("request-node-name")
81     public String getRequestNodeName() {
82         return requestNodeName;
83     }
84
85     @JsonProperty("request-node-name")
86     public void setRequestNodeName(String requestNodeName) {
87         this.requestNodeName = requestNodeName;
88     }
89
90     public RequestHealthDiagnostic withRequestNodeName(String requestNodeName) {
91         this.requestNodeName = requestNodeName;
92         return this;
93     }
94
95     @JsonProperty("request-node-ip")
96     public String getRequestNodeIp() {
97         return requestNodeIp;
98     }
99
100     @JsonProperty("request-node-ip")
101     public void setRequestNodeIp(String requestNodeIp) {
102         this.requestNodeIp = requestNodeIp;
103     }
104
105     public RequestHealthDiagnostic withRequestNodeIp(String requestNodeIp) {
106         this.requestNodeIp = requestNodeIp;
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 RequestHealthDiagnostic withRequestId(String requestId) {
121         this.requestId = requestId;
122         return this;
123     }
124
125     @JsonProperty("request-user-id")
126     public String getRequestUserId() {
127         return requestUserId;
128     }
129
130     @JsonProperty("request-user-id")
131     public void setRequestUserId(String requestUserId) {
132         this.requestUserId = requestUserId;
133     }
134
135     public RequestHealthDiagnostic withRequestUserId(String requestUserId) {
136         this.requestUserId = requestUserId;
137         return this;
138     }
139
140     @JsonProperty("request-node-type")
141     public String getRequestNodeType() {
142         return requestNodeType;
143     }
144
145     @JsonProperty("request-node-type")
146     public void setRequestNodeType(String requestNodeType) {
147         this.requestNodeType = requestNodeType;
148     }
149
150     public RequestHealthDiagnostic withRequestNodeType(String requestNodeType) {
151         this.requestNodeType = requestNodeType;
152         return this;
153     }
154
155     @JsonProperty("health-diagnostic-code")
156     public String getHealthDiagnosticCode() {
157         return healthDiagnosticCode;
158     }
159
160     @JsonProperty("health-diagnostic-code")
161     public void setHealthDiagnosticCode(String healthDiagnosticCode) {
162         this.healthDiagnosticCode = healthDiagnosticCode;
163     }
164
165     public RequestHealthDiagnostic withHealthDiagnosticCode(String healthDiagnosticCode) {
166         this.healthDiagnosticCode = healthDiagnosticCode;
167         return this;
168     }
169
170     @JsonAnyGetter
171     public Map<String, Object> getAdditionalProperties() {
172         return this.additionalProperties;
173     }
174
175     @JsonAnySetter
176     public void setAdditionalProperty(String name, Object value) {
177         this.additionalProperties.put(name, value);
178     }
179
180     public RequestHealthDiagnostic withAdditionalProperty(String name, Object value) {
181         this.additionalProperties.put(name, value);
182         return this;
183     }
184
185 }