Struct aws_sdk_timestreamwrite::types::builders::DataModelBuilder
source · #[non_exhaustive]pub struct DataModelBuilder { /* private fields */ }
Expand description
A builder for DataModel
.
Implementations§
source§impl DataModelBuilder
impl DataModelBuilder
sourcepub fn time_column(self, input: impl Into<String>) -> Self
pub fn time_column(self, input: impl Into<String>) -> Self
Source column to be mapped to time.
sourcepub fn set_time_column(self, input: Option<String>) -> Self
pub fn set_time_column(self, input: Option<String>) -> Self
Source column to be mapped to time.
sourcepub fn get_time_column(&self) -> &Option<String>
pub fn get_time_column(&self) -> &Option<String>
Source column to be mapped to time.
sourcepub fn time_unit(self, input: TimeUnit) -> Self
pub fn time_unit(self, input: TimeUnit) -> Self
The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is MILLISECONDS
.
sourcepub fn set_time_unit(self, input: Option<TimeUnit>) -> Self
pub fn set_time_unit(self, input: Option<TimeUnit>) -> Self
The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is MILLISECONDS
.
sourcepub fn get_time_unit(&self) -> &Option<TimeUnit>
pub fn get_time_unit(&self) -> &Option<TimeUnit>
The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is MILLISECONDS
.
sourcepub fn dimension_mappings(self, input: DimensionMapping) -> Self
pub fn dimension_mappings(self, input: DimensionMapping) -> Self
Appends an item to dimension_mappings
.
To override the contents of this collection use set_dimension_mappings
.
Source to target mappings for dimensions.
sourcepub fn set_dimension_mappings(
self,
input: Option<Vec<DimensionMapping>>,
) -> Self
pub fn set_dimension_mappings( self, input: Option<Vec<DimensionMapping>>, ) -> Self
Source to target mappings for dimensions.
sourcepub fn get_dimension_mappings(&self) -> &Option<Vec<DimensionMapping>>
pub fn get_dimension_mappings(&self) -> &Option<Vec<DimensionMapping>>
Source to target mappings for dimensions.
sourcepub fn multi_measure_mappings(self, input: MultiMeasureMappings) -> Self
pub fn multi_measure_mappings(self, input: MultiMeasureMappings) -> Self
Source to target mappings for multi-measure records.
sourcepub fn set_multi_measure_mappings(
self,
input: Option<MultiMeasureMappings>,
) -> Self
pub fn set_multi_measure_mappings( self, input: Option<MultiMeasureMappings>, ) -> Self
Source to target mappings for multi-measure records.
sourcepub fn get_multi_measure_mappings(&self) -> &Option<MultiMeasureMappings>
pub fn get_multi_measure_mappings(&self) -> &Option<MultiMeasureMappings>
Source to target mappings for multi-measure records.
sourcepub fn mixed_measure_mappings(self, input: MixedMeasureMapping) -> Self
pub fn mixed_measure_mappings(self, input: MixedMeasureMapping) -> Self
Appends an item to mixed_measure_mappings
.
To override the contents of this collection use set_mixed_measure_mappings
.
Source to target mappings for measures.
sourcepub fn set_mixed_measure_mappings(
self,
input: Option<Vec<MixedMeasureMapping>>,
) -> Self
pub fn set_mixed_measure_mappings( self, input: Option<Vec<MixedMeasureMapping>>, ) -> Self
Source to target mappings for measures.
sourcepub fn get_mixed_measure_mappings(&self) -> &Option<Vec<MixedMeasureMapping>>
pub fn get_mixed_measure_mappings(&self) -> &Option<Vec<MixedMeasureMapping>>
Source to target mappings for measures.
sourcepub fn measure_name_column(self, input: impl Into<String>) -> Self
pub fn measure_name_column(self, input: impl Into<String>) -> Self
sourcepub fn set_measure_name_column(self, input: Option<String>) -> Self
pub fn set_measure_name_column(self, input: Option<String>) -> Self
sourcepub fn get_measure_name_column(&self) -> &Option<String>
pub fn get_measure_name_column(&self) -> &Option<String>
Trait Implementations§
source§impl Clone for DataModelBuilder
impl Clone for DataModelBuilder
source§fn clone(&self) -> DataModelBuilder
fn clone(&self) -> DataModelBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DataModelBuilder
impl Debug for DataModelBuilder
source§impl Default for DataModelBuilder
impl Default for DataModelBuilder
source§fn default() -> DataModelBuilder
fn default() -> DataModelBuilder
source§impl PartialEq for DataModelBuilder
impl PartialEq for DataModelBuilder
impl StructuralPartialEq for DataModelBuilder
Auto Trait Implementations§
impl Freeze for DataModelBuilder
impl RefUnwindSafe for DataModelBuilder
impl Send for DataModelBuilder
impl Sync for DataModelBuilder
impl Unpin for DataModelBuilder
impl UnwindSafe for DataModelBuilder
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