Interface MskParameters.Builder

  • Method Details

    • topicName

      MskParameters.Builder topicName(String 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

      MskParameters.Builder compression(String 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

      MskParameters.Builder compression(MskCompression 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

      MskParameters.Builder partitionKey(String 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

      MskParameters.Builder headers(MskHeader... 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 the MskHeader.Builder avoiding the need to create one manually via MskHeader.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to headers(List<MskHeader>).

      Parameters:
      headers - a consumer that will call methods on MskHeader.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clientId

      MskParameters.Builder clientId(String 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

      MskParameters.Builder connectivity(String 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

      MskParameters.Builder connectivity(MskConnectivity 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: