/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoTSiteWise { namespace Model { class CreateAssetResult { public: AWS_IOTSITEWISE_API CreateAssetResult(); AWS_IOTSITEWISE_API CreateAssetResult(const Aws::AmazonWebServiceResult& result); AWS_IOTSITEWISE_API CreateAssetResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the asset. This ID uniquely identifies the asset within IoT * SiteWise and can be used with other IoT SiteWise APIs.

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

The ID of the asset. This ID uniquely identifies the asset within IoT * SiteWise and can be used with other IoT SiteWise APIs.

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

The ID of the asset. This ID uniquely identifies the asset within IoT * SiteWise and can be used with other IoT SiteWise APIs.

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

The ID of the asset. This ID uniquely identifies the asset within IoT * SiteWise and can be used with other IoT SiteWise APIs.

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

The ID of the asset. This ID uniquely identifies the asset within IoT * SiteWise and can be used with other IoT SiteWise APIs.

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

The ID of the asset. This ID uniquely identifies the asset within IoT * SiteWise and can be used with other IoT SiteWise APIs.

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

The ID of the asset. This ID uniquely identifies the asset within IoT * SiteWise and can be used with other IoT SiteWise APIs.

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

The ARN * of the asset, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} *

*/ inline const Aws::String& GetAssetArn() const{ return m_assetArn; } /** *

The ARN * of the asset, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} *

*/ inline void SetAssetArn(const Aws::String& value) { m_assetArn = value; } /** *

The ARN * of the asset, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} *

*/ inline void SetAssetArn(Aws::String&& value) { m_assetArn = std::move(value); } /** *

The ARN * of the asset, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} *

*/ inline void SetAssetArn(const char* value) { m_assetArn.assign(value); } /** *

The ARN * of the asset, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} *

*/ inline CreateAssetResult& WithAssetArn(const Aws::String& value) { SetAssetArn(value); return *this;} /** *

The ARN * of the asset, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} *

*/ inline CreateAssetResult& WithAssetArn(Aws::String&& value) { SetAssetArn(std::move(value)); return *this;} /** *

The ARN * of the asset, which has the following format.

* arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId} *

*/ inline CreateAssetResult& WithAssetArn(const char* value) { SetAssetArn(value); return *this;} /** *

The status of the asset, which contains a state (CREATING after * successfully calling this operation) and any error message.

*/ inline const AssetStatus& GetAssetStatus() const{ return m_assetStatus; } /** *

The status of the asset, which contains a state (CREATING after * successfully calling this operation) and any error message.

*/ inline void SetAssetStatus(const AssetStatus& value) { m_assetStatus = value; } /** *

The status of the asset, which contains a state (CREATING after * successfully calling this operation) and any error message.

*/ inline void SetAssetStatus(AssetStatus&& value) { m_assetStatus = std::move(value); } /** *

The status of the asset, which contains a state (CREATING after * successfully calling this operation) and any error message.

*/ inline CreateAssetResult& WithAssetStatus(const AssetStatus& value) { SetAssetStatus(value); return *this;} /** *

The status of the asset, which contains a state (CREATING after * successfully calling this operation) and any error message.

*/ inline CreateAssetResult& WithAssetStatus(AssetStatus&& value) { SetAssetStatus(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateAssetResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateAssetResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateAssetResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_assetId; Aws::String m_assetArn; AssetStatus m_assetStatus; Aws::String m_requestId; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws