public class KafkaAction
extends java.lang.Object
implements java.io.Serializable
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(java.lang.String key,
java.lang.String value)
Properties of the Apache Kafka producer client.
|
KafkaAction |
clearclientPropertiesEntries()
Removes all the entries added into clientProperties.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getClientProperties()
Properties of the Apache Kafka producer client.
|
java.lang.String |
getDestinationArn()
The ARN of Kafka action's VPC
TopicRuleDestination . |
java.lang.String |
getKey()
The Kafka message key.
|
java.lang.String |
getPartition()
The Kafka message partition.
|
java.lang.String |
getTopic()
The Kafka topic for messages to be sent to the Kafka broker.
|
int |
hashCode() |
void |
setClientProperties(java.util.Map<java.lang.String,java.lang.String> clientProperties)
Properties of the Apache Kafka producer client.
|
void |
setDestinationArn(java.lang.String destinationArn)
The ARN of Kafka action's VPC
TopicRuleDestination . |
void |
setKey(java.lang.String key)
The Kafka message key.
|
void |
setPartition(java.lang.String partition)
The Kafka message partition.
|
void |
setTopic(java.lang.String topic)
The Kafka topic for messages to be sent to the Kafka broker.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
KafkaAction |
withClientProperties(java.util.Map<java.lang.String,java.lang.String> clientProperties)
Properties of the Apache Kafka producer client.
|
KafkaAction |
withDestinationArn(java.lang.String destinationArn)
The ARN of Kafka action's VPC
TopicRuleDestination . |
KafkaAction |
withKey(java.lang.String key)
The Kafka message key.
|
KafkaAction |
withPartition(java.lang.String partition)
The Kafka message partition.
|
KafkaAction |
withTopic(java.lang.String topic)
The Kafka topic for messages to be sent to the Kafka broker.
|
public java.lang.String getDestinationArn()
The ARN of Kafka action's VPC TopicRuleDestination
.
The ARN of Kafka action's VPC TopicRuleDestination
.
public void setDestinationArn(java.lang.String destinationArn)
The ARN of Kafka action's VPC TopicRuleDestination
.
destinationArn
-
The ARN of Kafka action's VPC
TopicRuleDestination
.
public KafkaAction withDestinationArn(java.lang.String destinationArn)
The ARN of Kafka action's VPC TopicRuleDestination
.
Returns a reference to this object so that method calls can be chained together.
destinationArn
-
The ARN of Kafka action's VPC
TopicRuleDestination
.
public java.lang.String getTopic()
The Kafka topic for messages to be sent to the Kafka broker.
The Kafka topic for messages to be sent to the Kafka broker.
public void setTopic(java.lang.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 KafkaAction withTopic(java.lang.String topic)
The Kafka topic for messages to be sent to the Kafka broker.
Returns a reference to this object so that method calls can be chained together.
topic
- The Kafka topic for messages to be sent to the Kafka broker.
public java.lang.String getKey()
The Kafka message key.
The Kafka message key.
public void setKey(java.lang.String key)
The Kafka message key.
key
- The Kafka message key.
public KafkaAction withKey(java.lang.String key)
The Kafka message key.
Returns a reference to this object so that method calls can be chained together.
key
- The Kafka message key.
public java.lang.String getPartition()
The Kafka message partition.
The Kafka message partition.
public void setPartition(java.lang.String partition)
The Kafka message partition.
partition
- The Kafka message partition.
public KafkaAction withPartition(java.lang.String partition)
The Kafka message partition.
Returns a reference to this object so that method calls can be chained together.
partition
- The Kafka message partition.
public java.util.Map<java.lang.String,java.lang.String> getClientProperties()
Properties of the Apache Kafka producer client.
Properties of the Apache Kafka producer client.
public void setClientProperties(java.util.Map<java.lang.String,java.lang.String> clientProperties)
Properties of the Apache Kafka producer client.
clientProperties
- Properties of the Apache Kafka producer client.
public KafkaAction withClientProperties(java.util.Map<java.lang.String,java.lang.String> clientProperties)
Properties of the Apache Kafka producer client.
Returns a reference to this object so that method calls can be chained together.
clientProperties
- Properties of the Apache Kafka producer client.
public KafkaAction addclientPropertiesEntry(java.lang.String key, java.lang.String value)
Properties of the Apache Kafka producer client.
The method adds a new key-value pair into clientProperties parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into clientProperties.value
- The corresponding value of the entry to be added into
clientProperties.public KafkaAction clearclientPropertiesEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.