All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.camunda.connector.kafka.inbound.KafkaInboundMessage Maven / Gradle / Ivy

There is a newer version: 8.6.2
Show newest version
/*
 * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
 * under one or more contributor license agreements. Licensed under a proprietary license.
 * See the License.txt file for more information. You may not use this file
 * except in compliance with the proprietary license.
 */
package io.camunda.connector.kafka.inbound;

import java.util.Map;
import java.util.Objects;

public class KafkaInboundMessage {

  private String key;

  private String rawValue;

  private Object value;

  private Map headers;

  public String getKey() {
    return key;
  }

  public void setKey(String key) {
    this.key = key;
  }

  public String getRawValue() {
    return rawValue;
  }

  public void setRawValue(String stringValue) {
    this.rawValue = stringValue;
  }

  public Object getValue() {
    return value;
  }

  public void setValue(Object value) {
    this.value = value;
  }

  public Map getHeaders() {
    return headers;
  }

  public void setHeaders(final Map headers) {
    this.headers = headers;
  }

  @Override
  public String toString() {
    return "KafkaInboundMessage{"
        + "key='"
        + key
        + '\''
        + ", rawValue='"
        + rawValue
        + '\''
        + ", value="
        + value
        + ", headers="
        + headers
        + '}';
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    KafkaInboundMessage that = (KafkaInboundMessage) o;
    return Objects.equals(key, that.key)
        && Objects.equals(rawValue, that.rawValue)
        && Objects.equals(value, that.value)
        && Objects.equals(headers, that.headers);
  }

  @Override
  public int hashCode() {
    return Objects.hash(key, rawValue, value, headers);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy