Merge "Change the copyright to 2018"
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / openecomp / mso / client / sdno / beans / ResultInfo.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.util.HashMap;
24 import java.util.Map;
25
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;
32
33 @JsonInclude(JsonInclude.Include.NON_NULL)
34 @JsonPropertyOrder({
35 "client-name",
36 "code",
37 "processing-host",
38 "request-id",
39 "status"
40 })
41 public class ResultInfo {
42
43 @JsonProperty("client-name")
44 private String clientName;
45 @JsonProperty("code")
46 private String code;
47 @JsonProperty("processing-host")
48 private String processingHost;
49 @JsonProperty("request-id")
50 private String requestId;
51 @JsonProperty("status")
52 private String status;
53 @JsonIgnore
54 private Map<String, Object> additionalProperties = new HashMap<>();
55
56 @JsonProperty("client-name")
57 public String getClientName() {
58 return clientName;
59 }
60
61 @JsonProperty("client-name")
62 public void setClientName(String clientName) {
63 this.clientName = clientName;
64 }
65
66 @JsonProperty("code")
67 public String getCode() {
68 return code;
69 }
70
71 @JsonProperty("code")
72 public void setCode(String code) {
73 this.code = code;
74 }
75
76 @JsonProperty("processing-host")
77 public String getProcessingHost() {
78 return processingHost;
79 }
80
81 @JsonProperty("processing-host")
82 public void setProcessingHost(String processingHost) {
83 this.processingHost = processingHost;
84 }
85
86 @JsonProperty("request-id")
87 public String getRequestId() {
88 return requestId;
89 }
90
91 @JsonProperty("request-id")
92 public void setRequestId(String requestId) {
93 this.requestId = requestId;
94 }
95
96 @JsonProperty("status")
97 public String getStatus() {
98 return status;
99 }
100
101 @JsonProperty("status")
102 public void setStatus(String status) {
103 this.status = status;
104 }
105
106 @JsonAnyGetter
107 public Map<String, Object> getAdditionalProperties() {
108 return this.additionalProperties;
109 }
110
111 @JsonAnySetter
112 public void setAdditionalProperty(String name, Object value) {
113 this.additionalProperties.put(name, value);
114 }
115
116 }