2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
22 package org.openecomp.appc.listener.LCM.model;
24 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
25 import com.fasterxml.jackson.annotation.JsonProperty;
26 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
27 import com.fasterxml.jackson.databind.JsonNode;
30 @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
31 @JsonIgnoreProperties(ignoreUnknown = true)
32 public class DmaapMessage{
34 @JsonProperty("version")
35 private String version;
40 @JsonProperty("correlation-id")
41 private String correlationID;
43 @JsonProperty("cambria.partition")
44 private String cambriaPartition;
46 @JsonProperty("rpc-name")
47 private String rpcName;
50 private JsonNode body;
52 public DmaapMessage() {
55 public String getVersion() {
59 public void setVersion(String version) {
60 this.version = version;
63 public String getType() {
67 public void setType(String type) {
71 public String getCorrelationID() {
75 public void setCorrelationID(String correlationID) {
76 this.correlationID = correlationID;
79 public String getCambriaPartition() {
80 return cambriaPartition;
83 public void setCambriaPartition(String cambriaPartition) {
84 this.cambriaPartition = cambriaPartition;
87 public String getRpcName() {
91 public void setRpcName(String rpcName) {
92 this.rpcName = rpcName;
95 public JsonNode getBody() {
99 public void setBody(JsonNode body) {
104 public String toString() {
105 return "DmaapMessage{" +
106 "version='" + version + '\'' +
107 ", type='" + type + '\'' +
108 ", correlationId='" + correlationID + '\'' +
109 ", cambriaPartition='" + cambriaPartition + '\'' +
110 ", rpcName='" + rpcName + '\'' +