@Generated(value="software.amazon.awssdk:codegen") public final class KafkaAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<KafkaAction.Builder,KafkaAction>
Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.
| Modifier and Type | Class and Description |
|---|---|
static interface |
KafkaAction.Builder |
| Modifier and Type | Method and Description |
|---|---|
static KafkaAction.Builder |
builder() |
Map<String,String> |
clientProperties()
Properties of the Apache Kafka producer client.
|
String |
destinationArn()
The ARN of Kafka action's VPC
TopicRuleDestination. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasClientProperties()
For responses, this returns true if the service returned a value for the ClientProperties property.
|
int |
hashCode() |
boolean |
hasHeaders()
For responses, this returns true if the service returned a value for the Headers property.
|
List<KafkaActionHeader> |
headers()
The list of Kafka headers that you specify.
|
String |
key()
The Kafka message key.
|
String |
partition()
The Kafka message partition.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends KafkaAction.Builder> |
serializableBuilderClass() |
KafkaAction.Builder |
toBuilder() |
String |
topic()
The Kafka topic for messages to be sent to the Kafka broker.
|
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String destinationArn()
The ARN of Kafka action's VPC TopicRuleDestination.
TopicRuleDestination.public final String topic()
The Kafka topic for messages to be sent to the Kafka broker.
public final String key()
The Kafka message key.
public final String partition()
The Kafka message partition.
public final boolean hasClientProperties()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final Map<String,String> clientProperties()
Properties of the Apache Kafka producer client.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasClientProperties() method.
public final boolean hasHeaders()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<KafkaActionHeader> headers()
The list of Kafka headers that you specify.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasHeaders() method.
public KafkaAction.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<KafkaAction.Builder,KafkaAction>public static KafkaAction.Builder builder()
public static Class<? extends KafkaAction.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.