Struct aws_sdk_glue::model::kafka_streaming_source_options::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for KafkaStreamingSourceOptions.
Implementations§
source§impl Builder
impl Builder
sourcepub fn bootstrap_servers(self, input: impl Into<String>) -> Self
pub fn bootstrap_servers(self, input: impl Into<String>) -> Self
A list of bootstrap server URLs, for example, as b-1.vpc-test-2.o4q88o.c6.kafka.us-east-1.amazonaws.com:9094. This option must be specified in the API call or defined in the table metadata in the Data Catalog.
sourcepub fn set_bootstrap_servers(self, input: Option<String>) -> Self
pub fn set_bootstrap_servers(self, input: Option<String>) -> Self
A list of bootstrap server URLs, for example, as b-1.vpc-test-2.o4q88o.c6.kafka.us-east-1.amazonaws.com:9094. This option must be specified in the API call or defined in the table metadata in the Data Catalog.
sourcepub fn security_protocol(self, input: impl Into<String>) -> Self
pub fn security_protocol(self, input: impl Into<String>) -> Self
The protocol used to communicate with brokers. The possible values are "SSL" or "PLAINTEXT".
sourcepub fn set_security_protocol(self, input: Option<String>) -> Self
pub fn set_security_protocol(self, input: Option<String>) -> Self
The protocol used to communicate with brokers. The possible values are "SSL" or "PLAINTEXT".
sourcepub fn connection_name(self, input: impl Into<String>) -> Self
pub fn connection_name(self, input: impl Into<String>) -> Self
The name of the connection.
sourcepub fn set_connection_name(self, input: Option<String>) -> Self
pub fn set_connection_name(self, input: Option<String>) -> Self
The name of the connection.
sourcepub fn topic_name(self, input: impl Into<String>) -> Self
pub fn topic_name(self, input: impl Into<String>) -> Self
The topic name as specified in Apache Kafka. You must specify at least one of "topicName", "assign" or "subscribePattern".
sourcepub fn set_topic_name(self, input: Option<String>) -> Self
pub fn set_topic_name(self, input: Option<String>) -> Self
The topic name as specified in Apache Kafka. You must specify at least one of "topicName", "assign" or "subscribePattern".
sourcepub fn assign(self, input: impl Into<String>) -> Self
pub fn assign(self, input: impl Into<String>) -> Self
The specific TopicPartitions to consume. You must specify at least one of "topicName", "assign" or "subscribePattern".
sourcepub fn set_assign(self, input: Option<String>) -> Self
pub fn set_assign(self, input: Option<String>) -> Self
The specific TopicPartitions to consume. You must specify at least one of "topicName", "assign" or "subscribePattern".
sourcepub fn subscribe_pattern(self, input: impl Into<String>) -> Self
pub fn subscribe_pattern(self, input: impl Into<String>) -> Self
A Java regex string that identifies the topic list to subscribe to. You must specify at least one of "topicName", "assign" or "subscribePattern".
sourcepub fn set_subscribe_pattern(self, input: Option<String>) -> Self
pub fn set_subscribe_pattern(self, input: Option<String>) -> Self
A Java regex string that identifies the topic list to subscribe to. You must specify at least one of "topicName", "assign" or "subscribePattern".
sourcepub fn classification(self, input: impl Into<String>) -> Self
pub fn classification(self, input: impl Into<String>) -> Self
An optional classification.
sourcepub fn set_classification(self, input: Option<String>) -> Self
pub fn set_classification(self, input: Option<String>) -> Self
An optional classification.
sourcepub fn set_delimiter(self, input: Option<String>) -> Self
pub fn set_delimiter(self, input: Option<String>) -> Self
Specifies the delimiter character.
sourcepub fn starting_offsets(self, input: impl Into<String>) -> Self
pub fn starting_offsets(self, input: impl Into<String>) -> Self
The starting position in the Kafka topic to read data from. The possible values are "earliest" or "latest". The default value is "latest".
sourcepub fn set_starting_offsets(self, input: Option<String>) -> Self
pub fn set_starting_offsets(self, input: Option<String>) -> Self
The starting position in the Kafka topic to read data from. The possible values are "earliest" or "latest". The default value is "latest".
sourcepub fn ending_offsets(self, input: impl Into<String>) -> Self
pub fn ending_offsets(self, input: impl Into<String>) -> Self
The end point when a batch query is ended. Possible values are either "latest" or a JSON string that specifies an ending offset for each TopicPartition.
sourcepub fn set_ending_offsets(self, input: Option<String>) -> Self
pub fn set_ending_offsets(self, input: Option<String>) -> Self
The end point when a batch query is ended. Possible values are either "latest" or a JSON string that specifies an ending offset for each TopicPartition.
sourcepub fn poll_timeout_ms(self, input: i64) -> Self
pub fn poll_timeout_ms(self, input: i64) -> Self
The timeout in milliseconds to poll data from Kafka in Spark job executors. The default value is 512.
sourcepub fn set_poll_timeout_ms(self, input: Option<i64>) -> Self
pub fn set_poll_timeout_ms(self, input: Option<i64>) -> Self
The timeout in milliseconds to poll data from Kafka in Spark job executors. The default value is 512.
sourcepub fn num_retries(self, input: i32) -> Self
pub fn num_retries(self, input: i32) -> Self
The number of times to retry before failing to fetch Kafka offsets. The default value is 3.
sourcepub fn set_num_retries(self, input: Option<i32>) -> Self
pub fn set_num_retries(self, input: Option<i32>) -> Self
The number of times to retry before failing to fetch Kafka offsets. The default value is 3.
sourcepub fn retry_interval_ms(self, input: i64) -> Self
pub fn retry_interval_ms(self, input: i64) -> Self
The time in milliseconds to wait before retrying to fetch Kafka offsets. The default value is 10.
sourcepub fn set_retry_interval_ms(self, input: Option<i64>) -> Self
pub fn set_retry_interval_ms(self, input: Option<i64>) -> Self
The time in milliseconds to wait before retrying to fetch Kafka offsets. The default value is 10.
sourcepub fn max_offsets_per_trigger(self, input: i64) -> Self
pub fn max_offsets_per_trigger(self, input: i64) -> Self
The rate limit on the maximum number of offsets that are processed per trigger interval. The specified total number of offsets is proportionally split across topicPartitions of different volumes. The default value is null, which means that the consumer reads all offsets until the known latest offset.
sourcepub fn set_max_offsets_per_trigger(self, input: Option<i64>) -> Self
pub fn set_max_offsets_per_trigger(self, input: Option<i64>) -> Self
The rate limit on the maximum number of offsets that are processed per trigger interval. The specified total number of offsets is proportionally split across topicPartitions of different volumes. The default value is null, which means that the consumer reads all offsets until the known latest offset.
sourcepub fn min_partitions(self, input: i32) -> Self
pub fn min_partitions(self, input: i32) -> Self
The desired minimum number of partitions to read from Kafka. The default value is null, which means that the number of spark partitions is equal to the number of Kafka partitions.
sourcepub fn set_min_partitions(self, input: Option<i32>) -> Self
pub fn set_min_partitions(self, input: Option<i32>) -> Self
The desired minimum number of partitions to read from Kafka. The default value is null, which means that the number of spark partitions is equal to the number of Kafka partitions.
sourcepub fn build(self) -> KafkaStreamingSourceOptions
pub fn build(self) -> KafkaStreamingSourceOptions
Consumes the builder and constructs a KafkaStreamingSourceOptions.