416 lines
14 KiB
C++
416 lines
14 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/dataexchange/DataExchange_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/dataexchange/model/AssetDetails.h>
|
|
#include <aws/dataexchange/model/AssetType.h>
|
|
#include <aws/core/utils/DateTime.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
template<typename RESULT_TYPE>
|
|
class AmazonWebServiceResult;
|
|
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace DataExchange
|
|
{
|
|
namespace Model
|
|
{
|
|
class AWS_DATAEXCHANGE_API GetAssetResult
|
|
{
|
|
public:
|
|
GetAssetResult();
|
|
GetAssetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
GetAssetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
|
|
|
|
/**
|
|
* <p>The ARN for the asset.</p>
|
|
*/
|
|
inline const Aws::String& GetArn() const{ return m_arn; }
|
|
|
|
/**
|
|
* <p>The ARN for the asset.</p>
|
|
*/
|
|
inline void SetArn(const Aws::String& value) { m_arn = value; }
|
|
|
|
/**
|
|
* <p>The ARN for the asset.</p>
|
|
*/
|
|
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ARN for the asset.</p>
|
|
*/
|
|
inline void SetArn(const char* value) { m_arn.assign(value); }
|
|
|
|
/**
|
|
* <p>The ARN for the asset.</p>
|
|
*/
|
|
inline GetAssetResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN for the asset.</p>
|
|
*/
|
|
inline GetAssetResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN for the asset.</p>
|
|
*/
|
|
inline GetAssetResult& WithArn(const char* value) { SetArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Information about the asset, including its size.</p>
|
|
*/
|
|
inline const AssetDetails& GetAssetDetails() const{ return m_assetDetails; }
|
|
|
|
/**
|
|
* <p>Information about the asset, including its size.</p>
|
|
*/
|
|
inline void SetAssetDetails(const AssetDetails& value) { m_assetDetails = value; }
|
|
|
|
/**
|
|
* <p>Information about the asset, including its size.</p>
|
|
*/
|
|
inline void SetAssetDetails(AssetDetails&& value) { m_assetDetails = std::move(value); }
|
|
|
|
/**
|
|
* <p>Information about the asset, including its size.</p>
|
|
*/
|
|
inline GetAssetResult& WithAssetDetails(const AssetDetails& value) { SetAssetDetails(value); return *this;}
|
|
|
|
/**
|
|
* <p>Information about the asset, including its size.</p>
|
|
*/
|
|
inline GetAssetResult& WithAssetDetails(AssetDetails&& value) { SetAssetDetails(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The type of file your data is stored in. Currently, the supported asset type
|
|
* is S3_SNAPSHOT.</p>
|
|
*/
|
|
inline const AssetType& GetAssetType() const{ return m_assetType; }
|
|
|
|
/**
|
|
* <p>The type of file your data is stored in. Currently, the supported asset type
|
|
* is S3_SNAPSHOT.</p>
|
|
*/
|
|
inline void SetAssetType(const AssetType& value) { m_assetType = value; }
|
|
|
|
/**
|
|
* <p>The type of file your data is stored in. Currently, the supported asset type
|
|
* is S3_SNAPSHOT.</p>
|
|
*/
|
|
inline void SetAssetType(AssetType&& value) { m_assetType = std::move(value); }
|
|
|
|
/**
|
|
* <p>The type of file your data is stored in. Currently, the supported asset type
|
|
* is S3_SNAPSHOT.</p>
|
|
*/
|
|
inline GetAssetResult& WithAssetType(const AssetType& value) { SetAssetType(value); return *this;}
|
|
|
|
/**
|
|
* <p>The type of file your data is stored in. Currently, the supported asset type
|
|
* is S3_SNAPSHOT.</p>
|
|
*/
|
|
inline GetAssetResult& WithAssetType(AssetType&& value) { SetAssetType(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The date and time that the asset was created, in ISO 8601 format.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
|
|
|
|
/**
|
|
* <p>The date and time that the asset was created, in ISO 8601 format.</p>
|
|
*/
|
|
inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
|
|
|
|
/**
|
|
* <p>The date and time that the asset was created, in ISO 8601 format.</p>
|
|
*/
|
|
inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
|
|
|
|
/**
|
|
* <p>The date and time that the asset was created, in ISO 8601 format.</p>
|
|
*/
|
|
inline GetAssetResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
|
|
|
|
/**
|
|
* <p>The date and time that the asset was created, in ISO 8601 format.</p>
|
|
*/
|
|
inline GetAssetResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The unique identifier for the data set associated with this asset.</p>
|
|
*/
|
|
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
|
|
|
|
/**
|
|
* <p>The unique identifier for the data set associated with this asset.</p>
|
|
*/
|
|
inline void SetDataSetId(const Aws::String& value) { m_dataSetId = value; }
|
|
|
|
/**
|
|
* <p>The unique identifier for the data set associated with this asset.</p>
|
|
*/
|
|
inline void SetDataSetId(Aws::String&& value) { m_dataSetId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The unique identifier for the data set associated with this asset.</p>
|
|
*/
|
|
inline void SetDataSetId(const char* value) { m_dataSetId.assign(value); }
|
|
|
|
/**
|
|
* <p>The unique identifier for the data set associated with this asset.</p>
|
|
*/
|
|
inline GetAssetResult& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The unique identifier for the data set associated with this asset.</p>
|
|
*/
|
|
inline GetAssetResult& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The unique identifier for the data set associated with this asset.</p>
|
|
*/
|
|
inline GetAssetResult& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The unique identifier for the asset.</p>
|
|
*/
|
|
inline const Aws::String& GetId() const{ return m_id; }
|
|
|
|
/**
|
|
* <p>The unique identifier for the asset.</p>
|
|
*/
|
|
inline void SetId(const Aws::String& value) { m_id = value; }
|
|
|
|
/**
|
|
* <p>The unique identifier for the asset.</p>
|
|
*/
|
|
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
|
|
|
|
/**
|
|
* <p>The unique identifier for the asset.</p>
|
|
*/
|
|
inline void SetId(const char* value) { m_id.assign(value); }
|
|
|
|
/**
|
|
* <p>The unique identifier for the asset.</p>
|
|
*/
|
|
inline GetAssetResult& WithId(const Aws::String& value) { SetId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The unique identifier for the asset.</p>
|
|
*/
|
|
inline GetAssetResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The unique identifier for the asset.</p>
|
|
*/
|
|
inline GetAssetResult& WithId(const char* value) { SetId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The name of the asset When importing from Amazon S3, the S3 object key is
|
|
* used as the asset name. When exporting to Amazon S3, the asset name is used as
|
|
* default target S3 object key.</p>
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
|
|
/**
|
|
* <p>The name of the asset When importing from Amazon S3, the S3 object key is
|
|
* used as the asset name. When exporting to Amazon S3, the asset name is used as
|
|
* default target S3 object key.</p>
|
|
*/
|
|
inline void SetName(const Aws::String& value) { m_name = value; }
|
|
|
|
/**
|
|
* <p>The name of the asset When importing from Amazon S3, the S3 object key is
|
|
* used as the asset name. When exporting to Amazon S3, the asset name is used as
|
|
* default target S3 object key.</p>
|
|
*/
|
|
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the asset When importing from Amazon S3, the S3 object key is
|
|
* used as the asset name. When exporting to Amazon S3, the asset name is used as
|
|
* default target S3 object key.</p>
|
|
*/
|
|
inline void SetName(const char* value) { m_name.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the asset When importing from Amazon S3, the S3 object key is
|
|
* used as the asset name. When exporting to Amazon S3, the asset name is used as
|
|
* default target S3 object key.</p>
|
|
*/
|
|
inline GetAssetResult& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the asset When importing from Amazon S3, the S3 object key is
|
|
* used as the asset name. When exporting to Amazon S3, the asset name is used as
|
|
* default target S3 object key.</p>
|
|
*/
|
|
inline GetAssetResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the asset When importing from Amazon S3, the S3 object key is
|
|
* used as the asset name. When exporting to Amazon S3, the asset name is used as
|
|
* default target S3 object key.</p>
|
|
*/
|
|
inline GetAssetResult& WithName(const char* value) { SetName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The unique identifier for the revision associated with this asset.</p>
|
|
*/
|
|
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
|
|
|
|
/**
|
|
* <p>The unique identifier for the revision associated with this asset.</p>
|
|
*/
|
|
inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; }
|
|
|
|
/**
|
|
* <p>The unique identifier for the revision associated with this asset.</p>
|
|
*/
|
|
inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The unique identifier for the revision associated with this asset.</p>
|
|
*/
|
|
inline void SetRevisionId(const char* value) { m_revisionId.assign(value); }
|
|
|
|
/**
|
|
* <p>The unique identifier for the revision associated with this asset.</p>
|
|
*/
|
|
inline GetAssetResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The unique identifier for the revision associated with this asset.</p>
|
|
*/
|
|
inline GetAssetResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The unique identifier for the revision associated with this asset.</p>
|
|
*/
|
|
inline GetAssetResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline const Aws::String& GetSourceId() const{ return m_sourceId; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetSourceId(const Aws::String& value) { m_sourceId = value; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetSourceId(Aws::String&& value) { m_sourceId = std::move(value); }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetSourceId(const char* value) { m_sourceId.assign(value); }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline GetAssetResult& WithSourceId(const Aws::String& value) { SetSourceId(value); return *this;}
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline GetAssetResult& WithSourceId(Aws::String&& value) { SetSourceId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline GetAssetResult& WithSourceId(const char* value) { SetSourceId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The date and time that the asset was last updated, in ISO 8601 format.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
|
|
|
|
/**
|
|
* <p>The date and time that the asset was last updated, in ISO 8601 format.</p>
|
|
*/
|
|
inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
|
|
|
|
/**
|
|
* <p>The date and time that the asset was last updated, in ISO 8601 format.</p>
|
|
*/
|
|
inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
|
|
|
|
/**
|
|
* <p>The date and time that the asset was last updated, in ISO 8601 format.</p>
|
|
*/
|
|
inline GetAssetResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
|
|
|
|
/**
|
|
* <p>The date and time that the asset was last updated, in ISO 8601 format.</p>
|
|
*/
|
|
inline GetAssetResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_arn;
|
|
|
|
AssetDetails m_assetDetails;
|
|
|
|
AssetType m_assetType;
|
|
|
|
Aws::Utils::DateTime m_createdAt;
|
|
|
|
Aws::String m_dataSetId;
|
|
|
|
Aws::String m_id;
|
|
|
|
Aws::String m_name;
|
|
|
|
Aws::String m_revisionId;
|
|
|
|
Aws::String m_sourceId;
|
|
|
|
Aws::Utils::DateTime m_updatedAt;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace DataExchange
|
|
} // namespace Aws
|