#[non_exhaustive]pub struct DocumentDbEventSourceConfigBuilder { /* private fields */ }
Expand description
A builder for DocumentDbEventSourceConfig
.
Implementations§
source§impl DocumentDbEventSourceConfigBuilder
impl DocumentDbEventSourceConfigBuilder
sourcepub fn database_name(self, input: impl Into<String>) -> Self
pub fn database_name(self, input: impl Into<String>) -> Self
The name of the database to consume within the DocumentDB cluster.
sourcepub fn set_database_name(self, input: Option<String>) -> Self
pub fn set_database_name(self, input: Option<String>) -> Self
The name of the database to consume within the DocumentDB cluster.
sourcepub fn get_database_name(&self) -> &Option<String>
pub fn get_database_name(&self) -> &Option<String>
The name of the database to consume within the DocumentDB cluster.
sourcepub fn collection_name(self, input: impl Into<String>) -> Self
pub fn collection_name(self, input: impl Into<String>) -> Self
The name of the collection to consume within the database. If you do not specify a collection, Lambda consumes all collections.
sourcepub fn set_collection_name(self, input: Option<String>) -> Self
pub fn set_collection_name(self, input: Option<String>) -> Self
The name of the collection to consume within the database. If you do not specify a collection, Lambda consumes all collections.
sourcepub fn get_collection_name(&self) -> &Option<String>
pub fn get_collection_name(&self) -> &Option<String>
The name of the collection to consume within the database. If you do not specify a collection, Lambda consumes all collections.
sourcepub fn full_document(self, input: FullDocument) -> Self
pub fn full_document(self, input: FullDocument) -> Self
Determines what DocumentDB sends to your event stream during document update operations. If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy of the entire document. Otherwise, DocumentDB sends only a partial document that contains the changes.
sourcepub fn set_full_document(self, input: Option<FullDocument>) -> Self
pub fn set_full_document(self, input: Option<FullDocument>) -> Self
Determines what DocumentDB sends to your event stream during document update operations. If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy of the entire document. Otherwise, DocumentDB sends only a partial document that contains the changes.
sourcepub fn get_full_document(&self) -> &Option<FullDocument>
pub fn get_full_document(&self) -> &Option<FullDocument>
Determines what DocumentDB sends to your event stream during document update operations. If set to UpdateLookup, DocumentDB sends a delta describing the changes, along with a copy of the entire document. Otherwise, DocumentDB sends only a partial document that contains the changes.
sourcepub fn build(self) -> DocumentDbEventSourceConfig
pub fn build(self) -> DocumentDbEventSourceConfig
Consumes the builder and constructs a DocumentDbEventSourceConfig
.
Trait Implementations§
source§impl Clone for DocumentDbEventSourceConfigBuilder
impl Clone for DocumentDbEventSourceConfigBuilder
source§fn clone(&self) -> DocumentDbEventSourceConfigBuilder
fn clone(&self) -> DocumentDbEventSourceConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DocumentDbEventSourceConfigBuilder
impl Default for DocumentDbEventSourceConfigBuilder
source§fn default() -> DocumentDbEventSourceConfigBuilder
fn default() -> DocumentDbEventSourceConfigBuilder
source§impl PartialEq for DocumentDbEventSourceConfigBuilder
impl PartialEq for DocumentDbEventSourceConfigBuilder
source§fn eq(&self, other: &DocumentDbEventSourceConfigBuilder) -> bool
fn eq(&self, other: &DocumentDbEventSourceConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.