/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace IoTSiteWise { namespace Model { /** */ class UpdateAssetPropertyRequest : public IoTSiteWiseRequest { public: AWS_IOTSITEWISE_API UpdateAssetPropertyRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateAssetProperty"; } AWS_IOTSITEWISE_API Aws::String SerializePayload() const override; /** *

The ID of the asset to be updated.

*/ inline const Aws::String& GetAssetId() const{ return m_assetId; } /** *

The ID of the asset to be updated.

*/ inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; } /** *

The ID of the asset to be updated.

*/ inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; } /** *

The ID of the asset to be updated.

*/ inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); } /** *

The ID of the asset to be updated.

*/ inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); } /** *

The ID of the asset to be updated.

*/ inline UpdateAssetPropertyRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;} /** *

The ID of the asset to be updated.

*/ inline UpdateAssetPropertyRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;} /** *

The ID of the asset to be updated.

*/ inline UpdateAssetPropertyRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;} /** *

The ID of the asset property to be updated.

*/ inline const Aws::String& GetPropertyId() const{ return m_propertyId; } /** *

The ID of the asset property to be updated.

*/ inline bool PropertyIdHasBeenSet() const { return m_propertyIdHasBeenSet; } /** *

The ID of the asset property to be updated.

*/ inline void SetPropertyId(const Aws::String& value) { m_propertyIdHasBeenSet = true; m_propertyId = value; } /** *

The ID of the asset property to be updated.

*/ inline void SetPropertyId(Aws::String&& value) { m_propertyIdHasBeenSet = true; m_propertyId = std::move(value); } /** *

The ID of the asset property to be updated.

*/ inline void SetPropertyId(const char* value) { m_propertyIdHasBeenSet = true; m_propertyId.assign(value); } /** *

The ID of the asset property to be updated.

*/ inline UpdateAssetPropertyRequest& WithPropertyId(const Aws::String& value) { SetPropertyId(value); return *this;} /** *

The ID of the asset property to be updated.

*/ inline UpdateAssetPropertyRequest& WithPropertyId(Aws::String&& value) { SetPropertyId(std::move(value)); return *this;} /** *

The ID of the asset property to be updated.

*/ inline UpdateAssetPropertyRequest& WithPropertyId(const char* value) { SetPropertyId(value); return *this;} /** *

The alias that identifies the property, such as an OPC-UA server data stream * path (for example, /company/windfarm/3/turbine/7/temperature). For * more information, see Mapping * industrial data streams to asset properties in the IoT SiteWise User * Guide.

If you omit this parameter, the alias is removed from the * property.

*/ inline const Aws::String& GetPropertyAlias() const{ return m_propertyAlias; } /** *

The alias that identifies the property, such as an OPC-UA server data stream * path (for example, /company/windfarm/3/turbine/7/temperature). For * more information, see Mapping * industrial data streams to asset properties in the IoT SiteWise User * Guide.

If you omit this parameter, the alias is removed from the * property.

*/ inline bool PropertyAliasHasBeenSet() const { return m_propertyAliasHasBeenSet; } /** *

The alias that identifies the property, such as an OPC-UA server data stream * path (for example, /company/windfarm/3/turbine/7/temperature). For * more information, see Mapping * industrial data streams to asset properties in the IoT SiteWise User * Guide.

If you omit this parameter, the alias is removed from the * property.

*/ inline void SetPropertyAlias(const Aws::String& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = value; } /** *

The alias that identifies the property, such as an OPC-UA server data stream * path (for example, /company/windfarm/3/turbine/7/temperature). For * more information, see Mapping * industrial data streams to asset properties in the IoT SiteWise User * Guide.

If you omit this parameter, the alias is removed from the * property.

*/ inline void SetPropertyAlias(Aws::String&& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = std::move(value); } /** *

The alias that identifies the property, such as an OPC-UA server data stream * path (for example, /company/windfarm/3/turbine/7/temperature). For * more information, see Mapping * industrial data streams to asset properties in the IoT SiteWise User * Guide.

If you omit this parameter, the alias is removed from the * property.

*/ inline void SetPropertyAlias(const char* value) { m_propertyAliasHasBeenSet = true; m_propertyAlias.assign(value); } /** *

The alias that identifies the property, such as an OPC-UA server data stream * path (for example, /company/windfarm/3/turbine/7/temperature). For * more information, see Mapping * industrial data streams to asset properties in the IoT SiteWise User * Guide.

If you omit this parameter, the alias is removed from the * property.

*/ inline UpdateAssetPropertyRequest& WithPropertyAlias(const Aws::String& value) { SetPropertyAlias(value); return *this;} /** *

The alias that identifies the property, such as an OPC-UA server data stream * path (for example, /company/windfarm/3/turbine/7/temperature). For * more information, see Mapping * industrial data streams to asset properties in the IoT SiteWise User * Guide.

If you omit this parameter, the alias is removed from the * property.

*/ inline UpdateAssetPropertyRequest& WithPropertyAlias(Aws::String&& value) { SetPropertyAlias(std::move(value)); return *this;} /** *

The alias that identifies the property, such as an OPC-UA server data stream * path (for example, /company/windfarm/3/turbine/7/temperature). For * more information, see Mapping * industrial data streams to asset properties in the IoT SiteWise User * Guide.

If you omit this parameter, the alias is removed from the * property.

*/ inline UpdateAssetPropertyRequest& WithPropertyAlias(const char* value) { SetPropertyAlias(value); return *this;} /** *

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 Interacting * with other services in the IoT SiteWise User Guide.

If you * omit this parameter, the notification state is set to DISABLED.

*/ inline const PropertyNotificationState& GetPropertyNotificationState() const{ return m_propertyNotificationState; } /** *

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 Interacting * with other services in the IoT SiteWise User Guide.

If you * omit this parameter, the notification state is set to DISABLED.

*/ inline bool PropertyNotificationStateHasBeenSet() const { return m_propertyNotificationStateHasBeenSet; } /** *

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 Interacting * with other services in the IoT SiteWise User Guide.

If you * omit this parameter, the notification state is set to DISABLED.

*/ inline void SetPropertyNotificationState(const PropertyNotificationState& value) { m_propertyNotificationStateHasBeenSet = true; m_propertyNotificationState = value; } /** *

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 Interacting * with other services in the IoT SiteWise User Guide.

If you * omit this parameter, the notification state is set to DISABLED.

*/ inline void SetPropertyNotificationState(PropertyNotificationState&& value) { m_propertyNotificationStateHasBeenSet = true; m_propertyNotificationState = std::move(value); } /** *

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 Interacting * with other services in the IoT SiteWise User Guide.

If you * omit this parameter, the notification state is set to DISABLED.

*/ inline UpdateAssetPropertyRequest& WithPropertyNotificationState(const PropertyNotificationState& value) { SetPropertyNotificationState(value); return *this;} /** *

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 Interacting * with other services in the IoT SiteWise User Guide.

If you * omit this parameter, the notification state is set to DISABLED.

*/ inline UpdateAssetPropertyRequest& WithPropertyNotificationState(PropertyNotificationState&& value) { SetPropertyNotificationState(std::move(value)); return *this;} /** *

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.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

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.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

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.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

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.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

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.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

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.

*/ inline UpdateAssetPropertyRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

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.

*/ inline UpdateAssetPropertyRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

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.

*/ inline UpdateAssetPropertyRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

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 * assetModelProperty in the asset model.

*/ inline const Aws::String& GetPropertyUnit() const{ return m_propertyUnit; } /** *

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 * assetModelProperty in the asset model.

*/ inline bool PropertyUnitHasBeenSet() const { return m_propertyUnitHasBeenSet; } /** *

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 * assetModelProperty in the asset model.

*/ inline void SetPropertyUnit(const Aws::String& value) { m_propertyUnitHasBeenSet = true; m_propertyUnit = value; } /** *

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 * assetModelProperty in the asset model.

*/ inline void SetPropertyUnit(Aws::String&& value) { m_propertyUnitHasBeenSet = true; m_propertyUnit = std::move(value); } /** *

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 * assetModelProperty in the asset model.

*/ inline void SetPropertyUnit(const char* value) { m_propertyUnitHasBeenSet = true; m_propertyUnit.assign(value); } /** *

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 * assetModelProperty in the asset model.

*/ inline UpdateAssetPropertyRequest& WithPropertyUnit(const Aws::String& value) { SetPropertyUnit(value); return *this;} /** *

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 * assetModelProperty in the asset model.

*/ inline UpdateAssetPropertyRequest& WithPropertyUnit(Aws::String&& value) { SetPropertyUnit(std::move(value)); return *this;} /** *

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 * assetModelProperty in the asset model.

*/ inline UpdateAssetPropertyRequest& WithPropertyUnit(const char* value) { SetPropertyUnit(value); return *this;} private: Aws::String m_assetId; bool m_assetIdHasBeenSet = false; Aws::String m_propertyId; bool m_propertyIdHasBeenSet = false; Aws::String m_propertyAlias; bool m_propertyAliasHasBeenSet = false; PropertyNotificationState m_propertyNotificationState; bool m_propertyNotificationStateHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_propertyUnit; bool m_propertyUnitHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws