@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KafkaAction extends Object implements Serializable, Cloneable, StructuredPojo
Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.
Constructor and Description |
---|
KafkaAction() |
Modifier and Type | Method and Description |
---|---|
KafkaAction |
addClientPropertiesEntry(String key,
String value)
Add a single ClientProperties entry
|
KafkaAction |
clearClientPropertiesEntries()
Removes all the entries added into ClientProperties.
|
KafkaAction |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getClientProperties()
Properties of the Apache Kafka producer client.
|
String |
getDestinationArn()
The ARN of Kafka action's VPC
TopicRuleDestination . |
List<KafkaActionHeader> |
getHeaders()
The list of Kafka headers that you specify.
|
String |
getKey()
The Kafka message key.
|
String |
getPartition()
The Kafka message partition.
|
String |
getTopic()
The Kafka topic for messages to be sent to the Kafka broker.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setClientProperties(Map<String,String> clientProperties)
Properties of the Apache Kafka producer client.
|
void |
setDestinationArn(String destinationArn)
The ARN of Kafka action's VPC
TopicRuleDestination . |
void |
setHeaders(Collection<KafkaActionHeader> headers)
The list of Kafka headers that you specify.
|
void |
setKey(String key)
The Kafka message key.
|
void |
setPartition(String partition)
The Kafka message partition.
|
void |
setTopic(String topic)
The Kafka topic for messages to be sent to the Kafka broker.
|
String |
toString()
Returns a string representation of this object.
|
KafkaAction |
withClientProperties(Map<String,String> clientProperties)
Properties of the Apache Kafka producer client.
|
KafkaAction |
withDestinationArn(String destinationArn)
The ARN of Kafka action's VPC
TopicRuleDestination . |
KafkaAction |
withHeaders(Collection<KafkaActionHeader> headers)
The list of Kafka headers that you specify.
|
KafkaAction |
withHeaders(KafkaActionHeader... headers)
The list of Kafka headers that you specify.
|
KafkaAction |
withKey(String key)
The Kafka message key.
|
KafkaAction |
withPartition(String partition)
The Kafka message partition.
|
KafkaAction |
withTopic(String topic)
The Kafka topic for messages to be sent to the Kafka broker.
|
public void setDestinationArn(String destinationArn)
The ARN of Kafka action's VPC TopicRuleDestination
.
destinationArn
- The ARN of Kafka action's VPC TopicRuleDestination
.public String getDestinationArn()
The ARN of Kafka action's VPC TopicRuleDestination
.
TopicRuleDestination
.public KafkaAction withDestinationArn(String destinationArn)
The ARN of Kafka action's VPC TopicRuleDestination
.
destinationArn
- The ARN of Kafka action's VPC TopicRuleDestination
.public void setTopic(String topic)
The Kafka topic for messages to be sent to the Kafka broker.
topic
- The Kafka topic for messages to be sent to the Kafka broker.public String getTopic()
The Kafka topic for messages to be sent to the Kafka broker.
public KafkaAction withTopic(String topic)
The Kafka topic for messages to be sent to the Kafka broker.
topic
- The Kafka topic for messages to be sent to the Kafka broker.public void setKey(String key)
The Kafka message key.
key
- The Kafka message key.public String getKey()
The Kafka message key.
public KafkaAction withKey(String key)
The Kafka message key.
key
- The Kafka message key.public void setPartition(String partition)
The Kafka message partition.
partition
- The Kafka message partition.public String getPartition()
The Kafka message partition.
public KafkaAction withPartition(String partition)
The Kafka message partition.
partition
- The Kafka message partition.public Map<String,String> getClientProperties()
Properties of the Apache Kafka producer client.
public void setClientProperties(Map<String,String> clientProperties)
Properties of the Apache Kafka producer client.
clientProperties
- Properties of the Apache Kafka producer client.public KafkaAction withClientProperties(Map<String,String> clientProperties)
Properties of the Apache Kafka producer client.
clientProperties
- Properties of the Apache Kafka producer client.public KafkaAction addClientPropertiesEntry(String key, String value)
public KafkaAction clearClientPropertiesEntries()
public List<KafkaActionHeader> getHeaders()
The list of Kafka headers that you specify.
public void setHeaders(Collection<KafkaActionHeader> headers)
The list of Kafka headers that you specify.
headers
- The list of Kafka headers that you specify.public KafkaAction withHeaders(KafkaActionHeader... headers)
The list of Kafka headers that you specify.
NOTE: This method appends the values to the existing list (if any). Use
setHeaders(java.util.Collection)
or withHeaders(java.util.Collection)
if you want to override
the existing values.
headers
- The list of Kafka headers that you specify.public KafkaAction withHeaders(Collection<KafkaActionHeader> headers)
The list of Kafka headers that you specify.
headers
- The list of Kafka headers that you specify.public String toString()
toString
in class Object
Object.toString()
public KafkaAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.