Interface MskParameters.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MskParameters.Builder,,MskParameters> SdkBuilder<MskParameters.Builder,,MskParameters> SdkPojo
- Enclosing class:
MskParameters
-
Method Summary
Modifier and TypeMethodDescriptionProducer acknowledgement mode.Producer acknowledgement mode.Producer client.id passed to the Kafka broker.compression(String compression) Producer compression codec applied to the record batch.compression(MskCompression compression) Producer compression codec applied to the record batch.connectivity(String connectivity) How the service connects to the cluster.connectivity(MskConnectivity connectivity) How the service connects to the cluster.headers(Collection<MskHeader> headers) Kafka record headers attached to each produced record.headers(Consumer<MskHeader.Builder>... headers) Kafka record headers attached to each produced record.Kafka record headers attached to each produced record.partitionKey(String partitionKey) Kafka record key.Name of the Kafka topic events are produced to.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
topicName
Name of the Kafka topic events are produced to. Accepts a literal or a JSONata expression resolved once per delivered event.
- Parameters:
topicName- Name of the Kafka topic events are produced to. Accepts a literal or a JSONata expression resolved once per delivered event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
compression
Producer compression codec applied to the record batch. Defaults to NONE.
- Parameters:
compression- Producer compression codec applied to the record batch. Defaults to NONE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
compression
Producer compression codec applied to the record batch. Defaults to NONE.
- Parameters:
compression- Producer compression codec applied to the record batch. Defaults to NONE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
acks
Producer acknowledgement mode. Defaults to ALL.
- Parameters:
acks- Producer acknowledgement mode. Defaults to ALL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
acks
Producer acknowledgement mode. Defaults to ALL.
- Parameters:
acks- Producer acknowledgement mode. Defaults to ALL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
partitionKey
Kafka record key. Accepts a literal or a JSONata expression (e.g. "{% $events.data.customerId %}") resolved once per delivered event; the resolved value selects the destination partition. If you omit it, the producer selects the partition; on an ordered (FIFO) subscriber, EventBridge instead uses the event group ID as the record key to preserve ordering.
- Parameters:
partitionKey- Kafka record key. Accepts a literal or a JSONata expression (e.g. "{% $events.data.customerId %}") resolved once per delivered event; the resolved value selects the destination partition. If you omit it, the producer selects the partition; on an ordered (FIFO) subscriber, EventBridge instead uses the event group ID as the record key to preserve ordering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
headers
Kafka record headers attached to each produced record.
- Parameters:
headers- Kafka record headers attached to each produced record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
headers
Kafka record headers attached to each produced record.
- Parameters:
headers- Kafka record headers attached to each produced record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
headers
Kafka record headers attached to each produced record.
This is a convenience method that creates an instance of theMskHeader.Builderavoiding the need to create one manually viaMskHeader.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toheaders(List<MskHeader>).- Parameters:
headers- a consumer that will call methods onMskHeader.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientId
Producer client.id passed to the Kafka broker. Identifies the producer in broker-side logs, metrics, and quota enforcement. A literal, not a JSONata expression: it is a connection-level setting resolved once when the producer is created, not per event. If you do not set it, EventBridge uses the subscriber ARN.
- Parameters:
clientId- Producer client.id passed to the Kafka broker. Identifies the producer in broker-side logs, metrics, and quota enforcement. A literal, not a JSONata expression: it is a connection-level setting resolved once when the producer is created, not per event. If you do not set it, EventBridge uses the subscriber ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectivity
How the service connects to the cluster. A cluster can have public access and multi-VPC private connectivity turned on at the same time, so the subscriber names the one to use. That path must be turned on, with IAM access control, on the cluster.
- Parameters:
connectivity- How the service connects to the cluster. A cluster can have public access and multi-VPC private connectivity turned on at the same time, so the subscriber names the one to use. That path must be turned on, with IAM access control, on the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
connectivity
How the service connects to the cluster. A cluster can have public access and multi-VPC private connectivity turned on at the same time, so the subscriber names the one to use. That path must be turned on, with IAM access control, on the cluster.
- Parameters:
connectivity- How the service connects to the cluster. A cluster can have public access and multi-VPC private connectivity turned on at the same time, so the subscriber names the one to use. That path must be turned on, with IAM access control, on the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-