Struct aws_sdk_glue::types::builders::CatalogKafkaSourceBuilder
source · #[non_exhaustive]pub struct CatalogKafkaSourceBuilder { /* private fields */ }
Expand description
A builder for CatalogKafkaSource
.
Implementations§
source§impl CatalogKafkaSourceBuilder
impl CatalogKafkaSourceBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the data store.
This field is required.sourcepub fn window_size(self, input: i32) -> Self
pub fn window_size(self, input: i32) -> Self
The amount of time to spend processing each micro batch.
sourcepub fn set_window_size(self, input: Option<i32>) -> Self
pub fn set_window_size(self, input: Option<i32>) -> Self
The amount of time to spend processing each micro batch.
sourcepub fn get_window_size(&self) -> &Option<i32>
pub fn get_window_size(&self) -> &Option<i32>
The amount of time to spend processing each micro batch.
sourcepub fn detect_schema(self, input: bool) -> Self
pub fn detect_schema(self, input: bool) -> Self
Whether to automatically determine the schema from the incoming data.
sourcepub fn set_detect_schema(self, input: Option<bool>) -> Self
pub fn set_detect_schema(self, input: Option<bool>) -> Self
Whether to automatically determine the schema from the incoming data.
sourcepub fn get_detect_schema(&self) -> &Option<bool>
pub fn get_detect_schema(&self) -> &Option<bool>
Whether to automatically determine the schema from the incoming data.
sourcepub fn table(self, input: impl Into<String>) -> Self
pub fn table(self, input: impl Into<String>) -> Self
The name of the table in the database to read from.
This field is required.sourcepub fn set_table(self, input: Option<String>) -> Self
pub fn set_table(self, input: Option<String>) -> Self
The name of the table in the database to read from.
sourcepub fn database(self, input: impl Into<String>) -> Self
pub fn database(self, input: impl Into<String>) -> Self
The name of the database to read from.
This field is required.sourcepub fn set_database(self, input: Option<String>) -> Self
pub fn set_database(self, input: Option<String>) -> Self
The name of the database to read from.
sourcepub fn get_database(&self) -> &Option<String>
pub fn get_database(&self) -> &Option<String>
The name of the database to read from.
sourcepub fn streaming_options(self, input: KafkaStreamingSourceOptions) -> Self
pub fn streaming_options(self, input: KafkaStreamingSourceOptions) -> Self
Specifies the streaming options.
sourcepub fn set_streaming_options(
self,
input: Option<KafkaStreamingSourceOptions>,
) -> Self
pub fn set_streaming_options( self, input: Option<KafkaStreamingSourceOptions>, ) -> Self
Specifies the streaming options.
sourcepub fn get_streaming_options(&self) -> &Option<KafkaStreamingSourceOptions>
pub fn get_streaming_options(&self) -> &Option<KafkaStreamingSourceOptions>
Specifies the streaming options.
sourcepub fn data_preview_options(self, input: StreamingDataPreviewOptions) -> Self
pub fn data_preview_options(self, input: StreamingDataPreviewOptions) -> Self
Specifies options related to data preview for viewing a sample of your data.
sourcepub fn set_data_preview_options(
self,
input: Option<StreamingDataPreviewOptions>,
) -> Self
pub fn set_data_preview_options( self, input: Option<StreamingDataPreviewOptions>, ) -> Self
Specifies options related to data preview for viewing a sample of your data.
sourcepub fn get_data_preview_options(&self) -> &Option<StreamingDataPreviewOptions>
pub fn get_data_preview_options(&self) -> &Option<StreamingDataPreviewOptions>
Specifies options related to data preview for viewing a sample of your data.
sourcepub fn build(self) -> Result<CatalogKafkaSource, BuildError>
pub fn build(self) -> Result<CatalogKafkaSource, BuildError>
Consumes the builder and constructs a CatalogKafkaSource
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CatalogKafkaSourceBuilder
impl Clone for CatalogKafkaSourceBuilder
source§fn clone(&self) -> CatalogKafkaSourceBuilder
fn clone(&self) -> CatalogKafkaSourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CatalogKafkaSourceBuilder
impl Debug for CatalogKafkaSourceBuilder
source§impl Default for CatalogKafkaSourceBuilder
impl Default for CatalogKafkaSourceBuilder
source§fn default() -> CatalogKafkaSourceBuilder
fn default() -> CatalogKafkaSourceBuilder
source§impl PartialEq for CatalogKafkaSourceBuilder
impl PartialEq for CatalogKafkaSourceBuilder
source§fn eq(&self, other: &CatalogKafkaSourceBuilder) -> bool
fn eq(&self, other: &CatalogKafkaSourceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CatalogKafkaSourceBuilder
Auto Trait Implementations§
impl Freeze for CatalogKafkaSourceBuilder
impl RefUnwindSafe for CatalogKafkaSourceBuilder
impl Send for CatalogKafkaSourceBuilder
impl Sync for CatalogKafkaSourceBuilder
impl Unpin for CatalogKafkaSourceBuilder
impl UnwindSafe for CatalogKafkaSourceBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more