/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An asset in AWS Data Exchange is a piece of data (Amazon S3 object) or a
* means of fulfilling data (Amazon Redshift datashare or Amazon API Gateway API,
* AWS Lake Formation data permission, or Amazon S3 data access). The asset can be
* a structured data file, an image file, or some other data file that can be
* stored as an Amazon S3 object, an Amazon API Gateway API, or an Amazon Redshift
* datashare, an AWS Lake Formation data permission, or an Amazon S3 data access.
* When you create an import job for your files, API Gateway APIs, Amazon Redshift
* datashares, AWS Lake Formation data permission, or Amazon S3 data access, you
* create an asset in AWS Data Exchange.See Also:
AWS
* API Reference
The ARN for the asset.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The ARN for the asset.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The ARN for the asset.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The ARN for the asset.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The ARN for the asset.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The ARN for the asset.
*/ inline AssetEntry& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The ARN for the asset.
*/ inline AssetEntry& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The ARN for the asset.
*/ inline AssetEntry& WithArn(const char* value) { SetArn(value); return *this;} /** *Details about the asset.
*/ inline const AssetDetails& GetAssetDetails() const{ return m_assetDetails; } /** *Details about the asset.
*/ inline bool AssetDetailsHasBeenSet() const { return m_assetDetailsHasBeenSet; } /** *Details about the asset.
*/ inline void SetAssetDetails(const AssetDetails& value) { m_assetDetailsHasBeenSet = true; m_assetDetails = value; } /** *Details about the asset.
*/ inline void SetAssetDetails(AssetDetails&& value) { m_assetDetailsHasBeenSet = true; m_assetDetails = std::move(value); } /** *Details about the asset.
*/ inline AssetEntry& WithAssetDetails(const AssetDetails& value) { SetAssetDetails(value); return *this;} /** *Details about the asset.
*/ inline AssetEntry& WithAssetDetails(AssetDetails&& value) { SetAssetDetails(std::move(value)); return *this;} /** *The type of asset that is added to a data set.
*/ inline const AssetType& GetAssetType() const{ return m_assetType; } /** *The type of asset that is added to a data set.
*/ inline bool AssetTypeHasBeenSet() const { return m_assetTypeHasBeenSet; } /** *The type of asset that is added to a data set.
*/ inline void SetAssetType(const AssetType& value) { m_assetTypeHasBeenSet = true; m_assetType = value; } /** *The type of asset that is added to a data set.
*/ inline void SetAssetType(AssetType&& value) { m_assetTypeHasBeenSet = true; m_assetType = std::move(value); } /** *The type of asset that is added to a data set.
*/ inline AssetEntry& WithAssetType(const AssetType& value) { SetAssetType(value); return *this;} /** *The type of asset that is added to a data set.
*/ inline AssetEntry& WithAssetType(AssetType&& value) { SetAssetType(std::move(value)); return *this;} /** *The date and time that the asset was created, in ISO 8601 format.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The date and time that the asset was created, in ISO 8601 format.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The date and time that the asset was created, in ISO 8601 format.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The date and time that the asset was created, in ISO 8601 format.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The date and time that the asset was created, in ISO 8601 format.
*/ inline AssetEntry& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The date and time that the asset was created, in ISO 8601 format.
*/ inline AssetEntry& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *The unique identifier for the data set associated with this asset.
*/ inline const Aws::String& GetDataSetId() const{ return m_dataSetId; } /** *The unique identifier for the data set associated with this asset.
*/ inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; } /** *The unique identifier for the data set associated with this asset.
*/ inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; } /** *The unique identifier for the data set associated with this asset.
*/ inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); } /** *The unique identifier for the data set associated with this asset.
*/ inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); } /** *The unique identifier for the data set associated with this asset.
*/ inline AssetEntry& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;} /** *The unique identifier for the data set associated with this asset.
*/ inline AssetEntry& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;} /** *The unique identifier for the data set associated with this asset.
*/ inline AssetEntry& WithDataSetId(const char* value) { SetDataSetId(value); return *this;} /** *The unique identifier for the asset.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The unique identifier for the asset.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The unique identifier for the asset.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The unique identifier for the asset.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The unique identifier for the asset.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The unique identifier for the asset.
*/ inline AssetEntry& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The unique identifier for the asset.
*/ inline AssetEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The unique identifier for the asset.
*/ inline AssetEntry& WithId(const char* value) { SetId(value); return *this;} /** *The name of the asset. When importing from Amazon S3, the Amazon S3 object * key is used as the asset name. When exporting to Amazon S3, the asset name is * used as default target Amazon S3 object key. When importing from Amazon API * Gateway API, the API name is used as the asset name. When importing from Amazon * Redshift, the datashare name is used as the asset name. When importing from AWS * Lake Formation, the static values of "Database(s) included in LF-tag policy" or * "Table(s) included in LF-tag policy" are used as the asset name.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the asset. When importing from Amazon S3, the Amazon S3 object * key is used as the asset name. When exporting to Amazon S3, the asset name is * used as default target Amazon S3 object key. When importing from Amazon API * Gateway API, the API name is used as the asset name. When importing from Amazon * Redshift, the datashare name is used as the asset name. When importing from AWS * Lake Formation, the static values of "Database(s) included in LF-tag policy" or * "Table(s) included in LF-tag policy" are used as the asset name.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the asset. When importing from Amazon S3, the Amazon S3 object * key is used as the asset name. When exporting to Amazon S3, the asset name is * used as default target Amazon S3 object key. When importing from Amazon API * Gateway API, the API name is used as the asset name. When importing from Amazon * Redshift, the datashare name is used as the asset name. When importing from AWS * Lake Formation, the static values of "Database(s) included in LF-tag policy" or * "Table(s) included in LF-tag policy" are used as the asset name.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the asset. When importing from Amazon S3, the Amazon S3 object * key is used as the asset name. When exporting to Amazon S3, the asset name is * used as default target Amazon S3 object key. When importing from Amazon API * Gateway API, the API name is used as the asset name. When importing from Amazon * Redshift, the datashare name is used as the asset name. When importing from AWS * Lake Formation, the static values of "Database(s) included in LF-tag policy" or * "Table(s) included in LF-tag policy" are used as the asset name.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the asset. When importing from Amazon S3, the Amazon S3 object * key is used as the asset name. When exporting to Amazon S3, the asset name is * used as default target Amazon S3 object key. When importing from Amazon API * Gateway API, the API name is used as the asset name. When importing from Amazon * Redshift, the datashare name is used as the asset name. When importing from AWS * Lake Formation, the static values of "Database(s) included in LF-tag policy" or * "Table(s) included in LF-tag policy" are used as the asset name.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the asset. When importing from Amazon S3, the Amazon S3 object * key is used as the asset name. When exporting to Amazon S3, the asset name is * used as default target Amazon S3 object key. When importing from Amazon API * Gateway API, the API name is used as the asset name. When importing from Amazon * Redshift, the datashare name is used as the asset name. When importing from AWS * Lake Formation, the static values of "Database(s) included in LF-tag policy" or * "Table(s) included in LF-tag policy" are used as the asset name.
*/ inline AssetEntry& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the asset. When importing from Amazon S3, the Amazon S3 object * key is used as the asset name. When exporting to Amazon S3, the asset name is * used as default target Amazon S3 object key. When importing from Amazon API * Gateway API, the API name is used as the asset name. When importing from Amazon * Redshift, the datashare name is used as the asset name. When importing from AWS * Lake Formation, the static values of "Database(s) included in LF-tag policy" or * "Table(s) included in LF-tag policy" are used as the asset name.
*/ inline AssetEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the asset. When importing from Amazon S3, the Amazon S3 object * key is used as the asset name. When exporting to Amazon S3, the asset name is * used as default target Amazon S3 object key. When importing from Amazon API * Gateway API, the API name is used as the asset name. When importing from Amazon * Redshift, the datashare name is used as the asset name. When importing from AWS * Lake Formation, the static values of "Database(s) included in LF-tag policy" or * "Table(s) included in LF-tag policy" are used as the asset name.
*/ inline AssetEntry& WithName(const char* value) { SetName(value); return *this;} /** *The unique identifier for the revision associated with this asset.
*/ inline const Aws::String& GetRevisionId() const{ return m_revisionId; } /** *The unique identifier for the revision associated with this asset.
*/ inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; } /** *The unique identifier for the revision associated with this asset.
*/ inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; } /** *The unique identifier for the revision associated with this asset.
*/ inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); } /** *The unique identifier for the revision associated with this asset.
*/ inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); } /** *The unique identifier for the revision associated with this asset.
*/ inline AssetEntry& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} /** *The unique identifier for the revision associated with this asset.
*/ inline AssetEntry& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} /** *The unique identifier for the revision associated with this asset.
*/ inline AssetEntry& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} /** *The asset ID of the owned asset corresponding to the entitled asset being * viewed. This parameter is returned when an asset owner is viewing the entitled * copy of its owned asset.
*/ inline const Aws::String& GetSourceId() const{ return m_sourceId; } /** *The asset ID of the owned asset corresponding to the entitled asset being * viewed. This parameter is returned when an asset owner is viewing the entitled * copy of its owned asset.
*/ inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; } /** *The asset ID of the owned asset corresponding to the entitled asset being * viewed. This parameter is returned when an asset owner is viewing the entitled * copy of its owned asset.
*/ inline void SetSourceId(const Aws::String& value) { m_sourceIdHasBeenSet = true; m_sourceId = value; } /** *The asset ID of the owned asset corresponding to the entitled asset being * viewed. This parameter is returned when an asset owner is viewing the entitled * copy of its owned asset.
*/ inline void SetSourceId(Aws::String&& value) { m_sourceIdHasBeenSet = true; m_sourceId = std::move(value); } /** *The asset ID of the owned asset corresponding to the entitled asset being * viewed. This parameter is returned when an asset owner is viewing the entitled * copy of its owned asset.
*/ inline void SetSourceId(const char* value) { m_sourceIdHasBeenSet = true; m_sourceId.assign(value); } /** *The asset ID of the owned asset corresponding to the entitled asset being * viewed. This parameter is returned when an asset owner is viewing the entitled * copy of its owned asset.
*/ inline AssetEntry& WithSourceId(const Aws::String& value) { SetSourceId(value); return *this;} /** *The asset ID of the owned asset corresponding to the entitled asset being * viewed. This parameter is returned when an asset owner is viewing the entitled * copy of its owned asset.
*/ inline AssetEntry& WithSourceId(Aws::String&& value) { SetSourceId(std::move(value)); return *this;} /** *The asset ID of the owned asset corresponding to the entitled asset being * viewed. This parameter is returned when an asset owner is viewing the entitled * copy of its owned asset.
*/ inline AssetEntry& WithSourceId(const char* value) { SetSourceId(value); return *this;} /** *The date and time that the asset was last updated, in ISO 8601 format.
*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *The date and time that the asset was last updated, in ISO 8601 format.
*/ inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *The date and time that the asset was last updated, in ISO 8601 format.
*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } /** *The date and time that the asset was last updated, in ISO 8601 format.
*/ inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } /** *The date and time that the asset was last updated, in ISO 8601 format.
*/ inline AssetEntry& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *The date and time that the asset was last updated, in ISO 8601 format.
*/ inline AssetEntry& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; AssetDetails m_assetDetails; bool m_assetDetailsHasBeenSet = false; AssetType m_assetType; bool m_assetTypeHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_dataSetId; bool m_dataSetIdHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_revisionId; bool m_revisionIdHasBeenSet = false; Aws::String m_sourceId; bool m_sourceIdHasBeenSet = false; Aws::Utils::DateTime m_updatedAt; bool m_updatedAtHasBeenSet = false; }; } // namespace Model } // namespace DataExchange } // namespace Aws