#[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 ==
.impl StructuralPartialEq for DocumentDbEventSourceConfigBuilder
Auto Trait Implementations§
impl Freeze for DocumentDbEventSourceConfigBuilder
impl RefUnwindSafe for DocumentDbEventSourceConfigBuilder
impl Send for DocumentDbEventSourceConfigBuilder
impl Sync for DocumentDbEventSourceConfigBuilder
impl Unpin for DocumentDbEventSourceConfigBuilder
impl UnwindSafe for DocumentDbEventSourceConfigBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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