1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateAssetProperty`](crate::operation::update_asset_property::builders::UpdateAssetPropertyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`asset_id(impl Into<String>)`](crate::operation::update_asset_property::builders::UpdateAssetPropertyFluentBuilder::asset_id) / [`set_asset_id(Option<String>)`](crate::operation::update_asset_property::builders::UpdateAssetPropertyFluentBuilder::set_asset_id):<br>required: **true**<br><p>The ID of the asset to be updated. 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>
    ///   - [`property_id(impl Into<String>)`](crate::operation::update_asset_property::builders::UpdateAssetPropertyFluentBuilder::property_id) / [`set_property_id(Option<String>)`](crate::operation::update_asset_property::builders::UpdateAssetPropertyFluentBuilder::set_property_id):<br>required: **true**<br><p>The ID of the asset property to be updated. 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>
    ///   - [`property_alias(impl Into<String>)`](crate::operation::update_asset_property::builders::UpdateAssetPropertyFluentBuilder::property_alias) / [`set_property_alias(Option<String>)`](crate::operation::update_asset_property::builders::UpdateAssetPropertyFluentBuilder::set_property_alias):<br>required: **false**<br><p>The alias that identifies the property, such as an OPC-UA server data stream path (for example, <code>/company/windfarm/3/turbine/7/temperature</code>). For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/connect-data-streams.html">Mapping industrial data streams to asset properties</a> in the <i>IoT SiteWise User Guide</i>.</p> <p>If you omit this parameter, the alias is removed from the property.</p><br>
    ///   - [`property_notification_state(PropertyNotificationState)`](crate::operation::update_asset_property::builders::UpdateAssetPropertyFluentBuilder::property_notification_state) / [`set_property_notification_state(Option<PropertyNotificationState>)`](crate::operation::update_asset_property::builders::UpdateAssetPropertyFluentBuilder::set_property_notification_state):<br>required: **false**<br><p>The MQTT notification state (enabled or disabled) for this asset property. When the notification state is enabled, IoT SiteWise publishes property value updates to a unique MQTT topic. For more information, see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/interact-with-other-services.html">Interacting with other services</a> in the <i>IoT SiteWise User Guide</i>.</p> <p>If you omit this parameter, the notification state is set to <code>DISABLED</code>.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::update_asset_property::builders::UpdateAssetPropertyFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::update_asset_property::builders::UpdateAssetPropertyFluentBuilder::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>
    ///   - [`property_unit(impl Into<String>)`](crate::operation::update_asset_property::builders::UpdateAssetPropertyFluentBuilder::property_unit) / [`set_property_unit(Option<String>)`](crate::operation::update_asset_property::builders::UpdateAssetPropertyFluentBuilder::set_property_unit):<br>required: **false**<br><p>The unit of measure (such as Newtons or RPM) of the asset property. If you don't specify a value for this parameter, the service uses the value of the <code>assetModelProperty</code> in the asset model.</p><br>
    /// - On success, responds with [`UpdateAssetPropertyOutput`](crate::operation::update_asset_property::UpdateAssetPropertyOutput)
    /// - On failure, responds with [`SdkError<UpdateAssetPropertyError>`](crate::operation::update_asset_property::UpdateAssetPropertyError)
    pub fn update_asset_property(&self) -> crate::operation::update_asset_property::builders::UpdateAssetPropertyFluentBuilder {
        crate::operation::update_asset_property::builders::UpdateAssetPropertyFluentBuilder::new(self.handle.clone())
    }
}