Struct aws_sdk_iotsitewise::types::builders::VariableValueBuilder
source · #[non_exhaustive]pub struct VariableValueBuilder { /* private fields */ }Expand description
A builder for VariableValue.
Implementations§
source§impl VariableValueBuilder
impl VariableValueBuilder
sourcepub fn property_id(self, input: impl Into<String>) -> Self
pub fn property_id(self, input: impl Into<String>) -> Self
The ID of the property to use as the variable. You can use the property name if it's from the same asset model. If the property has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.
sourcepub fn set_property_id(self, input: Option<String>) -> Self
pub fn set_property_id(self, input: Option<String>) -> Self
The ID of the property to use as the variable. You can use the property name if it's from the same asset model. If the property has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.
sourcepub fn get_property_id(&self) -> &Option<String>
pub fn get_property_id(&self) -> &Option<String>
The ID of the property to use as the variable. You can use the property name if it's from the same asset model. If the property has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.
sourcepub fn hierarchy_id(self, input: impl Into<String>) -> Self
pub fn hierarchy_id(self, input: impl Into<String>) -> Self
The ID of the hierarchy to query for the property ID. You can use the hierarchy's name instead of the hierarchy's ID. If the hierarchy has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.
You use a hierarchy ID instead of a model ID because you can have several hierarchies using the same model and therefore the same propertyId. For example, you might have separately grouped assets that come from the same asset model. For more information, see Asset hierarchies in the IoT SiteWise User Guide.
sourcepub fn set_hierarchy_id(self, input: Option<String>) -> Self
pub fn set_hierarchy_id(self, input: Option<String>) -> Self
The ID of the hierarchy to query for the property ID. You can use the hierarchy's name instead of the hierarchy's ID. If the hierarchy has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.
You use a hierarchy ID instead of a model ID because you can have several hierarchies using the same model and therefore the same propertyId. For example, you might have separately grouped assets that come from the same asset model. For more information, see Asset hierarchies in the IoT SiteWise User Guide.
sourcepub fn get_hierarchy_id(&self) -> &Option<String>
pub fn get_hierarchy_id(&self) -> &Option<String>
The ID of the hierarchy to query for the property ID. You can use the hierarchy's name instead of the hierarchy's ID. If the hierarchy has an external ID, you can specify externalId: followed by the external ID. For more information, see Using external IDs in the IoT SiteWise User Guide.
You use a hierarchy ID instead of a model ID because you can have several hierarchies using the same model and therefore the same propertyId. For example, you might have separately grouped assets that come from the same asset model. For more information, see Asset hierarchies in the IoT SiteWise User Guide.
sourcepub fn property_path(self, input: AssetModelPropertyPathSegment) -> Self
pub fn property_path(self, input: AssetModelPropertyPathSegment) -> Self
Appends an item to property_path.
To override the contents of this collection use set_property_path.
The path of the property.
sourcepub fn set_property_path(
self,
input: Option<Vec<AssetModelPropertyPathSegment>>
) -> Self
pub fn set_property_path( self, input: Option<Vec<AssetModelPropertyPathSegment>> ) -> Self
The path of the property.
sourcepub fn get_property_path(&self) -> &Option<Vec<AssetModelPropertyPathSegment>>
pub fn get_property_path(&self) -> &Option<Vec<AssetModelPropertyPathSegment>>
The path of the property.
sourcepub fn build(self) -> VariableValue
pub fn build(self) -> VariableValue
Consumes the builder and constructs a VariableValue.
Trait Implementations§
source§impl Clone for VariableValueBuilder
impl Clone for VariableValueBuilder
source§fn clone(&self) -> VariableValueBuilder
fn clone(&self) -> VariableValueBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for VariableValueBuilder
impl Debug for VariableValueBuilder
source§impl Default for VariableValueBuilder
impl Default for VariableValueBuilder
source§fn default() -> VariableValueBuilder
fn default() -> VariableValueBuilder
source§impl PartialEq for VariableValueBuilder
impl PartialEq for VariableValueBuilder
source§fn eq(&self, other: &VariableValueBuilder) -> bool
fn eq(&self, other: &VariableValueBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for VariableValueBuilder
Auto Trait Implementations§
impl Freeze for VariableValueBuilder
impl RefUnwindSafe for VariableValueBuilder
impl Send for VariableValueBuilder
impl Sync for VariableValueBuilder
impl Unpin for VariableValueBuilder
impl UnwindSafe for VariableValueBuilder
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