Struct aws_sdk_iot::types::builders::KafkaActionBuilder
source · #[non_exhaustive]pub struct KafkaActionBuilder { /* private fields */ }
Expand description
A builder for KafkaAction
.
Implementations§
source§impl KafkaActionBuilder
impl KafkaActionBuilder
sourcepub fn destination_arn(self, input: impl Into<String>) -> Self
pub fn destination_arn(self, input: impl Into<String>) -> Self
The ARN of Kafka action's VPC TopicRuleDestination
.
sourcepub fn set_destination_arn(self, input: Option<String>) -> Self
pub fn set_destination_arn(self, input: Option<String>) -> Self
The ARN of Kafka action's VPC TopicRuleDestination
.
sourcepub fn get_destination_arn(&self) -> &Option<String>
pub fn get_destination_arn(&self) -> &Option<String>
The ARN of Kafka action's VPC TopicRuleDestination
.
sourcepub fn topic(self, input: impl Into<String>) -> Self
pub fn topic(self, input: impl Into<String>) -> Self
The Kafka topic for messages to be sent to the Kafka broker.
This field is required.sourcepub fn set_topic(self, input: Option<String>) -> Self
pub fn set_topic(self, input: Option<String>) -> Self
The Kafka topic for messages to be sent to the Kafka broker.
sourcepub fn get_topic(&self) -> &Option<String>
pub fn get_topic(&self) -> &Option<String>
The Kafka topic for messages to be sent to the Kafka broker.
sourcepub fn set_partition(self, input: Option<String>) -> Self
pub fn set_partition(self, input: Option<String>) -> Self
The Kafka message partition.
sourcepub fn get_partition(&self) -> &Option<String>
pub fn get_partition(&self) -> &Option<String>
The Kafka message partition.
sourcepub fn client_properties(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn client_properties( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to client_properties
.
To override the contents of this collection use set_client_properties
.
Properties of the Apache Kafka producer client.
sourcepub fn set_client_properties(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_client_properties( self, input: Option<HashMap<String, String>> ) -> Self
Properties of the Apache Kafka producer client.
sourcepub fn get_client_properties(&self) -> &Option<HashMap<String, String>>
pub fn get_client_properties(&self) -> &Option<HashMap<String, String>>
Properties of the Apache Kafka producer client.
sourcepub fn headers(self, input: KafkaActionHeader) -> Self
pub fn headers(self, input: KafkaActionHeader) -> Self
Appends an item to headers
.
To override the contents of this collection use set_headers
.
The list of Kafka headers that you specify.
sourcepub fn set_headers(self, input: Option<Vec<KafkaActionHeader>>) -> Self
pub fn set_headers(self, input: Option<Vec<KafkaActionHeader>>) -> Self
The list of Kafka headers that you specify.
sourcepub fn get_headers(&self) -> &Option<Vec<KafkaActionHeader>>
pub fn get_headers(&self) -> &Option<Vec<KafkaActionHeader>>
The list of Kafka headers that you specify.
sourcepub fn build(self) -> Result<KafkaAction, BuildError>
pub fn build(self) -> Result<KafkaAction, BuildError>
Consumes the builder and constructs a KafkaAction
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for KafkaActionBuilder
impl Clone for KafkaActionBuilder
source§fn clone(&self) -> KafkaActionBuilder
fn clone(&self) -> KafkaActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KafkaActionBuilder
impl Debug for KafkaActionBuilder
source§impl Default for KafkaActionBuilder
impl Default for KafkaActionBuilder
source§fn default() -> KafkaActionBuilder
fn default() -> KafkaActionBuilder
source§impl PartialEq for KafkaActionBuilder
impl PartialEq for KafkaActionBuilder
source§fn eq(&self, other: &KafkaActionBuilder) -> bool
fn eq(&self, other: &KafkaActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.