1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateAssetModel`](crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`asset_model_id(impl Into<String>)`](crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder::asset_model_id) / [`set_asset_model_id(Option<String>)`](crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder::set_asset_model_id):<br>required: **true**<br><p>The ID of the asset model to update. This can be either the actual ID in UUID format, or else <code>externalId:</code> followed by the external ID, if it has one. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/object-ids.html#external-id-references">Referencing objects with external IDs</a> in the <i>IoT SiteWise User Guide</i>.</p><br>
    ///   - [`asset_model_name(impl Into<String>)`](crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder::asset_model_name) / [`set_asset_model_name(Option<String>)`](crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder::set_asset_model_name):<br>required: **true**<br><p>A unique, friendly name for the asset model.</p><br>
    ///   - [`asset_model_description(impl Into<String>)`](crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder::asset_model_description) / [`set_asset_model_description(Option<String>)`](crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder::set_asset_model_description):<br>required: **false**<br><p>A description for the asset model.</p><br>
    ///   - [`asset_model_properties(AssetModelProperty)`](crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder::asset_model_properties) / [`set_asset_model_properties(Option<Vec::<AssetModelProperty>>)`](crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder::set_asset_model_properties):<br>required: **false**<br><p>The updated property definitions of the asset model. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-properties.html">Asset properties</a> in the <i>IoT SiteWise User Guide</i>.</p> <p>You can specify up to 200 properties per asset model. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a> in the <i>IoT SiteWise User Guide</i>.</p><br>
    ///   - [`asset_model_hierarchies(AssetModelHierarchy)`](crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder::asset_model_hierarchies) / [`set_asset_model_hierarchies(Option<Vec::<AssetModelHierarchy>>)`](crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder::set_asset_model_hierarchies):<br>required: **false**<br><p>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 <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-hierarchies.html">Asset hierarchies</a> in the <i>IoT SiteWise User Guide</i>.</p> <p>You can specify up to 10 hierarchies per asset model. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html">Quotas</a> in the <i>IoT SiteWise User Guide</i>.</p><br>
    ///   - [`asset_model_composite_models(AssetModelCompositeModel)`](crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder::asset_model_composite_models) / [`set_asset_model_composite_models(Option<Vec::<AssetModelCompositeModel>>)`](crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder::set_asset_model_composite_models):<br>required: **false**<br><p>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.</p><note>  <p>When creating custom composite models, you need to use <a href="https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_CreateAssetModelCompositeModel.html">CreateAssetModelCompositeModel</a>. For more information, see    <link>.</p> </note><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder::set_client_token):<br>required: **false**<br><p>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.</p><br>
    ///   - [`asset_model_external_id(impl Into<String>)`](crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder::asset_model_external_id) / [`set_asset_model_external_id(Option<String>)`](crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder::set_asset_model_external_id):<br>required: **false**<br><p>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 <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/object-ids.html#external-ids">Using external IDs</a> in the <i>IoT SiteWise User Guide</i>.</p><br>
    /// - On success, responds with [`UpdateAssetModelOutput`](crate::operation::update_asset_model::UpdateAssetModelOutput) with field(s):
    ///   - [`asset_model_status(Option<AssetModelStatus>)`](crate::operation::update_asset_model::UpdateAssetModelOutput::asset_model_status): <p>The status of the asset model, which contains a state (<code>UPDATING</code> after successfully calling this operation) and any error message.</p>
    /// - On failure, responds with [`SdkError<UpdateAssetModelError>`](crate::operation::update_asset_model::UpdateAssetModelError)
    pub fn update_asset_model(&self) -> crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder {
        crate::operation::update_asset_model::builders::UpdateAssetModelFluentBuilder::new(self.handle.clone())
    }
}