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.util.HashMap;
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;
32 @JsonInclude(JsonInclude.Include.NON_NULL)
33 @JsonPropertyOrder({"client-name", "code", "processing-host", "request-id", "status"})
34 public class ResultInfo {
36 @JsonProperty("client-name")
37 private String clientName;
40 @JsonProperty("processing-host")
41 private String processingHost;
42 @JsonProperty("request-id")
43 private String requestId;
44 @JsonProperty("status")
45 private String status;
47 private Map<String, Object> additionalProperties = new HashMap<>();
49 @JsonProperty("client-name")
50 public String getClientName() {
54 @JsonProperty("client-name")
55 public void setClientName(String clientName) {
56 this.clientName = clientName;
60 public String getCode() {
65 public void setCode(String code) {
69 @JsonProperty("processing-host")
70 public String getProcessingHost() {
71 return processingHost;
74 @JsonProperty("processing-host")
75 public void setProcessingHost(String processingHost) {
76 this.processingHost = processingHost;
79 @JsonProperty("request-id")
80 public String getRequestId() {
84 @JsonProperty("request-id")
85 public void setRequestId(String requestId) {
86 this.requestId = requestId;
89 @JsonProperty("status")
90 public String getStatus() {
94 @JsonProperty("status")
95 public void setStatus(String status) {
100 public Map<String, Object> getAdditionalProperties() {
101 return this.additionalProperties;
105 public void setAdditionalProperty(String name, Object value) {
106 this.additionalProperties.put(name, value);
109 public void setAdditionalProperties(Map<String, Object> map) {
110 this.additionalProperties = map;