Struct aws_sdk_iotsitewise::types::builders::VariantBuilder
source · #[non_exhaustive]pub struct VariantBuilder { /* private fields */ }Expand description
A builder for Variant.
Implementations§
source§impl VariantBuilder
impl VariantBuilder
sourcepub fn string_value(self, input: impl Into<String>) -> Self
pub fn string_value(self, input: impl Into<String>) -> Self
Asset property data of type string (sequence of characters).
sourcepub fn set_string_value(self, input: Option<String>) -> Self
pub fn set_string_value(self, input: Option<String>) -> Self
Asset property data of type string (sequence of characters).
sourcepub fn get_string_value(&self) -> &Option<String>
pub fn get_string_value(&self) -> &Option<String>
Asset property data of type string (sequence of characters).
sourcepub fn integer_value(self, input: i32) -> Self
pub fn integer_value(self, input: i32) -> Self
Asset property data of type integer (number that's greater than or equal to zero).
sourcepub fn set_integer_value(self, input: Option<i32>) -> Self
pub fn set_integer_value(self, input: Option<i32>) -> Self
Asset property data of type integer (number that's greater than or equal to zero).
sourcepub fn get_integer_value(&self) -> &Option<i32>
pub fn get_integer_value(&self) -> &Option<i32>
Asset property data of type integer (number that's greater than or equal to zero).
sourcepub fn double_value(self, input: f64) -> Self
pub fn double_value(self, input: f64) -> Self
Asset property data of type double (floating point number).
sourcepub fn set_double_value(self, input: Option<f64>) -> Self
pub fn set_double_value(self, input: Option<f64>) -> Self
Asset property data of type double (floating point number).
sourcepub fn get_double_value(&self) -> &Option<f64>
pub fn get_double_value(&self) -> &Option<f64>
Asset property data of type double (floating point number).
sourcepub fn boolean_value(self, input: bool) -> Self
pub fn boolean_value(self, input: bool) -> Self
Asset property data of type Boolean (true or false).
sourcepub fn set_boolean_value(self, input: Option<bool>) -> Self
pub fn set_boolean_value(self, input: Option<bool>) -> Self
Asset property data of type Boolean (true or false).
sourcepub fn get_boolean_value(&self) -> &Option<bool>
pub fn get_boolean_value(&self) -> &Option<bool>
Asset property data of type Boolean (true or false).
Trait Implementations§
source§impl Clone for VariantBuilder
impl Clone for VariantBuilder
source§fn clone(&self) -> VariantBuilder
fn clone(&self) -> VariantBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for VariantBuilder
impl Debug for VariantBuilder
source§impl Default for VariantBuilder
impl Default for VariantBuilder
source§fn default() -> VariantBuilder
fn default() -> VariantBuilder
source§impl PartialEq for VariantBuilder
impl PartialEq for VariantBuilder
source§fn eq(&self, other: &VariantBuilder) -> bool
fn eq(&self, other: &VariantBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for VariantBuilder
Auto Trait Implementations§
impl Freeze for VariantBuilder
impl RefUnwindSafe for VariantBuilder
impl Send for VariantBuilder
impl Sync for VariantBuilder
impl Unpin for VariantBuilder
impl UnwindSafe for VariantBuilder
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