@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KafkaActionHeader extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a Kafka header using key-value pairs when you create a Rule’s Kafka Action. You can use these headers to route data from IoT clients to downstream Kafka clusters without modifying your message payload.
For more information about Rule's Kafka action, see Apache Kafka.
Constructor and Description |
---|
KafkaActionHeader() |
Modifier and Type | Method and Description |
---|---|
KafkaActionHeader |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The key of the Kafka header.
|
String |
getValue()
The value of the Kafka header.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The key of the Kafka header.
|
void |
setValue(String value)
The value of the Kafka header.
|
String |
toString()
Returns a string representation of this object.
|
KafkaActionHeader |
withKey(String key)
The key of the Kafka header.
|
KafkaActionHeader |
withValue(String value)
The value of the Kafka header.
|
public void setKey(String key)
The key of the Kafka header.
key
- The key of the Kafka header.public String getKey()
The key of the Kafka header.
public KafkaActionHeader withKey(String key)
The key of the Kafka header.
key
- The key of the Kafka header.public void setValue(String value)
The value of the Kafka header.
value
- The value of the Kafka header.public String getValue()
The value of the Kafka header.
public KafkaActionHeader withValue(String value)
The value of the Kafka header.
value
- The value of the Kafka header.public String toString()
toString
in class Object
Object.toString()
public KafkaActionHeader clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.