#[non_exhaustive]pub struct MeasureValueBuilder { /* private fields */ }Expand description
A builder for MeasureValue.
Implementations§
source§impl MeasureValueBuilder
impl MeasureValueBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the MeasureValue.
For constraints on MeasureValue names, see Naming Constraints in the Amazon Timestream Developer Guide.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the MeasureValue.
For constraints on MeasureValue names, see Naming Constraints in the Amazon Timestream Developer Guide.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the MeasureValue.
For constraints on MeasureValue names, see Naming Constraints in the Amazon Timestream Developer Guide.
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
The value for the MeasureValue. For information, see Data types.
This field is required.sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
The value for the MeasureValue. For information, see Data types.
sourcepub fn get_value(&self) -> &Option<String>
pub fn get_value(&self) -> &Option<String>
The value for the MeasureValue. For information, see Data types.
sourcepub fn type(self, input: MeasureValueType) -> Self
pub fn type(self, input: MeasureValueType) -> Self
Contains the data type of the MeasureValue for the time-series data point.
This field is required.sourcepub fn set_type(self, input: Option<MeasureValueType>) -> Self
pub fn set_type(self, input: Option<MeasureValueType>) -> Self
Contains the data type of the MeasureValue for the time-series data point.
sourcepub fn get_type(&self) -> &Option<MeasureValueType>
pub fn get_type(&self) -> &Option<MeasureValueType>
Contains the data type of the MeasureValue for the time-series data point.
sourcepub fn build(self) -> Result<MeasureValue, BuildError>
pub fn build(self) -> Result<MeasureValue, BuildError>
Consumes the builder and constructs a MeasureValue.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for MeasureValueBuilder
impl Clone for MeasureValueBuilder
source§fn clone(&self) -> MeasureValueBuilder
fn clone(&self) -> MeasureValueBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MeasureValueBuilder
impl Debug for MeasureValueBuilder
source§impl Default for MeasureValueBuilder
impl Default for MeasureValueBuilder
source§fn default() -> MeasureValueBuilder
fn default() -> MeasureValueBuilder
source§impl PartialEq for MeasureValueBuilder
impl PartialEq for MeasureValueBuilder
source§fn eq(&self, other: &MeasureValueBuilder) -> bool
fn eq(&self, other: &MeasureValueBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MeasureValueBuilder
Auto Trait Implementations§
impl Freeze for MeasureValueBuilder
impl RefUnwindSafe for MeasureValueBuilder
impl Send for MeasureValueBuilder
impl Sync for MeasureValueBuilder
impl Unpin for MeasureValueBuilder
impl UnwindSafe for MeasureValueBuilder
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