Struct aws_sdk_glue::model::mongo_db_target::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for MongoDbTarget.
Implementations§
source§impl Builder
impl Builder
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 to use to connect to the Amazon DocumentDB or MongoDB target.
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 to use to connect to the Amazon DocumentDB or MongoDB target.
sourcepub fn path(self, input: impl Into<String>) -> Self
pub fn path(self, input: impl Into<String>) -> Self
The path of the Amazon DocumentDB or MongoDB target (database/collection).
sourcepub fn set_path(self, input: Option<String>) -> Self
pub fn set_path(self, input: Option<String>) -> Self
The path of the Amazon DocumentDB or MongoDB target (database/collection).
sourcepub fn scan_all(self, input: bool) -> Self
pub fn scan_all(self, input: bool) -> Self
Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.
A value of true means to scan all records, while a value of false means to sample the records. If no value is specified, the value defaults to true.
sourcepub fn set_scan_all(self, input: Option<bool>) -> Self
pub fn set_scan_all(self, input: Option<bool>) -> Self
Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.
A value of true means to scan all records, while a value of false means to sample the records. If no value is specified, the value defaults to true.
sourcepub fn build(self) -> MongoDbTarget
pub fn build(self) -> MongoDbTarget
Consumes the builder and constructs a MongoDbTarget.