#[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 ==.