/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace IoTSiteWise { namespace Model { /** */ class UpdateAssetRequest : public IoTSiteWiseRequest { public: AWS_IOTSITEWISE_API UpdateAssetRequest(); // 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 "UpdateAsset"; } AWS_IOTSITEWISE_API Aws::String SerializePayload() const override; /** *

The ID of the asset to update.

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

The ID of the asset to update.

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

The ID of the asset to update.

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

The ID of the asset to update.

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

The ID of the asset to update.

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

The ID of the asset to update.

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

The ID of the asset to update.

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

The ID of the asset to update.

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

A friendly name for the asset.

*/ inline const Aws::String& GetAssetName() const{ return m_assetName; } /** *

A friendly name for the asset.

*/ inline bool AssetNameHasBeenSet() const { return m_assetNameHasBeenSet; } /** *

A friendly name for the asset.

*/ inline void SetAssetName(const Aws::String& value) { m_assetNameHasBeenSet = true; m_assetName = value; } /** *

A friendly name for the asset.

*/ inline void SetAssetName(Aws::String&& value) { m_assetNameHasBeenSet = true; m_assetName = std::move(value); } /** *

A friendly name for the asset.

*/ inline void SetAssetName(const char* value) { m_assetNameHasBeenSet = true; m_assetName.assign(value); } /** *

A friendly name for the asset.

*/ inline UpdateAssetRequest& WithAssetName(const Aws::String& value) { SetAssetName(value); return *this;} /** *

A friendly name for the asset.

*/ inline UpdateAssetRequest& WithAssetName(Aws::String&& value) { SetAssetName(std::move(value)); return *this;} /** *

A friendly name for the asset.

*/ inline UpdateAssetRequest& WithAssetName(const char* value) { SetAssetName(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 UpdateAssetRequest& 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 UpdateAssetRequest& 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 UpdateAssetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

A description for the asset.

*/ inline const Aws::String& GetAssetDescription() const{ return m_assetDescription; } /** *

A description for the asset.

*/ inline bool AssetDescriptionHasBeenSet() const { return m_assetDescriptionHasBeenSet; } /** *

A description for the asset.

*/ inline void SetAssetDescription(const Aws::String& value) { m_assetDescriptionHasBeenSet = true; m_assetDescription = value; } /** *

A description for the asset.

*/ inline void SetAssetDescription(Aws::String&& value) { m_assetDescriptionHasBeenSet = true; m_assetDescription = std::move(value); } /** *

A description for the asset.

*/ inline void SetAssetDescription(const char* value) { m_assetDescriptionHasBeenSet = true; m_assetDescription.assign(value); } /** *

A description for the asset.

*/ inline UpdateAssetRequest& WithAssetDescription(const Aws::String& value) { SetAssetDescription(value); return *this;} /** *

A description for the asset.

*/ inline UpdateAssetRequest& WithAssetDescription(Aws::String&& value) { SetAssetDescription(std::move(value)); return *this;} /** *

A description for the asset.

*/ inline UpdateAssetRequest& WithAssetDescription(const char* value) { SetAssetDescription(value); return *this;} private: Aws::String m_assetId; bool m_assetIdHasBeenSet = false; Aws::String m_assetName; bool m_assetNameHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_assetDescription; bool m_assetDescriptionHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws