#[non_exhaustive]pub struct PipeTargetTimestreamParametersBuilder { /* private fields */ }
Expand description
A builder for PipeTargetTimestreamParameters
.
Implementations§
Source§impl PipeTargetTimestreamParametersBuilder
impl PipeTargetTimestreamParametersBuilder
Sourcepub fn time_value(self, input: impl Into<String>) -> Self
pub fn time_value(self, input: impl Into<String>) -> Self
Dynamic path to the source data field that represents the time value for your data.
This field is required.Sourcepub fn set_time_value(self, input: Option<String>) -> Self
pub fn set_time_value(self, input: Option<String>) -> Self
Dynamic path to the source data field that represents the time value for your data.
Sourcepub fn get_time_value(&self) -> &Option<String>
pub fn get_time_value(&self) -> &Option<String>
Dynamic path to the source data field that represents the time value for your data.
Sourcepub fn epoch_time_unit(self, input: EpochTimeUnit) -> Self
pub fn epoch_time_unit(self, input: EpochTimeUnit) -> Self
The granularity of the time units used. Default is MILLISECONDS
.
Required if TimeFieldType
is specified as EPOCH
.
Sourcepub fn set_epoch_time_unit(self, input: Option<EpochTimeUnit>) -> Self
pub fn set_epoch_time_unit(self, input: Option<EpochTimeUnit>) -> Self
The granularity of the time units used. Default is MILLISECONDS
.
Required if TimeFieldType
is specified as EPOCH
.
Sourcepub fn get_epoch_time_unit(&self) -> &Option<EpochTimeUnit>
pub fn get_epoch_time_unit(&self) -> &Option<EpochTimeUnit>
The granularity of the time units used. Default is MILLISECONDS
.
Required if TimeFieldType
is specified as EPOCH
.
Sourcepub fn time_field_type(self, input: TimeFieldType) -> Self
pub fn time_field_type(self, input: TimeFieldType) -> Self
The type of time value used.
The default is EPOCH
.
Sourcepub fn set_time_field_type(self, input: Option<TimeFieldType>) -> Self
pub fn set_time_field_type(self, input: Option<TimeFieldType>) -> Self
The type of time value used.
The default is EPOCH
.
Sourcepub fn get_time_field_type(&self) -> &Option<TimeFieldType>
pub fn get_time_field_type(&self) -> &Option<TimeFieldType>
The type of time value used.
The default is EPOCH
.
Sourcepub fn timestamp_format(self, input: impl Into<String>) -> Self
pub fn timestamp_format(self, input: impl Into<String>) -> Self
How to format the timestamps. For example, yyyy-MM-dd'T'HH:mm:ss'Z'
.
Required if TimeFieldType
is specified as TIMESTAMP_FORMAT
.
Sourcepub fn set_timestamp_format(self, input: Option<String>) -> Self
pub fn set_timestamp_format(self, input: Option<String>) -> Self
How to format the timestamps. For example, yyyy-MM-dd'T'HH:mm:ss'Z'
.
Required if TimeFieldType
is specified as TIMESTAMP_FORMAT
.
Sourcepub fn get_timestamp_format(&self) -> &Option<String>
pub fn get_timestamp_format(&self) -> &Option<String>
How to format the timestamps. For example, yyyy-MM-dd'T'HH:mm:ss'Z'
.
Required if TimeFieldType
is specified as TIMESTAMP_FORMAT
.
Sourcepub fn version_value(self, input: impl Into<String>) -> Self
pub fn version_value(self, input: impl Into<String>) -> Self
64 bit version value or source data field that represents the version value for your data.
Write requests with a higher version number will update the existing measure values of the record and version. In cases where the measure value is the same, the version will still be updated.
Default value is 1.
Timestream for LiveAnalytics does not support updating partial measure values in a record.
Write requests for duplicate data with a higher version number will update the existing measure value and version. In cases where the measure value is the same, Version
will still be updated. Default value is 1
.
Version
must be 1
or greater, or you will receive a ValidationException
error.
Sourcepub fn set_version_value(self, input: Option<String>) -> Self
pub fn set_version_value(self, input: Option<String>) -> Self
64 bit version value or source data field that represents the version value for your data.
Write requests with a higher version number will update the existing measure values of the record and version. In cases where the measure value is the same, the version will still be updated.
Default value is 1.
Timestream for LiveAnalytics does not support updating partial measure values in a record.
Write requests for duplicate data with a higher version number will update the existing measure value and version. In cases where the measure value is the same, Version
will still be updated. Default value is 1
.
Version
must be 1
or greater, or you will receive a ValidationException
error.
Sourcepub fn get_version_value(&self) -> &Option<String>
pub fn get_version_value(&self) -> &Option<String>
64 bit version value or source data field that represents the version value for your data.
Write requests with a higher version number will update the existing measure values of the record and version. In cases where the measure value is the same, the version will still be updated.
Default value is 1.
Timestream for LiveAnalytics does not support updating partial measure values in a record.
Write requests for duplicate data with a higher version number will update the existing measure value and version. In cases where the measure value is the same, Version
will still be updated. Default value is 1
.
Version
must be 1
or greater, or you will receive a ValidationException
error.
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
.
Map source data to dimensions in the target Timestream for LiveAnalytics table.
For more information, see Amazon Timestream for LiveAnalytics concepts
Sourcepub fn set_dimension_mappings(
self,
input: Option<Vec<DimensionMapping>>,
) -> Self
pub fn set_dimension_mappings( self, input: Option<Vec<DimensionMapping>>, ) -> Self
Map source data to dimensions in the target Timestream for LiveAnalytics table.
For more information, see Amazon Timestream for LiveAnalytics concepts
Sourcepub fn get_dimension_mappings(&self) -> &Option<Vec<DimensionMapping>>
pub fn get_dimension_mappings(&self) -> &Option<Vec<DimensionMapping>>
Map source data to dimensions in the target Timestream for LiveAnalytics table.
For more information, see Amazon Timestream for LiveAnalytics concepts
Sourcepub fn single_measure_mappings(self, input: SingleMeasureMapping) -> Self
pub fn single_measure_mappings(self, input: SingleMeasureMapping) -> Self
Appends an item to single_measure_mappings
.
To override the contents of this collection use set_single_measure_mappings
.
Mappings of single source data fields to individual records in the specified Timestream for LiveAnalytics table.
Sourcepub fn set_single_measure_mappings(
self,
input: Option<Vec<SingleMeasureMapping>>,
) -> Self
pub fn set_single_measure_mappings( self, input: Option<Vec<SingleMeasureMapping>>, ) -> Self
Mappings of single source data fields to individual records in the specified Timestream for LiveAnalytics table.
Sourcepub fn get_single_measure_mappings(&self) -> &Option<Vec<SingleMeasureMapping>>
pub fn get_single_measure_mappings(&self) -> &Option<Vec<SingleMeasureMapping>>
Mappings of single source data fields to individual records in the specified Timestream for LiveAnalytics table.
Sourcepub fn multi_measure_mappings(self, input: MultiMeasureMapping) -> Self
pub fn multi_measure_mappings(self, input: MultiMeasureMapping) -> Self
Appends an item to multi_measure_mappings
.
To override the contents of this collection use set_multi_measure_mappings
.
Maps multiple measures from the source event to the same record in the specified Timestream for LiveAnalytics table.
Sourcepub fn set_multi_measure_mappings(
self,
input: Option<Vec<MultiMeasureMapping>>,
) -> Self
pub fn set_multi_measure_mappings( self, input: Option<Vec<MultiMeasureMapping>>, ) -> Self
Maps multiple measures from the source event to the same record in the specified Timestream for LiveAnalytics table.
Sourcepub fn get_multi_measure_mappings(&self) -> &Option<Vec<MultiMeasureMapping>>
pub fn get_multi_measure_mappings(&self) -> &Option<Vec<MultiMeasureMapping>>
Maps multiple measures from the source event to the same record in the specified Timestream for LiveAnalytics table.
Sourcepub fn build(self) -> Result<PipeTargetTimestreamParameters, BuildError>
pub fn build(self) -> Result<PipeTargetTimestreamParameters, BuildError>
Consumes the builder and constructs a PipeTargetTimestreamParameters
.
This method will fail if any of the following fields are not set:
Trait Implementations§
Source§impl Clone for PipeTargetTimestreamParametersBuilder
impl Clone for PipeTargetTimestreamParametersBuilder
Source§fn clone(&self) -> PipeTargetTimestreamParametersBuilder
fn clone(&self) -> PipeTargetTimestreamParametersBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for PipeTargetTimestreamParametersBuilder
impl Default for PipeTargetTimestreamParametersBuilder
Source§fn default() -> PipeTargetTimestreamParametersBuilder
fn default() -> PipeTargetTimestreamParametersBuilder
Source§impl PartialEq for PipeTargetTimestreamParametersBuilder
impl PartialEq for PipeTargetTimestreamParametersBuilder
Source§fn eq(&self, other: &PipeTargetTimestreamParametersBuilder) -> bool
fn eq(&self, other: &PipeTargetTimestreamParametersBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for PipeTargetTimestreamParametersBuilder
Auto Trait Implementations§
impl Freeze for PipeTargetTimestreamParametersBuilder
impl RefUnwindSafe for PipeTargetTimestreamParametersBuilder
impl Send for PipeTargetTimestreamParametersBuilder
impl Sync for PipeTargetTimestreamParametersBuilder
impl Unpin for PipeTargetTimestreamParametersBuilder
impl UnwindSafe for PipeTargetTimestreamParametersBuilder
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§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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);