2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Copyright (C) 2017 Amdocs
8 * =============================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 * ============LICENSE_END=========================================================
25 package org.onap.appc.listener.LCM.model;
27 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
28 import com.fasterxml.jackson.annotation.JsonProperty;
29 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
30 import com.fasterxml.jackson.databind.JsonNode;
33 @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
34 @JsonIgnoreProperties(ignoreUnknown = true)
35 public class DmaapMessage{
37 @JsonProperty("version")
38 private String version;
43 @JsonProperty("correlation-id")
44 private String correlationID;
46 @JsonProperty("cambria.partition")
47 private String cambriaPartition;
49 @JsonProperty("rpc-name")
50 private String rpcName;
53 private JsonNode body;
55 public DmaapMessage() {
58 public String getVersion() {
62 public void setVersion(String version) {
63 this.version = version;
66 public String getType() {
70 public void setType(String type) {
74 public String getCorrelationID() {
78 public void setCorrelationID(String correlationID) {
79 this.correlationID = correlationID;
82 public String getCambriaPartition() {
83 return cambriaPartition;
86 public void setCambriaPartition(String cambriaPartition) {
87 this.cambriaPartition = cambriaPartition;
90 public String getRpcName() {
94 public void setRpcName(String rpcName) {
95 this.rpcName = rpcName;
98 public JsonNode getBody() {
102 public void setBody(JsonNode body) {
107 public String toString() {
108 return "DmaapMessage{" +
109 "version='" + version + '\'' +
110 ", type='" + type + '\'' +
111 ", correlationId='" + correlationID + '\'' +
112 ", cambriaPartition='" + cambriaPartition + '\'' +
113 ", rpcName='" + rpcName + '\'' +