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