#[non_exhaustive]pub struct MessageInsightsDataSourceBuilder { /* private fields */ }
Expand description
A builder for MessageInsightsDataSource
.
Implementations§
source§impl MessageInsightsDataSourceBuilder
impl MessageInsightsDataSourceBuilder
sourcepub fn start_date(self, input: DateTime) -> Self
pub fn start_date(self, input: DateTime) -> Self
Represents the start date for the export interval as a timestamp. The start date is inclusive.
This field is required.sourcepub fn set_start_date(self, input: Option<DateTime>) -> Self
pub fn set_start_date(self, input: Option<DateTime>) -> Self
Represents the start date for the export interval as a timestamp. The start date is inclusive.
sourcepub fn get_start_date(&self) -> &Option<DateTime>
pub fn get_start_date(&self) -> &Option<DateTime>
Represents the start date for the export interval as a timestamp. The start date is inclusive.
sourcepub fn end_date(self, input: DateTime) -> Self
pub fn end_date(self, input: DateTime) -> Self
Represents the end date for the export interval as a timestamp. The end date is inclusive.
This field is required.sourcepub fn set_end_date(self, input: Option<DateTime>) -> Self
pub fn set_end_date(self, input: Option<DateTime>) -> Self
Represents the end date for the export interval as a timestamp. The end date is inclusive.
sourcepub fn get_end_date(&self) -> &Option<DateTime>
pub fn get_end_date(&self) -> &Option<DateTime>
Represents the end date for the export interval as a timestamp. The end date is inclusive.
sourcepub fn include(self, input: MessageInsightsFilters) -> Self
pub fn include(self, input: MessageInsightsFilters) -> Self
Filters for results to be included in the export file.
sourcepub fn set_include(self, input: Option<MessageInsightsFilters>) -> Self
pub fn set_include(self, input: Option<MessageInsightsFilters>) -> Self
Filters for results to be included in the export file.
sourcepub fn get_include(&self) -> &Option<MessageInsightsFilters>
pub fn get_include(&self) -> &Option<MessageInsightsFilters>
Filters for results to be included in the export file.
sourcepub fn exclude(self, input: MessageInsightsFilters) -> Self
pub fn exclude(self, input: MessageInsightsFilters) -> Self
Filters for results to be excluded from the export file.
sourcepub fn set_exclude(self, input: Option<MessageInsightsFilters>) -> Self
pub fn set_exclude(self, input: Option<MessageInsightsFilters>) -> Self
Filters for results to be excluded from the export file.
sourcepub fn get_exclude(&self) -> &Option<MessageInsightsFilters>
pub fn get_exclude(&self) -> &Option<MessageInsightsFilters>
Filters for results to be excluded from the export file.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of results.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of results.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of results.
sourcepub fn build(self) -> Result<MessageInsightsDataSource, BuildError>
pub fn build(self) -> Result<MessageInsightsDataSource, BuildError>
Consumes the builder and constructs a MessageInsightsDataSource
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for MessageInsightsDataSourceBuilder
impl Clone for MessageInsightsDataSourceBuilder
source§fn clone(&self) -> MessageInsightsDataSourceBuilder
fn clone(&self) -> MessageInsightsDataSourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for MessageInsightsDataSourceBuilder
impl Default for MessageInsightsDataSourceBuilder
source§fn default() -> MessageInsightsDataSourceBuilder
fn default() -> MessageInsightsDataSourceBuilder
source§impl PartialEq for MessageInsightsDataSourceBuilder
impl PartialEq for MessageInsightsDataSourceBuilder
source§fn eq(&self, other: &MessageInsightsDataSourceBuilder) -> bool
fn eq(&self, other: &MessageInsightsDataSourceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MessageInsightsDataSourceBuilder
Auto Trait Implementations§
impl Freeze for MessageInsightsDataSourceBuilder
impl RefUnwindSafe for MessageInsightsDataSourceBuilder
impl Send for MessageInsightsDataSourceBuilder
impl Sync for MessageInsightsDataSourceBuilder
impl Unpin for MessageInsightsDataSourceBuilder
impl UnwindSafe for MessageInsightsDataSourceBuilder
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