#[non_exhaustive]pub struct UpdateAssetModelInput {
pub asset_model_id: Option<String>,
pub asset_model_name: Option<String>,
pub asset_model_description: Option<String>,
pub asset_model_properties: Option<Vec<AssetModelProperty>>,
pub asset_model_hierarchies: Option<Vec<AssetModelHierarchy>>,
pub asset_model_composite_models: Option<Vec<AssetModelCompositeModel>>,
pub client_token: Option<String>,
pub asset_model_external_id: Option<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.asset_model_id: Option<String>The ID of the asset model to update. This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.
asset_model_name: Option<String>A unique, friendly name for the asset model.
asset_model_description: Option<String>A description for the asset model.
asset_model_properties: Option<Vec<AssetModelProperty>>The updated property definitions of the asset model. For more information, see Asset properties in the IoT SiteWise User Guide.
You can specify up to 200 properties per asset model. For more information, see Quotas in the IoT SiteWise User Guide.
asset_model_hierarchies: Option<Vec<AssetModelHierarchy>>The updated hierarchy definitions of the asset model. Each hierarchy specifies an asset model whose assets can be children of any other assets created from this asset model. For more information, see Asset hierarchies in the IoT SiteWise User Guide.
You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the IoT SiteWise User Guide.
asset_model_composite_models: Option<Vec<AssetModelCompositeModel>>The composite models that are part of this asset model. It groups properties (such as attributes, measurements, transforms, and metrics) and child composite models that model parts of your industrial equipment. Each composite model has a type that defines the properties that the composite model supports. Use composite models to define alarms on this asset model.
When creating custom composite models, you need to use CreateAssetModelCompositeModel. For more information, see .
client_token: Option<String>A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
asset_model_external_id: Option<String>An external ID to assign to the asset model. The asset model must not already have an external ID. The external ID must be unique within your Amazon Web Services account. For more information, see Using external IDs in the IoT SiteWise User Guide.
Implementations§
source§impl UpdateAssetModelInput
impl UpdateAssetModelInput
sourcepub fn asset_model_id(&self) -> Option<&str>
pub fn asset_model_id(&self) -> Option<&str>
The ID of the asset model to update. This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.
sourcepub fn asset_model_name(&self) -> Option<&str>
pub fn asset_model_name(&self) -> Option<&str>
A unique, friendly name for the asset model.
sourcepub fn asset_model_description(&self) -> Option<&str>
pub fn asset_model_description(&self) -> Option<&str>
A description for the asset model.
sourcepub fn asset_model_properties(&self) -> &[AssetModelProperty]
pub fn asset_model_properties(&self) -> &[AssetModelProperty]
The updated property definitions of the asset model. For more information, see Asset properties in the IoT SiteWise User Guide.
You can specify up to 200 properties per asset model. For more information, see Quotas in the IoT SiteWise User Guide.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .asset_model_properties.is_none().
sourcepub fn asset_model_hierarchies(&self) -> &[AssetModelHierarchy]
pub fn asset_model_hierarchies(&self) -> &[AssetModelHierarchy]
The updated hierarchy definitions of the asset model. Each hierarchy specifies an asset model whose assets can be children of any other assets created from this asset model. For more information, see Asset hierarchies in the IoT SiteWise User Guide.
You can specify up to 10 hierarchies per asset model. For more information, see Quotas in the IoT SiteWise User Guide.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .asset_model_hierarchies.is_none().
sourcepub fn asset_model_composite_models(&self) -> &[AssetModelCompositeModel]
pub fn asset_model_composite_models(&self) -> &[AssetModelCompositeModel]
The composite models that are part of this asset model. It groups properties (such as attributes, measurements, transforms, and metrics) and child composite models that model parts of your industrial equipment. Each composite model has a type that defines the properties that the composite model supports. Use composite models to define alarms on this asset model.
When creating custom composite models, you need to use CreateAssetModelCompositeModel. For more information, see .
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .asset_model_composite_models.is_none().
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
sourcepub fn asset_model_external_id(&self) -> Option<&str>
pub fn asset_model_external_id(&self) -> Option<&str>
An external ID to assign to the asset model. The asset model must not already have an external ID. The external ID must be unique within your Amazon Web Services account. For more information, see Using external IDs in the IoT SiteWise User Guide.
source§impl UpdateAssetModelInput
impl UpdateAssetModelInput
sourcepub fn builder() -> UpdateAssetModelInputBuilder
pub fn builder() -> UpdateAssetModelInputBuilder
Creates a new builder-style object to manufacture UpdateAssetModelInput.
Trait Implementations§
source§impl Clone for UpdateAssetModelInput
impl Clone for UpdateAssetModelInput
source§fn clone(&self) -> UpdateAssetModelInput
fn clone(&self) -> UpdateAssetModelInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdateAssetModelInput
impl Debug for UpdateAssetModelInput
source§impl PartialEq for UpdateAssetModelInput
impl PartialEq for UpdateAssetModelInput
source§fn eq(&self, other: &UpdateAssetModelInput) -> bool
fn eq(&self, other: &UpdateAssetModelInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UpdateAssetModelInput
Auto Trait Implementations§
impl Freeze for UpdateAssetModelInput
impl RefUnwindSafe for UpdateAssetModelInput
impl Send for UpdateAssetModelInput
impl Sync for UpdateAssetModelInput
impl Unpin for UpdateAssetModelInput
impl UnwindSafe for UpdateAssetModelInput
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