feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,76 @@
add_project(aws-cpp-sdk-dataexchange "C++ SDK for the AWS dataexchange service" aws-cpp-sdk-core)
file(GLOB AWS_DATAEXCHANGE_HEADERS
"include/aws/dataexchange/*.h"
)
file(GLOB AWS_DATAEXCHANGE_MODEL_HEADERS
"include/aws/dataexchange/model/*.h"
)
file(GLOB AWS_DATAEXCHANGE_SOURCE
"source/*.cpp"
)
file(GLOB AWS_DATAEXCHANGE_MODEL_SOURCE
"source/model/*.cpp"
)
file(GLOB DATAEXCHANGE_UNIFIED_HEADERS
${AWS_DATAEXCHANGE_HEADERS}
${AWS_DATAEXCHANGE_MODEL_HEADERS}
)
file(GLOB DATAEXCHANGE_UNITY_SRC
${AWS_DATAEXCHANGE_SOURCE}
${AWS_DATAEXCHANGE_MODEL_SOURCE}
)
if(ENABLE_UNITY_BUILD)
enable_unity_build("DATAEXCHANGE" DATAEXCHANGE_UNITY_SRC)
endif()
file(GLOB DATAEXCHANGE_SRC
${DATAEXCHANGE_UNIFIED_HEADERS}
${DATAEXCHANGE_UNITY_SRC}
)
if(WIN32)
#if we are compiling for visual studio, create a sane directory tree.
if(MSVC)
source_group("Header Files\\aws\\dataexchange" FILES ${AWS_DATAEXCHANGE_HEADERS})
source_group("Header Files\\aws\\dataexchange\\model" FILES ${AWS_DATAEXCHANGE_MODEL_HEADERS})
source_group("Source Files" FILES ${AWS_DATAEXCHANGE_SOURCE})
source_group("Source Files\\model" FILES ${AWS_DATAEXCHANGE_MODEL_SOURCE})
endif(MSVC)
endif()
set(DATAEXCHANGE_INCLUDES
"${CMAKE_CURRENT_SOURCE_DIR}/include/"
)
add_library(${PROJECT_NAME} ${DATAEXCHANGE_SRC})
add_library(AWS::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
set_compiler_flags(${PROJECT_NAME})
set_compiler_warnings(${PROJECT_NAME})
if(USE_WINDOWS_DLL_SEMANTICS AND BUILD_SHARED_LIBS)
target_compile_definitions(${PROJECT_NAME} PRIVATE "AWS_DATAEXCHANGE_EXPORTS")
endif()
target_include_directories(${PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS})
setup_install()
install (FILES ${AWS_DATAEXCHANGE_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/dataexchange)
install (FILES ${AWS_DATAEXCHANGE_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/dataexchange/model)
do_packaging()

View File

@@ -0,0 +1,830 @@
/**
* 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/dataexchange/DataExchangeErrors.h>
#include <aws/core/client/AWSError.h>
#include <aws/core/client/ClientConfiguration.h>
#include <aws/core/client/AWSClient.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/dataexchange/model/CreateDataSetResult.h>
#include <aws/dataexchange/model/CreateJobResult.h>
#include <aws/dataexchange/model/CreateRevisionResult.h>
#include <aws/dataexchange/model/GetAssetResult.h>
#include <aws/dataexchange/model/GetDataSetResult.h>
#include <aws/dataexchange/model/GetJobResult.h>
#include <aws/dataexchange/model/GetRevisionResult.h>
#include <aws/dataexchange/model/ListDataSetRevisionsResult.h>
#include <aws/dataexchange/model/ListDataSetsResult.h>
#include <aws/dataexchange/model/ListJobsResult.h>
#include <aws/dataexchange/model/ListRevisionAssetsResult.h>
#include <aws/dataexchange/model/ListTagsForResourceResult.h>
#include <aws/dataexchange/model/StartJobResult.h>
#include <aws/dataexchange/model/UpdateAssetResult.h>
#include <aws/dataexchange/model/UpdateDataSetResult.h>
#include <aws/dataexchange/model/UpdateRevisionResult.h>
#include <aws/core/NoResult.h>
#include <aws/core/client/AsyncCallerContext.h>
#include <aws/core/http/HttpTypes.h>
#include <future>
#include <functional>
namespace Aws
{
namespace Http
{
class HttpClient;
class HttpClientFactory;
} // namespace Http
namespace Utils
{
template< typename R, typename E> class Outcome;
namespace Threading
{
class Executor;
} // namespace Threading
} // namespace Utils
namespace Auth
{
class AWSCredentials;
class AWSCredentialsProvider;
} // namespace Auth
namespace Client
{
class RetryStrategy;
} // namespace Client
namespace DataExchange
{
namespace Model
{
class CancelJobRequest;
class CreateDataSetRequest;
class CreateJobRequest;
class CreateRevisionRequest;
class DeleteAssetRequest;
class DeleteDataSetRequest;
class DeleteRevisionRequest;
class GetAssetRequest;
class GetDataSetRequest;
class GetJobRequest;
class GetRevisionRequest;
class ListDataSetRevisionsRequest;
class ListDataSetsRequest;
class ListJobsRequest;
class ListRevisionAssetsRequest;
class ListTagsForResourceRequest;
class StartJobRequest;
class TagResourceRequest;
class UntagResourceRequest;
class UpdateAssetRequest;
class UpdateDataSetRequest;
class UpdateRevisionRequest;
typedef Aws::Utils::Outcome<Aws::NoResult, DataExchangeError> CancelJobOutcome;
typedef Aws::Utils::Outcome<CreateDataSetResult, DataExchangeError> CreateDataSetOutcome;
typedef Aws::Utils::Outcome<CreateJobResult, DataExchangeError> CreateJobOutcome;
typedef Aws::Utils::Outcome<CreateRevisionResult, DataExchangeError> CreateRevisionOutcome;
typedef Aws::Utils::Outcome<Aws::NoResult, DataExchangeError> DeleteAssetOutcome;
typedef Aws::Utils::Outcome<Aws::NoResult, DataExchangeError> DeleteDataSetOutcome;
typedef Aws::Utils::Outcome<Aws::NoResult, DataExchangeError> DeleteRevisionOutcome;
typedef Aws::Utils::Outcome<GetAssetResult, DataExchangeError> GetAssetOutcome;
typedef Aws::Utils::Outcome<GetDataSetResult, DataExchangeError> GetDataSetOutcome;
typedef Aws::Utils::Outcome<GetJobResult, DataExchangeError> GetJobOutcome;
typedef Aws::Utils::Outcome<GetRevisionResult, DataExchangeError> GetRevisionOutcome;
typedef Aws::Utils::Outcome<ListDataSetRevisionsResult, DataExchangeError> ListDataSetRevisionsOutcome;
typedef Aws::Utils::Outcome<ListDataSetsResult, DataExchangeError> ListDataSetsOutcome;
typedef Aws::Utils::Outcome<ListJobsResult, DataExchangeError> ListJobsOutcome;
typedef Aws::Utils::Outcome<ListRevisionAssetsResult, DataExchangeError> ListRevisionAssetsOutcome;
typedef Aws::Utils::Outcome<ListTagsForResourceResult, DataExchangeError> ListTagsForResourceOutcome;
typedef Aws::Utils::Outcome<StartJobResult, DataExchangeError> StartJobOutcome;
typedef Aws::Utils::Outcome<Aws::NoResult, DataExchangeError> TagResourceOutcome;
typedef Aws::Utils::Outcome<Aws::NoResult, DataExchangeError> UntagResourceOutcome;
typedef Aws::Utils::Outcome<UpdateAssetResult, DataExchangeError> UpdateAssetOutcome;
typedef Aws::Utils::Outcome<UpdateDataSetResult, DataExchangeError> UpdateDataSetOutcome;
typedef Aws::Utils::Outcome<UpdateRevisionResult, DataExchangeError> UpdateRevisionOutcome;
typedef std::future<CancelJobOutcome> CancelJobOutcomeCallable;
typedef std::future<CreateDataSetOutcome> CreateDataSetOutcomeCallable;
typedef std::future<CreateJobOutcome> CreateJobOutcomeCallable;
typedef std::future<CreateRevisionOutcome> CreateRevisionOutcomeCallable;
typedef std::future<DeleteAssetOutcome> DeleteAssetOutcomeCallable;
typedef std::future<DeleteDataSetOutcome> DeleteDataSetOutcomeCallable;
typedef std::future<DeleteRevisionOutcome> DeleteRevisionOutcomeCallable;
typedef std::future<GetAssetOutcome> GetAssetOutcomeCallable;
typedef std::future<GetDataSetOutcome> GetDataSetOutcomeCallable;
typedef std::future<GetJobOutcome> GetJobOutcomeCallable;
typedef std::future<GetRevisionOutcome> GetRevisionOutcomeCallable;
typedef std::future<ListDataSetRevisionsOutcome> ListDataSetRevisionsOutcomeCallable;
typedef std::future<ListDataSetsOutcome> ListDataSetsOutcomeCallable;
typedef std::future<ListJobsOutcome> ListJobsOutcomeCallable;
typedef std::future<ListRevisionAssetsOutcome> ListRevisionAssetsOutcomeCallable;
typedef std::future<ListTagsForResourceOutcome> ListTagsForResourceOutcomeCallable;
typedef std::future<StartJobOutcome> StartJobOutcomeCallable;
typedef std::future<TagResourceOutcome> TagResourceOutcomeCallable;
typedef std::future<UntagResourceOutcome> UntagResourceOutcomeCallable;
typedef std::future<UpdateAssetOutcome> UpdateAssetOutcomeCallable;
typedef std::future<UpdateDataSetOutcome> UpdateDataSetOutcomeCallable;
typedef std::future<UpdateRevisionOutcome> UpdateRevisionOutcomeCallable;
} // namespace Model
class DataExchangeClient;
typedef std::function<void(const DataExchangeClient*, const Model::CancelJobRequest&, const Model::CancelJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CancelJobResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::CreateDataSetRequest&, const Model::CreateDataSetOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateDataSetResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::CreateJobRequest&, const Model::CreateJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateJobResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::CreateRevisionRequest&, const Model::CreateRevisionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateRevisionResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::DeleteAssetRequest&, const Model::DeleteAssetOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteAssetResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::DeleteDataSetRequest&, const Model::DeleteDataSetOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteDataSetResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::DeleteRevisionRequest&, const Model::DeleteRevisionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteRevisionResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::GetAssetRequest&, const Model::GetAssetOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetAssetResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::GetDataSetRequest&, const Model::GetDataSetOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetDataSetResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::GetJobRequest&, const Model::GetJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetJobResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::GetRevisionRequest&, const Model::GetRevisionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetRevisionResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::ListDataSetRevisionsRequest&, const Model::ListDataSetRevisionsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListDataSetRevisionsResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::ListDataSetsRequest&, const Model::ListDataSetsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListDataSetsResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::ListJobsRequest&, const Model::ListJobsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListJobsResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::ListRevisionAssetsRequest&, const Model::ListRevisionAssetsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListRevisionAssetsResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::ListTagsForResourceRequest&, const Model::ListTagsForResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListTagsForResourceResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::StartJobRequest&, const Model::StartJobOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > StartJobResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::TagResourceRequest&, const Model::TagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > TagResourceResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::UntagResourceRequest&, const Model::UntagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UntagResourceResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::UpdateAssetRequest&, const Model::UpdateAssetOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateAssetResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::UpdateDataSetRequest&, const Model::UpdateDataSetOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateDataSetResponseReceivedHandler;
typedef std::function<void(const DataExchangeClient*, const Model::UpdateRevisionRequest&, const Model::UpdateRevisionOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateRevisionResponseReceivedHandler;
/**
* <p>AWS Data Exchange is a service that makes it easy for AWS customers to
* exchange data in the cloud. You can use the AWS Data Exchange APIs to create,
* update, manage, and access file-based data set in the AWS Cloud.</p><p>As a
* subscriber, you can view and access the data sets that you have an entitlement
* to through a subscription. You can use the APIS to download or copy your
* entitled data sets to Amazon S3 for use across a variety of AWS analytics and
* machine learning services.</p><p>As a provider, you can create and manage your
* data sets that you would like to publish to a product. Being able to package and
* provide your data sets into products requires a few steps to determine
* eligibility. For more information, visit the AWS Data Exchange User
* Guide.</p><p>A data set is a collection of data that can be changed or updated
* over time. Data sets can be updated using revisions, which represent a new
* version or incremental change to a data set. A revision contains one or more
* assets. An asset in AWS Data Exchange is a piece of data that can be stored as
* an Amazon S3 object. The asset can be a structured data file, an image file, or
* some other data file. Jobs are asynchronous import or export operations used to
* create or copy assets.</p>
*/
class AWS_DATAEXCHANGE_API DataExchangeClient : public Aws::Client::AWSJsonClient
{
public:
typedef Aws::Client::AWSJsonClient BASECLASS;
/**
* Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
DataExchangeClient(const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
/**
* Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
DataExchangeClient(const Aws::Auth::AWSCredentials& credentials, const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
/**
* Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied,
* the default http client factory will be used
*/
DataExchangeClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
virtual ~DataExchangeClient();
/**
* <p>This operation cancels a job. Jobs can be cancelled only when they are in the
* WAITING state.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CancelJob">AWS
* API Reference</a></p>
*/
virtual Model::CancelJobOutcome CancelJob(const Model::CancelJobRequest& request) const;
/**
* <p>This operation cancels a job. Jobs can be cancelled only when they are in the
* WAITING state.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CancelJob">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::CancelJobOutcomeCallable CancelJobCallable(const Model::CancelJobRequest& request) const;
/**
* <p>This operation cancels a job. Jobs can be cancelled only when they are in the
* WAITING state.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CancelJob">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void CancelJobAsync(const Model::CancelJobRequest& request, const CancelJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation creates a data set.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CreateDataSet">AWS
* API Reference</a></p>
*/
virtual Model::CreateDataSetOutcome CreateDataSet(const Model::CreateDataSetRequest& request) const;
/**
* <p>This operation creates a data set.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CreateDataSet">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::CreateDataSetOutcomeCallable CreateDataSetCallable(const Model::CreateDataSetRequest& request) const;
/**
* <p>This operation creates a data set.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CreateDataSet">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void CreateDataSetAsync(const Model::CreateDataSetRequest& request, const CreateDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation creates a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CreateJob">AWS
* API Reference</a></p>
*/
virtual Model::CreateJobOutcome CreateJob(const Model::CreateJobRequest& request) const;
/**
* <p>This operation creates a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CreateJob">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::CreateJobOutcomeCallable CreateJobCallable(const Model::CreateJobRequest& request) const;
/**
* <p>This operation creates a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CreateJob">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void CreateJobAsync(const Model::CreateJobRequest& request, const CreateJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation creates a revision for a data set.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CreateRevision">AWS
* API Reference</a></p>
*/
virtual Model::CreateRevisionOutcome CreateRevision(const Model::CreateRevisionRequest& request) const;
/**
* <p>This operation creates a revision for a data set.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CreateRevision">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::CreateRevisionOutcomeCallable CreateRevisionCallable(const Model::CreateRevisionRequest& request) const;
/**
* <p>This operation creates a revision for a data set.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CreateRevision">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void CreateRevisionAsync(const Model::CreateRevisionRequest& request, const CreateRevisionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation deletes an asset.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/DeleteAsset">AWS
* API Reference</a></p>
*/
virtual Model::DeleteAssetOutcome DeleteAsset(const Model::DeleteAssetRequest& request) const;
/**
* <p>This operation deletes an asset.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/DeleteAsset">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DeleteAssetOutcomeCallable DeleteAssetCallable(const Model::DeleteAssetRequest& request) const;
/**
* <p>This operation deletes an asset.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/DeleteAsset">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DeleteAssetAsync(const Model::DeleteAssetRequest& request, const DeleteAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation deletes a data set.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/DeleteDataSet">AWS
* API Reference</a></p>
*/
virtual Model::DeleteDataSetOutcome DeleteDataSet(const Model::DeleteDataSetRequest& request) const;
/**
* <p>This operation deletes a data set.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/DeleteDataSet">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DeleteDataSetOutcomeCallable DeleteDataSetCallable(const Model::DeleteDataSetRequest& request) const;
/**
* <p>This operation deletes a data set.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/DeleteDataSet">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DeleteDataSetAsync(const Model::DeleteDataSetRequest& request, const DeleteDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation deletes a revision.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/DeleteRevision">AWS
* API Reference</a></p>
*/
virtual Model::DeleteRevisionOutcome DeleteRevision(const Model::DeleteRevisionRequest& request) const;
/**
* <p>This operation deletes a revision.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/DeleteRevision">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DeleteRevisionOutcomeCallable DeleteRevisionCallable(const Model::DeleteRevisionRequest& request) const;
/**
* <p>This operation deletes a revision.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/DeleteRevision">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DeleteRevisionAsync(const Model::DeleteRevisionRequest& request, const DeleteRevisionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation returns information about an asset.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/GetAsset">AWS
* API Reference</a></p>
*/
virtual Model::GetAssetOutcome GetAsset(const Model::GetAssetRequest& request) const;
/**
* <p>This operation returns information about an asset.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/GetAsset">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::GetAssetOutcomeCallable GetAssetCallable(const Model::GetAssetRequest& request) const;
/**
* <p>This operation returns information about an asset.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/GetAsset">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void GetAssetAsync(const Model::GetAssetRequest& request, const GetAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation returns information about a data set.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/GetDataSet">AWS
* API Reference</a></p>
*/
virtual Model::GetDataSetOutcome GetDataSet(const Model::GetDataSetRequest& request) const;
/**
* <p>This operation returns information about a data set.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/GetDataSet">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::GetDataSetOutcomeCallable GetDataSetCallable(const Model::GetDataSetRequest& request) const;
/**
* <p>This operation returns information about a data set.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/GetDataSet">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void GetDataSetAsync(const Model::GetDataSetRequest& request, const GetDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation returns information about a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/GetJob">AWS
* API Reference</a></p>
*/
virtual Model::GetJobOutcome GetJob(const Model::GetJobRequest& request) const;
/**
* <p>This operation returns information about a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/GetJob">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::GetJobOutcomeCallable GetJobCallable(const Model::GetJobRequest& request) const;
/**
* <p>This operation returns information about a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/GetJob">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void GetJobAsync(const Model::GetJobRequest& request, const GetJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation returns information about a revision.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/GetRevision">AWS
* API Reference</a></p>
*/
virtual Model::GetRevisionOutcome GetRevision(const Model::GetRevisionRequest& request) const;
/**
* <p>This operation returns information about a revision.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/GetRevision">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::GetRevisionOutcomeCallable GetRevisionCallable(const Model::GetRevisionRequest& request) const;
/**
* <p>This operation returns information about a revision.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/GetRevision">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void GetRevisionAsync(const Model::GetRevisionRequest& request, const GetRevisionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation lists a data set's revisions sorted by CreatedAt in descending
* order.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListDataSetRevisions">AWS
* API Reference</a></p>
*/
virtual Model::ListDataSetRevisionsOutcome ListDataSetRevisions(const Model::ListDataSetRevisionsRequest& request) const;
/**
* <p>This operation lists a data set's revisions sorted by CreatedAt in descending
* order.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListDataSetRevisions">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListDataSetRevisionsOutcomeCallable ListDataSetRevisionsCallable(const Model::ListDataSetRevisionsRequest& request) const;
/**
* <p>This operation lists a data set's revisions sorted by CreatedAt in descending
* order.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListDataSetRevisions">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListDataSetRevisionsAsync(const Model::ListDataSetRevisionsRequest& request, const ListDataSetRevisionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation lists your data sets. When listing by origin OWNED, results
* are sorted by CreatedAt in descending order. When listing by origin ENTITLED,
* there is no order and the maxResults parameter is ignored.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListDataSets">AWS
* API Reference</a></p>
*/
virtual Model::ListDataSetsOutcome ListDataSets(const Model::ListDataSetsRequest& request) const;
/**
* <p>This operation lists your data sets. When listing by origin OWNED, results
* are sorted by CreatedAt in descending order. When listing by origin ENTITLED,
* there is no order and the maxResults parameter is ignored.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListDataSets">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListDataSetsOutcomeCallable ListDataSetsCallable(const Model::ListDataSetsRequest& request) const;
/**
* <p>This operation lists your data sets. When listing by origin OWNED, results
* are sorted by CreatedAt in descending order. When listing by origin ENTITLED,
* there is no order and the maxResults parameter is ignored.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListDataSets">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListDataSetsAsync(const Model::ListDataSetsRequest& request, const ListDataSetsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation lists your jobs sorted by CreatedAt in descending
* order.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListJobs">AWS
* API Reference</a></p>
*/
virtual Model::ListJobsOutcome ListJobs(const Model::ListJobsRequest& request) const;
/**
* <p>This operation lists your jobs sorted by CreatedAt in descending
* order.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListJobs">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListJobsOutcomeCallable ListJobsCallable(const Model::ListJobsRequest& request) const;
/**
* <p>This operation lists your jobs sorted by CreatedAt in descending
* order.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListJobs">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListJobsAsync(const Model::ListJobsRequest& request, const ListJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation lists a revision's assets sorted alphabetically in descending
* order.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListRevisionAssets">AWS
* API Reference</a></p>
*/
virtual Model::ListRevisionAssetsOutcome ListRevisionAssets(const Model::ListRevisionAssetsRequest& request) const;
/**
* <p>This operation lists a revision's assets sorted alphabetically in descending
* order.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListRevisionAssets">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListRevisionAssetsOutcomeCallable ListRevisionAssetsCallable(const Model::ListRevisionAssetsRequest& request) const;
/**
* <p>This operation lists a revision's assets sorted alphabetically in descending
* order.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListRevisionAssets">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListRevisionAssetsAsync(const Model::ListRevisionAssetsRequest& request, const ListRevisionAssetsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation lists the tags on the resource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListTagsForResource">AWS
* API Reference</a></p>
*/
virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest& request) const;
/**
* <p>This operation lists the tags on the resource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListTagsForResource">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const Model::ListTagsForResourceRequest& request) const;
/**
* <p>This operation lists the tags on the resource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListTagsForResource">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListTagsForResourceAsync(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation starts a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/StartJob">AWS
* API Reference</a></p>
*/
virtual Model::StartJobOutcome StartJob(const Model::StartJobRequest& request) const;
/**
* <p>This operation starts a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/StartJob">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::StartJobOutcomeCallable StartJobCallable(const Model::StartJobRequest& request) const;
/**
* <p>This operation starts a job.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/StartJob">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void StartJobAsync(const Model::StartJobRequest& request, const StartJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation tags a resource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/TagResource">AWS
* API Reference</a></p>
*/
virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest& request) const;
/**
* <p>This operation tags a resource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/TagResource">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::TagResourceOutcomeCallable TagResourceCallable(const Model::TagResourceRequest& request) const;
/**
* <p>This operation tags a resource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/TagResource">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void TagResourceAsync(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation removes one or more tags from a resource.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/UntagResource">AWS
* API Reference</a></p>
*/
virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest& request) const;
/**
* <p>This operation removes one or more tags from a resource.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/UntagResource">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::UntagResourceOutcomeCallable UntagResourceCallable(const Model::UntagResourceRequest& request) const;
/**
* <p>This operation removes one or more tags from a resource.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/UntagResource">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void UntagResourceAsync(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation updates an asset.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/UpdateAsset">AWS
* API Reference</a></p>
*/
virtual Model::UpdateAssetOutcome UpdateAsset(const Model::UpdateAssetRequest& request) const;
/**
* <p>This operation updates an asset.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/UpdateAsset">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::UpdateAssetOutcomeCallable UpdateAssetCallable(const Model::UpdateAssetRequest& request) const;
/**
* <p>This operation updates an asset.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/UpdateAsset">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void UpdateAssetAsync(const Model::UpdateAssetRequest& request, const UpdateAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation updates a data set.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/UpdateDataSet">AWS
* API Reference</a></p>
*/
virtual Model::UpdateDataSetOutcome UpdateDataSet(const Model::UpdateDataSetRequest& request) const;
/**
* <p>This operation updates a data set.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/UpdateDataSet">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::UpdateDataSetOutcomeCallable UpdateDataSetCallable(const Model::UpdateDataSetRequest& request) const;
/**
* <p>This operation updates a data set.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/UpdateDataSet">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void UpdateDataSetAsync(const Model::UpdateDataSetRequest& request, const UpdateDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>This operation updates a revision.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/UpdateRevision">AWS
* API Reference</a></p>
*/
virtual Model::UpdateRevisionOutcome UpdateRevision(const Model::UpdateRevisionRequest& request) const;
/**
* <p>This operation updates a revision.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/UpdateRevision">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::UpdateRevisionOutcomeCallable UpdateRevisionCallable(const Model::UpdateRevisionRequest& request) const;
/**
* <p>This operation updates a revision.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/UpdateRevision">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void UpdateRevisionAsync(const Model::UpdateRevisionRequest& request, const UpdateRevisionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
void OverrideEndpoint(const Aws::String& endpoint);
private:
void init(const Aws::Client::ClientConfiguration& clientConfiguration);
void CancelJobAsyncHelper(const Model::CancelJobRequest& request, const CancelJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void CreateDataSetAsyncHelper(const Model::CreateDataSetRequest& request, const CreateDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void CreateJobAsyncHelper(const Model::CreateJobRequest& request, const CreateJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void CreateRevisionAsyncHelper(const Model::CreateRevisionRequest& request, const CreateRevisionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DeleteAssetAsyncHelper(const Model::DeleteAssetRequest& request, const DeleteAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DeleteDataSetAsyncHelper(const Model::DeleteDataSetRequest& request, const DeleteDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DeleteRevisionAsyncHelper(const Model::DeleteRevisionRequest& request, const DeleteRevisionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void GetAssetAsyncHelper(const Model::GetAssetRequest& request, const GetAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void GetDataSetAsyncHelper(const Model::GetDataSetRequest& request, const GetDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void GetJobAsyncHelper(const Model::GetJobRequest& request, const GetJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void GetRevisionAsyncHelper(const Model::GetRevisionRequest& request, const GetRevisionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListDataSetRevisionsAsyncHelper(const Model::ListDataSetRevisionsRequest& request, const ListDataSetRevisionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListDataSetsAsyncHelper(const Model::ListDataSetsRequest& request, const ListDataSetsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListJobsAsyncHelper(const Model::ListJobsRequest& request, const ListJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListRevisionAssetsAsyncHelper(const Model::ListRevisionAssetsRequest& request, const ListRevisionAssetsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListTagsForResourceAsyncHelper(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void StartJobAsyncHelper(const Model::StartJobRequest& request, const StartJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void TagResourceAsyncHelper(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void UntagResourceAsyncHelper(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void UpdateAssetAsyncHelper(const Model::UpdateAssetRequest& request, const UpdateAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void UpdateDataSetAsyncHelper(const Model::UpdateDataSetRequest& request, const UpdateDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void UpdateRevisionAsyncHelper(const Model::UpdateRevisionRequest& request, const UpdateRevisionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
Aws::String m_uri;
Aws::String m_configScheme;
std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
};
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,21 @@
/**
* 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/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataExchange
{
namespace DataExchangeEndpoint
{
AWS_DATAEXCHANGE_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace DataExchangeEndpoint
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,23 @@
/**
* 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/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_DATAEXCHANGE_API DataExchangeErrorMarshaller : public Aws::Client::JsonErrorMarshaller
{
public:
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
};
} // namespace Client
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/client/AWSError.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/dataexchange/DataExchange_EXPORTS.h>
namespace Aws
{
namespace DataExchange
{
enum class DataExchangeErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////
CONFLICT= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INTERNAL_SERVER,
SERVICE_LIMIT_EXCEEDED
};
class AWS_DATAEXCHANGE_API DataExchangeError : public Aws::Client::AWSError<DataExchangeErrors>
{
public:
DataExchangeError() {}
DataExchangeError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<DataExchangeErrors>(rhs) {}
DataExchangeError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<DataExchangeErrors>(rhs) {}
DataExchangeError(const Aws::Client::AWSError<DataExchangeErrors>& rhs) : Aws::Client::AWSError<DataExchangeErrors>(rhs) {}
DataExchangeError(Aws::Client::AWSError<DataExchangeErrors>&& rhs) : Aws::Client::AWSError<DataExchangeErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace DataExchangeErrorMapper
{
AWS_DATAEXCHANGE_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* 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/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace DataExchange
{
class AWS_DATAEXCHANGE_API DataExchangeRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~DataExchangeRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2017-07-25"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,29 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#ifdef _MSC_VER
//disable windows complaining about max template size.
#pragma warning (disable : 4503)
#endif // _MSC_VER
#if defined (USE_WINDOWS_DLL_SEMANTICS) || defined (_WIN32)
#ifdef _MSC_VER
#pragma warning(disable : 4251)
#endif // _MSC_VER
#ifdef USE_IMPORT_EXPORT
#ifdef AWS_DATAEXCHANGE_EXPORTS
#define AWS_DATAEXCHANGE_API __declspec(dllexport)
#else
#define AWS_DATAEXCHANGE_API __declspec(dllimport)
#endif /* AWS_DATAEXCHANGE_EXPORTS */
#else
#define AWS_DATAEXCHANGE_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_DATAEXCHANGE_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,176 @@
/**
* 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 <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>The destination for the asset.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/AssetDestinationEntry">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API AssetDestinationEntry
{
public:
AssetDestinationEntry();
AssetDestinationEntry(Aws::Utils::Json::JsonView jsonValue);
AssetDestinationEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique identifier for the asset.</p>
*/
inline const Aws::String& GetAssetId() const{ return m_assetId; }
/**
* <p>The unique identifier for the asset.</p>
*/
inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
/**
* <p>The unique identifier for the asset.</p>
*/
inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
/**
* <p>The unique identifier for the asset.</p>
*/
inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
/**
* <p>The unique identifier for the asset.</p>
*/
inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
/**
* <p>The unique identifier for the asset.</p>
*/
inline AssetDestinationEntry& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
/**
* <p>The unique identifier for the asset.</p>
*/
inline AssetDestinationEntry& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the asset.</p>
*/
inline AssetDestinationEntry& WithAssetId(const char* value) { SetAssetId(value); return *this;}
/**
* <p>The S3 bucket that is the destination for the asset.</p>
*/
inline const Aws::String& GetBucket() const{ return m_bucket; }
/**
* <p>The S3 bucket that is the destination for the asset.</p>
*/
inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
/**
* <p>The S3 bucket that is the destination for the asset.</p>
*/
inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
/**
* <p>The S3 bucket that is the destination for the asset.</p>
*/
inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
/**
* <p>The S3 bucket that is the destination for the asset.</p>
*/
inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
/**
* <p>The S3 bucket that is the destination for the asset.</p>
*/
inline AssetDestinationEntry& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
/**
* <p>The S3 bucket that is the destination for the asset.</p>
*/
inline AssetDestinationEntry& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
/**
* <p>The S3 bucket that is the destination for the asset.</p>
*/
inline AssetDestinationEntry& WithBucket(const char* value) { SetBucket(value); return *this;}
/**
* <p>The name of the object in Amazon S3 for the asset.</p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p>The name of the object in Amazon S3 for the asset.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>The name of the object in Amazon S3 for the asset.</p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>The name of the object in Amazon S3 for the asset.</p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>The name of the object in Amazon S3 for the asset.</p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p>The name of the object in Amazon S3 for the asset.</p>
*/
inline AssetDestinationEntry& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p>The name of the object in Amazon S3 for the asset.</p>
*/
inline AssetDestinationEntry& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>The name of the object in Amazon S3 for the asset.</p>
*/
inline AssetDestinationEntry& WithKey(const char* value) { SetKey(value); return *this;}
private:
Aws::String m_assetId;
bool m_assetIdHasBeenSet;
Aws::String m_bucket;
bool m_bucketHasBeenSet;
Aws::String m_key;
bool m_keyHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,61 @@
/**
* 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/dataexchange/model/S3SnapshotAsset.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
class AWS_DATAEXCHANGE_API AssetDetails
{
public:
AssetDetails();
AssetDetails(Aws::Utils::Json::JsonView jsonValue);
AssetDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const S3SnapshotAsset& GetS3SnapshotAsset() const{ return m_s3SnapshotAsset; }
inline bool S3SnapshotAssetHasBeenSet() const { return m_s3SnapshotAssetHasBeenSet; }
inline void SetS3SnapshotAsset(const S3SnapshotAsset& value) { m_s3SnapshotAssetHasBeenSet = true; m_s3SnapshotAsset = value; }
inline void SetS3SnapshotAsset(S3SnapshotAsset&& value) { m_s3SnapshotAssetHasBeenSet = true; m_s3SnapshotAsset = std::move(value); }
inline AssetDetails& WithS3SnapshotAsset(const S3SnapshotAsset& value) { SetS3SnapshotAsset(value); return *this;}
inline AssetDetails& WithS3SnapshotAsset(S3SnapshotAsset&& value) { SetS3SnapshotAsset(std::move(value)); return *this;}
private:
S3SnapshotAsset m_s3SnapshotAsset;
bool m_s3SnapshotAssetHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,488 @@
/**
* 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
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>An asset in AWS Data Exchange is a piece of data that can be stored as an S3
* object. The asset can be a structured data file, an image file, or some other
* data file. When you create an import job for your files, you create an asset in
* AWS Data Exchange for each of those files.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/AssetEntry">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API AssetEntry
{
public:
AssetEntry();
AssetEntry(Aws::Utils::Json::JsonView jsonValue);
AssetEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN for the asset.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN for the asset.</p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p>The ARN for the asset.</p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p>The ARN for the asset.</p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p>The ARN for the asset.</p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p>The ARN for the asset.</p>
*/
inline AssetEntry& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN for the asset.</p>
*/
inline AssetEntry& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN for the asset.</p>
*/
inline AssetEntry& 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 bool AssetDetailsHasBeenSet() const { return m_assetDetailsHasBeenSet; }
/**
* <p>Information about the asset, including its size.</p>
*/
inline void SetAssetDetails(const AssetDetails& value) { m_assetDetailsHasBeenSet = true; m_assetDetails = value; }
/**
* <p>Information about the asset, including its size.</p>
*/
inline void SetAssetDetails(AssetDetails&& value) { m_assetDetailsHasBeenSet = true; m_assetDetails = std::move(value); }
/**
* <p>Information about the asset, including its size.</p>
*/
inline AssetEntry& WithAssetDetails(const AssetDetails& value) { SetAssetDetails(value); return *this;}
/**
* <p>Information about the asset, including its size.</p>
*/
inline AssetEntry& 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 bool AssetTypeHasBeenSet() const { return m_assetTypeHasBeenSet; }
/**
* <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_assetTypeHasBeenSet = true; 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_assetTypeHasBeenSet = true; 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 AssetEntry& 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 AssetEntry& 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 bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
/**
* <p>The date and time that the asset was created, in ISO 8601 format.</p>
*/
inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; 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_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
/**
* <p>The date and time that the asset was created, in ISO 8601 format.</p>
*/
inline AssetEntry& 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 AssetEntry& 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 bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for the data set associated with this asset.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for the data set associated with this asset.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; 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_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for the data set associated with this asset.</p>
*/
inline AssetEntry& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for the data set associated with this asset.</p>
*/
inline AssetEntry& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set associated with this asset.</p>
*/
inline AssetEntry& 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 bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The unique identifier for the asset.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The unique identifier for the asset.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The unique identifier for the asset.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The unique identifier for the asset.</p>
*/
inline AssetEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique identifier for the asset.</p>
*/
inline AssetEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the asset.</p>
*/
inline AssetEntry& 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 bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <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_nameHasBeenSet = true; 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_nameHasBeenSet = true; 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_nameHasBeenSet = true; 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 AssetEntry& 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 AssetEntry& 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 AssetEntry& 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 bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p>The unique identifier for the revision associated with this asset.</p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p>The unique identifier for the revision associated with this asset.</p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p>The unique identifier for the revision associated with this asset.</p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p>The unique identifier for the revision associated with this asset.</p>
*/
inline AssetEntry& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>The unique identifier for the revision associated with this asset.</p>
*/
inline AssetEntry& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the revision associated with this asset.</p>
*/
inline AssetEntry& 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 bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
/**
* <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_sourceIdHasBeenSet = true; 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_sourceIdHasBeenSet = true; 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_sourceIdHasBeenSet = true; 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 AssetEntry& 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 AssetEntry& 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 AssetEntry& 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 bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
/**
* <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_updatedAtHasBeenSet = true; 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_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
/**
* <p>The date and time that the asset was last updated, in ISO 8601 format.</p>
*/
inline AssetEntry& 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 AssetEntry& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
AssetDetails m_assetDetails;
bool m_assetDetailsHasBeenSet;
AssetType m_assetType;
bool m_assetTypeHasBeenSet;
Aws::Utils::DateTime m_createdAt;
bool m_createdAtHasBeenSet;
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
Aws::String m_sourceId;
bool m_sourceIdHasBeenSet;
Aws::Utils::DateTime m_updatedAt;
bool m_updatedAtHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* 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 <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>The source of the assets.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/AssetSourceEntry">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API AssetSourceEntry
{
public:
AssetSourceEntry();
AssetSourceEntry(Aws::Utils::Json::JsonView jsonValue);
AssetSourceEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The S3 bucket that's part of the source of the asset.</p>
*/
inline const Aws::String& GetBucket() const{ return m_bucket; }
/**
* <p>The S3 bucket that's part of the source of the asset.</p>
*/
inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
/**
* <p>The S3 bucket that's part of the source of the asset.</p>
*/
inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
/**
* <p>The S3 bucket that's part of the source of the asset.</p>
*/
inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
/**
* <p>The S3 bucket that's part of the source of the asset.</p>
*/
inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
/**
* <p>The S3 bucket that's part of the source of the asset.</p>
*/
inline AssetSourceEntry& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
/**
* <p>The S3 bucket that's part of the source of the asset.</p>
*/
inline AssetSourceEntry& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
/**
* <p>The S3 bucket that's part of the source of the asset.</p>
*/
inline AssetSourceEntry& WithBucket(const char* value) { SetBucket(value); return *this;}
/**
* <p>The name of the object in Amazon S3 for the asset.</p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p>The name of the object in Amazon S3 for the asset.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>The name of the object in Amazon S3 for the asset.</p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>The name of the object in Amazon S3 for the asset.</p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>The name of the object in Amazon S3 for the asset.</p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p>The name of the object in Amazon S3 for the asset.</p>
*/
inline AssetSourceEntry& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p>The name of the object in Amazon S3 for the asset.</p>
*/
inline AssetSourceEntry& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>The name of the object in Amazon S3 for the asset.</p>
*/
inline AssetSourceEntry& WithKey(const char* value) { SetKey(value); return *this;}
private:
Aws::String m_bucket;
bool m_bucketHasBeenSet;
Aws::String m_key;
bool m_keyHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,30 @@
/**
* 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>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
enum class AssetType
{
NOT_SET,
S3_SNAPSHOT
};
namespace AssetTypeMapper
{
AWS_DATAEXCHANGE_API AssetType GetAssetTypeForName(const Aws::String& name);
AWS_DATAEXCHANGE_API Aws::String GetNameForAssetType(AssetType value);
} // namespace AssetTypeMapper
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
/**
*/
class AWS_DATAEXCHANGE_API CancelJobRequest : public DataExchangeRequest
{
public:
CancelJobRequest();
// 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 "CancelJob"; }
Aws::String SerializePayload() const override;
/**
* <p>The unique identifier for a job.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The unique identifier for a job.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The unique identifier for a job.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The unique identifier for a job.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The unique identifier for a job.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The unique identifier for a job.</p>
*/
inline CancelJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The unique identifier for a job.</p>
*/
inline CancelJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a job.</p>
*/
inline CancelJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* 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>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
enum class Code
{
NOT_SET,
ACCESS_DENIED_EXCEPTION,
INTERNAL_SERVER_EXCEPTION,
MALWARE_DETECTED,
RESOURCE_NOT_FOUND_EXCEPTION,
SERVICE_QUOTA_EXCEEDED_EXCEPTION,
VALIDATION_EXCEPTION,
MALWARE_SCAN_ENCRYPTED_FILE
};
namespace CodeMapper
{
AWS_DATAEXCHANGE_API Code GetCodeForName(const Aws::String& name);
AWS_DATAEXCHANGE_API Aws::String GetNameForCode(Code value);
} // namespace CodeMapper
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,176 @@
/**
* 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/ResourceType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>The request couldn't be completed because it conflicted with the current
* state of the resource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ConflictException">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API ConflictException
{
public:
ConflictException();
ConflictException(Aws::Utils::Json::JsonView jsonValue);
ConflictException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The request couldn't be completed because it conflicted with the current
* state of the resource.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>The request couldn't be completed because it conflicted with the current
* state of the resource.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>The request couldn't be completed because it conflicted with the current
* state of the resource.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>The request couldn't be completed because it conflicted with the current
* state of the resource.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>The request couldn't be completed because it conflicted with the current
* state of the resource.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>The request couldn't be completed because it conflicted with the current
* state of the resource.</p>
*/
inline ConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>The request couldn't be completed because it conflicted with the current
* state of the resource.</p>
*/
inline ConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>The request couldn't be completed because it conflicted with the current
* state of the resource.</p>
*/
inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The unique identifier for the resource with the conflict.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The unique identifier for the resource with the conflict.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The unique identifier for the resource with the conflict.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The unique identifier for the resource with the conflict.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The unique identifier for the resource with the conflict.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The unique identifier for the resource with the conflict.</p>
*/
inline ConflictException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The unique identifier for the resource with the conflict.</p>
*/
inline ConflictException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the resource with the conflict.</p>
*/
inline ConflictException& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>The type of the resource with the conflict.</p>
*/
inline const ResourceType& GetResourceType() const{ return m_resourceType; }
/**
* <p>The type of the resource with the conflict.</p>
*/
inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
/**
* <p>The type of the resource with the conflict.</p>
*/
inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
/**
* <p>The type of the resource with the conflict.</p>
*/
inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
/**
* <p>The type of the resource with the conflict.</p>
*/
inline ConflictException& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
/**
* <p>The type of the resource with the conflict.</p>
*/
inline ConflictException& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
private:
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
ResourceType m_resourceType;
bool m_resourceTypeHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,288 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/dataexchange/model/AssetType.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
/**
* <p>The request body for CreateDataSet.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CreateDataSetRequest">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API CreateDataSetRequest : public DataExchangeRequest
{
public:
CreateDataSetRequest();
// 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 "CreateDataSet"; }
Aws::String SerializePayload() const override;
/**
* <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 bool AssetTypeHasBeenSet() const { return m_assetTypeHasBeenSet; }
/**
* <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_assetTypeHasBeenSet = true; 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_assetTypeHasBeenSet = true; 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 CreateDataSetRequest& 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 CreateDataSetRequest& WithAssetType(AssetType&& value) { SetAssetType(std::move(value)); return *this;}
/**
* <p>A description for the data set. This value can be up to 16,348 characters
* long.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description for the data set. This value can be up to 16,348 characters
* long.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description for the data set. This value can be up to 16,348 characters
* long.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description for the data set. This value can be up to 16,348 characters
* long.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description for the data set. This value can be up to 16,348 characters
* long.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description for the data set. This value can be up to 16,348 characters
* long.</p>
*/
inline CreateDataSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description for the data set. This value can be up to 16,348 characters
* long.</p>
*/
inline CreateDataSetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description for the data set. This value can be up to 16,348 characters
* long.</p>
*/
inline CreateDataSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The name of the data set.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the data set.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the data set.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the data set.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the data set.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the data set.</p>
*/
inline CreateDataSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the data set.</p>
*/
inline CreateDataSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the data set.</p>
*/
inline CreateDataSetRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A data set tag is an optional label that you can assign to a data set when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>A data set tag is an optional label that you can assign to a data set when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>A data set tag is an optional label that you can assign to a data set when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>A data set tag is an optional label that you can assign to a data set when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>A data set tag is an optional label that you can assign to a data set when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline CreateDataSetRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>A data set tag is an optional label that you can assign to a data set when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline CreateDataSetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>A data set tag is an optional label that you can assign to a data set when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline CreateDataSetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>A data set tag is an optional label that you can assign to a data set when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline CreateDataSetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>A data set tag is an optional label that you can assign to a data set when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline CreateDataSetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>A data set tag is an optional label that you can assign to a data set when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline CreateDataSetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A data set tag is an optional label that you can assign to a data set when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline CreateDataSetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>A data set tag is an optional label that you can assign to a data set when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline CreateDataSetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>A data set tag is an optional label that you can assign to a data set when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline CreateDataSetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
AssetType m_assetType;
bool m_assetTypeHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,466 @@
/**
* 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/AssetType.h>
#include <aws/core/utils/DateTime.h>
#include <aws/dataexchange/model/Origin.h>
#include <aws/dataexchange/model/OriginDetails.h>
#include <aws/core/utils/memory/stl/AWSMap.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 CreateDataSetResult
{
public:
CreateDataSetResult();
CreateDataSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateDataSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ARN for the data set.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN for the data set.</p>
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* <p>The ARN for the data set.</p>
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* <p>The ARN for the data set.</p>
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* <p>The ARN for the data set.</p>
*/
inline CreateDataSetResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN for the data set.</p>
*/
inline CreateDataSetResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN for the data set.</p>
*/
inline CreateDataSetResult& WithArn(const char* value) { SetArn(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 CreateDataSetResult& 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 CreateDataSetResult& WithAssetType(AssetType&& value) { SetAssetType(std::move(value)); return *this;}
/**
* <p>The date and time that the data set was created, in ISO 8601 format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
/**
* <p>The date and time that the data set 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 data set 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 data set was created, in ISO 8601 format.</p>
*/
inline CreateDataSetResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
/**
* <p>The date and time that the data set was created, in ISO 8601 format.</p>
*/
inline CreateDataSetResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* <p>The description for the data set.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description for the data set.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The description for the data set.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The description for the data set.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The description for the data set.</p>
*/
inline CreateDataSetResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description for the data set.</p>
*/
inline CreateDataSetResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description for the data set.</p>
*/
inline CreateDataSetResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The unique identifier for the data set.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The unique identifier for the data set.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The unique identifier for the data set.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The unique identifier for the data set.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The unique identifier for the data set.</p>
*/
inline CreateDataSetResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique identifier for the data set.</p>
*/
inline CreateDataSetResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set.</p>
*/
inline CreateDataSetResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the data set.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the data set.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the data set.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the data set.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the data set.</p>
*/
inline CreateDataSetResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the data set.</p>
*/
inline CreateDataSetResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the data set.</p>
*/
inline CreateDataSetResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline const Origin& GetOrigin() const{ return m_origin; }
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline void SetOrigin(const Origin& value) { m_origin = value; }
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline void SetOrigin(Origin&& value) { m_origin = std::move(value); }
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline CreateDataSetResult& WithOrigin(const Origin& value) { SetOrigin(value); return *this;}
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline CreateDataSetResult& WithOrigin(Origin&& value) { SetOrigin(std::move(value)); return *this;}
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline const OriginDetails& GetOriginDetails() const{ return m_originDetails; }
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline void SetOriginDetails(const OriginDetails& value) { m_originDetails = value; }
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline void SetOriginDetails(OriginDetails&& value) { m_originDetails = std::move(value); }
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline CreateDataSetResult& WithOriginDetails(const OriginDetails& value) { SetOriginDetails(value); return *this;}
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline CreateDataSetResult& WithOriginDetails(OriginDetails&& value) { SetOriginDetails(std::move(value)); return *this;}
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline const Aws::String& GetSourceId() const{ return m_sourceId; }
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline void SetSourceId(const Aws::String& value) { m_sourceId = value; }
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline void SetSourceId(Aws::String&& value) { m_sourceId = std::move(value); }
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline void SetSourceId(const char* value) { m_sourceId.assign(value); }
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline CreateDataSetResult& WithSourceId(const Aws::String& value) { SetSourceId(value); return *this;}
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline CreateDataSetResult& WithSourceId(Aws::String&& value) { SetSourceId(std::move(value)); return *this;}
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline CreateDataSetResult& WithSourceId(const char* value) { SetSourceId(value); return *this;}
/**
* <p>The tags for the data set.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags for the data set.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
/**
* <p>The tags for the data set.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
/**
* <p>The tags for the data set.</p>
*/
inline CreateDataSetResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags for the data set.</p>
*/
inline CreateDataSetResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags for the data set.</p>
*/
inline CreateDataSetResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
/**
* <p>The tags for the data set.</p>
*/
inline CreateDataSetResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags for the data set.</p>
*/
inline CreateDataSetResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags for the data set.</p>
*/
inline CreateDataSetResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags for the data set.</p>
*/
inline CreateDataSetResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags for the data set.</p>
*/
inline CreateDataSetResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags for the data set.</p>
*/
inline CreateDataSetResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
/**
* <p>The date and time that the data set 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 data set 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 data set 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 data set was last updated, in ISO 8601 format.</p>
*/
inline CreateDataSetResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
/**
* <p>The date and time that the data set was last updated, in ISO 8601 format.</p>
*/
inline CreateDataSetResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
private:
Aws::String m_arn;
AssetType m_assetType;
Aws::Utils::DateTime m_createdAt;
Aws::String m_description;
Aws::String m_id;
Aws::String m_name;
Origin m_origin;
OriginDetails m_originDetails;
Aws::String m_sourceId;
Aws::Map<Aws::String, Aws::String> m_tags;
Aws::Utils::DateTime m_updatedAt;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,111 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/dataexchange/model/RequestDetails.h>
#include <aws/dataexchange/model/Type.h>
#include <utility>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
/**
* <p>The request body for CreateJob.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CreateJobRequest">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API CreateJobRequest : public DataExchangeRequest
{
public:
CreateJobRequest();
// 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 "CreateJob"; }
Aws::String SerializePayload() const override;
/**
* <p>The details for the CreateJob request.</p>
*/
inline const RequestDetails& GetDetails() const{ return m_details; }
/**
* <p>The details for the CreateJob request.</p>
*/
inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
/**
* <p>The details for the CreateJob request.</p>
*/
inline void SetDetails(const RequestDetails& value) { m_detailsHasBeenSet = true; m_details = value; }
/**
* <p>The details for the CreateJob request.</p>
*/
inline void SetDetails(RequestDetails&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
/**
* <p>The details for the CreateJob request.</p>
*/
inline CreateJobRequest& WithDetails(const RequestDetails& value) { SetDetails(value); return *this;}
/**
* <p>The details for the CreateJob request.</p>
*/
inline CreateJobRequest& WithDetails(RequestDetails&& value) { SetDetails(std::move(value)); return *this;}
/**
* <p>The type of job to be created.</p>
*/
inline const Type& GetType() const{ return m_type; }
/**
* <p>The type of job to be created.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of job to be created.</p>
*/
inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of job to be created.</p>
*/
inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of job to be created.</p>
*/
inline CreateJobRequest& WithType(const Type& value) { SetType(value); return *this;}
/**
* <p>The type of job to be created.</p>
*/
inline CreateJobRequest& WithType(Type&& value) { SetType(std::move(value)); return *this;}
private:
RequestDetails m_details;
bool m_detailsHasBeenSet;
Type m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,299 @@
/**
* 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/core/utils/DateTime.h>
#include <aws/dataexchange/model/ResponseDetails.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/dataexchange/model/State.h>
#include <aws/dataexchange/model/Type.h>
#include <aws/dataexchange/model/JobError.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 CreateJobResult
{
public:
CreateJobResult();
CreateJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ARN for the job.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN for the job.</p>
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* <p>The ARN for the job.</p>
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* <p>The ARN for the job.</p>
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* <p>The ARN for the job.</p>
*/
inline CreateJobResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN for the job.</p>
*/
inline CreateJobResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN for the job.</p>
*/
inline CreateJobResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>The date and time that the job was created, in ISO 8601 format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
/**
* <p>The date and time that the job 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 job 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 job was created, in ISO 8601 format.</p>
*/
inline CreateJobResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
/**
* <p>The date and time that the job was created, in ISO 8601 format.</p>
*/
inline CreateJobResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* <p>Details about the job.</p>
*/
inline const ResponseDetails& GetDetails() const{ return m_details; }
/**
* <p>Details about the job.</p>
*/
inline void SetDetails(const ResponseDetails& value) { m_details = value; }
/**
* <p>Details about the job.</p>
*/
inline void SetDetails(ResponseDetails&& value) { m_details = std::move(value); }
/**
* <p>Details about the job.</p>
*/
inline CreateJobResult& WithDetails(const ResponseDetails& value) { SetDetails(value); return *this;}
/**
* <p>Details about the job.</p>
*/
inline CreateJobResult& WithDetails(ResponseDetails&& value) { SetDetails(std::move(value)); return *this;}
/**
* <p>The errors associated with jobs.</p>
*/
inline const Aws::Vector<JobError>& GetErrors() const{ return m_errors; }
/**
* <p>The errors associated with jobs.</p>
*/
inline void SetErrors(const Aws::Vector<JobError>& value) { m_errors = value; }
/**
* <p>The errors associated with jobs.</p>
*/
inline void SetErrors(Aws::Vector<JobError>&& value) { m_errors = std::move(value); }
/**
* <p>The errors associated with jobs.</p>
*/
inline CreateJobResult& WithErrors(const Aws::Vector<JobError>& value) { SetErrors(value); return *this;}
/**
* <p>The errors associated with jobs.</p>
*/
inline CreateJobResult& WithErrors(Aws::Vector<JobError>&& value) { SetErrors(std::move(value)); return *this;}
/**
* <p>The errors associated with jobs.</p>
*/
inline CreateJobResult& AddErrors(const JobError& value) { m_errors.push_back(value); return *this; }
/**
* <p>The errors associated with jobs.</p>
*/
inline CreateJobResult& AddErrors(JobError&& value) { m_errors.push_back(std::move(value)); return *this; }
/**
* <p>The unique identifier for the job.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The unique identifier for the job.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The unique identifier for the job.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The unique identifier for the job.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The unique identifier for the job.</p>
*/
inline CreateJobResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique identifier for the job.</p>
*/
inline CreateJobResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the job.</p>
*/
inline CreateJobResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The state of the job.</p>
*/
inline const State& GetState() const{ return m_state; }
/**
* <p>The state of the job.</p>
*/
inline void SetState(const State& value) { m_state = value; }
/**
* <p>The state of the job.</p>
*/
inline void SetState(State&& value) { m_state = std::move(value); }
/**
* <p>The state of the job.</p>
*/
inline CreateJobResult& WithState(const State& value) { SetState(value); return *this;}
/**
* <p>The state of the job.</p>
*/
inline CreateJobResult& WithState(State&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The job type.</p>
*/
inline const Type& GetType() const{ return m_type; }
/**
* <p>The job type.</p>
*/
inline void SetType(const Type& value) { m_type = value; }
/**
* <p>The job type.</p>
*/
inline void SetType(Type&& value) { m_type = std::move(value); }
/**
* <p>The job type.</p>
*/
inline CreateJobResult& WithType(const Type& value) { SetType(value); return *this;}
/**
* <p>The job type.</p>
*/
inline CreateJobResult& WithType(Type&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The date and time that the job 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 job 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 job 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 job was last updated, in ISO 8601 format.</p>
*/
inline CreateJobResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
/**
* <p>The date and time that the job was last updated, in ISO 8601 format.</p>
*/
inline CreateJobResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
private:
Aws::String m_arn;
Aws::Utils::DateTime m_createdAt;
ResponseDetails m_details;
Aws::Vector<JobError> m_errors;
Aws::String m_id;
State m_state;
Type m_type;
Aws::Utils::DateTime m_updatedAt;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,239 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
/**
* <p>The request body for CreateRevision.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CreateRevisionRequest">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API CreateRevisionRequest : public DataExchangeRequest
{
public:
CreateRevisionRequest();
// 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 "CreateRevision"; }
Aws::String SerializePayload() const override;
/**
* <p>An optional comment about the revision.</p>
*/
inline const Aws::String& GetComment() const{ return m_comment; }
/**
* <p>An optional comment about the revision.</p>
*/
inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
/**
* <p>An optional comment about the revision.</p>
*/
inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
/**
* <p>An optional comment about the revision.</p>
*/
inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
/**
* <p>An optional comment about the revision.</p>
*/
inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
/**
* <p>An optional comment about the revision.</p>
*/
inline CreateRevisionRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
/**
* <p>An optional comment about the revision.</p>
*/
inline CreateRevisionRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
/**
* <p>An optional comment about the revision.</p>
*/
inline CreateRevisionRequest& WithComment(const char* value) { SetComment(value); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline CreateRevisionRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline CreateRevisionRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline CreateRevisionRequest& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>A revision tag is an optional label that you can assign to a revision when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>A revision tag is an optional label that you can assign to a revision when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>A revision tag is an optional label that you can assign to a revision when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>A revision tag is an optional label that you can assign to a revision when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>A revision tag is an optional label that you can assign to a revision when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline CreateRevisionRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>A revision tag is an optional label that you can assign to a revision when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline CreateRevisionRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>A revision tag is an optional label that you can assign to a revision when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline CreateRevisionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>A revision tag is an optional label that you can assign to a revision when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline CreateRevisionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>A revision tag is an optional label that you can assign to a revision when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline CreateRevisionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>A revision tag is an optional label that you can assign to a revision when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline CreateRevisionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A revision tag is an optional label that you can assign to a revision when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline CreateRevisionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>A revision tag is an optional label that you can assign to a revision when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline CreateRevisionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>A revision tag is an optional label that you can assign to a revision when
* you create it. Each tag consists of a key and an optional value, both of which
* you define. When you use tagging, you can also use tag-based access control in
* IAM policies to control access to these data sets and revisions.</p>
*/
inline CreateRevisionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_comment;
bool m_commentHasBeenSet;
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,400 @@
/**
* 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/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSMap.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 CreateRevisionResult
{
public:
CreateRevisionResult();
CreateRevisionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateRevisionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ARN for the revision</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN for the revision</p>
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* <p>The ARN for the revision</p>
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* <p>The ARN for the revision</p>
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* <p>The ARN for the revision</p>
*/
inline CreateRevisionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN for the revision</p>
*/
inline CreateRevisionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN for the revision</p>
*/
inline CreateRevisionResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>An optional comment about the revision.</p>
*/
inline const Aws::String& GetComment() const{ return m_comment; }
/**
* <p>An optional comment about the revision.</p>
*/
inline void SetComment(const Aws::String& value) { m_comment = value; }
/**
* <p>An optional comment about the revision.</p>
*/
inline void SetComment(Aws::String&& value) { m_comment = std::move(value); }
/**
* <p>An optional comment about the revision.</p>
*/
inline void SetComment(const char* value) { m_comment.assign(value); }
/**
* <p>An optional comment about the revision.</p>
*/
inline CreateRevisionResult& WithComment(const Aws::String& value) { SetComment(value); return *this;}
/**
* <p>An optional comment about the revision.</p>
*/
inline CreateRevisionResult& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
/**
* <p>An optional comment about the revision.</p>
*/
inline CreateRevisionResult& WithComment(const char* value) { SetComment(value); return *this;}
/**
* <p>The date and time that the revision was created, in ISO 8601 format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
/**
* <p>The date and time that the revision 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 revision 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 revision was created, in ISO 8601 format.</p>
*/
inline CreateRevisionResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
/**
* <p>The date and time that the revision was created, in ISO 8601 format.</p>
*/
inline CreateRevisionResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetId = value; }
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetId.assign(value); }
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline CreateRevisionResult& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline CreateRevisionResult& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline CreateRevisionResult& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>To publish a revision to a data set in a product, the revision must first be
* finalized. Finalizing a revision tells AWS Data Exchange that your changes to
* the assets in the revision are complete. After it's in this read-only state, you
* can publish the revision to your products.</p> <p>Finalized revisions can be
* published through the AWS Data Exchange console or the AWS Marketplace Catalog
* API, using the StartChangeSet AWS Marketplace Catalog API action. When using the
* API, revisions are uniquely identified by their ARN.</p>
*/
inline bool GetFinalized() const{ return m_finalized; }
/**
* <p>To publish a revision to a data set in a product, the revision must first be
* finalized. Finalizing a revision tells AWS Data Exchange that your changes to
* the assets in the revision are complete. After it's in this read-only state, you
* can publish the revision to your products.</p> <p>Finalized revisions can be
* published through the AWS Data Exchange console or the AWS Marketplace Catalog
* API, using the StartChangeSet AWS Marketplace Catalog API action. When using the
* API, revisions are uniquely identified by their ARN.</p>
*/
inline void SetFinalized(bool value) { m_finalized = value; }
/**
* <p>To publish a revision to a data set in a product, the revision must first be
* finalized. Finalizing a revision tells AWS Data Exchange that your changes to
* the assets in the revision are complete. After it's in this read-only state, you
* can publish the revision to your products.</p> <p>Finalized revisions can be
* published through the AWS Data Exchange console or the AWS Marketplace Catalog
* API, using the StartChangeSet AWS Marketplace Catalog API action. When using the
* API, revisions are uniquely identified by their ARN.</p>
*/
inline CreateRevisionResult& WithFinalized(bool value) { SetFinalized(value); return *this;}
/**
* <p>The unique identifier for the revision.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The unique identifier for the revision.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The unique identifier for the revision.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The unique identifier for the revision.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The unique identifier for the revision.</p>
*/
inline CreateRevisionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique identifier for the revision.</p>
*/
inline CreateRevisionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the revision.</p>
*/
inline CreateRevisionResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline const Aws::String& GetSourceId() const{ return m_sourceId; }
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline void SetSourceId(const Aws::String& value) { m_sourceId = value; }
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline void SetSourceId(Aws::String&& value) { m_sourceId = std::move(value); }
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline void SetSourceId(const char* value) { m_sourceId.assign(value); }
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline CreateRevisionResult& WithSourceId(const Aws::String& value) { SetSourceId(value); return *this;}
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline CreateRevisionResult& WithSourceId(Aws::String&& value) { SetSourceId(std::move(value)); return *this;}
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline CreateRevisionResult& WithSourceId(const char* value) { SetSourceId(value); return *this;}
/**
* <p>The tags for the revision.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags for the revision.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
/**
* <p>The tags for the revision.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
/**
* <p>The tags for the revision.</p>
*/
inline CreateRevisionResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags for the revision.</p>
*/
inline CreateRevisionResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags for the revision.</p>
*/
inline CreateRevisionResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
/**
* <p>The tags for the revision.</p>
*/
inline CreateRevisionResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags for the revision.</p>
*/
inline CreateRevisionResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags for the revision.</p>
*/
inline CreateRevisionResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags for the revision.</p>
*/
inline CreateRevisionResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags for the revision.</p>
*/
inline CreateRevisionResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags for the revision.</p>
*/
inline CreateRevisionResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
/**
* <p>The date and time that the revision 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 revision 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 revision 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 revision was last updated, in ISO 8601 format.</p>
*/
inline CreateRevisionResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
/**
* <p>The date and time that the revision was last updated, in ISO 8601 format.</p>
*/
inline CreateRevisionResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
private:
Aws::String m_arn;
Aws::String m_comment;
Aws::Utils::DateTime m_createdAt;
Aws::String m_dataSetId;
bool m_finalized;
Aws::String m_id;
Aws::String m_sourceId;
Aws::Map<Aws::String, Aws::String> m_tags;
Aws::Utils::DateTime m_updatedAt;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,473 @@
/**
* 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/AssetType.h>
#include <aws/core/utils/DateTime.h>
#include <aws/dataexchange/model/Origin.h>
#include <aws/dataexchange/model/OriginDetails.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>A data set is an AWS resource with one or more revisions.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/DataSetEntry">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API DataSetEntry
{
public:
DataSetEntry();
DataSetEntry(Aws::Utils::Json::JsonView jsonValue);
DataSetEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN for the data set.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN for the data set.</p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p>The ARN for the data set.</p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p>The ARN for the data set.</p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p>The ARN for the data set.</p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p>The ARN for the data set.</p>
*/
inline DataSetEntry& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN for the data set.</p>
*/
inline DataSetEntry& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN for the data set.</p>
*/
inline DataSetEntry& WithArn(const char* value) { SetArn(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 bool AssetTypeHasBeenSet() const { return m_assetTypeHasBeenSet; }
/**
* <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_assetTypeHasBeenSet = true; 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_assetTypeHasBeenSet = true; 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 DataSetEntry& 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 DataSetEntry& WithAssetType(AssetType&& value) { SetAssetType(std::move(value)); return *this;}
/**
* <p>The date and time that the data set was created, in ISO 8601 format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
/**
* <p>The date and time that the data set was created, in ISO 8601 format.</p>
*/
inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
/**
* <p>The date and time that the data set was created, in ISO 8601 format.</p>
*/
inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
/**
* <p>The date and time that the data set was created, in ISO 8601 format.</p>
*/
inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
/**
* <p>The date and time that the data set was created, in ISO 8601 format.</p>
*/
inline DataSetEntry& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
/**
* <p>The date and time that the data set was created, in ISO 8601 format.</p>
*/
inline DataSetEntry& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* <p>The description for the data set.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description for the data set.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description for the data set.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description for the data set.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description for the data set.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description for the data set.</p>
*/
inline DataSetEntry& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description for the data set.</p>
*/
inline DataSetEntry& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description for the data set.</p>
*/
inline DataSetEntry& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The unique identifier for the data set.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The unique identifier for the data set.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The unique identifier for the data set.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The unique identifier for the data set.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The unique identifier for the data set.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The unique identifier for the data set.</p>
*/
inline DataSetEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique identifier for the data set.</p>
*/
inline DataSetEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set.</p>
*/
inline DataSetEntry& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the data set.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the data set.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the data set.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the data set.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the data set.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the data set.</p>
*/
inline DataSetEntry& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the data set.</p>
*/
inline DataSetEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the data set.</p>
*/
inline DataSetEntry& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline const Origin& GetOrigin() const{ return m_origin; }
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline void SetOrigin(const Origin& value) { m_originHasBeenSet = true; m_origin = value; }
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline void SetOrigin(Origin&& value) { m_originHasBeenSet = true; m_origin = std::move(value); }
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline DataSetEntry& WithOrigin(const Origin& value) { SetOrigin(value); return *this;}
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline DataSetEntry& WithOrigin(Origin&& value) { SetOrigin(std::move(value)); return *this;}
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline const OriginDetails& GetOriginDetails() const{ return m_originDetails; }
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline bool OriginDetailsHasBeenSet() const { return m_originDetailsHasBeenSet; }
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline void SetOriginDetails(const OriginDetails& value) { m_originDetailsHasBeenSet = true; m_originDetails = value; }
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline void SetOriginDetails(OriginDetails&& value) { m_originDetailsHasBeenSet = true; m_originDetails = std::move(value); }
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline DataSetEntry& WithOriginDetails(const OriginDetails& value) { SetOriginDetails(value); return *this;}
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline DataSetEntry& WithOriginDetails(OriginDetails&& value) { SetOriginDetails(std::move(value)); return *this;}
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline const Aws::String& GetSourceId() const{ return m_sourceId; }
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline void SetSourceId(const Aws::String& value) { m_sourceIdHasBeenSet = true; m_sourceId = value; }
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline void SetSourceId(Aws::String&& value) { m_sourceIdHasBeenSet = true; m_sourceId = std::move(value); }
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline void SetSourceId(const char* value) { m_sourceIdHasBeenSet = true; m_sourceId.assign(value); }
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline DataSetEntry& WithSourceId(const Aws::String& value) { SetSourceId(value); return *this;}
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline DataSetEntry& WithSourceId(Aws::String&& value) { SetSourceId(std::move(value)); return *this;}
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline DataSetEntry& WithSourceId(const char* value) { SetSourceId(value); return *this;}
/**
* <p>The date and time that the data set 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 data set was last updated, in ISO 8601 format.</p>
*/
inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
/**
* <p>The date and time that the data set was last updated, in ISO 8601 format.</p>
*/
inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
/**
* <p>The date and time that the data set was last updated, in ISO 8601 format.</p>
*/
inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
/**
* <p>The date and time that the data set was last updated, in ISO 8601 format.</p>
*/
inline DataSetEntry& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
/**
* <p>The date and time that the data set was last updated, in ISO 8601 format.</p>
*/
inline DataSetEntry& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
AssetType m_assetType;
bool m_assetTypeHasBeenSet;
Aws::Utils::DateTime m_createdAt;
bool m_createdAtHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Origin m_origin;
bool m_originHasBeenSet;
OriginDetails m_originDetails;
bool m_originDetailsHasBeenSet;
Aws::String m_sourceId;
bool m_sourceIdHasBeenSet;
Aws::Utils::DateTime m_updatedAt;
bool m_updatedAtHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,171 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
/**
*/
class AWS_DATAEXCHANGE_API DeleteAssetRequest : public DataExchangeRequest
{
public:
DeleteAssetRequest();
// 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 "DeleteAsset"; }
Aws::String SerializePayload() const override;
/**
* <p>The unique identifier for an asset.</p>
*/
inline const Aws::String& GetAssetId() const{ return m_assetId; }
/**
* <p>The unique identifier for an asset.</p>
*/
inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
/**
* <p>The unique identifier for an asset.</p>
*/
inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
/**
* <p>The unique identifier for an asset.</p>
*/
inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
/**
* <p>The unique identifier for an asset.</p>
*/
inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
/**
* <p>The unique identifier for an asset.</p>
*/
inline DeleteAssetRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
/**
* <p>The unique identifier for an asset.</p>
*/
inline DeleteAssetRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for an asset.</p>
*/
inline DeleteAssetRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline DeleteAssetRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline DeleteAssetRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline DeleteAssetRequest& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p>The unique identifier for a revision.</p>
*/
inline DeleteAssetRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline DeleteAssetRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline DeleteAssetRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
private:
Aws::String m_assetId;
bool m_assetIdHasBeenSet;
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
/**
*/
class AWS_DATAEXCHANGE_API DeleteDataSetRequest : public DataExchangeRequest
{
public:
DeleteDataSetRequest();
// 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 "DeleteDataSet"; }
Aws::String SerializePayload() const override;
/**
* <p>The unique identifier for a data set.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline DeleteDataSetRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline DeleteDataSetRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline DeleteDataSetRequest& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
private:
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,127 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
/**
*/
class AWS_DATAEXCHANGE_API DeleteRevisionRequest : public DataExchangeRequest
{
public:
DeleteRevisionRequest();
// 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 "DeleteRevision"; }
Aws::String SerializePayload() const override;
/**
* <p>The unique identifier for a data set.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline DeleteRevisionRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline DeleteRevisionRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline DeleteRevisionRequest& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p>The unique identifier for a revision.</p>
*/
inline DeleteRevisionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline DeleteRevisionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline DeleteRevisionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
private:
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,91 @@
/**
* 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/dataexchange/model/ImportAssetFromSignedUrlJobErrorDetails.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/dataexchange/model/AssetSourceEntry.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
class AWS_DATAEXCHANGE_API Details
{
public:
Details();
Details(Aws::Utils::Json::JsonView jsonValue);
Details& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const ImportAssetFromSignedUrlJobErrorDetails& GetImportAssetFromSignedUrlJobErrorDetails() const{ return m_importAssetFromSignedUrlJobErrorDetails; }
inline bool ImportAssetFromSignedUrlJobErrorDetailsHasBeenSet() const { return m_importAssetFromSignedUrlJobErrorDetailsHasBeenSet; }
inline void SetImportAssetFromSignedUrlJobErrorDetails(const ImportAssetFromSignedUrlJobErrorDetails& value) { m_importAssetFromSignedUrlJobErrorDetailsHasBeenSet = true; m_importAssetFromSignedUrlJobErrorDetails = value; }
inline void SetImportAssetFromSignedUrlJobErrorDetails(ImportAssetFromSignedUrlJobErrorDetails&& value) { m_importAssetFromSignedUrlJobErrorDetailsHasBeenSet = true; m_importAssetFromSignedUrlJobErrorDetails = std::move(value); }
inline Details& WithImportAssetFromSignedUrlJobErrorDetails(const ImportAssetFromSignedUrlJobErrorDetails& value) { SetImportAssetFromSignedUrlJobErrorDetails(value); return *this;}
inline Details& WithImportAssetFromSignedUrlJobErrorDetails(ImportAssetFromSignedUrlJobErrorDetails&& value) { SetImportAssetFromSignedUrlJobErrorDetails(std::move(value)); return *this;}
inline const Aws::Vector<AssetSourceEntry>& GetImportAssetsFromS3JobErrorDetails() const{ return m_importAssetsFromS3JobErrorDetails; }
inline bool ImportAssetsFromS3JobErrorDetailsHasBeenSet() const { return m_importAssetsFromS3JobErrorDetailsHasBeenSet; }
inline void SetImportAssetsFromS3JobErrorDetails(const Aws::Vector<AssetSourceEntry>& value) { m_importAssetsFromS3JobErrorDetailsHasBeenSet = true; m_importAssetsFromS3JobErrorDetails = value; }
inline void SetImportAssetsFromS3JobErrorDetails(Aws::Vector<AssetSourceEntry>&& value) { m_importAssetsFromS3JobErrorDetailsHasBeenSet = true; m_importAssetsFromS3JobErrorDetails = std::move(value); }
inline Details& WithImportAssetsFromS3JobErrorDetails(const Aws::Vector<AssetSourceEntry>& value) { SetImportAssetsFromS3JobErrorDetails(value); return *this;}
inline Details& WithImportAssetsFromS3JobErrorDetails(Aws::Vector<AssetSourceEntry>&& value) { SetImportAssetsFromS3JobErrorDetails(std::move(value)); return *this;}
inline Details& AddImportAssetsFromS3JobErrorDetails(const AssetSourceEntry& value) { m_importAssetsFromS3JobErrorDetailsHasBeenSet = true; m_importAssetsFromS3JobErrorDetails.push_back(value); return *this; }
inline Details& AddImportAssetsFromS3JobErrorDetails(AssetSourceEntry&& value) { m_importAssetsFromS3JobErrorDetailsHasBeenSet = true; m_importAssetsFromS3JobErrorDetails.push_back(std::move(value)); return *this; }
private:
ImportAssetFromSignedUrlJobErrorDetails m_importAssetFromSignedUrlJobErrorDetails;
bool m_importAssetFromSignedUrlJobErrorDetailsHasBeenSet;
Aws::Vector<AssetSourceEntry> m_importAssetsFromS3JobErrorDetails;
bool m_importAssetsFromS3JobErrorDetailsHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,185 @@
/**
* 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 <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>Details of the operation to be performed by the job.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ExportAssetToSignedUrlRequestDetails">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API ExportAssetToSignedUrlRequestDetails
{
public:
ExportAssetToSignedUrlRequestDetails();
ExportAssetToSignedUrlRequestDetails(Aws::Utils::Json::JsonView jsonValue);
ExportAssetToSignedUrlRequestDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique identifier for the asset that is exported to a signed URL.</p>
*/
inline const Aws::String& GetAssetId() const{ return m_assetId; }
/**
* <p>The unique identifier for the asset that is exported to a signed URL.</p>
*/
inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
/**
* <p>The unique identifier for the asset that is exported to a signed URL.</p>
*/
inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
/**
* <p>The unique identifier for the asset that is exported to a signed URL.</p>
*/
inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
/**
* <p>The unique identifier for the asset that is exported to a signed URL.</p>
*/
inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
/**
* <p>The unique identifier for the asset that is exported to a signed URL.</p>
*/
inline ExportAssetToSignedUrlRequestDetails& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
/**
* <p>The unique identifier for the asset that is exported to a signed URL.</p>
*/
inline ExportAssetToSignedUrlRequestDetails& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the asset that is exported to a signed URL.</p>
*/
inline ExportAssetToSignedUrlRequestDetails& WithAssetId(const char* value) { SetAssetId(value); return *this;}
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline ExportAssetToSignedUrlRequestDetails& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline ExportAssetToSignedUrlRequestDetails& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline ExportAssetToSignedUrlRequestDetails& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for the revision associated with this export
* request.</p>
*/
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
/**
* <p>The unique identifier for the revision associated with this export
* request.</p>
*/
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p>The unique identifier for the revision associated with this export
* request.</p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p>The unique identifier for the revision associated with this export
* request.</p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p>The unique identifier for the revision associated with this export
* request.</p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p>The unique identifier for the revision associated with this export
* request.</p>
*/
inline ExportAssetToSignedUrlRequestDetails& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>The unique identifier for the revision associated with this export
* request.</p>
*/
inline ExportAssetToSignedUrlRequestDetails& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the revision associated with this export
* request.</p>
*/
inline ExportAssetToSignedUrlRequestDetails& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
private:
Aws::String m_assetId;
bool m_assetIdHasBeenSet;
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,264 @@
/**
* 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/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>The details of the export to signed URL response.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ExportAssetToSignedUrlResponseDetails">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API ExportAssetToSignedUrlResponseDetails
{
public:
ExportAssetToSignedUrlResponseDetails();
ExportAssetToSignedUrlResponseDetails(Aws::Utils::Json::JsonView jsonValue);
ExportAssetToSignedUrlResponseDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The unique identifier for the asset associated with this export job.</p>
*/
inline const Aws::String& GetAssetId() const{ return m_assetId; }
/**
* <p>The unique identifier for the asset associated with this export job.</p>
*/
inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
/**
* <p>The unique identifier for the asset associated with this export job.</p>
*/
inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
/**
* <p>The unique identifier for the asset associated with this export job.</p>
*/
inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
/**
* <p>The unique identifier for the asset associated with this export job.</p>
*/
inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
/**
* <p>The unique identifier for the asset associated with this export job.</p>
*/
inline ExportAssetToSignedUrlResponseDetails& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
/**
* <p>The unique identifier for the asset associated with this export job.</p>
*/
inline ExportAssetToSignedUrlResponseDetails& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the asset associated with this export job.</p>
*/
inline ExportAssetToSignedUrlResponseDetails& WithAssetId(const char* value) { SetAssetId(value); return *this;}
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline ExportAssetToSignedUrlResponseDetails& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline ExportAssetToSignedUrlResponseDetails& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline ExportAssetToSignedUrlResponseDetails& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for the revision associated with this export
* response.</p>
*/
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
/**
* <p>The unique identifier for the revision associated with this export
* response.</p>
*/
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p>The unique identifier for the revision associated with this export
* response.</p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p>The unique identifier for the revision associated with this export
* response.</p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p>The unique identifier for the revision associated with this export
* response.</p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p>The unique identifier for the revision associated with this export
* response.</p>
*/
inline ExportAssetToSignedUrlResponseDetails& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>The unique identifier for the revision associated with this export
* response.</p>
*/
inline ExportAssetToSignedUrlResponseDetails& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the revision associated with this export
* response.</p>
*/
inline ExportAssetToSignedUrlResponseDetails& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
/**
* <p>The signed URL for the export request.</p>
*/
inline const Aws::String& GetSignedUrl() const{ return m_signedUrl; }
/**
* <p>The signed URL for the export request.</p>
*/
inline bool SignedUrlHasBeenSet() const { return m_signedUrlHasBeenSet; }
/**
* <p>The signed URL for the export request.</p>
*/
inline void SetSignedUrl(const Aws::String& value) { m_signedUrlHasBeenSet = true; m_signedUrl = value; }
/**
* <p>The signed URL for the export request.</p>
*/
inline void SetSignedUrl(Aws::String&& value) { m_signedUrlHasBeenSet = true; m_signedUrl = std::move(value); }
/**
* <p>The signed URL for the export request.</p>
*/
inline void SetSignedUrl(const char* value) { m_signedUrlHasBeenSet = true; m_signedUrl.assign(value); }
/**
* <p>The signed URL for the export request.</p>
*/
inline ExportAssetToSignedUrlResponseDetails& WithSignedUrl(const Aws::String& value) { SetSignedUrl(value); return *this;}
/**
* <p>The signed URL for the export request.</p>
*/
inline ExportAssetToSignedUrlResponseDetails& WithSignedUrl(Aws::String&& value) { SetSignedUrl(std::move(value)); return *this;}
/**
* <p>The signed URL for the export request.</p>
*/
inline ExportAssetToSignedUrlResponseDetails& WithSignedUrl(const char* value) { SetSignedUrl(value); return *this;}
/**
* <p>The date and time that the signed URL expires, in ISO 8601 format.</p>
*/
inline const Aws::Utils::DateTime& GetSignedUrlExpiresAt() const{ return m_signedUrlExpiresAt; }
/**
* <p>The date and time that the signed URL expires, in ISO 8601 format.</p>
*/
inline bool SignedUrlExpiresAtHasBeenSet() const { return m_signedUrlExpiresAtHasBeenSet; }
/**
* <p>The date and time that the signed URL expires, in ISO 8601 format.</p>
*/
inline void SetSignedUrlExpiresAt(const Aws::Utils::DateTime& value) { m_signedUrlExpiresAtHasBeenSet = true; m_signedUrlExpiresAt = value; }
/**
* <p>The date and time that the signed URL expires, in ISO 8601 format.</p>
*/
inline void SetSignedUrlExpiresAt(Aws::Utils::DateTime&& value) { m_signedUrlExpiresAtHasBeenSet = true; m_signedUrlExpiresAt = std::move(value); }
/**
* <p>The date and time that the signed URL expires, in ISO 8601 format.</p>
*/
inline ExportAssetToSignedUrlResponseDetails& WithSignedUrlExpiresAt(const Aws::Utils::DateTime& value) { SetSignedUrlExpiresAt(value); return *this;}
/**
* <p>The date and time that the signed URL expires, in ISO 8601 format.</p>
*/
inline ExportAssetToSignedUrlResponseDetails& WithSignedUrlExpiresAt(Aws::Utils::DateTime&& value) { SetSignedUrlExpiresAt(std::move(value)); return *this;}
private:
Aws::String m_assetId;
bool m_assetIdHasBeenSet;
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
Aws::String m_signedUrl;
bool m_signedUrlHasBeenSet;
Aws::Utils::DateTime m_signedUrlExpiresAt;
bool m_signedUrlExpiresAtHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,222 @@
/**
* 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/dataexchange/model/ExportServerSideEncryption.h>
#include <aws/dataexchange/model/AssetDestinationEntry.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>Details of the operation to be performed by the job.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ExportAssetsToS3RequestDetails">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API ExportAssetsToS3RequestDetails
{
public:
ExportAssetsToS3RequestDetails();
ExportAssetsToS3RequestDetails(Aws::Utils::Json::JsonView jsonValue);
ExportAssetsToS3RequestDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The destination for the asset.</p>
*/
inline const Aws::Vector<AssetDestinationEntry>& GetAssetDestinations() const{ return m_assetDestinations; }
/**
* <p>The destination for the asset.</p>
*/
inline bool AssetDestinationsHasBeenSet() const { return m_assetDestinationsHasBeenSet; }
/**
* <p>The destination for the asset.</p>
*/
inline void SetAssetDestinations(const Aws::Vector<AssetDestinationEntry>& value) { m_assetDestinationsHasBeenSet = true; m_assetDestinations = value; }
/**
* <p>The destination for the asset.</p>
*/
inline void SetAssetDestinations(Aws::Vector<AssetDestinationEntry>&& value) { m_assetDestinationsHasBeenSet = true; m_assetDestinations = std::move(value); }
/**
* <p>The destination for the asset.</p>
*/
inline ExportAssetsToS3RequestDetails& WithAssetDestinations(const Aws::Vector<AssetDestinationEntry>& value) { SetAssetDestinations(value); return *this;}
/**
* <p>The destination for the asset.</p>
*/
inline ExportAssetsToS3RequestDetails& WithAssetDestinations(Aws::Vector<AssetDestinationEntry>&& value) { SetAssetDestinations(std::move(value)); return *this;}
/**
* <p>The destination for the asset.</p>
*/
inline ExportAssetsToS3RequestDetails& AddAssetDestinations(const AssetDestinationEntry& value) { m_assetDestinationsHasBeenSet = true; m_assetDestinations.push_back(value); return *this; }
/**
* <p>The destination for the asset.</p>
*/
inline ExportAssetsToS3RequestDetails& AddAssetDestinations(AssetDestinationEntry&& value) { m_assetDestinationsHasBeenSet = true; m_assetDestinations.push_back(std::move(value)); return *this; }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline ExportAssetsToS3RequestDetails& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline ExportAssetsToS3RequestDetails& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline ExportAssetsToS3RequestDetails& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>Encryption configuration for the export job.</p>
*/
inline const ExportServerSideEncryption& GetEncryption() const{ return m_encryption; }
/**
* <p>Encryption configuration for the export job.</p>
*/
inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
/**
* <p>Encryption configuration for the export job.</p>
*/
inline void SetEncryption(const ExportServerSideEncryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
/**
* <p>Encryption configuration for the export job.</p>
*/
inline void SetEncryption(ExportServerSideEncryption&& value) { m_encryptionHasBeenSet = true; m_encryption = std::move(value); }
/**
* <p>Encryption configuration for the export job.</p>
*/
inline ExportAssetsToS3RequestDetails& WithEncryption(const ExportServerSideEncryption& value) { SetEncryption(value); return *this;}
/**
* <p>Encryption configuration for the export job.</p>
*/
inline ExportAssetsToS3RequestDetails& WithEncryption(ExportServerSideEncryption&& value) { SetEncryption(std::move(value)); return *this;}
/**
* <p>The unique identifier for the revision associated with this export
* request.</p>
*/
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
/**
* <p>The unique identifier for the revision associated with this export
* request.</p>
*/
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p>The unique identifier for the revision associated with this export
* request.</p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p>The unique identifier for the revision associated with this export
* request.</p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p>The unique identifier for the revision associated with this export
* request.</p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p>The unique identifier for the revision associated with this export
* request.</p>
*/
inline ExportAssetsToS3RequestDetails& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>The unique identifier for the revision associated with this export
* request.</p>
*/
inline ExportAssetsToS3RequestDetails& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the revision associated with this export
* request.</p>
*/
inline ExportAssetsToS3RequestDetails& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
private:
Aws::Vector<AssetDestinationEntry> m_assetDestinations;
bool m_assetDestinationsHasBeenSet;
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
ExportServerSideEncryption m_encryption;
bool m_encryptionHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,221 @@
/**
* 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/dataexchange/model/ExportServerSideEncryption.h>
#include <aws/dataexchange/model/AssetDestinationEntry.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>Details about the export to Amazon S3 response.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ExportAssetsToS3ResponseDetails">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API ExportAssetsToS3ResponseDetails
{
public:
ExportAssetsToS3ResponseDetails();
ExportAssetsToS3ResponseDetails(Aws::Utils::Json::JsonView jsonValue);
ExportAssetsToS3ResponseDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The destination in Amazon S3 where the asset is exported.</p>
*/
inline const Aws::Vector<AssetDestinationEntry>& GetAssetDestinations() const{ return m_assetDestinations; }
/**
* <p>The destination in Amazon S3 where the asset is exported.</p>
*/
inline bool AssetDestinationsHasBeenSet() const { return m_assetDestinationsHasBeenSet; }
/**
* <p>The destination in Amazon S3 where the asset is exported.</p>
*/
inline void SetAssetDestinations(const Aws::Vector<AssetDestinationEntry>& value) { m_assetDestinationsHasBeenSet = true; m_assetDestinations = value; }
/**
* <p>The destination in Amazon S3 where the asset is exported.</p>
*/
inline void SetAssetDestinations(Aws::Vector<AssetDestinationEntry>&& value) { m_assetDestinationsHasBeenSet = true; m_assetDestinations = std::move(value); }
/**
* <p>The destination in Amazon S3 where the asset is exported.</p>
*/
inline ExportAssetsToS3ResponseDetails& WithAssetDestinations(const Aws::Vector<AssetDestinationEntry>& value) { SetAssetDestinations(value); return *this;}
/**
* <p>The destination in Amazon S3 where the asset is exported.</p>
*/
inline ExportAssetsToS3ResponseDetails& WithAssetDestinations(Aws::Vector<AssetDestinationEntry>&& value) { SetAssetDestinations(std::move(value)); return *this;}
/**
* <p>The destination in Amazon S3 where the asset is exported.</p>
*/
inline ExportAssetsToS3ResponseDetails& AddAssetDestinations(const AssetDestinationEntry& value) { m_assetDestinationsHasBeenSet = true; m_assetDestinations.push_back(value); return *this; }
/**
* <p>The destination in Amazon S3 where the asset is exported.</p>
*/
inline ExportAssetsToS3ResponseDetails& AddAssetDestinations(AssetDestinationEntry&& value) { m_assetDestinationsHasBeenSet = true; m_assetDestinations.push_back(std::move(value)); return *this; }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline ExportAssetsToS3ResponseDetails& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline ExportAssetsToS3ResponseDetails& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set associated with this export job.</p>
*/
inline ExportAssetsToS3ResponseDetails& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>Encryption configuration of the export job.</p>
*/
inline const ExportServerSideEncryption& GetEncryption() const{ return m_encryption; }
/**
* <p>Encryption configuration of the export job.</p>
*/
inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
/**
* <p>Encryption configuration of the export job.</p>
*/
inline void SetEncryption(const ExportServerSideEncryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
/**
* <p>Encryption configuration of the export job.</p>
*/
inline void SetEncryption(ExportServerSideEncryption&& value) { m_encryptionHasBeenSet = true; m_encryption = std::move(value); }
/**
* <p>Encryption configuration of the export job.</p>
*/
inline ExportAssetsToS3ResponseDetails& WithEncryption(const ExportServerSideEncryption& value) { SetEncryption(value); return *this;}
/**
* <p>Encryption configuration of the export job.</p>
*/
inline ExportAssetsToS3ResponseDetails& WithEncryption(ExportServerSideEncryption&& value) { SetEncryption(std::move(value)); return *this;}
/**
* <p>The unique identifier for the revision associated with this export
* response.</p>
*/
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
/**
* <p>The unique identifier for the revision associated with this export
* response.</p>
*/
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p>The unique identifier for the revision associated with this export
* response.</p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p>The unique identifier for the revision associated with this export
* response.</p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p>The unique identifier for the revision associated with this export
* response.</p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p>The unique identifier for the revision associated with this export
* response.</p>
*/
inline ExportAssetsToS3ResponseDetails& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>The unique identifier for the revision associated with this export
* response.</p>
*/
inline ExportAssetsToS3ResponseDetails& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the revision associated with this export
* response.</p>
*/
inline ExportAssetsToS3ResponseDetails& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
private:
Aws::Vector<AssetDestinationEntry> m_assetDestinations;
bool m_assetDestinationsHasBeenSet;
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
ExportServerSideEncryption m_encryption;
bool m_encryptionHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,147 @@
/**
* 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/ServerSideEncryptionTypes.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>Encryption configuration of the export job. Includes the encryption type as
* well as the AWS KMS key. The KMS key is only necessary if you chose the KMS
* encryption type.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ExportServerSideEncryption">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API ExportServerSideEncryption
{
public:
ExportServerSideEncryption();
ExportServerSideEncryption(Aws::Utils::Json::JsonView jsonValue);
ExportServerSideEncryption& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the the AWS KMS key you want to use to
* encrypt the Amazon S3 objects. This parameter is required if you choose aws:kms
* as an encryption type.</p>
*/
inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
/**
* <p>The Amazon Resource Name (ARN) of the the AWS KMS key you want to use to
* encrypt the Amazon S3 objects. This parameter is required if you choose aws:kms
* as an encryption type.</p>
*/
inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the the AWS KMS key you want to use to
* encrypt the Amazon S3 objects. This parameter is required if you choose aws:kms
* as an encryption type.</p>
*/
inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the the AWS KMS key you want to use to
* encrypt the Amazon S3 objects. This parameter is required if you choose aws:kms
* as an encryption type.</p>
*/
inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the the AWS KMS key you want to use to
* encrypt the Amazon S3 objects. This parameter is required if you choose aws:kms
* as an encryption type.</p>
*/
inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the the AWS KMS key you want to use to
* encrypt the Amazon S3 objects. This parameter is required if you choose aws:kms
* as an encryption type.</p>
*/
inline ExportServerSideEncryption& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the the AWS KMS key you want to use to
* encrypt the Amazon S3 objects. This parameter is required if you choose aws:kms
* as an encryption type.</p>
*/
inline ExportServerSideEncryption& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the the AWS KMS key you want to use to
* encrypt the Amazon S3 objects. This parameter is required if you choose aws:kms
* as an encryption type.</p>
*/
inline ExportServerSideEncryption& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
/**
* <p>The type of server side encryption used for encrypting the objects in Amazon
* S3.</p>
*/
inline const ServerSideEncryptionTypes& GetType() const{ return m_type; }
/**
* <p>The type of server side encryption used for encrypting the objects in Amazon
* S3.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of server side encryption used for encrypting the objects in Amazon
* S3.</p>
*/
inline void SetType(const ServerSideEncryptionTypes& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of server side encryption used for encrypting the objects in Amazon
* S3.</p>
*/
inline void SetType(ServerSideEncryptionTypes&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of server side encryption used for encrypting the objects in Amazon
* S3.</p>
*/
inline ExportServerSideEncryption& WithType(const ServerSideEncryptionTypes& value) { SetType(value); return *this;}
/**
* <p>The type of server side encryption used for encrypting the objects in Amazon
* S3.</p>
*/
inline ExportServerSideEncryption& WithType(ServerSideEncryptionTypes&& value) { SetType(std::move(value)); return *this;}
private:
Aws::String m_kmsKeyArn;
bool m_kmsKeyArnHasBeenSet;
ServerSideEncryptionTypes m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,171 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
/**
*/
class AWS_DATAEXCHANGE_API GetAssetRequest : public DataExchangeRequest
{
public:
GetAssetRequest();
// 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 "GetAsset"; }
Aws::String SerializePayload() const override;
/**
* <p>The unique identifier for an asset.</p>
*/
inline const Aws::String& GetAssetId() const{ return m_assetId; }
/**
* <p>The unique identifier for an asset.</p>
*/
inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
/**
* <p>The unique identifier for an asset.</p>
*/
inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
/**
* <p>The unique identifier for an asset.</p>
*/
inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
/**
* <p>The unique identifier for an asset.</p>
*/
inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
/**
* <p>The unique identifier for an asset.</p>
*/
inline GetAssetRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
/**
* <p>The unique identifier for an asset.</p>
*/
inline GetAssetRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for an asset.</p>
*/
inline GetAssetRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline GetAssetRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline GetAssetRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline GetAssetRequest& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p>The unique identifier for a revision.</p>
*/
inline GetAssetRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline GetAssetRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline GetAssetRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
private:
Aws::String m_assetId;
bool m_assetIdHasBeenSet;
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,415 @@
/**
* 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

View File

@@ -0,0 +1,83 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
/**
*/
class AWS_DATAEXCHANGE_API GetDataSetRequest : public DataExchangeRequest
{
public:
GetDataSetRequest();
// 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 "GetDataSet"; }
Aws::String SerializePayload() const override;
/**
* <p>The unique identifier for a data set.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline GetDataSetRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline GetDataSetRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline GetDataSetRequest& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
private:
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,466 @@
/**
* 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/AssetType.h>
#include <aws/core/utils/DateTime.h>
#include <aws/dataexchange/model/Origin.h>
#include <aws/dataexchange/model/OriginDetails.h>
#include <aws/core/utils/memory/stl/AWSMap.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 GetDataSetResult
{
public:
GetDataSetResult();
GetDataSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetDataSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ARN for the data set.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN for the data set.</p>
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* <p>The ARN for the data set.</p>
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* <p>The ARN for the data set.</p>
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* <p>The ARN for the data set.</p>
*/
inline GetDataSetResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN for the data set.</p>
*/
inline GetDataSetResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN for the data set.</p>
*/
inline GetDataSetResult& WithArn(const char* value) { SetArn(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 GetDataSetResult& 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 GetDataSetResult& WithAssetType(AssetType&& value) { SetAssetType(std::move(value)); return *this;}
/**
* <p>The date and time that the data set was created, in ISO 8601 format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
/**
* <p>The date and time that the data set 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 data set 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 data set was created, in ISO 8601 format.</p>
*/
inline GetDataSetResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
/**
* <p>The date and time that the data set was created, in ISO 8601 format.</p>
*/
inline GetDataSetResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* <p>The description for the data set.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description for the data set.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The description for the data set.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The description for the data set.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The description for the data set.</p>
*/
inline GetDataSetResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description for the data set.</p>
*/
inline GetDataSetResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description for the data set.</p>
*/
inline GetDataSetResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The unique identifier for the data set.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The unique identifier for the data set.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The unique identifier for the data set.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The unique identifier for the data set.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The unique identifier for the data set.</p>
*/
inline GetDataSetResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique identifier for the data set.</p>
*/
inline GetDataSetResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set.</p>
*/
inline GetDataSetResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the data set.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the data set.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the data set.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the data set.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the data set.</p>
*/
inline GetDataSetResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the data set.</p>
*/
inline GetDataSetResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the data set.</p>
*/
inline GetDataSetResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline const Origin& GetOrigin() const{ return m_origin; }
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline void SetOrigin(const Origin& value) { m_origin = value; }
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline void SetOrigin(Origin&& value) { m_origin = std::move(value); }
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline GetDataSetResult& WithOrigin(const Origin& value) { SetOrigin(value); return *this;}
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline GetDataSetResult& WithOrigin(Origin&& value) { SetOrigin(std::move(value)); return *this;}
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline const OriginDetails& GetOriginDetails() const{ return m_originDetails; }
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline void SetOriginDetails(const OriginDetails& value) { m_originDetails = value; }
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline void SetOriginDetails(OriginDetails&& value) { m_originDetails = std::move(value); }
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline GetDataSetResult& WithOriginDetails(const OriginDetails& value) { SetOriginDetails(value); return *this;}
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline GetDataSetResult& WithOriginDetails(OriginDetails&& value) { SetOriginDetails(std::move(value)); return *this;}
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline const Aws::String& GetSourceId() const{ return m_sourceId; }
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline void SetSourceId(const Aws::String& value) { m_sourceId = value; }
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline void SetSourceId(Aws::String&& value) { m_sourceId = std::move(value); }
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline void SetSourceId(const char* value) { m_sourceId.assign(value); }
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline GetDataSetResult& WithSourceId(const Aws::String& value) { SetSourceId(value); return *this;}
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline GetDataSetResult& WithSourceId(Aws::String&& value) { SetSourceId(std::move(value)); return *this;}
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline GetDataSetResult& WithSourceId(const char* value) { SetSourceId(value); return *this;}
/**
* <p>The tags for the data set.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags for the data set.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
/**
* <p>The tags for the data set.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
/**
* <p>The tags for the data set.</p>
*/
inline GetDataSetResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags for the data set.</p>
*/
inline GetDataSetResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags for the data set.</p>
*/
inline GetDataSetResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
/**
* <p>The tags for the data set.</p>
*/
inline GetDataSetResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags for the data set.</p>
*/
inline GetDataSetResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags for the data set.</p>
*/
inline GetDataSetResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags for the data set.</p>
*/
inline GetDataSetResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags for the data set.</p>
*/
inline GetDataSetResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags for the data set.</p>
*/
inline GetDataSetResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
/**
* <p>The date and time that the data set 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 data set 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 data set 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 data set was last updated, in ISO 8601 format.</p>
*/
inline GetDataSetResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
/**
* <p>The date and time that the data set was last updated, in ISO 8601 format.</p>
*/
inline GetDataSetResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
private:
Aws::String m_arn;
AssetType m_assetType;
Aws::Utils::DateTime m_createdAt;
Aws::String m_description;
Aws::String m_id;
Aws::String m_name;
Origin m_origin;
OriginDetails m_originDetails;
Aws::String m_sourceId;
Aws::Map<Aws::String, Aws::String> m_tags;
Aws::Utils::DateTime m_updatedAt;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
/**
*/
class AWS_DATAEXCHANGE_API GetJobRequest : public DataExchangeRequest
{
public:
GetJobRequest();
// 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 "GetJob"; }
Aws::String SerializePayload() const override;
/**
* <p>The unique identifier for a job.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The unique identifier for a job.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The unique identifier for a job.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The unique identifier for a job.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The unique identifier for a job.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The unique identifier for a job.</p>
*/
inline GetJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The unique identifier for a job.</p>
*/
inline GetJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a job.</p>
*/
inline GetJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,299 @@
/**
* 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/core/utils/DateTime.h>
#include <aws/dataexchange/model/ResponseDetails.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/dataexchange/model/State.h>
#include <aws/dataexchange/model/Type.h>
#include <aws/dataexchange/model/JobError.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 GetJobResult
{
public:
GetJobResult();
GetJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ARN for the job.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN for the job.</p>
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* <p>The ARN for the job.</p>
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* <p>The ARN for the job.</p>
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* <p>The ARN for the job.</p>
*/
inline GetJobResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN for the job.</p>
*/
inline GetJobResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN for the job.</p>
*/
inline GetJobResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>The date and time that the job was created, in ISO 8601 format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
/**
* <p>The date and time that the job 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 job 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 job was created, in ISO 8601 format.</p>
*/
inline GetJobResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
/**
* <p>The date and time that the job was created, in ISO 8601 format.</p>
*/
inline GetJobResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* <p>Details about the job.</p>
*/
inline const ResponseDetails& GetDetails() const{ return m_details; }
/**
* <p>Details about the job.</p>
*/
inline void SetDetails(const ResponseDetails& value) { m_details = value; }
/**
* <p>Details about the job.</p>
*/
inline void SetDetails(ResponseDetails&& value) { m_details = std::move(value); }
/**
* <p>Details about the job.</p>
*/
inline GetJobResult& WithDetails(const ResponseDetails& value) { SetDetails(value); return *this;}
/**
* <p>Details about the job.</p>
*/
inline GetJobResult& WithDetails(ResponseDetails&& value) { SetDetails(std::move(value)); return *this;}
/**
* <p>The errors associated with jobs.</p>
*/
inline const Aws::Vector<JobError>& GetErrors() const{ return m_errors; }
/**
* <p>The errors associated with jobs.</p>
*/
inline void SetErrors(const Aws::Vector<JobError>& value) { m_errors = value; }
/**
* <p>The errors associated with jobs.</p>
*/
inline void SetErrors(Aws::Vector<JobError>&& value) { m_errors = std::move(value); }
/**
* <p>The errors associated with jobs.</p>
*/
inline GetJobResult& WithErrors(const Aws::Vector<JobError>& value) { SetErrors(value); return *this;}
/**
* <p>The errors associated with jobs.</p>
*/
inline GetJobResult& WithErrors(Aws::Vector<JobError>&& value) { SetErrors(std::move(value)); return *this;}
/**
* <p>The errors associated with jobs.</p>
*/
inline GetJobResult& AddErrors(const JobError& value) { m_errors.push_back(value); return *this; }
/**
* <p>The errors associated with jobs.</p>
*/
inline GetJobResult& AddErrors(JobError&& value) { m_errors.push_back(std::move(value)); return *this; }
/**
* <p>The unique identifier for the job.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The unique identifier for the job.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The unique identifier for the job.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The unique identifier for the job.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The unique identifier for the job.</p>
*/
inline GetJobResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique identifier for the job.</p>
*/
inline GetJobResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the job.</p>
*/
inline GetJobResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The state of the job.</p>
*/
inline const State& GetState() const{ return m_state; }
/**
* <p>The state of the job.</p>
*/
inline void SetState(const State& value) { m_state = value; }
/**
* <p>The state of the job.</p>
*/
inline void SetState(State&& value) { m_state = std::move(value); }
/**
* <p>The state of the job.</p>
*/
inline GetJobResult& WithState(const State& value) { SetState(value); return *this;}
/**
* <p>The state of the job.</p>
*/
inline GetJobResult& WithState(State&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The job type.</p>
*/
inline const Type& GetType() const{ return m_type; }
/**
* <p>The job type.</p>
*/
inline void SetType(const Type& value) { m_type = value; }
/**
* <p>The job type.</p>
*/
inline void SetType(Type&& value) { m_type = std::move(value); }
/**
* <p>The job type.</p>
*/
inline GetJobResult& WithType(const Type& value) { SetType(value); return *this;}
/**
* <p>The job type.</p>
*/
inline GetJobResult& WithType(Type&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The date and time that the job 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 job 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 job 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 job was last updated, in ISO 8601 format.</p>
*/
inline GetJobResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
/**
* <p>The date and time that the job was last updated, in ISO 8601 format.</p>
*/
inline GetJobResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
private:
Aws::String m_arn;
Aws::Utils::DateTime m_createdAt;
ResponseDetails m_details;
Aws::Vector<JobError> m_errors;
Aws::String m_id;
State m_state;
Type m_type;
Aws::Utils::DateTime m_updatedAt;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,127 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
/**
*/
class AWS_DATAEXCHANGE_API GetRevisionRequest : public DataExchangeRequest
{
public:
GetRevisionRequest();
// 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 "GetRevision"; }
Aws::String SerializePayload() const override;
/**
* <p>The unique identifier for a data set.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline GetRevisionRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline GetRevisionRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline GetRevisionRequest& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p>The unique identifier for a revision.</p>
*/
inline GetRevisionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline GetRevisionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline GetRevisionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
private:
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,400 @@
/**
* 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/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSMap.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 GetRevisionResult
{
public:
GetRevisionResult();
GetRevisionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetRevisionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ARN for the revision</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN for the revision</p>
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* <p>The ARN for the revision</p>
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* <p>The ARN for the revision</p>
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* <p>The ARN for the revision</p>
*/
inline GetRevisionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN for the revision</p>
*/
inline GetRevisionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN for the revision</p>
*/
inline GetRevisionResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>An optional comment about the revision.</p>
*/
inline const Aws::String& GetComment() const{ return m_comment; }
/**
* <p>An optional comment about the revision.</p>
*/
inline void SetComment(const Aws::String& value) { m_comment = value; }
/**
* <p>An optional comment about the revision.</p>
*/
inline void SetComment(Aws::String&& value) { m_comment = std::move(value); }
/**
* <p>An optional comment about the revision.</p>
*/
inline void SetComment(const char* value) { m_comment.assign(value); }
/**
* <p>An optional comment about the revision.</p>
*/
inline GetRevisionResult& WithComment(const Aws::String& value) { SetComment(value); return *this;}
/**
* <p>An optional comment about the revision.</p>
*/
inline GetRevisionResult& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
/**
* <p>An optional comment about the revision.</p>
*/
inline GetRevisionResult& WithComment(const char* value) { SetComment(value); return *this;}
/**
* <p>The date and time that the revision was created, in ISO 8601 format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
/**
* <p>The date and time that the revision 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 revision 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 revision was created, in ISO 8601 format.</p>
*/
inline GetRevisionResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
/**
* <p>The date and time that the revision was created, in ISO 8601 format.</p>
*/
inline GetRevisionResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetId = value; }
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetId.assign(value); }
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline GetRevisionResult& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline GetRevisionResult& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline GetRevisionResult& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>To publish a revision to a data set in a product, the revision must first be
* finalized. Finalizing a revision tells AWS Data Exchange that your changes to
* the assets in the revision are complete. After it's in this read-only state, you
* can publish the revision to your products.</p> <p>Finalized revisions can be
* published through the AWS Data Exchange console or the AWS Marketplace Catalog
* API, using the StartChangeSet AWS Marketplace Catalog API action. When using the
* API, revisions are uniquely identified by their ARN.</p>
*/
inline bool GetFinalized() const{ return m_finalized; }
/**
* <p>To publish a revision to a data set in a product, the revision must first be
* finalized. Finalizing a revision tells AWS Data Exchange that your changes to
* the assets in the revision are complete. After it's in this read-only state, you
* can publish the revision to your products.</p> <p>Finalized revisions can be
* published through the AWS Data Exchange console or the AWS Marketplace Catalog
* API, using the StartChangeSet AWS Marketplace Catalog API action. When using the
* API, revisions are uniquely identified by their ARN.</p>
*/
inline void SetFinalized(bool value) { m_finalized = value; }
/**
* <p>To publish a revision to a data set in a product, the revision must first be
* finalized. Finalizing a revision tells AWS Data Exchange that your changes to
* the assets in the revision are complete. After it's in this read-only state, you
* can publish the revision to your products.</p> <p>Finalized revisions can be
* published through the AWS Data Exchange console or the AWS Marketplace Catalog
* API, using the StartChangeSet AWS Marketplace Catalog API action. When using the
* API, revisions are uniquely identified by their ARN.</p>
*/
inline GetRevisionResult& WithFinalized(bool value) { SetFinalized(value); return *this;}
/**
* <p>The unique identifier for the revision.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The unique identifier for the revision.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The unique identifier for the revision.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The unique identifier for the revision.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The unique identifier for the revision.</p>
*/
inline GetRevisionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique identifier for the revision.</p>
*/
inline GetRevisionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the revision.</p>
*/
inline GetRevisionResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline const Aws::String& GetSourceId() const{ return m_sourceId; }
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline void SetSourceId(const Aws::String& value) { m_sourceId = value; }
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline void SetSourceId(Aws::String&& value) { m_sourceId = std::move(value); }
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline void SetSourceId(const char* value) { m_sourceId.assign(value); }
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline GetRevisionResult& WithSourceId(const Aws::String& value) { SetSourceId(value); return *this;}
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline GetRevisionResult& WithSourceId(Aws::String&& value) { SetSourceId(std::move(value)); return *this;}
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline GetRevisionResult& WithSourceId(const char* value) { SetSourceId(value); return *this;}
/**
* <p>The tags for the revision.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags for the revision.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
/**
* <p>The tags for the revision.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
/**
* <p>The tags for the revision.</p>
*/
inline GetRevisionResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags for the revision.</p>
*/
inline GetRevisionResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags for the revision.</p>
*/
inline GetRevisionResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
/**
* <p>The tags for the revision.</p>
*/
inline GetRevisionResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags for the revision.</p>
*/
inline GetRevisionResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags for the revision.</p>
*/
inline GetRevisionResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags for the revision.</p>
*/
inline GetRevisionResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags for the revision.</p>
*/
inline GetRevisionResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags for the revision.</p>
*/
inline GetRevisionResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
/**
* <p>The date and time that the revision 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 revision 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 revision 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 revision was last updated, in ISO 8601 format.</p>
*/
inline GetRevisionResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
/**
* <p>The date and time that the revision was last updated, in ISO 8601 format.</p>
*/
inline GetRevisionResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
private:
Aws::String m_arn;
Aws::String m_comment;
Aws::Utils::DateTime m_createdAt;
Aws::String m_dataSetId;
bool m_finalized;
Aws::String m_id;
Aws::String m_sourceId;
Aws::Map<Aws::String, Aws::String> m_tags;
Aws::Utils::DateTime m_updatedAt;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* 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 <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
class AWS_DATAEXCHANGE_API ImportAssetFromSignedUrlJobErrorDetails
{
public:
ImportAssetFromSignedUrlJobErrorDetails();
ImportAssetFromSignedUrlJobErrorDetails(Aws::Utils::Json::JsonView jsonValue);
ImportAssetFromSignedUrlJobErrorDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetAssetName() const{ return m_assetName; }
inline bool AssetNameHasBeenSet() const { return m_assetNameHasBeenSet; }
inline void SetAssetName(const Aws::String& value) { m_assetNameHasBeenSet = true; m_assetName = value; }
inline void SetAssetName(Aws::String&& value) { m_assetNameHasBeenSet = true; m_assetName = std::move(value); }
inline void SetAssetName(const char* value) { m_assetNameHasBeenSet = true; m_assetName.assign(value); }
inline ImportAssetFromSignedUrlJobErrorDetails& WithAssetName(const Aws::String& value) { SetAssetName(value); return *this;}
inline ImportAssetFromSignedUrlJobErrorDetails& WithAssetName(Aws::String&& value) { SetAssetName(std::move(value)); return *this;}
inline ImportAssetFromSignedUrlJobErrorDetails& WithAssetName(const char* value) { SetAssetName(value); return *this;}
private:
Aws::String m_assetName;
bool m_assetNameHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,245 @@
/**
* 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 <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>Details of the operation to be performed by the job.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ImportAssetFromSignedUrlRequestDetails">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API ImportAssetFromSignedUrlRequestDetails
{
public:
ImportAssetFromSignedUrlRequestDetails();
ImportAssetFromSignedUrlRequestDetails(Aws::Utils::Json::JsonView jsonValue);
ImportAssetFromSignedUrlRequestDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the asset. When importing from Amazon S3, the S3 object key is
* used as the asset name.</p>
*/
inline const Aws::String& GetAssetName() const{ return m_assetName; }
/**
* <p>The name of the asset. When importing from Amazon S3, the S3 object key is
* used as the asset name.</p>
*/
inline bool AssetNameHasBeenSet() const { return m_assetNameHasBeenSet; }
/**
* <p>The name of the asset. When importing from Amazon S3, the S3 object key is
* used as the asset name.</p>
*/
inline void SetAssetName(const Aws::String& value) { m_assetNameHasBeenSet = true; m_assetName = value; }
/**
* <p>The name of the asset. When importing from Amazon S3, the S3 object key is
* used as the asset name.</p>
*/
inline void SetAssetName(Aws::String&& value) { m_assetNameHasBeenSet = true; m_assetName = std::move(value); }
/**
* <p>The name of the asset. When importing from Amazon S3, the S3 object key is
* used as the asset name.</p>
*/
inline void SetAssetName(const char* value) { m_assetNameHasBeenSet = true; m_assetName.assign(value); }
/**
* <p>The name of the asset. When importing from Amazon S3, the S3 object key is
* used as the asset name.</p>
*/
inline ImportAssetFromSignedUrlRequestDetails& WithAssetName(const Aws::String& value) { SetAssetName(value); return *this;}
/**
* <p>The name of the asset. When importing from Amazon S3, the S3 object key is
* used as the asset name.</p>
*/
inline ImportAssetFromSignedUrlRequestDetails& WithAssetName(Aws::String&& value) { SetAssetName(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.</p>
*/
inline ImportAssetFromSignedUrlRequestDetails& WithAssetName(const char* value) { SetAssetName(value); return *this;}
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline ImportAssetFromSignedUrlRequestDetails& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline ImportAssetFromSignedUrlRequestDetails& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline ImportAssetFromSignedUrlRequestDetails& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>The Base64-encoded Md5 hash for the asset, used to ensure the integrity of
* the file at that location.</p>
*/
inline const Aws::String& GetMd5Hash() const{ return m_md5Hash; }
/**
* <p>The Base64-encoded Md5 hash for the asset, used to ensure the integrity of
* the file at that location.</p>
*/
inline bool Md5HashHasBeenSet() const { return m_md5HashHasBeenSet; }
/**
* <p>The Base64-encoded Md5 hash for the asset, used to ensure the integrity of
* the file at that location.</p>
*/
inline void SetMd5Hash(const Aws::String& value) { m_md5HashHasBeenSet = true; m_md5Hash = value; }
/**
* <p>The Base64-encoded Md5 hash for the asset, used to ensure the integrity of
* the file at that location.</p>
*/
inline void SetMd5Hash(Aws::String&& value) { m_md5HashHasBeenSet = true; m_md5Hash = std::move(value); }
/**
* <p>The Base64-encoded Md5 hash for the asset, used to ensure the integrity of
* the file at that location.</p>
*/
inline void SetMd5Hash(const char* value) { m_md5HashHasBeenSet = true; m_md5Hash.assign(value); }
/**
* <p>The Base64-encoded Md5 hash for the asset, used to ensure the integrity of
* the file at that location.</p>
*/
inline ImportAssetFromSignedUrlRequestDetails& WithMd5Hash(const Aws::String& value) { SetMd5Hash(value); return *this;}
/**
* <p>The Base64-encoded Md5 hash for the asset, used to ensure the integrity of
* the file at that location.</p>
*/
inline ImportAssetFromSignedUrlRequestDetails& WithMd5Hash(Aws::String&& value) { SetMd5Hash(std::move(value)); return *this;}
/**
* <p>The Base64-encoded Md5 hash for the asset, used to ensure the integrity of
* the file at that location.</p>
*/
inline ImportAssetFromSignedUrlRequestDetails& WithMd5Hash(const char* value) { SetMd5Hash(value); return *this;}
/**
* <p>The unique identifier for the revision associated with this import
* request.</p>
*/
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
/**
* <p>The unique identifier for the revision associated with this import
* request.</p>
*/
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p>The unique identifier for the revision associated with this import
* request.</p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p>The unique identifier for the revision associated with this import
* request.</p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p>The unique identifier for the revision associated with this import
* request.</p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p>The unique identifier for the revision associated with this import
* request.</p>
*/
inline ImportAssetFromSignedUrlRequestDetails& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>The unique identifier for the revision associated with this import
* request.</p>
*/
inline ImportAssetFromSignedUrlRequestDetails& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the revision associated with this import
* request.</p>
*/
inline ImportAssetFromSignedUrlRequestDetails& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
private:
Aws::String m_assetName;
bool m_assetNameHasBeenSet;
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
Aws::String m_md5Hash;
bool m_md5HashHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,316 @@
/**
* 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/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>The details in the response for an import request, including the signed URL
* and other information.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ImportAssetFromSignedUrlResponseDetails">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API ImportAssetFromSignedUrlResponseDetails
{
public:
ImportAssetFromSignedUrlResponseDetails();
ImportAssetFromSignedUrlResponseDetails(Aws::Utils::Json::JsonView jsonValue);
ImportAssetFromSignedUrlResponseDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name for the asset associated with this import response.</p>
*/
inline const Aws::String& GetAssetName() const{ return m_assetName; }
/**
* <p>The name for the asset associated with this import response.</p>
*/
inline bool AssetNameHasBeenSet() const { return m_assetNameHasBeenSet; }
/**
* <p>The name for the asset associated with this import response.</p>
*/
inline void SetAssetName(const Aws::String& value) { m_assetNameHasBeenSet = true; m_assetName = value; }
/**
* <p>The name for the asset associated with this import response.</p>
*/
inline void SetAssetName(Aws::String&& value) { m_assetNameHasBeenSet = true; m_assetName = std::move(value); }
/**
* <p>The name for the asset associated with this import response.</p>
*/
inline void SetAssetName(const char* value) { m_assetNameHasBeenSet = true; m_assetName.assign(value); }
/**
* <p>The name for the asset associated with this import response.</p>
*/
inline ImportAssetFromSignedUrlResponseDetails& WithAssetName(const Aws::String& value) { SetAssetName(value); return *this;}
/**
* <p>The name for the asset associated with this import response.</p>
*/
inline ImportAssetFromSignedUrlResponseDetails& WithAssetName(Aws::String&& value) { SetAssetName(std::move(value)); return *this;}
/**
* <p>The name for the asset associated with this import response.</p>
*/
inline ImportAssetFromSignedUrlResponseDetails& WithAssetName(const char* value) { SetAssetName(value); return *this;}
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline ImportAssetFromSignedUrlResponseDetails& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline ImportAssetFromSignedUrlResponseDetails& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline ImportAssetFromSignedUrlResponseDetails& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>The Base64-encoded Md5 hash for the asset, used to ensure the integrity of
* the file at that location.</p>
*/
inline const Aws::String& GetMd5Hash() const{ return m_md5Hash; }
/**
* <p>The Base64-encoded Md5 hash for the asset, used to ensure the integrity of
* the file at that location.</p>
*/
inline bool Md5HashHasBeenSet() const { return m_md5HashHasBeenSet; }
/**
* <p>The Base64-encoded Md5 hash for the asset, used to ensure the integrity of
* the file at that location.</p>
*/
inline void SetMd5Hash(const Aws::String& value) { m_md5HashHasBeenSet = true; m_md5Hash = value; }
/**
* <p>The Base64-encoded Md5 hash for the asset, used to ensure the integrity of
* the file at that location.</p>
*/
inline void SetMd5Hash(Aws::String&& value) { m_md5HashHasBeenSet = true; m_md5Hash = std::move(value); }
/**
* <p>The Base64-encoded Md5 hash for the asset, used to ensure the integrity of
* the file at that location.</p>
*/
inline void SetMd5Hash(const char* value) { m_md5HashHasBeenSet = true; m_md5Hash.assign(value); }
/**
* <p>The Base64-encoded Md5 hash for the asset, used to ensure the integrity of
* the file at that location.</p>
*/
inline ImportAssetFromSignedUrlResponseDetails& WithMd5Hash(const Aws::String& value) { SetMd5Hash(value); return *this;}
/**
* <p>The Base64-encoded Md5 hash for the asset, used to ensure the integrity of
* the file at that location.</p>
*/
inline ImportAssetFromSignedUrlResponseDetails& WithMd5Hash(Aws::String&& value) { SetMd5Hash(std::move(value)); return *this;}
/**
* <p>The Base64-encoded Md5 hash for the asset, used to ensure the integrity of
* the file at that location.</p>
*/
inline ImportAssetFromSignedUrlResponseDetails& WithMd5Hash(const char* value) { SetMd5Hash(value); return *this;}
/**
* <p>The unique identifier for the revision associated with this import
* response.</p>
*/
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
/**
* <p>The unique identifier for the revision associated with this import
* response.</p>
*/
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p>The unique identifier for the revision associated with this import
* response.</p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p>The unique identifier for the revision associated with this import
* response.</p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p>The unique identifier for the revision associated with this import
* response.</p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p>The unique identifier for the revision associated with this import
* response.</p>
*/
inline ImportAssetFromSignedUrlResponseDetails& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>The unique identifier for the revision associated with this import
* response.</p>
*/
inline ImportAssetFromSignedUrlResponseDetails& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the revision associated with this import
* response.</p>
*/
inline ImportAssetFromSignedUrlResponseDetails& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
/**
* <p>The signed URL.</p>
*/
inline const Aws::String& GetSignedUrl() const{ return m_signedUrl; }
/**
* <p>The signed URL.</p>
*/
inline bool SignedUrlHasBeenSet() const { return m_signedUrlHasBeenSet; }
/**
* <p>The signed URL.</p>
*/
inline void SetSignedUrl(const Aws::String& value) { m_signedUrlHasBeenSet = true; m_signedUrl = value; }
/**
* <p>The signed URL.</p>
*/
inline void SetSignedUrl(Aws::String&& value) { m_signedUrlHasBeenSet = true; m_signedUrl = std::move(value); }
/**
* <p>The signed URL.</p>
*/
inline void SetSignedUrl(const char* value) { m_signedUrlHasBeenSet = true; m_signedUrl.assign(value); }
/**
* <p>The signed URL.</p>
*/
inline ImportAssetFromSignedUrlResponseDetails& WithSignedUrl(const Aws::String& value) { SetSignedUrl(value); return *this;}
/**
* <p>The signed URL.</p>
*/
inline ImportAssetFromSignedUrlResponseDetails& WithSignedUrl(Aws::String&& value) { SetSignedUrl(std::move(value)); return *this;}
/**
* <p>The signed URL.</p>
*/
inline ImportAssetFromSignedUrlResponseDetails& WithSignedUrl(const char* value) { SetSignedUrl(value); return *this;}
/**
* <p>The time and date at which the signed URL expires, in ISO 8601 format.</p>
*/
inline const Aws::Utils::DateTime& GetSignedUrlExpiresAt() const{ return m_signedUrlExpiresAt; }
/**
* <p>The time and date at which the signed URL expires, in ISO 8601 format.</p>
*/
inline bool SignedUrlExpiresAtHasBeenSet() const { return m_signedUrlExpiresAtHasBeenSet; }
/**
* <p>The time and date at which the signed URL expires, in ISO 8601 format.</p>
*/
inline void SetSignedUrlExpiresAt(const Aws::Utils::DateTime& value) { m_signedUrlExpiresAtHasBeenSet = true; m_signedUrlExpiresAt = value; }
/**
* <p>The time and date at which the signed URL expires, in ISO 8601 format.</p>
*/
inline void SetSignedUrlExpiresAt(Aws::Utils::DateTime&& value) { m_signedUrlExpiresAtHasBeenSet = true; m_signedUrlExpiresAt = std::move(value); }
/**
* <p>The time and date at which the signed URL expires, in ISO 8601 format.</p>
*/
inline ImportAssetFromSignedUrlResponseDetails& WithSignedUrlExpiresAt(const Aws::Utils::DateTime& value) { SetSignedUrlExpiresAt(value); return *this;}
/**
* <p>The time and date at which the signed URL expires, in ISO 8601 format.</p>
*/
inline ImportAssetFromSignedUrlResponseDetails& WithSignedUrlExpiresAt(Aws::Utils::DateTime&& value) { SetSignedUrlExpiresAt(std::move(value)); return *this;}
private:
Aws::String m_assetName;
bool m_assetNameHasBeenSet;
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
Aws::String m_md5Hash;
bool m_md5HashHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
Aws::String m_signedUrl;
bool m_signedUrlHasBeenSet;
Aws::Utils::DateTime m_signedUrlExpiresAt;
bool m_signedUrlExpiresAtHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,187 @@
/**
* 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/dataexchange/model/AssetSourceEntry.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>Details of the operation to be performed by the job.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ImportAssetsFromS3RequestDetails">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API ImportAssetsFromS3RequestDetails
{
public:
ImportAssetsFromS3RequestDetails();
ImportAssetsFromS3RequestDetails(Aws::Utils::Json::JsonView jsonValue);
ImportAssetsFromS3RequestDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Is a list of S3 bucket and object key pairs.</p>
*/
inline const Aws::Vector<AssetSourceEntry>& GetAssetSources() const{ return m_assetSources; }
/**
* <p>Is a list of S3 bucket and object key pairs.</p>
*/
inline bool AssetSourcesHasBeenSet() const { return m_assetSourcesHasBeenSet; }
/**
* <p>Is a list of S3 bucket and object key pairs.</p>
*/
inline void SetAssetSources(const Aws::Vector<AssetSourceEntry>& value) { m_assetSourcesHasBeenSet = true; m_assetSources = value; }
/**
* <p>Is a list of S3 bucket and object key pairs.</p>
*/
inline void SetAssetSources(Aws::Vector<AssetSourceEntry>&& value) { m_assetSourcesHasBeenSet = true; m_assetSources = std::move(value); }
/**
* <p>Is a list of S3 bucket and object key pairs.</p>
*/
inline ImportAssetsFromS3RequestDetails& WithAssetSources(const Aws::Vector<AssetSourceEntry>& value) { SetAssetSources(value); return *this;}
/**
* <p>Is a list of S3 bucket and object key pairs.</p>
*/
inline ImportAssetsFromS3RequestDetails& WithAssetSources(Aws::Vector<AssetSourceEntry>&& value) { SetAssetSources(std::move(value)); return *this;}
/**
* <p>Is a list of S3 bucket and object key pairs.</p>
*/
inline ImportAssetsFromS3RequestDetails& AddAssetSources(const AssetSourceEntry& value) { m_assetSourcesHasBeenSet = true; m_assetSources.push_back(value); return *this; }
/**
* <p>Is a list of S3 bucket and object key pairs.</p>
*/
inline ImportAssetsFromS3RequestDetails& AddAssetSources(AssetSourceEntry&& value) { m_assetSourcesHasBeenSet = true; m_assetSources.push_back(std::move(value)); return *this; }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline ImportAssetsFromS3RequestDetails& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline ImportAssetsFromS3RequestDetails& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline ImportAssetsFromS3RequestDetails& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for the revision associated with this import
* request.</p>
*/
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
/**
* <p>The unique identifier for the revision associated with this import
* request.</p>
*/
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p>The unique identifier for the revision associated with this import
* request.</p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p>The unique identifier for the revision associated with this import
* request.</p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p>The unique identifier for the revision associated with this import
* request.</p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p>The unique identifier for the revision associated with this import
* request.</p>
*/
inline ImportAssetsFromS3RequestDetails& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>The unique identifier for the revision associated with this import
* request.</p>
*/
inline ImportAssetsFromS3RequestDetails& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the revision associated with this import
* request.</p>
*/
inline ImportAssetsFromS3RequestDetails& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
private:
Aws::Vector<AssetSourceEntry> m_assetSources;
bool m_assetSourcesHasBeenSet;
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,186 @@
/**
* 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/dataexchange/model/AssetSourceEntry.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>Details from an import from Amazon S3 response.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ImportAssetsFromS3ResponseDetails">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API ImportAssetsFromS3ResponseDetails
{
public:
ImportAssetsFromS3ResponseDetails();
ImportAssetsFromS3ResponseDetails(Aws::Utils::Json::JsonView jsonValue);
ImportAssetsFromS3ResponseDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Is a list of Amazon S3 bucket and object key pairs.</p>
*/
inline const Aws::Vector<AssetSourceEntry>& GetAssetSources() const{ return m_assetSources; }
/**
* <p>Is a list of Amazon S3 bucket and object key pairs.</p>
*/
inline bool AssetSourcesHasBeenSet() const { return m_assetSourcesHasBeenSet; }
/**
* <p>Is a list of Amazon S3 bucket and object key pairs.</p>
*/
inline void SetAssetSources(const Aws::Vector<AssetSourceEntry>& value) { m_assetSourcesHasBeenSet = true; m_assetSources = value; }
/**
* <p>Is a list of Amazon S3 bucket and object key pairs.</p>
*/
inline void SetAssetSources(Aws::Vector<AssetSourceEntry>&& value) { m_assetSourcesHasBeenSet = true; m_assetSources = std::move(value); }
/**
* <p>Is a list of Amazon S3 bucket and object key pairs.</p>
*/
inline ImportAssetsFromS3ResponseDetails& WithAssetSources(const Aws::Vector<AssetSourceEntry>& value) { SetAssetSources(value); return *this;}
/**
* <p>Is a list of Amazon S3 bucket and object key pairs.</p>
*/
inline ImportAssetsFromS3ResponseDetails& WithAssetSources(Aws::Vector<AssetSourceEntry>&& value) { SetAssetSources(std::move(value)); return *this;}
/**
* <p>Is a list of Amazon S3 bucket and object key pairs.</p>
*/
inline ImportAssetsFromS3ResponseDetails& AddAssetSources(const AssetSourceEntry& value) { m_assetSourcesHasBeenSet = true; m_assetSources.push_back(value); return *this; }
/**
* <p>Is a list of Amazon S3 bucket and object key pairs.</p>
*/
inline ImportAssetsFromS3ResponseDetails& AddAssetSources(AssetSourceEntry&& value) { m_assetSourcesHasBeenSet = true; m_assetSources.push_back(std::move(value)); return *this; }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline ImportAssetsFromS3ResponseDetails& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline ImportAssetsFromS3ResponseDetails& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set associated with this import job.</p>
*/
inline ImportAssetsFromS3ResponseDetails& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for the revision associated with this import
* response.</p>
*/
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
/**
* <p>The unique identifier for the revision associated with this import
* response.</p>
*/
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p>The unique identifier for the revision associated with this import
* response.</p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p>The unique identifier for the revision associated with this import
* response.</p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p>The unique identifier for the revision associated with this import
* response.</p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p>The unique identifier for the revision associated with this import
* response.</p>
*/
inline ImportAssetsFromS3ResponseDetails& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>The unique identifier for the revision associated with this import
* response.</p>
*/
inline ImportAssetsFromS3ResponseDetails& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the revision associated with this import
* response.</p>
*/
inline ImportAssetsFromS3ResponseDetails& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
private:
Aws::Vector<AssetSourceEntry> m_assetSources;
bool m_assetSourcesHasBeenSet;
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,361 @@
/**
* 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/core/utils/DateTime.h>
#include <aws/dataexchange/model/ResponseDetails.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/dataexchange/model/State.h>
#include <aws/dataexchange/model/Type.h>
#include <aws/dataexchange/model/JobError.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* AWS Data Exchange Jobs are asynchronous import or export operations used to
* create or copy assets. A data set owner can both import and export as they see
* fit. Someone with an entitlement to a data set can only export. Jobs are deleted
* 90 days after they are created.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/JobEntry">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API JobEntry
{
public:
JobEntry();
JobEntry(Aws::Utils::Json::JsonView jsonValue);
JobEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN for the job.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN for the job.</p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p>The ARN for the job.</p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p>The ARN for the job.</p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p>The ARN for the job.</p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p>The ARN for the job.</p>
*/
inline JobEntry& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN for the job.</p>
*/
inline JobEntry& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN for the job.</p>
*/
inline JobEntry& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>The date and time that the job was created, in ISO 8601 format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
/**
* <p>The date and time that the job was created, in ISO 8601 format.</p>
*/
inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
/**
* <p>The date and time that the job was created, in ISO 8601 format.</p>
*/
inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
/**
* <p>The date and time that the job was created, in ISO 8601 format.</p>
*/
inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
/**
* <p>The date and time that the job was created, in ISO 8601 format.</p>
*/
inline JobEntry& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
/**
* <p>The date and time that the job was created, in ISO 8601 format.</p>
*/
inline JobEntry& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* <p>Details of the operation to be performed by the job, such as export
* destination details or import source details.</p>
*/
inline const ResponseDetails& GetDetails() const{ return m_details; }
/**
* <p>Details of the operation to be performed by the job, such as export
* destination details or import source details.</p>
*/
inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
/**
* <p>Details of the operation to be performed by the job, such as export
* destination details or import source details.</p>
*/
inline void SetDetails(const ResponseDetails& value) { m_detailsHasBeenSet = true; m_details = value; }
/**
* <p>Details of the operation to be performed by the job, such as export
* destination details or import source details.</p>
*/
inline void SetDetails(ResponseDetails&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
/**
* <p>Details of the operation to be performed by the job, such as export
* destination details or import source details.</p>
*/
inline JobEntry& WithDetails(const ResponseDetails& value) { SetDetails(value); return *this;}
/**
* <p>Details of the operation to be performed by the job, such as export
* destination details or import source details.</p>
*/
inline JobEntry& WithDetails(ResponseDetails&& value) { SetDetails(std::move(value)); return *this;}
/**
* <p>Errors for jobs.</p>
*/
inline const Aws::Vector<JobError>& GetErrors() const{ return m_errors; }
/**
* <p>Errors for jobs.</p>
*/
inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
/**
* <p>Errors for jobs.</p>
*/
inline void SetErrors(const Aws::Vector<JobError>& value) { m_errorsHasBeenSet = true; m_errors = value; }
/**
* <p>Errors for jobs.</p>
*/
inline void SetErrors(Aws::Vector<JobError>&& value) { m_errorsHasBeenSet = true; m_errors = std::move(value); }
/**
* <p>Errors for jobs.</p>
*/
inline JobEntry& WithErrors(const Aws::Vector<JobError>& value) { SetErrors(value); return *this;}
/**
* <p>Errors for jobs.</p>
*/
inline JobEntry& WithErrors(Aws::Vector<JobError>&& value) { SetErrors(std::move(value)); return *this;}
/**
* <p>Errors for jobs.</p>
*/
inline JobEntry& AddErrors(const JobError& value) { m_errorsHasBeenSet = true; m_errors.push_back(value); return *this; }
/**
* <p>Errors for jobs.</p>
*/
inline JobEntry& AddErrors(JobError&& value) { m_errorsHasBeenSet = true; m_errors.push_back(std::move(value)); return *this; }
/**
* <p>The unique identifier for the job.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The unique identifier for the job.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The unique identifier for the job.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The unique identifier for the job.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The unique identifier for the job.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The unique identifier for the job.</p>
*/
inline JobEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique identifier for the job.</p>
*/
inline JobEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the job.</p>
*/
inline JobEntry& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The state of the job.</p>
*/
inline const State& GetState() const{ return m_state; }
/**
* <p>The state of the job.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The state of the job.</p>
*/
inline void SetState(const State& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The state of the job.</p>
*/
inline void SetState(State&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The state of the job.</p>
*/
inline JobEntry& WithState(const State& value) { SetState(value); return *this;}
/**
* <p>The state of the job.</p>
*/
inline JobEntry& WithState(State&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The job type.</p>
*/
inline const Type& GetType() const{ return m_type; }
/**
* <p>The job type.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The job type.</p>
*/
inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The job type.</p>
*/
inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The job type.</p>
*/
inline JobEntry& WithType(const Type& value) { SetType(value); return *this;}
/**
* <p>The job type.</p>
*/
inline JobEntry& WithType(Type&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The date and time that the job 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 job was last updated, in ISO 8601 format.</p>
*/
inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
/**
* <p>The date and time that the job was last updated, in ISO 8601 format.</p>
*/
inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
/**
* <p>The date and time that the job was last updated, in ISO 8601 format.</p>
*/
inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
/**
* <p>The date and time that the job was last updated, in ISO 8601 format.</p>
*/
inline JobEntry& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
/**
* <p>The date and time that the job was last updated, in ISO 8601 format.</p>
*/
inline JobEntry& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
Aws::Utils::DateTime m_createdAt;
bool m_createdAtHasBeenSet;
ResponseDetails m_details;
bool m_detailsHasBeenSet;
Aws::Vector<JobError> m_errors;
bool m_errorsHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
State m_state;
bool m_stateHasBeenSet;
Type m_type;
bool m_typeHasBeenSet;
Aws::Utils::DateTime m_updatedAt;
bool m_updatedAtHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,284 @@
/**
* 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/dataexchange/model/Code.h>
#include <aws/dataexchange/model/Details.h>
#include <aws/dataexchange/model/JobErrorLimitName.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/dataexchange/model/JobErrorResourceTypes.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* An error that occurred with the job request.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/JobError">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API JobError
{
public:
JobError();
JobError(Aws::Utils::Json::JsonView jsonValue);
JobError& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The code for the job error.
*/
inline const Code& GetCode() const{ return m_code; }
/**
* The code for the job error.
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* The code for the job error.
*/
inline void SetCode(const Code& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* The code for the job error.
*/
inline void SetCode(Code&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* The code for the job error.
*/
inline JobError& WithCode(const Code& value) { SetCode(value); return *this;}
/**
* The code for the job error.
*/
inline JobError& WithCode(Code&& value) { SetCode(std::move(value)); return *this;}
inline const Details& GetDetails() const{ return m_details; }
inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
inline void SetDetails(const Details& value) { m_detailsHasBeenSet = true; m_details = value; }
inline void SetDetails(Details&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
inline JobError& WithDetails(const Details& value) { SetDetails(value); return *this;}
inline JobError& WithDetails(Details&& value) { SetDetails(std::move(value)); return *this;}
/**
* <p>The name of the limit that was reached.</p>
*/
inline const JobErrorLimitName& GetLimitName() const{ return m_limitName; }
/**
* <p>The name of the limit that was reached.</p>
*/
inline bool LimitNameHasBeenSet() const { return m_limitNameHasBeenSet; }
/**
* <p>The name of the limit that was reached.</p>
*/
inline void SetLimitName(const JobErrorLimitName& value) { m_limitNameHasBeenSet = true; m_limitName = value; }
/**
* <p>The name of the limit that was reached.</p>
*/
inline void SetLimitName(JobErrorLimitName&& value) { m_limitNameHasBeenSet = true; m_limitName = std::move(value); }
/**
* <p>The name of the limit that was reached.</p>
*/
inline JobError& WithLimitName(const JobErrorLimitName& value) { SetLimitName(value); return *this;}
/**
* <p>The name of the limit that was reached.</p>
*/
inline JobError& WithLimitName(JobErrorLimitName&& value) { SetLimitName(std::move(value)); return *this;}
/**
* The value of the exceeded limit.
*/
inline double GetLimitValue() const{ return m_limitValue; }
/**
* The value of the exceeded limit.
*/
inline bool LimitValueHasBeenSet() const { return m_limitValueHasBeenSet; }
/**
* The value of the exceeded limit.
*/
inline void SetLimitValue(double value) { m_limitValueHasBeenSet = true; m_limitValue = value; }
/**
* The value of the exceeded limit.
*/
inline JobError& WithLimitValue(double value) { SetLimitValue(value); return *this;}
/**
* The message related to the job error.
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* The message related to the job error.
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* The message related to the job error.
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* The message related to the job error.
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* The message related to the job error.
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* The message related to the job error.
*/
inline JobError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* The message related to the job error.
*/
inline JobError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* The message related to the job error.
*/
inline JobError& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* The unique identifier for the resource related to the error.
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* The unique identifier for the resource related to the error.
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* The unique identifier for the resource related to the error.
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* The unique identifier for the resource related to the error.
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* The unique identifier for the resource related to the error.
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* The unique identifier for the resource related to the error.
*/
inline JobError& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* The unique identifier for the resource related to the error.
*/
inline JobError& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* The unique identifier for the resource related to the error.
*/
inline JobError& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* The type of resource related to the error.
*/
inline const JobErrorResourceTypes& GetResourceType() const{ return m_resourceType; }
/**
* The type of resource related to the error.
*/
inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
/**
* The type of resource related to the error.
*/
inline void SetResourceType(const JobErrorResourceTypes& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
/**
* The type of resource related to the error.
*/
inline void SetResourceType(JobErrorResourceTypes&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
/**
* The type of resource related to the error.
*/
inline JobError& WithResourceType(const JobErrorResourceTypes& value) { SetResourceType(value); return *this;}
/**
* The type of resource related to the error.
*/
inline JobError& WithResourceType(JobErrorResourceTypes&& value) { SetResourceType(std::move(value)); return *this;}
private:
Code m_code;
bool m_codeHasBeenSet;
Details m_details;
bool m_detailsHasBeenSet;
JobErrorLimitName m_limitName;
bool m_limitNameHasBeenSet;
double m_limitValue;
bool m_limitValueHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
JobErrorResourceTypes m_resourceType;
bool m_resourceTypeHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* 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>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
enum class JobErrorLimitName
{
NOT_SET,
Assets_per_revision,
Asset_size_in_GB
};
namespace JobErrorLimitNameMapper
{
AWS_DATAEXCHANGE_API JobErrorLimitName GetJobErrorLimitNameForName(const Aws::String& name);
AWS_DATAEXCHANGE_API Aws::String GetNameForJobErrorLimitName(JobErrorLimitName value);
} // namespace JobErrorLimitNameMapper
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* 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>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
enum class JobErrorResourceTypes
{
NOT_SET,
REVISION,
ASSET
};
namespace JobErrorResourceTypesMapper
{
AWS_DATAEXCHANGE_API JobErrorResourceTypes GetJobErrorResourceTypesForName(const Aws::String& name);
AWS_DATAEXCHANGE_API Aws::String GetNameForJobErrorResourceTypes(JobErrorResourceTypes value);
} // namespace JobErrorResourceTypesMapper
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,41 @@
/**
* 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>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
enum class LimitName
{
NOT_SET,
Products_per_account,
Data_sets_per_account,
Data_sets_per_product,
Revisions_per_data_set,
Assets_per_revision,
Assets_per_import_job_from_Amazon_S3,
Asset_per_export_job_from_Amazon_S3,
Asset_size_in_GB,
Concurrent_in_progress_jobs_to_import_assets_from_Amazon_S3,
Concurrent_in_progress_jobs_to_import_assets_from_a_signed_URL,
Concurrent_in_progress_jobs_to_export_assets_to_Amazon_S3,
Concurrent_in_progress_jobs_to_export_assets_to_a_signed_URL
};
namespace LimitNameMapper
{
AWS_DATAEXCHANGE_API LimitName GetLimitNameForName(const Aws::String& name);
AWS_DATAEXCHANGE_API Aws::String GetNameForLimitName(LimitName value);
} // namespace LimitNameMapper
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,165 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace DataExchange
{
namespace Model
{
/**
*/
class AWS_DATAEXCHANGE_API ListDataSetRevisionsRequest : public DataExchangeRequest
{
public:
ListDataSetRevisionsRequest();
// 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 "ListDataSetRevisions"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The unique identifier for a data set.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline ListDataSetRevisionsRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline ListDataSetRevisionsRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline ListDataSetRevisionsRequest& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>The maximum number of results returned by a single call.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results returned by a single call.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results returned by a single call.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results returned by a single call.</p>
*/
inline ListDataSetRevisionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListDataSetRevisionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListDataSetRevisionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListDataSetRevisionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* 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/core/utils/memory/stl/AWSVector.h>
#include <aws/dataexchange/model/RevisionEntry.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 ListDataSetRevisionsResult
{
public:
ListDataSetRevisionsResult();
ListDataSetRevisionsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListDataSetRevisionsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListDataSetRevisionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListDataSetRevisionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListDataSetRevisionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The asset objects listed by the request.</p>
*/
inline const Aws::Vector<RevisionEntry>& GetRevisions() const{ return m_revisions; }
/**
* <p>The asset objects listed by the request.</p>
*/
inline void SetRevisions(const Aws::Vector<RevisionEntry>& value) { m_revisions = value; }
/**
* <p>The asset objects listed by the request.</p>
*/
inline void SetRevisions(Aws::Vector<RevisionEntry>&& value) { m_revisions = std::move(value); }
/**
* <p>The asset objects listed by the request.</p>
*/
inline ListDataSetRevisionsResult& WithRevisions(const Aws::Vector<RevisionEntry>& value) { SetRevisions(value); return *this;}
/**
* <p>The asset objects listed by the request.</p>
*/
inline ListDataSetRevisionsResult& WithRevisions(Aws::Vector<RevisionEntry>&& value) { SetRevisions(std::move(value)); return *this;}
/**
* <p>The asset objects listed by the request.</p>
*/
inline ListDataSetRevisionsResult& AddRevisions(const RevisionEntry& value) { m_revisions.push_back(value); return *this; }
/**
* <p>The asset objects listed by the request.</p>
*/
inline ListDataSetRevisionsResult& AddRevisions(RevisionEntry&& value) { m_revisions.push_back(std::move(value)); return *this; }
private:
Aws::String m_nextToken;
Aws::Vector<RevisionEntry> m_revisions;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,173 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace DataExchange
{
namespace Model
{
/**
*/
class AWS_DATAEXCHANGE_API ListDataSetsRequest : public DataExchangeRequest
{
public:
ListDataSetsRequest();
// 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 "ListDataSets"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The maximum number of results returned by a single call.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results returned by a single call.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results returned by a single call.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results returned by a single call.</p>
*/
inline ListDataSetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListDataSetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListDataSetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListDataSetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline const Aws::String& GetOrigin() const{ return m_origin; }
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline void SetOrigin(const Aws::String& value) { m_originHasBeenSet = true; m_origin = value; }
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline void SetOrigin(Aws::String&& value) { m_originHasBeenSet = true; m_origin = std::move(value); }
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline void SetOrigin(const char* value) { m_originHasBeenSet = true; m_origin.assign(value); }
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline ListDataSetsRequest& WithOrigin(const Aws::String& value) { SetOrigin(value); return *this;}
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline ListDataSetsRequest& WithOrigin(Aws::String&& value) { SetOrigin(std::move(value)); return *this;}
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline ListDataSetsRequest& WithOrigin(const char* value) { SetOrigin(value); return *this;}
private:
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
Aws::String m_origin;
bool m_originHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/dataexchange/model/DataSetEntry.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 ListDataSetsResult
{
public:
ListDataSetsResult();
ListDataSetsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListDataSetsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The data set objects listed by the request.</p>
*/
inline const Aws::Vector<DataSetEntry>& GetDataSets() const{ return m_dataSets; }
/**
* <p>The data set objects listed by the request.</p>
*/
inline void SetDataSets(const Aws::Vector<DataSetEntry>& value) { m_dataSets = value; }
/**
* <p>The data set objects listed by the request.</p>
*/
inline void SetDataSets(Aws::Vector<DataSetEntry>&& value) { m_dataSets = std::move(value); }
/**
* <p>The data set objects listed by the request.</p>
*/
inline ListDataSetsResult& WithDataSets(const Aws::Vector<DataSetEntry>& value) { SetDataSets(value); return *this;}
/**
* <p>The data set objects listed by the request.</p>
*/
inline ListDataSetsResult& WithDataSets(Aws::Vector<DataSetEntry>&& value) { SetDataSets(std::move(value)); return *this;}
/**
* <p>The data set objects listed by the request.</p>
*/
inline ListDataSetsResult& AddDataSets(const DataSetEntry& value) { m_dataSets.push_back(value); return *this; }
/**
* <p>The data set objects listed by the request.</p>
*/
inline ListDataSetsResult& AddDataSets(DataSetEntry&& value) { m_dataSets.push_back(std::move(value)); return *this; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListDataSetsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListDataSetsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListDataSetsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<DataSetEntry> m_dataSets;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,209 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace DataExchange
{
namespace Model
{
/**
*/
class AWS_DATAEXCHANGE_API ListJobsRequest : public DataExchangeRequest
{
public:
ListJobsRequest();
// 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 "ListJobs"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The unique identifier for a data set.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline ListJobsRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline ListJobsRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline ListJobsRequest& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>The maximum number of results returned by a single call.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results returned by a single call.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results returned by a single call.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results returned by a single call.</p>
*/
inline ListJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p>The unique identifier for a revision.</p>
*/
inline ListJobsRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline ListJobsRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline ListJobsRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
private:
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/dataexchange/model/JobEntry.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 ListJobsResult
{
public:
ListJobsResult();
ListJobsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListJobsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The jobs listed by the request.</p>
*/
inline const Aws::Vector<JobEntry>& GetJobs() const{ return m_jobs; }
/**
* <p>The jobs listed by the request.</p>
*/
inline void SetJobs(const Aws::Vector<JobEntry>& value) { m_jobs = value; }
/**
* <p>The jobs listed by the request.</p>
*/
inline void SetJobs(Aws::Vector<JobEntry>&& value) { m_jobs = std::move(value); }
/**
* <p>The jobs listed by the request.</p>
*/
inline ListJobsResult& WithJobs(const Aws::Vector<JobEntry>& value) { SetJobs(value); return *this;}
/**
* <p>The jobs listed by the request.</p>
*/
inline ListJobsResult& WithJobs(Aws::Vector<JobEntry>&& value) { SetJobs(std::move(value)); return *this;}
/**
* <p>The jobs listed by the request.</p>
*/
inline ListJobsResult& AddJobs(const JobEntry& value) { m_jobs.push_back(value); return *this; }
/**
* <p>The jobs listed by the request.</p>
*/
inline ListJobsResult& AddJobs(JobEntry&& value) { m_jobs.push_back(std::move(value)); return *this; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListJobsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListJobsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListJobsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<JobEntry> m_jobs;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,209 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace DataExchange
{
namespace Model
{
/**
*/
class AWS_DATAEXCHANGE_API ListRevisionAssetsRequest : public DataExchangeRequest
{
public:
ListRevisionAssetsRequest();
// 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 "ListRevisionAssets"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The unique identifier for a data set.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline ListRevisionAssetsRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline ListRevisionAssetsRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline ListRevisionAssetsRequest& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>The maximum number of results returned by a single call.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results returned by a single call.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results returned by a single call.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results returned by a single call.</p>
*/
inline ListRevisionAssetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListRevisionAssetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListRevisionAssetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListRevisionAssetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p>The unique identifier for a revision.</p>
*/
inline ListRevisionAssetsRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline ListRevisionAssetsRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline ListRevisionAssetsRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
private:
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/dataexchange/model/AssetEntry.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 ListRevisionAssetsResult
{
public:
ListRevisionAssetsResult();
ListRevisionAssetsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListRevisionAssetsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The asset objects listed by the request.</p>
*/
inline const Aws::Vector<AssetEntry>& GetAssets() const{ return m_assets; }
/**
* <p>The asset objects listed by the request.</p>
*/
inline void SetAssets(const Aws::Vector<AssetEntry>& value) { m_assets = value; }
/**
* <p>The asset objects listed by the request.</p>
*/
inline void SetAssets(Aws::Vector<AssetEntry>&& value) { m_assets = std::move(value); }
/**
* <p>The asset objects listed by the request.</p>
*/
inline ListRevisionAssetsResult& WithAssets(const Aws::Vector<AssetEntry>& value) { SetAssets(value); return *this;}
/**
* <p>The asset objects listed by the request.</p>
*/
inline ListRevisionAssetsResult& WithAssets(Aws::Vector<AssetEntry>&& value) { SetAssets(std::move(value)); return *this;}
/**
* <p>The asset objects listed by the request.</p>
*/
inline ListRevisionAssetsResult& AddAssets(const AssetEntry& value) { m_assets.push_back(value); return *this; }
/**
* <p>The asset objects listed by the request.</p>
*/
inline ListRevisionAssetsResult& AddAssets(AssetEntry&& value) { m_assets.push_back(std::move(value)); return *this; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListRevisionAssetsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListRevisionAssetsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token value retrieved from a previous call to access the next page of
* results.</p>
*/
inline ListRevisionAssetsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<AssetEntry> m_assets;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
/**
*/
class AWS_DATAEXCHANGE_API ListTagsForResourceRequest : public DataExchangeRequest
{
public:
ListTagsForResourceRequest();
// 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 "ListTagsForResource"; }
Aws::String SerializePayload() const override;
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,103 @@
/**
* 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/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.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 ListTagsForResourceResult
{
public:
ListTagsForResourceResult();
ListTagsForResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListTagsForResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline ListTagsForResourceResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline ListTagsForResourceResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline ListTagsForResourceResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline ListTagsForResourceResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline ListTagsForResourceResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline ListTagsForResourceResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline ListTagsForResourceResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline ListTagsForResourceResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline ListTagsForResourceResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
private:
Aws::Map<Aws::String, Aws::String> m_tags;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* 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>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
enum class Origin
{
NOT_SET,
OWNED,
ENTITLED
};
namespace OriginMapper
{
AWS_DATAEXCHANGE_API Origin GetOriginForName(const Aws::String& name);
AWS_DATAEXCHANGE_API Aws::String GetNameForOrigin(Origin value);
} // namespace OriginMapper
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* 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 <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
class AWS_DATAEXCHANGE_API OriginDetails
{
public:
OriginDetails();
OriginDetails(Aws::Utils::Json::JsonView jsonValue);
OriginDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetProductId() const{ return m_productId; }
inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; }
inline void SetProductId(const Aws::String& value) { m_productIdHasBeenSet = true; m_productId = value; }
inline void SetProductId(Aws::String&& value) { m_productIdHasBeenSet = true; m_productId = std::move(value); }
inline void SetProductId(const char* value) { m_productIdHasBeenSet = true; m_productId.assign(value); }
inline OriginDetails& WithProductId(const Aws::String& value) { SetProductId(value); return *this;}
inline OriginDetails& WithProductId(Aws::String&& value) { SetProductId(std::move(value)); return *this;}
inline OriginDetails& WithProductId(const char* value) { SetProductId(value); return *this;}
private:
Aws::String m_productId;
bool m_productIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,183 @@
/**
* 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/dataexchange/model/ExportAssetToSignedUrlRequestDetails.h>
#include <aws/dataexchange/model/ExportAssetsToS3RequestDetails.h>
#include <aws/dataexchange/model/ImportAssetFromSignedUrlRequestDetails.h>
#include <aws/dataexchange/model/ImportAssetsFromS3RequestDetails.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>The details for the request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/RequestDetails">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API RequestDetails
{
public:
RequestDetails();
RequestDetails(Aws::Utils::Json::JsonView jsonValue);
RequestDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Details about the export to signed URL request.</p>
*/
inline const ExportAssetToSignedUrlRequestDetails& GetExportAssetToSignedUrl() const{ return m_exportAssetToSignedUrl; }
/**
* <p>Details about the export to signed URL request.</p>
*/
inline bool ExportAssetToSignedUrlHasBeenSet() const { return m_exportAssetToSignedUrlHasBeenSet; }
/**
* <p>Details about the export to signed URL request.</p>
*/
inline void SetExportAssetToSignedUrl(const ExportAssetToSignedUrlRequestDetails& value) { m_exportAssetToSignedUrlHasBeenSet = true; m_exportAssetToSignedUrl = value; }
/**
* <p>Details about the export to signed URL request.</p>
*/
inline void SetExportAssetToSignedUrl(ExportAssetToSignedUrlRequestDetails&& value) { m_exportAssetToSignedUrlHasBeenSet = true; m_exportAssetToSignedUrl = std::move(value); }
/**
* <p>Details about the export to signed URL request.</p>
*/
inline RequestDetails& WithExportAssetToSignedUrl(const ExportAssetToSignedUrlRequestDetails& value) { SetExportAssetToSignedUrl(value); return *this;}
/**
* <p>Details about the export to signed URL request.</p>
*/
inline RequestDetails& WithExportAssetToSignedUrl(ExportAssetToSignedUrlRequestDetails&& value) { SetExportAssetToSignedUrl(std::move(value)); return *this;}
/**
* <p>Details about the export to Amazon S3 request.</p>
*/
inline const ExportAssetsToS3RequestDetails& GetExportAssetsToS3() const{ return m_exportAssetsToS3; }
/**
* <p>Details about the export to Amazon S3 request.</p>
*/
inline bool ExportAssetsToS3HasBeenSet() const { return m_exportAssetsToS3HasBeenSet; }
/**
* <p>Details about the export to Amazon S3 request.</p>
*/
inline void SetExportAssetsToS3(const ExportAssetsToS3RequestDetails& value) { m_exportAssetsToS3HasBeenSet = true; m_exportAssetsToS3 = value; }
/**
* <p>Details about the export to Amazon S3 request.</p>
*/
inline void SetExportAssetsToS3(ExportAssetsToS3RequestDetails&& value) { m_exportAssetsToS3HasBeenSet = true; m_exportAssetsToS3 = std::move(value); }
/**
* <p>Details about the export to Amazon S3 request.</p>
*/
inline RequestDetails& WithExportAssetsToS3(const ExportAssetsToS3RequestDetails& value) { SetExportAssetsToS3(value); return *this;}
/**
* <p>Details about the export to Amazon S3 request.</p>
*/
inline RequestDetails& WithExportAssetsToS3(ExportAssetsToS3RequestDetails&& value) { SetExportAssetsToS3(std::move(value)); return *this;}
/**
* <p>Details about the import from signed URL request.</p>
*/
inline const ImportAssetFromSignedUrlRequestDetails& GetImportAssetFromSignedUrl() const{ return m_importAssetFromSignedUrl; }
/**
* <p>Details about the import from signed URL request.</p>
*/
inline bool ImportAssetFromSignedUrlHasBeenSet() const { return m_importAssetFromSignedUrlHasBeenSet; }
/**
* <p>Details about the import from signed URL request.</p>
*/
inline void SetImportAssetFromSignedUrl(const ImportAssetFromSignedUrlRequestDetails& value) { m_importAssetFromSignedUrlHasBeenSet = true; m_importAssetFromSignedUrl = value; }
/**
* <p>Details about the import from signed URL request.</p>
*/
inline void SetImportAssetFromSignedUrl(ImportAssetFromSignedUrlRequestDetails&& value) { m_importAssetFromSignedUrlHasBeenSet = true; m_importAssetFromSignedUrl = std::move(value); }
/**
* <p>Details about the import from signed URL request.</p>
*/
inline RequestDetails& WithImportAssetFromSignedUrl(const ImportAssetFromSignedUrlRequestDetails& value) { SetImportAssetFromSignedUrl(value); return *this;}
/**
* <p>Details about the import from signed URL request.</p>
*/
inline RequestDetails& WithImportAssetFromSignedUrl(ImportAssetFromSignedUrlRequestDetails&& value) { SetImportAssetFromSignedUrl(std::move(value)); return *this;}
/**
* <p>Details about the import from Amazon S3 request.</p>
*/
inline const ImportAssetsFromS3RequestDetails& GetImportAssetsFromS3() const{ return m_importAssetsFromS3; }
/**
* <p>Details about the import from Amazon S3 request.</p>
*/
inline bool ImportAssetsFromS3HasBeenSet() const { return m_importAssetsFromS3HasBeenSet; }
/**
* <p>Details about the import from Amazon S3 request.</p>
*/
inline void SetImportAssetsFromS3(const ImportAssetsFromS3RequestDetails& value) { m_importAssetsFromS3HasBeenSet = true; m_importAssetsFromS3 = value; }
/**
* <p>Details about the import from Amazon S3 request.</p>
*/
inline void SetImportAssetsFromS3(ImportAssetsFromS3RequestDetails&& value) { m_importAssetsFromS3HasBeenSet = true; m_importAssetsFromS3 = std::move(value); }
/**
* <p>Details about the import from Amazon S3 request.</p>
*/
inline RequestDetails& WithImportAssetsFromS3(const ImportAssetsFromS3RequestDetails& value) { SetImportAssetsFromS3(value); return *this;}
/**
* <p>Details about the import from Amazon S3 request.</p>
*/
inline RequestDetails& WithImportAssetsFromS3(ImportAssetsFromS3RequestDetails&& value) { SetImportAssetsFromS3(std::move(value)); return *this;}
private:
ExportAssetToSignedUrlRequestDetails m_exportAssetToSignedUrl;
bool m_exportAssetToSignedUrlHasBeenSet;
ExportAssetsToS3RequestDetails m_exportAssetsToS3;
bool m_exportAssetsToS3HasBeenSet;
ImportAssetFromSignedUrlRequestDetails m_importAssetFromSignedUrl;
bool m_importAssetFromSignedUrlHasBeenSet;
ImportAssetsFromS3RequestDetails m_importAssetsFromS3;
bool m_importAssetsFromS3HasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,167 @@
/**
* 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/ResourceType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>The resource couldn't be found.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ResourceNotFoundException">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API ResourceNotFoundException
{
public:
ResourceNotFoundException();
ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue);
ResourceNotFoundException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The resource couldn't be found.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>The resource couldn't be found.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>The resource couldn't be found.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>The resource couldn't be found.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>The resource couldn't be found.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>The resource couldn't be found.</p>
*/
inline ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>The resource couldn't be found.</p>
*/
inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>The resource couldn't be found.</p>
*/
inline ResourceNotFoundException& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The unique identifier for the resource that couldn't be found.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The unique identifier for the resource that couldn't be found.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The unique identifier for the resource that couldn't be found.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The unique identifier for the resource that couldn't be found.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The unique identifier for the resource that couldn't be found.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The unique identifier for the resource that couldn't be found.</p>
*/
inline ResourceNotFoundException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The unique identifier for the resource that couldn't be found.</p>
*/
inline ResourceNotFoundException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the resource that couldn't be found.</p>
*/
inline ResourceNotFoundException& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>The type of resource that couldn't be found.</p>
*/
inline const ResourceType& GetResourceType() const{ return m_resourceType; }
/**
* <p>The type of resource that couldn't be found.</p>
*/
inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
/**
* <p>The type of resource that couldn't be found.</p>
*/
inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
/**
* <p>The type of resource that couldn't be found.</p>
*/
inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
/**
* <p>The type of resource that couldn't be found.</p>
*/
inline ResourceNotFoundException& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
/**
* <p>The type of resource that couldn't be found.</p>
*/
inline ResourceNotFoundException& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
private:
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
ResourceType m_resourceType;
bool m_resourceTypeHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* 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>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
enum class ResourceType
{
NOT_SET,
DATA_SET,
REVISION,
ASSET,
JOB
};
namespace ResourceTypeMapper
{
AWS_DATAEXCHANGE_API ResourceType GetResourceTypeForName(const Aws::String& name);
AWS_DATAEXCHANGE_API Aws::String GetNameForResourceType(ResourceType value);
} // namespace ResourceTypeMapper
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,183 @@
/**
* 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/dataexchange/model/ExportAssetToSignedUrlResponseDetails.h>
#include <aws/dataexchange/model/ExportAssetsToS3ResponseDetails.h>
#include <aws/dataexchange/model/ImportAssetFromSignedUrlResponseDetails.h>
#include <aws/dataexchange/model/ImportAssetsFromS3ResponseDetails.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>Details for the response.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ResponseDetails">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API ResponseDetails
{
public:
ResponseDetails();
ResponseDetails(Aws::Utils::Json::JsonView jsonValue);
ResponseDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Details for the export to signed URL response.</p>
*/
inline const ExportAssetToSignedUrlResponseDetails& GetExportAssetToSignedUrl() const{ return m_exportAssetToSignedUrl; }
/**
* <p>Details for the export to signed URL response.</p>
*/
inline bool ExportAssetToSignedUrlHasBeenSet() const { return m_exportAssetToSignedUrlHasBeenSet; }
/**
* <p>Details for the export to signed URL response.</p>
*/
inline void SetExportAssetToSignedUrl(const ExportAssetToSignedUrlResponseDetails& value) { m_exportAssetToSignedUrlHasBeenSet = true; m_exportAssetToSignedUrl = value; }
/**
* <p>Details for the export to signed URL response.</p>
*/
inline void SetExportAssetToSignedUrl(ExportAssetToSignedUrlResponseDetails&& value) { m_exportAssetToSignedUrlHasBeenSet = true; m_exportAssetToSignedUrl = std::move(value); }
/**
* <p>Details for the export to signed URL response.</p>
*/
inline ResponseDetails& WithExportAssetToSignedUrl(const ExportAssetToSignedUrlResponseDetails& value) { SetExportAssetToSignedUrl(value); return *this;}
/**
* <p>Details for the export to signed URL response.</p>
*/
inline ResponseDetails& WithExportAssetToSignedUrl(ExportAssetToSignedUrlResponseDetails&& value) { SetExportAssetToSignedUrl(std::move(value)); return *this;}
/**
* <p>Details for the export to Amazon S3 response.</p>
*/
inline const ExportAssetsToS3ResponseDetails& GetExportAssetsToS3() const{ return m_exportAssetsToS3; }
/**
* <p>Details for the export to Amazon S3 response.</p>
*/
inline bool ExportAssetsToS3HasBeenSet() const { return m_exportAssetsToS3HasBeenSet; }
/**
* <p>Details for the export to Amazon S3 response.</p>
*/
inline void SetExportAssetsToS3(const ExportAssetsToS3ResponseDetails& value) { m_exportAssetsToS3HasBeenSet = true; m_exportAssetsToS3 = value; }
/**
* <p>Details for the export to Amazon S3 response.</p>
*/
inline void SetExportAssetsToS3(ExportAssetsToS3ResponseDetails&& value) { m_exportAssetsToS3HasBeenSet = true; m_exportAssetsToS3 = std::move(value); }
/**
* <p>Details for the export to Amazon S3 response.</p>
*/
inline ResponseDetails& WithExportAssetsToS3(const ExportAssetsToS3ResponseDetails& value) { SetExportAssetsToS3(value); return *this;}
/**
* <p>Details for the export to Amazon S3 response.</p>
*/
inline ResponseDetails& WithExportAssetsToS3(ExportAssetsToS3ResponseDetails&& value) { SetExportAssetsToS3(std::move(value)); return *this;}
/**
* <p>Details for the import from signed URL response.</p>
*/
inline const ImportAssetFromSignedUrlResponseDetails& GetImportAssetFromSignedUrl() const{ return m_importAssetFromSignedUrl; }
/**
* <p>Details for the import from signed URL response.</p>
*/
inline bool ImportAssetFromSignedUrlHasBeenSet() const { return m_importAssetFromSignedUrlHasBeenSet; }
/**
* <p>Details for the import from signed URL response.</p>
*/
inline void SetImportAssetFromSignedUrl(const ImportAssetFromSignedUrlResponseDetails& value) { m_importAssetFromSignedUrlHasBeenSet = true; m_importAssetFromSignedUrl = value; }
/**
* <p>Details for the import from signed URL response.</p>
*/
inline void SetImportAssetFromSignedUrl(ImportAssetFromSignedUrlResponseDetails&& value) { m_importAssetFromSignedUrlHasBeenSet = true; m_importAssetFromSignedUrl = std::move(value); }
/**
* <p>Details for the import from signed URL response.</p>
*/
inline ResponseDetails& WithImportAssetFromSignedUrl(const ImportAssetFromSignedUrlResponseDetails& value) { SetImportAssetFromSignedUrl(value); return *this;}
/**
* <p>Details for the import from signed URL response.</p>
*/
inline ResponseDetails& WithImportAssetFromSignedUrl(ImportAssetFromSignedUrlResponseDetails&& value) { SetImportAssetFromSignedUrl(std::move(value)); return *this;}
/**
* <p>Details for the import from Amazon S3 response.</p>
*/
inline const ImportAssetsFromS3ResponseDetails& GetImportAssetsFromS3() const{ return m_importAssetsFromS3; }
/**
* <p>Details for the import from Amazon S3 response.</p>
*/
inline bool ImportAssetsFromS3HasBeenSet() const { return m_importAssetsFromS3HasBeenSet; }
/**
* <p>Details for the import from Amazon S3 response.</p>
*/
inline void SetImportAssetsFromS3(const ImportAssetsFromS3ResponseDetails& value) { m_importAssetsFromS3HasBeenSet = true; m_importAssetsFromS3 = value; }
/**
* <p>Details for the import from Amazon S3 response.</p>
*/
inline void SetImportAssetsFromS3(ImportAssetsFromS3ResponseDetails&& value) { m_importAssetsFromS3HasBeenSet = true; m_importAssetsFromS3 = std::move(value); }
/**
* <p>Details for the import from Amazon S3 response.</p>
*/
inline ResponseDetails& WithImportAssetsFromS3(const ImportAssetsFromS3ResponseDetails& value) { SetImportAssetsFromS3(value); return *this;}
/**
* <p>Details for the import from Amazon S3 response.</p>
*/
inline ResponseDetails& WithImportAssetsFromS3(ImportAssetsFromS3ResponseDetails&& value) { SetImportAssetsFromS3(std::move(value)); return *this;}
private:
ExportAssetToSignedUrlResponseDetails m_exportAssetToSignedUrl;
bool m_exportAssetToSignedUrlHasBeenSet;
ExportAssetsToS3ResponseDetails m_exportAssetsToS3;
bool m_exportAssetsToS3HasBeenSet;
ImportAssetFromSignedUrlResponseDetails m_importAssetFromSignedUrl;
bool m_importAssetFromSignedUrlHasBeenSet;
ImportAssetsFromS3ResponseDetails m_importAssetsFromS3;
bool m_importAssetsFromS3HasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,398 @@
/**
* 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/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>A revision is a container for one or more assets.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/RevisionEntry">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API RevisionEntry
{
public:
RevisionEntry();
RevisionEntry(Aws::Utils::Json::JsonView jsonValue);
RevisionEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN for the revision.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN for the revision.</p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p>The ARN for the revision.</p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p>The ARN for the revision.</p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p>The ARN for the revision.</p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p>The ARN for the revision.</p>
*/
inline RevisionEntry& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN for the revision.</p>
*/
inline RevisionEntry& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN for the revision.</p>
*/
inline RevisionEntry& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>An optional comment about the revision.</p>
*/
inline const Aws::String& GetComment() const{ return m_comment; }
/**
* <p>An optional comment about the revision.</p>
*/
inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
/**
* <p>An optional comment about the revision.</p>
*/
inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
/**
* <p>An optional comment about the revision.</p>
*/
inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
/**
* <p>An optional comment about the revision.</p>
*/
inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
/**
* <p>An optional comment about the revision.</p>
*/
inline RevisionEntry& WithComment(const Aws::String& value) { SetComment(value); return *this;}
/**
* <p>An optional comment about the revision.</p>
*/
inline RevisionEntry& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
/**
* <p>An optional comment about the revision.</p>
*/
inline RevisionEntry& WithComment(const char* value) { SetComment(value); return *this;}
/**
* <p>The date and time that the revision was created, in ISO 8601 format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
/**
* <p>The date and time that the revision was created, in ISO 8601 format.</p>
*/
inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
/**
* <p>The date and time that the revision was created, in ISO 8601 format.</p>
*/
inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
/**
* <p>The date and time that the revision was created, in ISO 8601 format.</p>
*/
inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
/**
* <p>The date and time that the revision was created, in ISO 8601 format.</p>
*/
inline RevisionEntry& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
/**
* <p>The date and time that the revision was created, in ISO 8601 format.</p>
*/
inline RevisionEntry& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline RevisionEntry& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline RevisionEntry& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline RevisionEntry& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>To publish a revision to a data set in a product, the revision must first be
* finalized. Finalizing a revision tells AWS Data Exchange that your changes to
* the assets in the revision are complete. After it's in this read-only state, you
* can publish the revision to your products.</p> <p>Finalized revisions can be
* published through the AWS Data Exchange console or the AWS Marketplace Catalog
* API, using the StartChangeSet AWS Marketplace Catalog API action. When using the
* API, revisions are uniquely identified by their ARN.</p>
*/
inline bool GetFinalized() const{ return m_finalized; }
/**
* <p>To publish a revision to a data set in a product, the revision must first be
* finalized. Finalizing a revision tells AWS Data Exchange that your changes to
* the assets in the revision are complete. After it's in this read-only state, you
* can publish the revision to your products.</p> <p>Finalized revisions can be
* published through the AWS Data Exchange console or the AWS Marketplace Catalog
* API, using the StartChangeSet AWS Marketplace Catalog API action. When using the
* API, revisions are uniquely identified by their ARN.</p>
*/
inline bool FinalizedHasBeenSet() const { return m_finalizedHasBeenSet; }
/**
* <p>To publish a revision to a data set in a product, the revision must first be
* finalized. Finalizing a revision tells AWS Data Exchange that your changes to
* the assets in the revision are complete. After it's in this read-only state, you
* can publish the revision to your products.</p> <p>Finalized revisions can be
* published through the AWS Data Exchange console or the AWS Marketplace Catalog
* API, using the StartChangeSet AWS Marketplace Catalog API action. When using the
* API, revisions are uniquely identified by their ARN.</p>
*/
inline void SetFinalized(bool value) { m_finalizedHasBeenSet = true; m_finalized = value; }
/**
* <p>To publish a revision to a data set in a product, the revision must first be
* finalized. Finalizing a revision tells AWS Data Exchange that your changes to
* the assets in the revision are complete. After it's in this read-only state, you
* can publish the revision to your products.</p> <p>Finalized revisions can be
* published through the AWS Data Exchange console or the AWS Marketplace Catalog
* API, using the StartChangeSet AWS Marketplace Catalog API action. When using the
* API, revisions are uniquely identified by their ARN.</p>
*/
inline RevisionEntry& WithFinalized(bool value) { SetFinalized(value); return *this;}
/**
* <p>The unique identifier for the revision.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The unique identifier for the revision.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The unique identifier for the revision.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The unique identifier for the revision.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The unique identifier for the revision.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The unique identifier for the revision.</p>
*/
inline RevisionEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique identifier for the revision.</p>
*/
inline RevisionEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the revision.</p>
*/
inline RevisionEntry& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline const Aws::String& GetSourceId() const{ return m_sourceId; }
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; }
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline void SetSourceId(const Aws::String& value) { m_sourceIdHasBeenSet = true; m_sourceId = value; }
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline void SetSourceId(Aws::String&& value) { m_sourceIdHasBeenSet = true; m_sourceId = std::move(value); }
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline void SetSourceId(const char* value) { m_sourceIdHasBeenSet = true; m_sourceId.assign(value); }
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline RevisionEntry& WithSourceId(const Aws::String& value) { SetSourceId(value); return *this;}
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline RevisionEntry& WithSourceId(Aws::String&& value) { SetSourceId(std::move(value)); return *this;}
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline RevisionEntry& WithSourceId(const char* value) { SetSourceId(value); return *this;}
/**
* <p>The date and time that the revision 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 revision was last updated, in ISO 8601 format.</p>
*/
inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
/**
* <p>The date and time that the revision was last updated, in ISO 8601 format.</p>
*/
inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
/**
* <p>The date and time that the revision was last updated, in ISO 8601 format.</p>
*/
inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
/**
* <p>The date and time that the revision was last updated, in ISO 8601 format.</p>
*/
inline RevisionEntry& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
/**
* <p>The date and time that the revision was last updated, in ISO 8601 format.</p>
*/
inline RevisionEntry& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
Aws::String m_comment;
bool m_commentHasBeenSet;
Aws::Utils::DateTime m_createdAt;
bool m_createdAtHasBeenSet;
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
bool m_finalized;
bool m_finalizedHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_sourceId;
bool m_sourceIdHasBeenSet;
Aws::Utils::DateTime m_updatedAt;
bool m_updatedAtHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,66 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/dataexchange/DataExchange_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>The S3 object that is the asset.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/S3SnapshotAsset">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API S3SnapshotAsset
{
public:
S3SnapshotAsset();
S3SnapshotAsset(Aws::Utils::Json::JsonView jsonValue);
S3SnapshotAsset& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The size of the S3 object that is the object.</p>
*/
inline double GetSize() const{ return m_size; }
/**
* <p>The size of the S3 object that is the object.</p>
*/
inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
/**
* <p>The size of the S3 object that is the object.</p>
*/
inline void SetSize(double value) { m_sizeHasBeenSet = true; m_size = value; }
/**
* <p>The size of the S3 object that is the object.</p>
*/
inline S3SnapshotAsset& WithSize(double value) { SetSize(value); return *this;}
private:
double m_size;
bool m_sizeHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* 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>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
enum class ServerSideEncryptionTypes
{
NOT_SET,
aws_kms,
AES256
};
namespace ServerSideEncryptionTypesMapper
{
AWS_DATAEXCHANGE_API ServerSideEncryptionTypes GetServerSideEncryptionTypesForName(const Aws::String& name);
AWS_DATAEXCHANGE_API Aws::String GetNameForServerSideEncryptionTypes(ServerSideEncryptionTypes value);
} // namespace ServerSideEncryptionTypesMapper
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,148 @@
/**
* 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/dataexchange/model/LimitName.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DataExchange
{
namespace Model
{
/**
* <p>The request has exceeded the quotas imposed by the service.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ServiceLimitExceededException">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API ServiceLimitExceededException
{
public:
ServiceLimitExceededException();
ServiceLimitExceededException(Aws::Utils::Json::JsonView jsonValue);
ServiceLimitExceededException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the quota that was exceeded.</p>
*/
inline const LimitName& GetLimitName() const{ return m_limitName; }
/**
* <p>The name of the quota that was exceeded.</p>
*/
inline bool LimitNameHasBeenSet() const { return m_limitNameHasBeenSet; }
/**
* <p>The name of the quota that was exceeded.</p>
*/
inline void SetLimitName(const LimitName& value) { m_limitNameHasBeenSet = true; m_limitName = value; }
/**
* <p>The name of the quota that was exceeded.</p>
*/
inline void SetLimitName(LimitName&& value) { m_limitNameHasBeenSet = true; m_limitName = std::move(value); }
/**
* <p>The name of the quota that was exceeded.</p>
*/
inline ServiceLimitExceededException& WithLimitName(const LimitName& value) { SetLimitName(value); return *this;}
/**
* <p>The name of the quota that was exceeded.</p>
*/
inline ServiceLimitExceededException& WithLimitName(LimitName&& value) { SetLimitName(std::move(value)); return *this;}
/**
* <p>The maximum value for the service-specific limit.</p>
*/
inline double GetLimitValue() const{ return m_limitValue; }
/**
* <p>The maximum value for the service-specific limit.</p>
*/
inline bool LimitValueHasBeenSet() const { return m_limitValueHasBeenSet; }
/**
* <p>The maximum value for the service-specific limit.</p>
*/
inline void SetLimitValue(double value) { m_limitValueHasBeenSet = true; m_limitValue = value; }
/**
* <p>The maximum value for the service-specific limit.</p>
*/
inline ServiceLimitExceededException& WithLimitValue(double value) { SetLimitValue(value); return *this;}
/**
* <p>The request has exceeded the quotas imposed by the service.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>The request has exceeded the quotas imposed by the service.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>The request has exceeded the quotas imposed by the service.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>The request has exceeded the quotas imposed by the service.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>The request has exceeded the quotas imposed by the service.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>The request has exceeded the quotas imposed by the service.</p>
*/
inline ServiceLimitExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>The request has exceeded the quotas imposed by the service.</p>
*/
inline ServiceLimitExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>The request has exceeded the quotas imposed by the service.</p>
*/
inline ServiceLimitExceededException& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
LimitName m_limitName;
bool m_limitNameHasBeenSet;
double m_limitValue;
bool m_limitValueHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
/**
*/
class AWS_DATAEXCHANGE_API StartJobRequest : public DataExchangeRequest
{
public:
StartJobRequest();
// 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 "StartJob"; }
Aws::String SerializePayload() const override;
/**
* <p>The unique identifier for a job.</p>
*/
inline const Aws::String& GetJobId() const{ return m_jobId; }
/**
* <p>The unique identifier for a job.</p>
*/
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
/**
* <p>The unique identifier for a job.</p>
*/
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
/**
* <p>The unique identifier for a job.</p>
*/
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
/**
* <p>The unique identifier for a job.</p>
*/
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
/**
* <p>The unique identifier for a job.</p>
*/
inline StartJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
/**
* <p>The unique identifier for a job.</p>
*/
inline StartJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a job.</p>
*/
inline StartJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
private:
Aws::String m_jobId;
bool m_jobIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/dataexchange/DataExchange_EXPORTS.h>
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 StartJobResult
{
public:
StartJobResult();
StartJobResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
StartJobResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,35 @@
/**
* 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>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
enum class State
{
NOT_SET,
WAITING,
IN_PROGRESS,
ERROR_,
COMPLETED,
CANCELLED,
TIMED_OUT
};
namespace StateMapper
{
AWS_DATAEXCHANGE_API State GetStateForName(const Aws::String& name);
AWS_DATAEXCHANGE_API Aws::String GetNameForState(State value);
} // namespace StateMapper
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,156 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
/**
* <p>The request body for TagResource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/TagResourceRequest">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API TagResourceRequest : public DataExchangeRequest
{
public:
TagResourceRequest();
// 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 "TagResource"; }
Aws::String SerializePayload() const override;
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline TagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline TagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline TagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline TagResourceRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline TagResourceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline TagResourceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline TagResourceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline TagResourceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline TagResourceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline TagResourceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline TagResourceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* A label that consists of a customer-defined key and an optional value.
*/
inline TagResourceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* 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>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
enum class Type
{
NOT_SET,
IMPORT_ASSETS_FROM_S3,
IMPORT_ASSET_FROM_SIGNED_URL,
EXPORT_ASSETS_TO_S3,
EXPORT_ASSET_TO_SIGNED_URL
};
namespace TypeMapper
{
AWS_DATAEXCHANGE_API Type GetTypeForName(const Aws::String& name);
AWS_DATAEXCHANGE_API Aws::String GetNameForType(Type value);
} // namespace TypeMapper
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,139 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace DataExchange
{
namespace Model
{
/**
*/
class AWS_DATAEXCHANGE_API UntagResourceRequest : public DataExchangeRequest
{
public:
UntagResourceRequest();
// 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 "UntagResource"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>An Amazon Resource Name (ARN) that uniquely identifies an AWS resource.</p>
*/
inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* The key tags.
*/
inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
/**
* The key tags.
*/
inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
/**
* The key tags.
*/
inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
/**
* The key tags.
*/
inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
/**
* The key tags.
*/
inline UntagResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
/**
* The key tags.
*/
inline UntagResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
/**
* The key tags.
*/
inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
/**
* The key tags.
*/
inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
/**
* The key tags.
*/
inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
Aws::Vector<Aws::String> m_tagKeys;
bool m_tagKeysHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,234 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
/**
* <p>The request body for UpdateAsset.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/UpdateAssetRequest">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API UpdateAssetRequest : public DataExchangeRequest
{
public:
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::String SerializePayload() const override;
/**
* <p>The unique identifier for an asset.</p>
*/
inline const Aws::String& GetAssetId() const{ return m_assetId; }
/**
* <p>The unique identifier for an asset.</p>
*/
inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
/**
* <p>The unique identifier for an asset.</p>
*/
inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
/**
* <p>The unique identifier for an asset.</p>
*/
inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
/**
* <p>The unique identifier for an asset.</p>
*/
inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
/**
* <p>The unique identifier for an asset.</p>
*/
inline UpdateAssetRequest& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
/**
* <p>The unique identifier for an asset.</p>
*/
inline UpdateAssetRequest& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for an asset.</p>
*/
inline UpdateAssetRequest& WithAssetId(const char* value) { SetAssetId(value); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline UpdateAssetRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline UpdateAssetRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline UpdateAssetRequest& WithDataSetId(const char* value) { SetDataSetId(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 bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <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_nameHasBeenSet = true; 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_nameHasBeenSet = true; 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_nameHasBeenSet = true; 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 UpdateAssetRequest& 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 UpdateAssetRequest& 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 UpdateAssetRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p>The unique identifier for a revision.</p>
*/
inline UpdateAssetRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline UpdateAssetRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline UpdateAssetRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
private:
Aws::String m_assetId;
bool m_assetIdHasBeenSet;
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,415 @@
/**
* 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 UpdateAssetResult
{
public:
UpdateAssetResult();
UpdateAssetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateAssetResult& 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 UpdateAssetResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN for the asset.</p>
*/
inline UpdateAssetResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN for the asset.</p>
*/
inline UpdateAssetResult& 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 UpdateAssetResult& WithAssetDetails(const AssetDetails& value) { SetAssetDetails(value); return *this;}
/**
* <p>Information about the asset, including its size.</p>
*/
inline UpdateAssetResult& 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 UpdateAssetResult& 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 UpdateAssetResult& 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 UpdateAssetResult& 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 UpdateAssetResult& 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 UpdateAssetResult& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for the data set associated with this asset.</p>
*/
inline UpdateAssetResult& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set associated with this asset.</p>
*/
inline UpdateAssetResult& 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 UpdateAssetResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique identifier for the asset.</p>
*/
inline UpdateAssetResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the asset.</p>
*/
inline UpdateAssetResult& 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 UpdateAssetResult& 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 UpdateAssetResult& 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 UpdateAssetResult& 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 UpdateAssetResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>The unique identifier for the revision associated with this asset.</p>
*/
inline UpdateAssetResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the revision associated with this asset.</p>
*/
inline UpdateAssetResult& 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 UpdateAssetResult& 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 UpdateAssetResult& 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 UpdateAssetResult& 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 UpdateAssetResult& 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 UpdateAssetResult& 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

View File

@@ -0,0 +1,174 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
/**
* <p>The request body for UpdateDataSet.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/UpdateDataSetRequest">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API UpdateDataSetRequest : public DataExchangeRequest
{
public:
UpdateDataSetRequest();
// 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 "UpdateDataSet"; }
Aws::String SerializePayload() const override;
/**
* <p>The unique identifier for a data set.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline UpdateDataSetRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline UpdateDataSetRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline UpdateDataSetRequest& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>The description for the data set.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description for the data set.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description for the data set.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description for the data set.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description for the data set.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description for the data set.</p>
*/
inline UpdateDataSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description for the data set.</p>
*/
inline UpdateDataSetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description for the data set.</p>
*/
inline UpdateDataSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The name of the data set.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the data set.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the data set.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the data set.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the data set.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the data set.</p>
*/
inline UpdateDataSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the data set.</p>
*/
inline UpdateDataSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the data set.</p>
*/
inline UpdateDataSetRequest& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,402 @@
/**
* 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/AssetType.h>
#include <aws/core/utils/DateTime.h>
#include <aws/dataexchange/model/Origin.h>
#include <aws/dataexchange/model/OriginDetails.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 UpdateDataSetResult
{
public:
UpdateDataSetResult();
UpdateDataSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateDataSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ARN for the data set.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN for the data set.</p>
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* <p>The ARN for the data set.</p>
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* <p>The ARN for the data set.</p>
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* <p>The ARN for the data set.</p>
*/
inline UpdateDataSetResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN for the data set.</p>
*/
inline UpdateDataSetResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN for the data set.</p>
*/
inline UpdateDataSetResult& WithArn(const char* value) { SetArn(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 UpdateDataSetResult& 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 UpdateDataSetResult& WithAssetType(AssetType&& value) { SetAssetType(std::move(value)); return *this;}
/**
* <p>The date and time that the data set was created, in ISO 8601 format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
/**
* <p>The date and time that the data set 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 data set 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 data set was created, in ISO 8601 format.</p>
*/
inline UpdateDataSetResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
/**
* <p>The date and time that the data set was created, in ISO 8601 format.</p>
*/
inline UpdateDataSetResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* <p>The description for the data set.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description for the data set.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The description for the data set.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The description for the data set.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The description for the data set.</p>
*/
inline UpdateDataSetResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description for the data set.</p>
*/
inline UpdateDataSetResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description for the data set.</p>
*/
inline UpdateDataSetResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The unique identifier for the data set.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The unique identifier for the data set.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The unique identifier for the data set.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The unique identifier for the data set.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The unique identifier for the data set.</p>
*/
inline UpdateDataSetResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique identifier for the data set.</p>
*/
inline UpdateDataSetResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set.</p>
*/
inline UpdateDataSetResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the data set.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the data set.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The name of the data set.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The name of the data set.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The name of the data set.</p>
*/
inline UpdateDataSetResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the data set.</p>
*/
inline UpdateDataSetResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the data set.</p>
*/
inline UpdateDataSetResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline const Origin& GetOrigin() const{ return m_origin; }
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline void SetOrigin(const Origin& value) { m_origin = value; }
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline void SetOrigin(Origin&& value) { m_origin = std::move(value); }
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline UpdateDataSetResult& WithOrigin(const Origin& value) { SetOrigin(value); return *this;}
/**
* <p>A property that defines the data set as OWNED by the account (for providers)
* or ENTITLED to the account (for subscribers).</p>
*/
inline UpdateDataSetResult& WithOrigin(Origin&& value) { SetOrigin(std::move(value)); return *this;}
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline const OriginDetails& GetOriginDetails() const{ return m_originDetails; }
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline void SetOriginDetails(const OriginDetails& value) { m_originDetails = value; }
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline void SetOriginDetails(OriginDetails&& value) { m_originDetails = std::move(value); }
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline UpdateDataSetResult& WithOriginDetails(const OriginDetails& value) { SetOriginDetails(value); return *this;}
/**
* <p>If the origin of this data set is ENTITLED, includes the details for the
* product on AWS Marketplace.</p>
*/
inline UpdateDataSetResult& WithOriginDetails(OriginDetails&& value) { SetOriginDetails(std::move(value)); return *this;}
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline const Aws::String& GetSourceId() const{ return m_sourceId; }
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline void SetSourceId(const Aws::String& value) { m_sourceId = value; }
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline void SetSourceId(Aws::String&& value) { m_sourceId = std::move(value); }
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline void SetSourceId(const char* value) { m_sourceId.assign(value); }
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline UpdateDataSetResult& WithSourceId(const Aws::String& value) { SetSourceId(value); return *this;}
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline UpdateDataSetResult& WithSourceId(Aws::String&& value) { SetSourceId(std::move(value)); return *this;}
/**
* <p>The data set ID of the owned data set corresponding to the entitled data set
* being viewed. This parameter is returned when a data set owner is viewing the
* entitled copy of its owned data set.</p>
*/
inline UpdateDataSetResult& WithSourceId(const char* value) { SetSourceId(value); return *this;}
/**
* <p>The date and time that the data set 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 data set 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 data set 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 data set was last updated, in ISO 8601 format.</p>
*/
inline UpdateDataSetResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
/**
* <p>The date and time that the data set was last updated, in ISO 8601 format.</p>
*/
inline UpdateDataSetResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
private:
Aws::String m_arn;
AssetType m_assetType;
Aws::Utils::DateTime m_createdAt;
Aws::String m_description;
Aws::String m_id;
Aws::String m_name;
Origin m_origin;
OriginDetails m_originDetails;
Aws::String m_sourceId;
Aws::Utils::DateTime m_updatedAt;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,206 @@
/**
* 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/dataexchange/DataExchangeRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace DataExchange
{
namespace Model
{
/**
* <p>The request body for UpdateRevision.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/UpdateRevisionRequest">AWS
* API Reference</a></p>
*/
class AWS_DATAEXCHANGE_API UpdateRevisionRequest : public DataExchangeRequest
{
public:
UpdateRevisionRequest();
// 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 "UpdateRevision"; }
Aws::String SerializePayload() const override;
/**
* <p>An optional comment about the revision.</p>
*/
inline const Aws::String& GetComment() const{ return m_comment; }
/**
* <p>An optional comment about the revision.</p>
*/
inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
/**
* <p>An optional comment about the revision.</p>
*/
inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
/**
* <p>An optional comment about the revision.</p>
*/
inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
/**
* <p>An optional comment about the revision.</p>
*/
inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
/**
* <p>An optional comment about the revision.</p>
*/
inline UpdateRevisionRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
/**
* <p>An optional comment about the revision.</p>
*/
inline UpdateRevisionRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
/**
* <p>An optional comment about the revision.</p>
*/
inline UpdateRevisionRequest& WithComment(const char* value) { SetComment(value); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
/**
* <p>The unique identifier for a data set.</p>
*/
inline UpdateRevisionRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline UpdateRevisionRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a data set.</p>
*/
inline UpdateRevisionRequest& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>Finalizing a revision tells AWS Data Exchange that your changes to the assets
* in the revision are complete. After it's in this read-only state, you can
* publish the revision to your products.</p>
*/
inline bool GetFinalized() const{ return m_finalized; }
/**
* <p>Finalizing a revision tells AWS Data Exchange that your changes to the assets
* in the revision are complete. After it's in this read-only state, you can
* publish the revision to your products.</p>
*/
inline bool FinalizedHasBeenSet() const { return m_finalizedHasBeenSet; }
/**
* <p>Finalizing a revision tells AWS Data Exchange that your changes to the assets
* in the revision are complete. After it's in this read-only state, you can
* publish the revision to your products.</p>
*/
inline void SetFinalized(bool value) { m_finalizedHasBeenSet = true; m_finalized = value; }
/**
* <p>Finalizing a revision tells AWS Data Exchange that your changes to the assets
* in the revision are complete. After it's in this read-only state, you can
* publish the revision to your products.</p>
*/
inline UpdateRevisionRequest& WithFinalized(bool value) { SetFinalized(value); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
/**
* <p>The unique identifier for a revision.</p>
*/
inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
/**
* <p>The unique identifier for a revision.</p>
*/
inline UpdateRevisionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline UpdateRevisionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
/**
* <p>The unique identifier for a revision.</p>
*/
inline UpdateRevisionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
private:
Aws::String m_comment;
bool m_commentHasBeenSet;
Aws::String m_dataSetId;
bool m_dataSetIdHasBeenSet;
bool m_finalized;
bool m_finalizedHasBeenSet;
Aws::String m_revisionId;
bool m_revisionIdHasBeenSet;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,336 @@
/**
* 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/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 UpdateRevisionResult
{
public:
UpdateRevisionResult();
UpdateRevisionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateRevisionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ARN for the revision.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN for the revision.</p>
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* <p>The ARN for the revision.</p>
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* <p>The ARN for the revision.</p>
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* <p>The ARN for the revision.</p>
*/
inline UpdateRevisionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN for the revision.</p>
*/
inline UpdateRevisionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN for the revision.</p>
*/
inline UpdateRevisionResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>An optional comment about the revision.</p>
*/
inline const Aws::String& GetComment() const{ return m_comment; }
/**
* <p>An optional comment about the revision.</p>
*/
inline void SetComment(const Aws::String& value) { m_comment = value; }
/**
* <p>An optional comment about the revision.</p>
*/
inline void SetComment(Aws::String&& value) { m_comment = std::move(value); }
/**
* <p>An optional comment about the revision.</p>
*/
inline void SetComment(const char* value) { m_comment.assign(value); }
/**
* <p>An optional comment about the revision.</p>
*/
inline UpdateRevisionResult& WithComment(const Aws::String& value) { SetComment(value); return *this;}
/**
* <p>An optional comment about the revision.</p>
*/
inline UpdateRevisionResult& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
/**
* <p>An optional comment about the revision.</p>
*/
inline UpdateRevisionResult& WithComment(const char* value) { SetComment(value); return *this;}
/**
* <p>The date and time that the revision was created, in ISO 8601 format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
/**
* <p>The date and time that the revision 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 revision 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 revision was created, in ISO 8601 format.</p>
*/
inline UpdateRevisionResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
/**
* <p>The date and time that the revision was created, in ISO 8601 format.</p>
*/
inline UpdateRevisionResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline void SetDataSetId(const Aws::String& value) { m_dataSetId = value; }
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline void SetDataSetId(Aws::String&& value) { m_dataSetId = std::move(value); }
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline void SetDataSetId(const char* value) { m_dataSetId.assign(value); }
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline UpdateRevisionResult& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline UpdateRevisionResult& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the data set associated with this revision.</p>
*/
inline UpdateRevisionResult& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
/**
* <p>To publish a revision to a data set in a product, the revision must first be
* finalized. Finalizing a revision tells AWS Data Exchange that changes to the
* assets in the revision are complete. After it's in this read-only state, you can
* publish the revision to your products.</p> <p>Finalized revisions can be
* published through the AWS Data Exchange console or the AWS Marketplace Catalog
* API, using the StartChangeSet AWS Marketplace Catalog API action. When using the
* API, revisions are uniquely identified by their ARN.</p>
*/
inline bool GetFinalized() const{ return m_finalized; }
/**
* <p>To publish a revision to a data set in a product, the revision must first be
* finalized. Finalizing a revision tells AWS Data Exchange that changes to the
* assets in the revision are complete. After it's in this read-only state, you can
* publish the revision to your products.</p> <p>Finalized revisions can be
* published through the AWS Data Exchange console or the AWS Marketplace Catalog
* API, using the StartChangeSet AWS Marketplace Catalog API action. When using the
* API, revisions are uniquely identified by their ARN.</p>
*/
inline void SetFinalized(bool value) { m_finalized = value; }
/**
* <p>To publish a revision to a data set in a product, the revision must first be
* finalized. Finalizing a revision tells AWS Data Exchange that changes to the
* assets in the revision are complete. After it's in this read-only state, you can
* publish the revision to your products.</p> <p>Finalized revisions can be
* published through the AWS Data Exchange console or the AWS Marketplace Catalog
* API, using the StartChangeSet AWS Marketplace Catalog API action. When using the
* API, revisions are uniquely identified by their ARN.</p>
*/
inline UpdateRevisionResult& WithFinalized(bool value) { SetFinalized(value); return *this;}
/**
* <p>The unique identifier for the revision.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The unique identifier for the revision.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The unique identifier for the revision.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The unique identifier for the revision.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The unique identifier for the revision.</p>
*/
inline UpdateRevisionResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The unique identifier for the revision.</p>
*/
inline UpdateRevisionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the revision.</p>
*/
inline UpdateRevisionResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline const Aws::String& GetSourceId() const{ return m_sourceId; }
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline void SetSourceId(const Aws::String& value) { m_sourceId = value; }
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline void SetSourceId(Aws::String&& value) { m_sourceId = std::move(value); }
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline void SetSourceId(const char* value) { m_sourceId.assign(value); }
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline UpdateRevisionResult& WithSourceId(const Aws::String& value) { SetSourceId(value); return *this;}
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline UpdateRevisionResult& WithSourceId(Aws::String&& value) { SetSourceId(std::move(value)); return *this;}
/**
* <p>The revision ID of the owned revision corresponding to the entitled revision
* being viewed. This parameter is returned when a revision owner is viewing the
* entitled copy of its owned revision.</p>
*/
inline UpdateRevisionResult& WithSourceId(const char* value) { SetSourceId(value); return *this;}
/**
* <p>The date and time that the revision 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 revision 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 revision 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 revision was last updated, in ISO 8601 format.</p>
*/
inline UpdateRevisionResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
/**
* <p>The date and time that the revision was last updated, in ISO 8601 format.</p>
*/
inline UpdateRevisionResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
private:
Aws::String m_arn;
Aws::String m_comment;
Aws::Utils::DateTime m_createdAt;
Aws::String m_dataSetId;
bool m_finalized;
Aws::String m_id;
Aws::String m_sourceId;
Aws::Utils::DateTime m_updatedAt;
};
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,898 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/utils/Outcome.h>
#include <aws/core/auth/AWSAuthSigner.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/core/client/RetryStrategy.h>
#include <aws/core/http/HttpClient.h>
#include <aws/core/http/HttpResponse.h>
#include <aws/core/http/HttpClientFactory.h>
#include <aws/core/auth/AWSCredentialsProviderChain.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <aws/core/utils/threading/Executor.h>
#include <aws/core/utils/DNS.h>
#include <aws/core/utils/logging/LogMacros.h>
#include <aws/dataexchange/DataExchangeClient.h>
#include <aws/dataexchange/DataExchangeEndpoint.h>
#include <aws/dataexchange/DataExchangeErrorMarshaller.h>
#include <aws/dataexchange/model/CancelJobRequest.h>
#include <aws/dataexchange/model/CreateDataSetRequest.h>
#include <aws/dataexchange/model/CreateJobRequest.h>
#include <aws/dataexchange/model/CreateRevisionRequest.h>
#include <aws/dataexchange/model/DeleteAssetRequest.h>
#include <aws/dataexchange/model/DeleteDataSetRequest.h>
#include <aws/dataexchange/model/DeleteRevisionRequest.h>
#include <aws/dataexchange/model/GetAssetRequest.h>
#include <aws/dataexchange/model/GetDataSetRequest.h>
#include <aws/dataexchange/model/GetJobRequest.h>
#include <aws/dataexchange/model/GetRevisionRequest.h>
#include <aws/dataexchange/model/ListDataSetRevisionsRequest.h>
#include <aws/dataexchange/model/ListDataSetsRequest.h>
#include <aws/dataexchange/model/ListJobsRequest.h>
#include <aws/dataexchange/model/ListRevisionAssetsRequest.h>
#include <aws/dataexchange/model/ListTagsForResourceRequest.h>
#include <aws/dataexchange/model/StartJobRequest.h>
#include <aws/dataexchange/model/TagResourceRequest.h>
#include <aws/dataexchange/model/UntagResourceRequest.h>
#include <aws/dataexchange/model/UpdateAssetRequest.h>
#include <aws/dataexchange/model/UpdateDataSetRequest.h>
#include <aws/dataexchange/model/UpdateRevisionRequest.h>
using namespace Aws;
using namespace Aws::Auth;
using namespace Aws::Client;
using namespace Aws::DataExchange;
using namespace Aws::DataExchange::Model;
using namespace Aws::Http;
using namespace Aws::Utils::Json;
static const char* SERVICE_NAME = "dataexchange";
static const char* ALLOCATION_TAG = "DataExchangeClient";
DataExchangeClient::DataExchangeClient(const Client::ClientConfiguration& clientConfiguration) :
BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<DataExchangeErrorMarshaller>(ALLOCATION_TAG)),
m_executor(clientConfiguration.executor)
{
init(clientConfiguration);
}
DataExchangeClient::DataExchangeClient(const AWSCredentials& credentials, const Client::ClientConfiguration& clientConfiguration) :
BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<SimpleAWSCredentialsProvider>(ALLOCATION_TAG, credentials),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<DataExchangeErrorMarshaller>(ALLOCATION_TAG)),
m_executor(clientConfiguration.executor)
{
init(clientConfiguration);
}
DataExchangeClient::DataExchangeClient(const std::shared_ptr<AWSCredentialsProvider>& credentialsProvider,
const Client::ClientConfiguration& clientConfiguration) :
BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, credentialsProvider,
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<DataExchangeErrorMarshaller>(ALLOCATION_TAG)),
m_executor(clientConfiguration.executor)
{
init(clientConfiguration);
}
DataExchangeClient::~DataExchangeClient()
{
}
void DataExchangeClient::init(const ClientConfiguration& config)
{
SetServiceClientName("DataExchange");
m_configScheme = SchemeMapper::ToString(config.scheme);
if (config.endpointOverride.empty())
{
m_uri = m_configScheme + "://" + DataExchangeEndpoint::ForRegion(config.region, config.useDualStack);
}
else
{
OverrideEndpoint(config.endpointOverride);
}
}
void DataExchangeClient::OverrideEndpoint(const Aws::String& endpoint)
{
if (endpoint.compare(0, 7, "http://") == 0 || endpoint.compare(0, 8, "https://") == 0)
{
m_uri = endpoint;
}
else
{
m_uri = m_configScheme + "://" + endpoint;
}
}
CancelJobOutcome DataExchangeClient::CancelJob(const CancelJobRequest& request) const
{
if (!request.JobIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("CancelJob", "Required field: JobId, is not set");
return CancelJobOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [JobId]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/jobs/";
ss << request.GetJobId();
uri.SetPath(uri.GetPath() + ss.str());
return CancelJobOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER));
}
CancelJobOutcomeCallable DataExchangeClient::CancelJobCallable(const CancelJobRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< CancelJobOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CancelJob(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::CancelJobAsync(const CancelJobRequest& request, const CancelJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->CancelJobAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::CancelJobAsyncHelper(const CancelJobRequest& request, const CancelJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, CancelJob(request), context);
}
CreateDataSetOutcome DataExchangeClient::CreateDataSet(const CreateDataSetRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/data-sets";
uri.SetPath(uri.GetPath() + ss.str());
return CreateDataSetOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
CreateDataSetOutcomeCallable DataExchangeClient::CreateDataSetCallable(const CreateDataSetRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< CreateDataSetOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateDataSet(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::CreateDataSetAsync(const CreateDataSetRequest& request, const CreateDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->CreateDataSetAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::CreateDataSetAsyncHelper(const CreateDataSetRequest& request, const CreateDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, CreateDataSet(request), context);
}
CreateJobOutcome DataExchangeClient::CreateJob(const CreateJobRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/jobs";
uri.SetPath(uri.GetPath() + ss.str());
return CreateJobOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
CreateJobOutcomeCallable DataExchangeClient::CreateJobCallable(const CreateJobRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< CreateJobOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateJob(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::CreateJobAsync(const CreateJobRequest& request, const CreateJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->CreateJobAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::CreateJobAsyncHelper(const CreateJobRequest& request, const CreateJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, CreateJob(request), context);
}
CreateRevisionOutcome DataExchangeClient::CreateRevision(const CreateRevisionRequest& request) const
{
if (!request.DataSetIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("CreateRevision", "Required field: DataSetId, is not set");
return CreateRevisionOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataSetId]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/data-sets/";
ss << request.GetDataSetId();
ss << "/revisions";
uri.SetPath(uri.GetPath() + ss.str());
return CreateRevisionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
CreateRevisionOutcomeCallable DataExchangeClient::CreateRevisionCallable(const CreateRevisionRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< CreateRevisionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateRevision(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::CreateRevisionAsync(const CreateRevisionRequest& request, const CreateRevisionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->CreateRevisionAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::CreateRevisionAsyncHelper(const CreateRevisionRequest& request, const CreateRevisionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, CreateRevision(request), context);
}
DeleteAssetOutcome DataExchangeClient::DeleteAsset(const DeleteAssetRequest& request) const
{
if (!request.AssetIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DeleteAsset", "Required field: AssetId, is not set");
return DeleteAssetOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssetId]", false));
}
if (!request.DataSetIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DeleteAsset", "Required field: DataSetId, is not set");
return DeleteAssetOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataSetId]", false));
}
if (!request.RevisionIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DeleteAsset", "Required field: RevisionId, is not set");
return DeleteAssetOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [RevisionId]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/data-sets/";
ss << request.GetDataSetId();
ss << "/revisions/";
ss << request.GetRevisionId();
ss << "/assets/";
ss << request.GetAssetId();
uri.SetPath(uri.GetPath() + ss.str());
return DeleteAssetOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER));
}
DeleteAssetOutcomeCallable DataExchangeClient::DeleteAssetCallable(const DeleteAssetRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DeleteAssetOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteAsset(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::DeleteAssetAsync(const DeleteAssetRequest& request, const DeleteAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DeleteAssetAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::DeleteAssetAsyncHelper(const DeleteAssetRequest& request, const DeleteAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DeleteAsset(request), context);
}
DeleteDataSetOutcome DataExchangeClient::DeleteDataSet(const DeleteDataSetRequest& request) const
{
if (!request.DataSetIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DeleteDataSet", "Required field: DataSetId, is not set");
return DeleteDataSetOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataSetId]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/data-sets/";
ss << request.GetDataSetId();
uri.SetPath(uri.GetPath() + ss.str());
return DeleteDataSetOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER));
}
DeleteDataSetOutcomeCallable DataExchangeClient::DeleteDataSetCallable(const DeleteDataSetRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DeleteDataSetOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteDataSet(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::DeleteDataSetAsync(const DeleteDataSetRequest& request, const DeleteDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DeleteDataSetAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::DeleteDataSetAsyncHelper(const DeleteDataSetRequest& request, const DeleteDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DeleteDataSet(request), context);
}
DeleteRevisionOutcome DataExchangeClient::DeleteRevision(const DeleteRevisionRequest& request) const
{
if (!request.DataSetIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DeleteRevision", "Required field: DataSetId, is not set");
return DeleteRevisionOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataSetId]", false));
}
if (!request.RevisionIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DeleteRevision", "Required field: RevisionId, is not set");
return DeleteRevisionOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [RevisionId]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/data-sets/";
ss << request.GetDataSetId();
ss << "/revisions/";
ss << request.GetRevisionId();
uri.SetPath(uri.GetPath() + ss.str());
return DeleteRevisionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER));
}
DeleteRevisionOutcomeCallable DataExchangeClient::DeleteRevisionCallable(const DeleteRevisionRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DeleteRevisionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteRevision(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::DeleteRevisionAsync(const DeleteRevisionRequest& request, const DeleteRevisionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DeleteRevisionAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::DeleteRevisionAsyncHelper(const DeleteRevisionRequest& request, const DeleteRevisionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DeleteRevision(request), context);
}
GetAssetOutcome DataExchangeClient::GetAsset(const GetAssetRequest& request) const
{
if (!request.AssetIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("GetAsset", "Required field: AssetId, is not set");
return GetAssetOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssetId]", false));
}
if (!request.DataSetIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("GetAsset", "Required field: DataSetId, is not set");
return GetAssetOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataSetId]", false));
}
if (!request.RevisionIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("GetAsset", "Required field: RevisionId, is not set");
return GetAssetOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [RevisionId]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/data-sets/";
ss << request.GetDataSetId();
ss << "/revisions/";
ss << request.GetRevisionId();
ss << "/assets/";
ss << request.GetAssetId();
uri.SetPath(uri.GetPath() + ss.str());
return GetAssetOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
GetAssetOutcomeCallable DataExchangeClient::GetAssetCallable(const GetAssetRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< GetAssetOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetAsset(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::GetAssetAsync(const GetAssetRequest& request, const GetAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->GetAssetAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::GetAssetAsyncHelper(const GetAssetRequest& request, const GetAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, GetAsset(request), context);
}
GetDataSetOutcome DataExchangeClient::GetDataSet(const GetDataSetRequest& request) const
{
if (!request.DataSetIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("GetDataSet", "Required field: DataSetId, is not set");
return GetDataSetOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataSetId]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/data-sets/";
ss << request.GetDataSetId();
uri.SetPath(uri.GetPath() + ss.str());
return GetDataSetOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
GetDataSetOutcomeCallable DataExchangeClient::GetDataSetCallable(const GetDataSetRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< GetDataSetOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetDataSet(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::GetDataSetAsync(const GetDataSetRequest& request, const GetDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->GetDataSetAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::GetDataSetAsyncHelper(const GetDataSetRequest& request, const GetDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, GetDataSet(request), context);
}
GetJobOutcome DataExchangeClient::GetJob(const GetJobRequest& request) const
{
if (!request.JobIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("GetJob", "Required field: JobId, is not set");
return GetJobOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [JobId]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/jobs/";
ss << request.GetJobId();
uri.SetPath(uri.GetPath() + ss.str());
return GetJobOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
GetJobOutcomeCallable DataExchangeClient::GetJobCallable(const GetJobRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< GetJobOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetJob(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::GetJobAsync(const GetJobRequest& request, const GetJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->GetJobAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::GetJobAsyncHelper(const GetJobRequest& request, const GetJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, GetJob(request), context);
}
GetRevisionOutcome DataExchangeClient::GetRevision(const GetRevisionRequest& request) const
{
if (!request.DataSetIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("GetRevision", "Required field: DataSetId, is not set");
return GetRevisionOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataSetId]", false));
}
if (!request.RevisionIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("GetRevision", "Required field: RevisionId, is not set");
return GetRevisionOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [RevisionId]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/data-sets/";
ss << request.GetDataSetId();
ss << "/revisions/";
ss << request.GetRevisionId();
uri.SetPath(uri.GetPath() + ss.str());
return GetRevisionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
GetRevisionOutcomeCallable DataExchangeClient::GetRevisionCallable(const GetRevisionRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< GetRevisionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetRevision(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::GetRevisionAsync(const GetRevisionRequest& request, const GetRevisionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->GetRevisionAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::GetRevisionAsyncHelper(const GetRevisionRequest& request, const GetRevisionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, GetRevision(request), context);
}
ListDataSetRevisionsOutcome DataExchangeClient::ListDataSetRevisions(const ListDataSetRevisionsRequest& request) const
{
if (!request.DataSetIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("ListDataSetRevisions", "Required field: DataSetId, is not set");
return ListDataSetRevisionsOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataSetId]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/data-sets/";
ss << request.GetDataSetId();
ss << "/revisions";
uri.SetPath(uri.GetPath() + ss.str());
return ListDataSetRevisionsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
ListDataSetRevisionsOutcomeCallable DataExchangeClient::ListDataSetRevisionsCallable(const ListDataSetRevisionsRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListDataSetRevisionsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListDataSetRevisions(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::ListDataSetRevisionsAsync(const ListDataSetRevisionsRequest& request, const ListDataSetRevisionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListDataSetRevisionsAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::ListDataSetRevisionsAsyncHelper(const ListDataSetRevisionsRequest& request, const ListDataSetRevisionsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListDataSetRevisions(request), context);
}
ListDataSetsOutcome DataExchangeClient::ListDataSets(const ListDataSetsRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/data-sets";
uri.SetPath(uri.GetPath() + ss.str());
return ListDataSetsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
ListDataSetsOutcomeCallable DataExchangeClient::ListDataSetsCallable(const ListDataSetsRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListDataSetsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListDataSets(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::ListDataSetsAsync(const ListDataSetsRequest& request, const ListDataSetsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListDataSetsAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::ListDataSetsAsyncHelper(const ListDataSetsRequest& request, const ListDataSetsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListDataSets(request), context);
}
ListJobsOutcome DataExchangeClient::ListJobs(const ListJobsRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/jobs";
uri.SetPath(uri.GetPath() + ss.str());
return ListJobsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
ListJobsOutcomeCallable DataExchangeClient::ListJobsCallable(const ListJobsRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListJobsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListJobs(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::ListJobsAsync(const ListJobsRequest& request, const ListJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListJobsAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::ListJobsAsyncHelper(const ListJobsRequest& request, const ListJobsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListJobs(request), context);
}
ListRevisionAssetsOutcome DataExchangeClient::ListRevisionAssets(const ListRevisionAssetsRequest& request) const
{
if (!request.DataSetIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("ListRevisionAssets", "Required field: DataSetId, is not set");
return ListRevisionAssetsOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataSetId]", false));
}
if (!request.RevisionIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("ListRevisionAssets", "Required field: RevisionId, is not set");
return ListRevisionAssetsOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [RevisionId]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/data-sets/";
ss << request.GetDataSetId();
ss << "/revisions/";
ss << request.GetRevisionId();
ss << "/assets";
uri.SetPath(uri.GetPath() + ss.str());
return ListRevisionAssetsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
ListRevisionAssetsOutcomeCallable DataExchangeClient::ListRevisionAssetsCallable(const ListRevisionAssetsRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListRevisionAssetsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListRevisionAssets(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::ListRevisionAssetsAsync(const ListRevisionAssetsRequest& request, const ListRevisionAssetsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListRevisionAssetsAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::ListRevisionAssetsAsyncHelper(const ListRevisionAssetsRequest& request, const ListRevisionAssetsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListRevisionAssets(request), context);
}
ListTagsForResourceOutcome DataExchangeClient::ListTagsForResource(const ListTagsForResourceRequest& request) const
{
if (!request.ResourceArnHasBeenSet())
{
AWS_LOGSTREAM_ERROR("ListTagsForResource", "Required field: ResourceArn, is not set");
return ListTagsForResourceOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/tags/";
ss << request.GetResourceArn();
uri.SetPath(uri.GetPath() + ss.str());
return ListTagsForResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
ListTagsForResourceOutcomeCallable DataExchangeClient::ListTagsForResourceCallable(const ListTagsForResourceRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListTagsForResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListTagsForResource(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::ListTagsForResourceAsync(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListTagsForResourceAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::ListTagsForResourceAsyncHelper(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListTagsForResource(request), context);
}
StartJobOutcome DataExchangeClient::StartJob(const StartJobRequest& request) const
{
if (!request.JobIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("StartJob", "Required field: JobId, is not set");
return StartJobOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [JobId]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/jobs/";
ss << request.GetJobId();
uri.SetPath(uri.GetPath() + ss.str());
return StartJobOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER));
}
StartJobOutcomeCallable DataExchangeClient::StartJobCallable(const StartJobRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< StartJobOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->StartJob(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::StartJobAsync(const StartJobRequest& request, const StartJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->StartJobAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::StartJobAsyncHelper(const StartJobRequest& request, const StartJobResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, StartJob(request), context);
}
TagResourceOutcome DataExchangeClient::TagResource(const TagResourceRequest& request) const
{
if (!request.ResourceArnHasBeenSet())
{
AWS_LOGSTREAM_ERROR("TagResource", "Required field: ResourceArn, is not set");
return TagResourceOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/tags/";
ss << request.GetResourceArn();
uri.SetPath(uri.GetPath() + ss.str());
return TagResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
TagResourceOutcomeCallable DataExchangeClient::TagResourceCallable(const TagResourceRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< TagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->TagResource(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::TagResourceAsync(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->TagResourceAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::TagResourceAsyncHelper(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, TagResource(request), context);
}
UntagResourceOutcome DataExchangeClient::UntagResource(const UntagResourceRequest& request) const
{
if (!request.ResourceArnHasBeenSet())
{
AWS_LOGSTREAM_ERROR("UntagResource", "Required field: ResourceArn, is not set");
return UntagResourceOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false));
}
if (!request.TagKeysHasBeenSet())
{
AWS_LOGSTREAM_ERROR("UntagResource", "Required field: TagKeys, is not set");
return UntagResourceOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TagKeys]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/tags/";
ss << request.GetResourceArn();
uri.SetPath(uri.GetPath() + ss.str());
return UntagResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER));
}
UntagResourceOutcomeCallable DataExchangeClient::UntagResourceCallable(const UntagResourceRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< UntagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UntagResource(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::UntagResourceAsync(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->UntagResourceAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::UntagResourceAsyncHelper(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, UntagResource(request), context);
}
UpdateAssetOutcome DataExchangeClient::UpdateAsset(const UpdateAssetRequest& request) const
{
if (!request.AssetIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("UpdateAsset", "Required field: AssetId, is not set");
return UpdateAssetOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssetId]", false));
}
if (!request.DataSetIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("UpdateAsset", "Required field: DataSetId, is not set");
return UpdateAssetOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataSetId]", false));
}
if (!request.RevisionIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("UpdateAsset", "Required field: RevisionId, is not set");
return UpdateAssetOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [RevisionId]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/data-sets/";
ss << request.GetDataSetId();
ss << "/revisions/";
ss << request.GetRevisionId();
ss << "/assets/";
ss << request.GetAssetId();
uri.SetPath(uri.GetPath() + ss.str());
return UpdateAssetOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER));
}
UpdateAssetOutcomeCallable DataExchangeClient::UpdateAssetCallable(const UpdateAssetRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< UpdateAssetOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateAsset(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::UpdateAssetAsync(const UpdateAssetRequest& request, const UpdateAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->UpdateAssetAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::UpdateAssetAsyncHelper(const UpdateAssetRequest& request, const UpdateAssetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, UpdateAsset(request), context);
}
UpdateDataSetOutcome DataExchangeClient::UpdateDataSet(const UpdateDataSetRequest& request) const
{
if (!request.DataSetIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("UpdateDataSet", "Required field: DataSetId, is not set");
return UpdateDataSetOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataSetId]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/data-sets/";
ss << request.GetDataSetId();
uri.SetPath(uri.GetPath() + ss.str());
return UpdateDataSetOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER));
}
UpdateDataSetOutcomeCallable DataExchangeClient::UpdateDataSetCallable(const UpdateDataSetRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< UpdateDataSetOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateDataSet(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::UpdateDataSetAsync(const UpdateDataSetRequest& request, const UpdateDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->UpdateDataSetAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::UpdateDataSetAsyncHelper(const UpdateDataSetRequest& request, const UpdateDataSetResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, UpdateDataSet(request), context);
}
UpdateRevisionOutcome DataExchangeClient::UpdateRevision(const UpdateRevisionRequest& request) const
{
if (!request.DataSetIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("UpdateRevision", "Required field: DataSetId, is not set");
return UpdateRevisionOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DataSetId]", false));
}
if (!request.RevisionIdHasBeenSet())
{
AWS_LOGSTREAM_ERROR("UpdateRevision", "Required field: RevisionId, is not set");
return UpdateRevisionOutcome(Aws::Client::AWSError<DataExchangeErrors>(DataExchangeErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [RevisionId]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/v1/data-sets/";
ss << request.GetDataSetId();
ss << "/revisions/";
ss << request.GetRevisionId();
uri.SetPath(uri.GetPath() + ss.str());
return UpdateRevisionOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER));
}
UpdateRevisionOutcomeCallable DataExchangeClient::UpdateRevisionCallable(const UpdateRevisionRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< UpdateRevisionOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateRevision(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void DataExchangeClient::UpdateRevisionAsync(const UpdateRevisionRequest& request, const UpdateRevisionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->UpdateRevisionAsyncHelper( request, handler, context ); } );
}
void DataExchangeClient::UpdateRevisionAsyncHelper(const UpdateRevisionRequest& request, const UpdateRevisionResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, UpdateRevision(request), context);
}

View File

@@ -0,0 +1,64 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dataexchange/DataExchangeEndpoint.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <aws/core/utils/HashingUtils.h>
using namespace Aws;
using namespace Aws::DataExchange;
namespace Aws
{
namespace DataExchange
{
namespace DataExchangeEndpoint
{
static const int CN_NORTH_1_HASH = Aws::Utils::HashingUtils::HashString("cn-north-1");
static const int CN_NORTHWEST_1_HASH = Aws::Utils::HashingUtils::HashString("cn-northwest-1");
static const int US_ISO_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-iso-east-1");
static const int US_ISOB_EAST_1_HASH = Aws::Utils::HashingUtils::HashString("us-isob-east-1");
Aws::String ForRegion(const Aws::String& regionName, bool useDualStack)
{
// Fallback to us-east-1 if global endpoint does not exists.
Aws::String region = regionName == Aws::Region::AWS_GLOBAL ? Aws::Region::US_EAST_1 : regionName;
auto hash = Aws::Utils::HashingUtils::HashString(region.c_str());
Aws::StringStream ss;
ss << "dataexchange" << ".";
if(useDualStack)
{
ss << "dualstack.";
}
ss << region;
if (hash == CN_NORTH_1_HASH || hash == CN_NORTHWEST_1_HASH)
{
ss << ".amazonaws.com.cn";
}
else if (hash == US_ISO_EAST_1_HASH)
{
ss << ".c2s.ic.gov";
}
else if (hash == US_ISOB_EAST_1_HASH)
{
ss << ".sc2s.sgov.gov";
}
else
{
ss << ".amazonaws.com";
}
return ss.str();
}
} // namespace DataExchangeEndpoint
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,22 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/client/AWSError.h>
#include <aws/dataexchange/DataExchangeErrorMarshaller.h>
#include <aws/dataexchange/DataExchangeErrors.h>
using namespace Aws::Client;
using namespace Aws::DataExchange;
AWSError<CoreErrors> DataExchangeErrorMarshaller::FindErrorByName(const char* errorName) const
{
AWSError<CoreErrors> error = DataExchangeErrorMapper::GetErrorForName(errorName);
if(error.GetErrorType() != CoreErrors::UNKNOWN)
{
return error;
}
return AWSErrorMarshaller::FindErrorByName(errorName);
}

View File

@@ -0,0 +1,69 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/client/AWSError.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/dataexchange/DataExchangeErrors.h>
#include <aws/dataexchange/model/ConflictException.h>
#include <aws/dataexchange/model/ResourceNotFoundException.h>
#include <aws/dataexchange/model/ServiceLimitExceededException.h>
using namespace Aws::Client;
using namespace Aws::Utils;
using namespace Aws::DataExchange;
using namespace Aws::DataExchange::Model;
namespace Aws
{
namespace DataExchange
{
template<> AWS_DATAEXCHANGE_API ConflictException DataExchangeError::GetModeledError()
{
assert(this->GetErrorType() == DataExchangeErrors::CONFLICT);
return ConflictException(this->GetJsonPayload().View());
}
template<> AWS_DATAEXCHANGE_API ResourceNotFoundException DataExchangeError::GetModeledError()
{
assert(this->GetErrorType() == DataExchangeErrors::RESOURCE_NOT_FOUND);
return ResourceNotFoundException(this->GetJsonPayload().View());
}
template<> AWS_DATAEXCHANGE_API ServiceLimitExceededException DataExchangeError::GetModeledError()
{
assert(this->GetErrorType() == DataExchangeErrors::SERVICE_LIMIT_EXCEEDED);
return ServiceLimitExceededException(this->GetJsonPayload().View());
}
namespace DataExchangeErrorMapper
{
static const int CONFLICT_HASH = HashingUtils::HashString("ConflictException");
static const int INTERNAL_SERVER_HASH = HashingUtils::HashString("InternalServerException");
static const int SERVICE_LIMIT_EXCEEDED_HASH = HashingUtils::HashString("ServiceLimitExceededException");
AWSError<CoreErrors> GetErrorForName(const char* errorName)
{
int hashCode = HashingUtils::HashString(errorName);
if (hashCode == CONFLICT_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(DataExchangeErrors::CONFLICT), false);
}
else if (hashCode == INTERNAL_SERVER_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(DataExchangeErrors::INTERNAL_SERVER), false);
}
else if (hashCode == SERVICE_LIMIT_EXCEEDED_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(DataExchangeErrors::SERVICE_LIMIT_EXCEEDED), false);
}
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
}
} // namespace DataExchangeErrorMapper
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dataexchange/model/AssetDestinationEntry.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DataExchange
{
namespace Model
{
AssetDestinationEntry::AssetDestinationEntry() :
m_assetIdHasBeenSet(false),
m_bucketHasBeenSet(false),
m_keyHasBeenSet(false)
{
}
AssetDestinationEntry::AssetDestinationEntry(JsonView jsonValue) :
m_assetIdHasBeenSet(false),
m_bucketHasBeenSet(false),
m_keyHasBeenSet(false)
{
*this = jsonValue;
}
AssetDestinationEntry& AssetDestinationEntry::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("AssetId"))
{
m_assetId = jsonValue.GetString("AssetId");
m_assetIdHasBeenSet = true;
}
if(jsonValue.ValueExists("Bucket"))
{
m_bucket = jsonValue.GetString("Bucket");
m_bucketHasBeenSet = true;
}
if(jsonValue.ValueExists("Key"))
{
m_key = jsonValue.GetString("Key");
m_keyHasBeenSet = true;
}
return *this;
}
JsonValue AssetDestinationEntry::Jsonize() const
{
JsonValue payload;
if(m_assetIdHasBeenSet)
{
payload.WithString("AssetId", m_assetId);
}
if(m_bucketHasBeenSet)
{
payload.WithString("Bucket", m_bucket);
}
if(m_keyHasBeenSet)
{
payload.WithString("Key", m_key);
}
return payload;
}
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dataexchange/model/AssetDetails.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DataExchange
{
namespace Model
{
AssetDetails::AssetDetails() :
m_s3SnapshotAssetHasBeenSet(false)
{
}
AssetDetails::AssetDetails(JsonView jsonValue) :
m_s3SnapshotAssetHasBeenSet(false)
{
*this = jsonValue;
}
AssetDetails& AssetDetails::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("S3SnapshotAsset"))
{
m_s3SnapshotAsset = jsonValue.GetObject("S3SnapshotAsset");
m_s3SnapshotAssetHasBeenSet = true;
}
return *this;
}
JsonValue AssetDetails::Jsonize() const
{
JsonValue payload;
if(m_s3SnapshotAssetHasBeenSet)
{
payload.WithObject("S3SnapshotAsset", m_s3SnapshotAsset.Jsonize());
}
return payload;
}
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,193 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dataexchange/model/AssetEntry.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DataExchange
{
namespace Model
{
AssetEntry::AssetEntry() :
m_arnHasBeenSet(false),
m_assetDetailsHasBeenSet(false),
m_assetType(AssetType::NOT_SET),
m_assetTypeHasBeenSet(false),
m_createdAtHasBeenSet(false),
m_dataSetIdHasBeenSet(false),
m_idHasBeenSet(false),
m_nameHasBeenSet(false),
m_revisionIdHasBeenSet(false),
m_sourceIdHasBeenSet(false),
m_updatedAtHasBeenSet(false)
{
}
AssetEntry::AssetEntry(JsonView jsonValue) :
m_arnHasBeenSet(false),
m_assetDetailsHasBeenSet(false),
m_assetType(AssetType::NOT_SET),
m_assetTypeHasBeenSet(false),
m_createdAtHasBeenSet(false),
m_dataSetIdHasBeenSet(false),
m_idHasBeenSet(false),
m_nameHasBeenSet(false),
m_revisionIdHasBeenSet(false),
m_sourceIdHasBeenSet(false),
m_updatedAtHasBeenSet(false)
{
*this = jsonValue;
}
AssetEntry& AssetEntry::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Arn"))
{
m_arn = jsonValue.GetString("Arn");
m_arnHasBeenSet = true;
}
if(jsonValue.ValueExists("AssetDetails"))
{
m_assetDetails = jsonValue.GetObject("AssetDetails");
m_assetDetailsHasBeenSet = true;
}
if(jsonValue.ValueExists("AssetType"))
{
m_assetType = AssetTypeMapper::GetAssetTypeForName(jsonValue.GetString("AssetType"));
m_assetTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("CreatedAt"))
{
m_createdAt = jsonValue.GetString("CreatedAt");
m_createdAtHasBeenSet = true;
}
if(jsonValue.ValueExists("DataSetId"))
{
m_dataSetId = jsonValue.GetString("DataSetId");
m_dataSetIdHasBeenSet = true;
}
if(jsonValue.ValueExists("Id"))
{
m_id = jsonValue.GetString("Id");
m_idHasBeenSet = true;
}
if(jsonValue.ValueExists("Name"))
{
m_name = jsonValue.GetString("Name");
m_nameHasBeenSet = true;
}
if(jsonValue.ValueExists("RevisionId"))
{
m_revisionId = jsonValue.GetString("RevisionId");
m_revisionIdHasBeenSet = true;
}
if(jsonValue.ValueExists("SourceId"))
{
m_sourceId = jsonValue.GetString("SourceId");
m_sourceIdHasBeenSet = true;
}
if(jsonValue.ValueExists("UpdatedAt"))
{
m_updatedAt = jsonValue.GetString("UpdatedAt");
m_updatedAtHasBeenSet = true;
}
return *this;
}
JsonValue AssetEntry::Jsonize() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("Arn", m_arn);
}
if(m_assetDetailsHasBeenSet)
{
payload.WithObject("AssetDetails", m_assetDetails.Jsonize());
}
if(m_assetTypeHasBeenSet)
{
payload.WithString("AssetType", AssetTypeMapper::GetNameForAssetType(m_assetType));
}
if(m_createdAtHasBeenSet)
{
payload.WithString("CreatedAt", m_createdAt.ToGmtString(DateFormat::ISO_8601));
}
if(m_dataSetIdHasBeenSet)
{
payload.WithString("DataSetId", m_dataSetId);
}
if(m_idHasBeenSet)
{
payload.WithString("Id", m_id);
}
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_revisionIdHasBeenSet)
{
payload.WithString("RevisionId", m_revisionId);
}
if(m_sourceIdHasBeenSet)
{
payload.WithString("SourceId", m_sourceId);
}
if(m_updatedAtHasBeenSet)
{
payload.WithString("UpdatedAt", m_updatedAt.ToGmtString(DateFormat::ISO_8601));
}
return payload;
}
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dataexchange/model/AssetSourceEntry.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DataExchange
{
namespace Model
{
AssetSourceEntry::AssetSourceEntry() :
m_bucketHasBeenSet(false),
m_keyHasBeenSet(false)
{
}
AssetSourceEntry::AssetSourceEntry(JsonView jsonValue) :
m_bucketHasBeenSet(false),
m_keyHasBeenSet(false)
{
*this = jsonValue;
}
AssetSourceEntry& AssetSourceEntry::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Bucket"))
{
m_bucket = jsonValue.GetString("Bucket");
m_bucketHasBeenSet = true;
}
if(jsonValue.ValueExists("Key"))
{
m_key = jsonValue.GetString("Key");
m_keyHasBeenSet = true;
}
return *this;
}
JsonValue AssetSourceEntry::Jsonize() const
{
JsonValue payload;
if(m_bucketHasBeenSet)
{
payload.WithString("Bucket", m_bucket);
}
if(m_keyHasBeenSet)
{
payload.WithString("Key", m_key);
}
return payload;
}
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,63 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dataexchange/model/AssetType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace DataExchange
{
namespace Model
{
namespace AssetTypeMapper
{
static const int S3_SNAPSHOT_HASH = HashingUtils::HashString("S3_SNAPSHOT");
AssetType GetAssetTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == S3_SNAPSHOT_HASH)
{
return AssetType::S3_SNAPSHOT;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<AssetType>(hashCode);
}
return AssetType::NOT_SET;
}
Aws::String GetNameForAssetType(AssetType enumValue)
{
switch(enumValue)
{
case AssetType::S3_SNAPSHOT:
return "S3_SNAPSHOT";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace AssetTypeMapper
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,27 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dataexchange/model/CancelJobRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DataExchange::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CancelJobRequest::CancelJobRequest() :
m_jobIdHasBeenSet(false)
{
}
Aws::String CancelJobRequest::SerializePayload() const
{
return {};
}

View File

@@ -0,0 +1,105 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dataexchange/model/Code.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace DataExchange
{
namespace Model
{
namespace CodeMapper
{
static const int ACCESS_DENIED_EXCEPTION_HASH = HashingUtils::HashString("ACCESS_DENIED_EXCEPTION");
static const int INTERNAL_SERVER_EXCEPTION_HASH = HashingUtils::HashString("INTERNAL_SERVER_EXCEPTION");
static const int MALWARE_DETECTED_HASH = HashingUtils::HashString("MALWARE_DETECTED");
static const int RESOURCE_NOT_FOUND_EXCEPTION_HASH = HashingUtils::HashString("RESOURCE_NOT_FOUND_EXCEPTION");
static const int SERVICE_QUOTA_EXCEEDED_EXCEPTION_HASH = HashingUtils::HashString("SERVICE_QUOTA_EXCEEDED_EXCEPTION");
static const int VALIDATION_EXCEPTION_HASH = HashingUtils::HashString("VALIDATION_EXCEPTION");
static const int MALWARE_SCAN_ENCRYPTED_FILE_HASH = HashingUtils::HashString("MALWARE_SCAN_ENCRYPTED_FILE");
Code GetCodeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == ACCESS_DENIED_EXCEPTION_HASH)
{
return Code::ACCESS_DENIED_EXCEPTION;
}
else if (hashCode == INTERNAL_SERVER_EXCEPTION_HASH)
{
return Code::INTERNAL_SERVER_EXCEPTION;
}
else if (hashCode == MALWARE_DETECTED_HASH)
{
return Code::MALWARE_DETECTED;
}
else if (hashCode == RESOURCE_NOT_FOUND_EXCEPTION_HASH)
{
return Code::RESOURCE_NOT_FOUND_EXCEPTION;
}
else if (hashCode == SERVICE_QUOTA_EXCEEDED_EXCEPTION_HASH)
{
return Code::SERVICE_QUOTA_EXCEEDED_EXCEPTION;
}
else if (hashCode == VALIDATION_EXCEPTION_HASH)
{
return Code::VALIDATION_EXCEPTION;
}
else if (hashCode == MALWARE_SCAN_ENCRYPTED_FILE_HASH)
{
return Code::MALWARE_SCAN_ENCRYPTED_FILE;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<Code>(hashCode);
}
return Code::NOT_SET;
}
Aws::String GetNameForCode(Code enumValue)
{
switch(enumValue)
{
case Code::ACCESS_DENIED_EXCEPTION:
return "ACCESS_DENIED_EXCEPTION";
case Code::INTERNAL_SERVER_EXCEPTION:
return "INTERNAL_SERVER_EXCEPTION";
case Code::MALWARE_DETECTED:
return "MALWARE_DETECTED";
case Code::RESOURCE_NOT_FOUND_EXCEPTION:
return "RESOURCE_NOT_FOUND_EXCEPTION";
case Code::SERVICE_QUOTA_EXCEEDED_EXCEPTION:
return "SERVICE_QUOTA_EXCEEDED_EXCEPTION";
case Code::VALIDATION_EXCEPTION:
return "VALIDATION_EXCEPTION";
case Code::MALWARE_SCAN_ENCRYPTED_FILE:
return "MALWARE_SCAN_ENCRYPTED_FILE";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace CodeMapper
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,90 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dataexchange/model/ConflictException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DataExchange
{
namespace Model
{
ConflictException::ConflictException() :
m_messageHasBeenSet(false),
m_resourceIdHasBeenSet(false),
m_resourceType(ResourceType::NOT_SET),
m_resourceTypeHasBeenSet(false)
{
}
ConflictException::ConflictException(JsonView jsonValue) :
m_messageHasBeenSet(false),
m_resourceIdHasBeenSet(false),
m_resourceType(ResourceType::NOT_SET),
m_resourceTypeHasBeenSet(false)
{
*this = jsonValue;
}
ConflictException& ConflictException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Message"))
{
m_message = jsonValue.GetString("Message");
m_messageHasBeenSet = true;
}
if(jsonValue.ValueExists("ResourceId"))
{
m_resourceId = jsonValue.GetString("ResourceId");
m_resourceIdHasBeenSet = true;
}
if(jsonValue.ValueExists("ResourceType"))
{
m_resourceType = ResourceTypeMapper::GetResourceTypeForName(jsonValue.GetString("ResourceType"));
m_resourceTypeHasBeenSet = true;
}
return *this;
}
JsonValue ConflictException::Jsonize() const
{
JsonValue payload;
if(m_messageHasBeenSet)
{
payload.WithString("Message", m_message);
}
if(m_resourceIdHasBeenSet)
{
payload.WithString("ResourceId", m_resourceId);
}
if(m_resourceTypeHasBeenSet)
{
payload.WithString("ResourceType", ResourceTypeMapper::GetNameForResourceType(m_resourceType));
}
return payload;
}
} // namespace Model
} // namespace DataExchange
} // namespace Aws

View File

@@ -0,0 +1,61 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dataexchange/model/CreateDataSetRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DataExchange::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateDataSetRequest::CreateDataSetRequest() :
m_assetType(AssetType::NOT_SET),
m_assetTypeHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_nameHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String CreateDataSetRequest::SerializePayload() const
{
JsonValue payload;
if(m_assetTypeHasBeenSet)
{
payload.WithString("AssetType", AssetTypeMapper::GetNameForAssetType(m_assetType));
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("Tags", std::move(tagsJsonMap));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,107 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dataexchange/model/CreateDataSetResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DataExchange::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateDataSetResult::CreateDataSetResult() :
m_assetType(AssetType::NOT_SET),
m_origin(Origin::NOT_SET)
{
}
CreateDataSetResult::CreateDataSetResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
m_assetType(AssetType::NOT_SET),
m_origin(Origin::NOT_SET)
{
*this = result;
}
CreateDataSetResult& CreateDataSetResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Arn"))
{
m_arn = jsonValue.GetString("Arn");
}
if(jsonValue.ValueExists("AssetType"))
{
m_assetType = AssetTypeMapper::GetAssetTypeForName(jsonValue.GetString("AssetType"));
}
if(jsonValue.ValueExists("CreatedAt"))
{
m_createdAt = jsonValue.GetString("CreatedAt");
}
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
}
if(jsonValue.ValueExists("Id"))
{
m_id = jsonValue.GetString("Id");
}
if(jsonValue.ValueExists("Name"))
{
m_name = jsonValue.GetString("Name");
}
if(jsonValue.ValueExists("Origin"))
{
m_origin = OriginMapper::GetOriginForName(jsonValue.GetString("Origin"));
}
if(jsonValue.ValueExists("OriginDetails"))
{
m_originDetails = jsonValue.GetObject("OriginDetails");
}
if(jsonValue.ValueExists("SourceId"))
{
m_sourceId = jsonValue.GetString("SourceId");
}
if(jsonValue.ValueExists("Tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("Tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
if(jsonValue.ValueExists("UpdatedAt"))
{
m_updatedAt = jsonValue.GetString("UpdatedAt");
}
return *this;
}

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dataexchange/model/CreateJobRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DataExchange::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateJobRequest::CreateJobRequest() :
m_detailsHasBeenSet(false),
m_type(Type::NOT_SET),
m_typeHasBeenSet(false)
{
}
Aws::String CreateJobRequest::SerializePayload() const
{
JsonValue payload;
if(m_detailsHasBeenSet)
{
payload.WithObject("Details", m_details.Jsonize());
}
if(m_typeHasBeenSet)
{
payload.WithString("Type", TypeMapper::GetNameForType(m_type));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dataexchange/model/CreateJobResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DataExchange::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateJobResult::CreateJobResult() :
m_state(State::NOT_SET),
m_type(Type::NOT_SET)
{
}
CreateJobResult::CreateJobResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
m_state(State::NOT_SET),
m_type(Type::NOT_SET)
{
*this = result;
}
CreateJobResult& CreateJobResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Arn"))
{
m_arn = jsonValue.GetString("Arn");
}
if(jsonValue.ValueExists("CreatedAt"))
{
m_createdAt = jsonValue.GetString("CreatedAt");
}
if(jsonValue.ValueExists("Details"))
{
m_details = jsonValue.GetObject("Details");
}
if(jsonValue.ValueExists("Errors"))
{
Array<JsonView> errorsJsonList = jsonValue.GetArray("Errors");
for(unsigned errorsIndex = 0; errorsIndex < errorsJsonList.GetLength(); ++errorsIndex)
{
m_errors.push_back(errorsJsonList[errorsIndex].AsObject());
}
}
if(jsonValue.ValueExists("Id"))
{
m_id = jsonValue.GetString("Id");
}
if(jsonValue.ValueExists("State"))
{
m_state = StateMapper::GetStateForName(jsonValue.GetString("State"));
}
if(jsonValue.ValueExists("Type"))
{
m_type = TypeMapper::GetTypeForName(jsonValue.GetString("Type"));
}
if(jsonValue.ValueExists("UpdatedAt"))
{
m_updatedAt = jsonValue.GetString("UpdatedAt");
}
return *this;
}

View File

@@ -0,0 +1,48 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dataexchange/model/CreateRevisionRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::DataExchange::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateRevisionRequest::CreateRevisionRequest() :
m_commentHasBeenSet(false),
m_dataSetIdHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String CreateRevisionRequest::SerializePayload() const
{
JsonValue payload;
if(m_commentHasBeenSet)
{
payload.WithString("Comment", m_comment);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("Tags", std::move(tagsJsonMap));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,93 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dataexchange/model/CreateRevisionResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::DataExchange::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateRevisionResult::CreateRevisionResult() :
m_finalized(false)
{
}
CreateRevisionResult::CreateRevisionResult(const Aws::AmazonWebServiceResult<JsonValue>& result) :
m_finalized(false)
{
*this = result;
}
CreateRevisionResult& CreateRevisionResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("Arn"))
{
m_arn = jsonValue.GetString("Arn");
}
if(jsonValue.ValueExists("Comment"))
{
m_comment = jsonValue.GetString("Comment");
}
if(jsonValue.ValueExists("CreatedAt"))
{
m_createdAt = jsonValue.GetString("CreatedAt");
}
if(jsonValue.ValueExists("DataSetId"))
{
m_dataSetId = jsonValue.GetString("DataSetId");
}
if(jsonValue.ValueExists("Finalized"))
{
m_finalized = jsonValue.GetBool("Finalized");
}
if(jsonValue.ValueExists("Id"))
{
m_id = jsonValue.GetString("Id");
}
if(jsonValue.ValueExists("SourceId"))
{
m_sourceId = jsonValue.GetString("SourceId");
}
if(jsonValue.ValueExists("Tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("Tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
if(jsonValue.ValueExists("UpdatedAt"))
{
m_updatedAt = jsonValue.GetString("UpdatedAt");
}
return *this;
}

View File

@@ -0,0 +1,194 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/dataexchange/model/DataSetEntry.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace DataExchange
{
namespace Model
{
DataSetEntry::DataSetEntry() :
m_arnHasBeenSet(false),
m_assetType(AssetType::NOT_SET),
m_assetTypeHasBeenSet(false),
m_createdAtHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_idHasBeenSet(false),
m_nameHasBeenSet(false),
m_origin(Origin::NOT_SET),
m_originHasBeenSet(false),
m_originDetailsHasBeenSet(false),
m_sourceIdHasBeenSet(false),
m_updatedAtHasBeenSet(false)
{
}
DataSetEntry::DataSetEntry(JsonView jsonValue) :
m_arnHasBeenSet(false),
m_assetType(AssetType::NOT_SET),
m_assetTypeHasBeenSet(false),
m_createdAtHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_idHasBeenSet(false),
m_nameHasBeenSet(false),
m_origin(Origin::NOT_SET),
m_originHasBeenSet(false),
m_originDetailsHasBeenSet(false),
m_sourceIdHasBeenSet(false),
m_updatedAtHasBeenSet(false)
{
*this = jsonValue;
}
DataSetEntry& DataSetEntry::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("Arn"))
{
m_arn = jsonValue.GetString("Arn");
m_arnHasBeenSet = true;
}
if(jsonValue.ValueExists("AssetType"))
{
m_assetType = AssetTypeMapper::GetAssetTypeForName(jsonValue.GetString("AssetType"));
m_assetTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("CreatedAt"))
{
m_createdAt = jsonValue.GetString("CreatedAt");
m_createdAtHasBeenSet = true;
}
if(jsonValue.ValueExists("Description"))
{
m_description = jsonValue.GetString("Description");
m_descriptionHasBeenSet = true;
}
if(jsonValue.ValueExists("Id"))
{
m_id = jsonValue.GetString("Id");
m_idHasBeenSet = true;
}
if(jsonValue.ValueExists("Name"))
{
m_name = jsonValue.GetString("Name");
m_nameHasBeenSet = true;
}
if(jsonValue.ValueExists("Origin"))
{
m_origin = OriginMapper::GetOriginForName(jsonValue.GetString("Origin"));
m_originHasBeenSet = true;
}
if(jsonValue.ValueExists("OriginDetails"))
{
m_originDetails = jsonValue.GetObject("OriginDetails");
m_originDetailsHasBeenSet = true;
}
if(jsonValue.ValueExists("SourceId"))
{
m_sourceId = jsonValue.GetString("SourceId");
m_sourceIdHasBeenSet = true;
}
if(jsonValue.ValueExists("UpdatedAt"))
{
m_updatedAt = jsonValue.GetString("UpdatedAt");
m_updatedAtHasBeenSet = true;
}
return *this;
}
JsonValue DataSetEntry::Jsonize() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("Arn", m_arn);
}
if(m_assetTypeHasBeenSet)
{
payload.WithString("AssetType", AssetTypeMapper::GetNameForAssetType(m_assetType));
}
if(m_createdAtHasBeenSet)
{
payload.WithString("CreatedAt", m_createdAt.ToGmtString(DateFormat::ISO_8601));
}
if(m_descriptionHasBeenSet)
{
payload.WithString("Description", m_description);
}
if(m_idHasBeenSet)
{
payload.WithString("Id", m_id);
}
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_originHasBeenSet)
{
payload.WithString("Origin", OriginMapper::GetNameForOrigin(m_origin));
}
if(m_originDetailsHasBeenSet)
{
payload.WithObject("OriginDetails", m_originDetails.Jsonize());
}
if(m_sourceIdHasBeenSet)
{
payload.WithString("SourceId", m_sourceId);
}
if(m_updatedAtHasBeenSet)
{
payload.WithString("UpdatedAt", m_updatedAt.ToGmtString(DateFormat::ISO_8601));
}
return payload;
}
} // namespace Model
} // namespace DataExchange
} // namespace Aws

Some files were not shown because too many files have changed in this diff Show More