diff --git a/generated/src/aws-cpp-sdk-backupstorage/CMakeLists.txt b/generated/src/aws-cpp-sdk-backupstorage/CMakeLists.txt deleted file mode 100644 index 3483328f2f7..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/CMakeLists.txt +++ /dev/null @@ -1,76 +0,0 @@ -add_project(aws-cpp-sdk-backupstorage "C++ SDK for the AWS backupstorage service" aws-cpp-sdk-core) - -file(GLOB AWS_BACKUPSTORAGE_HEADERS - "include/aws/backupstorage/*.h" -) - -file(GLOB AWS_BACKUPSTORAGE_MODEL_HEADERS - "include/aws/backupstorage/model/*.h" -) - -file(GLOB AWS_BACKUPSTORAGE_SOURCE - "source/*.cpp" -) - -file(GLOB AWS_BACKUPSTORAGE_MODEL_SOURCE - "source/model/*.cpp" -) - -file(GLOB BACKUPSTORAGE_UNIFIED_HEADERS - ${AWS_BACKUPSTORAGE_HEADERS} - ${AWS_BACKUPSTORAGE_MODEL_HEADERS} -) - -file(GLOB BACKUPSTORAGE_UNITY_SRC - ${AWS_BACKUPSTORAGE_SOURCE} - ${AWS_BACKUPSTORAGE_MODEL_SOURCE} -) - -if(ENABLE_UNITY_BUILD) - enable_unity_build("BACKUPSTORAGE" BACKUPSTORAGE_UNITY_SRC) -endif() - -file(GLOB BACKUPSTORAGE_SRC - ${BACKUPSTORAGE_UNIFIED_HEADERS} - ${BACKUPSTORAGE_UNITY_SRC} -) - -if(WIN32) - #if we are compiling for visual studio, create a sane directory tree. - if(MSVC) - source_group("Header Files\\aws\\backupstorage" FILES ${AWS_BACKUPSTORAGE_HEADERS}) - source_group("Header Files\\aws\\backupstorage\\model" FILES ${AWS_BACKUPSTORAGE_MODEL_HEADERS}) - source_group("Source Files" FILES ${AWS_BACKUPSTORAGE_SOURCE}) - source_group("Source Files\\model" FILES ${AWS_BACKUPSTORAGE_MODEL_SOURCE}) - endif(MSVC) -endif() - -set(BACKUPSTORAGE_INCLUDES - "${CMAKE_CURRENT_SOURCE_DIR}/include/" -) - -add_library(${PROJECT_NAME} ${BACKUPSTORAGE_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_BACKUPSTORAGE_EXPORTS") -endif() - -target_include_directories(${PROJECT_NAME} PUBLIC - $ - $) - -target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS}) - - -setup_install() - -install (FILES ${AWS_BACKUPSTORAGE_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/backupstorage) -install (FILES ${AWS_BACKUPSTORAGE_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/backupstorage/model) - -do_packaging() - - diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageClient.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageClient.h deleted file mode 100644 index 5488938733e..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageClient.h +++ /dev/null @@ -1,318 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include -#include -#include - -namespace Aws -{ -namespace BackupStorage -{ - /** - * The frontend service for Cryo Storage. - */ - class AWS_BACKUPSTORAGE_API BackupStorageClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods - { - public: - typedef Aws::Client::AWSJsonClient BASECLASS; - static const char* GetServiceName(); - static const char* GetAllocationTag(); - - typedef BackupStorageClientConfiguration ClientConfigurationType; - typedef BackupStorageEndpointProvider EndpointProviderType; - - /** - * 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. - */ - BackupStorageClient(const Aws::BackupStorage::BackupStorageClientConfiguration& clientConfiguration = Aws::BackupStorage::BackupStorageClientConfiguration(), - std::shared_ptr endpointProvider = nullptr); - - /** - * 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. - */ - BackupStorageClient(const Aws::Auth::AWSCredentials& credentials, - std::shared_ptr endpointProvider = nullptr, - const Aws::BackupStorage::BackupStorageClientConfiguration& clientConfiguration = Aws::BackupStorage::BackupStorageClientConfiguration()); - - /** - * 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 - */ - BackupStorageClient(const std::shared_ptr& credentialsProvider, - std::shared_ptr endpointProvider = nullptr, - const Aws::BackupStorage::BackupStorageClientConfiguration& clientConfiguration = Aws::BackupStorage::BackupStorageClientConfiguration()); - - - /* Legacy constructors due deprecation */ - /** - * 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. - */ - BackupStorageClient(const Aws::Client::ClientConfiguration& 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. - */ - BackupStorageClient(const Aws::Auth::AWSCredentials& credentials, - const Aws::Client::ClientConfiguration& 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 - */ - BackupStorageClient(const std::shared_ptr& credentialsProvider, - const Aws::Client::ClientConfiguration& clientConfiguration); - - /* End of legacy constructors due deprecation */ - virtual ~BackupStorageClient(); - - /** - * Delete Object from the incremental base Backup.

See Also:

AWS - * API Reference

- */ - virtual Model::DeleteObjectOutcome DeleteObject(const Model::DeleteObjectRequest& request) const; - - /** - * A Callable wrapper for DeleteObject that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::DeleteObjectOutcomeCallable DeleteObjectCallable(const DeleteObjectRequestT& request) const - { - return SubmitCallable(&BackupStorageClient::DeleteObject, request); - } - - /** - * An Async wrapper for DeleteObject that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void DeleteObjectAsync(const DeleteObjectRequestT& request, const DeleteObjectResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&BackupStorageClient::DeleteObject, request, handler, context); - } - - /** - * Gets the specified object's chunk.

See Also:

AWS - * API Reference

- */ - virtual Model::GetChunkOutcome GetChunk(const Model::GetChunkRequest& request) const; - - /** - * A Callable wrapper for GetChunk that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::GetChunkOutcomeCallable GetChunkCallable(const GetChunkRequestT& request) const - { - return SubmitCallable(&BackupStorageClient::GetChunk, request); - } - - /** - * An Async wrapper for GetChunk that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void GetChunkAsync(const GetChunkRequestT& request, const GetChunkResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&BackupStorageClient::GetChunk, request, handler, context); - } - - /** - * Get metadata associated with an Object.

See Also:

AWS - * API Reference

- */ - virtual Model::GetObjectMetadataOutcome GetObjectMetadata(const Model::GetObjectMetadataRequest& request) const; - - /** - * A Callable wrapper for GetObjectMetadata that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::GetObjectMetadataOutcomeCallable GetObjectMetadataCallable(const GetObjectMetadataRequestT& request) const - { - return SubmitCallable(&BackupStorageClient::GetObjectMetadata, request); - } - - /** - * An Async wrapper for GetObjectMetadata that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void GetObjectMetadataAsync(const GetObjectMetadataRequestT& request, const GetObjectMetadataResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&BackupStorageClient::GetObjectMetadata, request, handler, context); - } - - /** - * List chunks in a given Object

See Also:

AWS - * API Reference

- */ - virtual Model::ListChunksOutcome ListChunks(const Model::ListChunksRequest& request) const; - - /** - * A Callable wrapper for ListChunks that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::ListChunksOutcomeCallable ListChunksCallable(const ListChunksRequestT& request) const - { - return SubmitCallable(&BackupStorageClient::ListChunks, request); - } - - /** - * An Async wrapper for ListChunks that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void ListChunksAsync(const ListChunksRequestT& request, const ListChunksResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&BackupStorageClient::ListChunks, request, handler, context); - } - - /** - * List all Objects in a given Backup.

See Also:

AWS - * API Reference

- */ - virtual Model::ListObjectsOutcome ListObjects(const Model::ListObjectsRequest& request) const; - - /** - * A Callable wrapper for ListObjects that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::ListObjectsOutcomeCallable ListObjectsCallable(const ListObjectsRequestT& request) const - { - return SubmitCallable(&BackupStorageClient::ListObjects, request); - } - - /** - * An Async wrapper for ListObjects that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void ListObjectsAsync(const ListObjectsRequestT& request, const ListObjectsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&BackupStorageClient::ListObjects, request, handler, context); - } - - /** - * Complete upload

See Also:

AWS - * API Reference

- */ - virtual Model::NotifyObjectCompleteOutcome NotifyObjectComplete(const Model::NotifyObjectCompleteRequest& request) const; - - /** - * A Callable wrapper for NotifyObjectComplete that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::NotifyObjectCompleteOutcomeCallable NotifyObjectCompleteCallable(const NotifyObjectCompleteRequestT& request) const - { - return SubmitCallable(&BackupStorageClient::NotifyObjectComplete, request); - } - - /** - * An Async wrapper for NotifyObjectComplete that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void NotifyObjectCompleteAsync(const NotifyObjectCompleteRequestT& request, const NotifyObjectCompleteResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&BackupStorageClient::NotifyObjectComplete, request, handler, context); - } - - /** - * Upload chunk.

See Also:

AWS - * API Reference

- */ - virtual Model::PutChunkOutcome PutChunk(const Model::PutChunkRequest& request) const; - - /** - * A Callable wrapper for PutChunk that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::PutChunkOutcomeCallable PutChunkCallable(const PutChunkRequestT& request) const - { - return SubmitCallable(&BackupStorageClient::PutChunk, request); - } - - /** - * An Async wrapper for PutChunk that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void PutChunkAsync(const PutChunkRequestT& request, const PutChunkResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&BackupStorageClient::PutChunk, request, handler, context); - } - - /** - * Upload object that can store object metadata String and data blob in single API - * call using inline chunk field.

See Also:

AWS - * API Reference

- */ - virtual Model::PutObjectOutcome PutObject(const Model::PutObjectRequest& request) const; - - /** - * A Callable wrapper for PutObject that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::PutObjectOutcomeCallable PutObjectCallable(const PutObjectRequestT& request) const - { - return SubmitCallable(&BackupStorageClient::PutObject, request); - } - - /** - * An Async wrapper for PutObject that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void PutObjectAsync(const PutObjectRequestT& request, const PutObjectResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&BackupStorageClient::PutObject, request, handler, context); - } - - /** - * Start upload containing one or many chunks.

See Also:

AWS - * API Reference

- */ - virtual Model::StartObjectOutcome StartObject(const Model::StartObjectRequest& request) const; - - /** - * A Callable wrapper for StartObject that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::StartObjectOutcomeCallable StartObjectCallable(const StartObjectRequestT& request) const - { - return SubmitCallable(&BackupStorageClient::StartObject, request); - } - - /** - * An Async wrapper for StartObject that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void StartObjectAsync(const StartObjectRequestT& request, const StartObjectResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&BackupStorageClient::StartObject, request, handler, context); - } - - - void OverrideEndpoint(const Aws::String& endpoint); - std::shared_ptr& accessEndpointProvider(); - private: - friend class Aws::Client::ClientWithAsyncTemplateMethods; - void init(const BackupStorageClientConfiguration& clientConfiguration); - - BackupStorageClientConfiguration m_clientConfiguration; - std::shared_ptr m_executor; - std::shared_ptr m_endpointProvider; - }; - -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageEndpointProvider.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageEndpointProvider.h deleted file mode 100644 index 69c89b4bc80..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageEndpointProvider.h +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include -#include -#include - -#include - - -namespace Aws -{ -namespace BackupStorage -{ -namespace Endpoint -{ -using EndpointParameters = Aws::Endpoint::EndpointParameters; -using Aws::Endpoint::EndpointProviderBase; -using Aws::Endpoint::DefaultEndpointProvider; - -using BackupStorageClientContextParameters = Aws::Endpoint::ClientContextParameters; - -using BackupStorageClientConfiguration = Aws::Client::GenericClientConfiguration; -using BackupStorageBuiltInParameters = Aws::Endpoint::BuiltInParameters; - -/** - * The type for the BackupStorage Client Endpoint Provider. - * Inherit from this Base class / "Interface" should you want to provide a custom endpoint provider. - * The SDK must use service-specific type for each service per specification. - */ -using BackupStorageEndpointProviderBase = - EndpointProviderBase; - -using BackupStorageDefaultEpProviderBase = - DefaultEndpointProvider; - -/** - * Default endpoint provider used for this service - */ -class AWS_BACKUPSTORAGE_API BackupStorageEndpointProvider : public BackupStorageDefaultEpProviderBase -{ -public: - using BackupStorageResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; - - BackupStorageEndpointProvider() - : BackupStorageDefaultEpProviderBase(Aws::BackupStorage::BackupStorageEndpointRules::GetRulesBlob(), Aws::BackupStorage::BackupStorageEndpointRules::RulesBlobSize) - {} - - ~BackupStorageEndpointProvider() - { - } -}; -} // namespace Endpoint -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageEndpointRules.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageEndpointRules.h deleted file mode 100644 index 54a43a07a0f..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageEndpointRules.h +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include - -namespace Aws -{ -namespace BackupStorage -{ -class BackupStorageEndpointRules -{ -public: - static const size_t RulesBlobStrLen; - static const size_t RulesBlobSize; - - static const char* GetRulesBlob(); -}; -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageErrorMarshaller.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageErrorMarshaller.h deleted file mode 100644 index 980f2699660..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageErrorMarshaller.h +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once - -#include -#include - -namespace Aws -{ -namespace Client -{ - -class AWS_BACKUPSTORAGE_API BackupStorageErrorMarshaller : public Aws::Client::JsonErrorMarshaller -{ -public: - Aws::Client::AWSError FindErrorByName(const char* exceptionName) const override; -}; - -} // namespace Client -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageErrors.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageErrors.h deleted file mode 100644 index 6046c3fd073..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageErrors.h +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once - -#include -#include -#include - -namespace Aws -{ -namespace BackupStorage -{ -enum class BackupStorageErrors -{ - //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, - /////////////////////////////////////////////////////////////////////////////////////////// - - DATA_ALREADY_EXISTS= static_cast(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1, - ILLEGAL_ARGUMENT, - K_M_S_INVALID_KEY_USAGE, - NOT_READABLE_INPUT_STREAM, - RETRYABLE, - SERVICE_INTERNAL -}; - -class AWS_BACKUPSTORAGE_API BackupStorageError : public Aws::Client::AWSError -{ -public: - BackupStorageError() {} - BackupStorageError(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} - BackupStorageError(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} - BackupStorageError(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} - BackupStorageError(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} - - template - T GetModeledError(); -}; - -namespace BackupStorageErrorMapper -{ - AWS_BACKUPSTORAGE_API Aws::Client::AWSError GetErrorForName(const char* errorName); -} - -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageRequest.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageRequest.h deleted file mode 100644 index bfafa7ee3a5..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include -#include -#include - -namespace Aws -{ -namespace BackupStorage -{ - class AWS_BACKUPSTORAGE_API BackupStorageRequest : public Aws::AmazonSerializableWebServiceRequest - { - public: - using EndpointParameter = Aws::Endpoint::EndpointParameter; - using EndpointParameters = Aws::Endpoint::EndpointParameters; - - virtual ~BackupStorageRequest () {} - - 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::JSON_CONTENT_TYPE )); - } - headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2018-04-10")); - return headers; - } - - protected: - virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); } - - }; - - typedef Aws::AmazonStreamingWebServiceRequest StreamingBackupStorageRequest; - -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageServiceClientModel.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageServiceClientModel.h deleted file mode 100644 index fd10eee6d90..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorageServiceClientModel.h +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once - -/* Generic header includes */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -/* End of generic header includes */ - -/* Service model headers required in BackupStorageClient header */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -/* End of service model headers required in BackupStorageClient header */ - -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 BackupStorage - { - using BackupStorageClientConfiguration = Aws::Client::GenericClientConfiguration; - using BackupStorageEndpointProviderBase = Aws::BackupStorage::Endpoint::BackupStorageEndpointProviderBase; - using BackupStorageEndpointProvider = Aws::BackupStorage::Endpoint::BackupStorageEndpointProvider; - - namespace Model - { - /* Service model forward declarations required in BackupStorageClient header */ - class DeleteObjectRequest; - class GetChunkRequest; - class GetObjectMetadataRequest; - class ListChunksRequest; - class ListObjectsRequest; - class NotifyObjectCompleteRequest; - class PutChunkRequest; - class PutObjectRequest; - class StartObjectRequest; - /* End of service model forward declarations required in BackupStorageClient header */ - - /* Service model Outcome class definitions */ - typedef Aws::Utils::Outcome DeleteObjectOutcome; - typedef Aws::Utils::Outcome GetChunkOutcome; - typedef Aws::Utils::Outcome GetObjectMetadataOutcome; - typedef Aws::Utils::Outcome ListChunksOutcome; - typedef Aws::Utils::Outcome ListObjectsOutcome; - typedef Aws::Utils::Outcome NotifyObjectCompleteOutcome; - typedef Aws::Utils::Outcome PutChunkOutcome; - typedef Aws::Utils::Outcome PutObjectOutcome; - typedef Aws::Utils::Outcome StartObjectOutcome; - /* End of service model Outcome class definitions */ - - /* Service model Outcome callable definitions */ - typedef std::future DeleteObjectOutcomeCallable; - typedef std::future GetChunkOutcomeCallable; - typedef std::future GetObjectMetadataOutcomeCallable; - typedef std::future ListChunksOutcomeCallable; - typedef std::future ListObjectsOutcomeCallable; - typedef std::future NotifyObjectCompleteOutcomeCallable; - typedef std::future PutChunkOutcomeCallable; - typedef std::future PutObjectOutcomeCallable; - typedef std::future StartObjectOutcomeCallable; - /* End of service model Outcome callable definitions */ - } // namespace Model - - class BackupStorageClient; - - /* Service model async handlers definitions */ - typedef std::function&) > DeleteObjectResponseReceivedHandler; - typedef std::function&) > GetChunkResponseReceivedHandler; - typedef std::function&) > GetObjectMetadataResponseReceivedHandler; - typedef std::function&) > ListChunksResponseReceivedHandler; - typedef std::function&) > ListObjectsResponseReceivedHandler; - typedef std::function&) > NotifyObjectCompleteResponseReceivedHandler; - typedef std::function&) > PutChunkResponseReceivedHandler; - typedef std::function&) > PutObjectResponseReceivedHandler; - typedef std::function&) > StartObjectResponseReceivedHandler; - /* End of service model async handlers definitions */ - } // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorage_EXPORTS.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorage_EXPORTS.h deleted file mode 100644 index cf56a9cba44..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/BackupStorage_EXPORTS.h +++ /dev/null @@ -1,32 +0,0 @@ -/** - * 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_BACKUPSTORAGE_EXPORTS - #define AWS_BACKUPSTORAGE_API __declspec(dllexport) - #else - #define AWS_BACKUPSTORAGE_API __declspec(dllimport) - #endif /* AWS_BACKUPSTORAGE_EXPORTS */ - #define AWS_BACKUPSTORAGE_EXTERN - #else - #define AWS_BACKUPSTORAGE_API - #define AWS_BACKUPSTORAGE_EXTERN extern - #endif // USE_IMPORT_EXPORT -#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) - #define AWS_BACKUPSTORAGE_API - #define AWS_BACKUPSTORAGE_EXTERN extern -#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/BackupObject.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/BackupObject.h deleted file mode 100644 index ef6182692be..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/BackupObject.h +++ /dev/null @@ -1,279 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include - -namespace Aws -{ -namespace Utils -{ -namespace Json -{ - class JsonValue; - class JsonView; -} // namespace Json -} // namespace Utils -namespace BackupStorage -{ -namespace Model -{ - - /** - * Object

See Also:

AWS - * API Reference

- */ - class BackupObject - { - public: - AWS_BACKUPSTORAGE_API BackupObject(); - AWS_BACKUPSTORAGE_API BackupObject(Aws::Utils::Json::JsonView jsonValue); - AWS_BACKUPSTORAGE_API BackupObject& operator=(Aws::Utils::Json::JsonView jsonValue); - AWS_BACKUPSTORAGE_API Aws::Utils::Json::JsonValue Jsonize() const; - - - /** - * Object name - */ - inline const Aws::String& GetName() const{ return m_name; } - - /** - * Object name - */ - inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } - - /** - * Object name - */ - inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } - - /** - * Object name - */ - inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } - - /** - * Object name - */ - inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } - - /** - * Object name - */ - inline BackupObject& WithName(const Aws::String& value) { SetName(value); return *this;} - - /** - * Object name - */ - inline BackupObject& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} - - /** - * Object name - */ - inline BackupObject& WithName(const char* value) { SetName(value); return *this;} - - - /** - * Number of chunks in object - */ - inline long long GetChunksCount() const{ return m_chunksCount; } - - /** - * Number of chunks in object - */ - inline bool ChunksCountHasBeenSet() const { return m_chunksCountHasBeenSet; } - - /** - * Number of chunks in object - */ - inline void SetChunksCount(long long value) { m_chunksCountHasBeenSet = true; m_chunksCount = value; } - - /** - * Number of chunks in object - */ - inline BackupObject& WithChunksCount(long long value) { SetChunksCount(value); return *this;} - - - /** - * Metadata string associated with the Object - */ - inline const Aws::String& GetMetadataString() const{ return m_metadataString; } - - /** - * Metadata string associated with the Object - */ - inline bool MetadataStringHasBeenSet() const { return m_metadataStringHasBeenSet; } - - /** - * Metadata string associated with the Object - */ - inline void SetMetadataString(const Aws::String& value) { m_metadataStringHasBeenSet = true; m_metadataString = value; } - - /** - * Metadata string associated with the Object - */ - inline void SetMetadataString(Aws::String&& value) { m_metadataStringHasBeenSet = true; m_metadataString = std::move(value); } - - /** - * Metadata string associated with the Object - */ - inline void SetMetadataString(const char* value) { m_metadataStringHasBeenSet = true; m_metadataString.assign(value); } - - /** - * Metadata string associated with the Object - */ - inline BackupObject& WithMetadataString(const Aws::String& value) { SetMetadataString(value); return *this;} - - /** - * Metadata string associated with the Object - */ - inline BackupObject& WithMetadataString(Aws::String&& value) { SetMetadataString(std::move(value)); return *this;} - - /** - * Metadata string associated with the Object - */ - inline BackupObject& WithMetadataString(const char* value) { SetMetadataString(value); return *this;} - - - /** - * Object checksum - */ - inline const Aws::String& GetObjectChecksum() const{ return m_objectChecksum; } - - /** - * Object checksum - */ - inline bool ObjectChecksumHasBeenSet() const { return m_objectChecksumHasBeenSet; } - - /** - * Object checksum - */ - inline void SetObjectChecksum(const Aws::String& value) { m_objectChecksumHasBeenSet = true; m_objectChecksum = value; } - - /** - * Object checksum - */ - inline void SetObjectChecksum(Aws::String&& value) { m_objectChecksumHasBeenSet = true; m_objectChecksum = std::move(value); } - - /** - * Object checksum - */ - inline void SetObjectChecksum(const char* value) { m_objectChecksumHasBeenSet = true; m_objectChecksum.assign(value); } - - /** - * Object checksum - */ - inline BackupObject& WithObjectChecksum(const Aws::String& value) { SetObjectChecksum(value); return *this;} - - /** - * Object checksum - */ - inline BackupObject& WithObjectChecksum(Aws::String&& value) { SetObjectChecksum(std::move(value)); return *this;} - - /** - * Object checksum - */ - inline BackupObject& WithObjectChecksum(const char* value) { SetObjectChecksum(value); return *this;} - - - /** - * Checksum algorithm - */ - inline const SummaryChecksumAlgorithm& GetObjectChecksumAlgorithm() const{ return m_objectChecksumAlgorithm; } - - /** - * Checksum algorithm - */ - inline bool ObjectChecksumAlgorithmHasBeenSet() const { return m_objectChecksumAlgorithmHasBeenSet; } - - /** - * Checksum algorithm - */ - inline void SetObjectChecksumAlgorithm(const SummaryChecksumAlgorithm& value) { m_objectChecksumAlgorithmHasBeenSet = true; m_objectChecksumAlgorithm = value; } - - /** - * Checksum algorithm - */ - inline void SetObjectChecksumAlgorithm(SummaryChecksumAlgorithm&& value) { m_objectChecksumAlgorithmHasBeenSet = true; m_objectChecksumAlgorithm = std::move(value); } - - /** - * Checksum algorithm - */ - inline BackupObject& WithObjectChecksumAlgorithm(const SummaryChecksumAlgorithm& value) { SetObjectChecksumAlgorithm(value); return *this;} - - /** - * Checksum algorithm - */ - inline BackupObject& WithObjectChecksumAlgorithm(SummaryChecksumAlgorithm&& value) { SetObjectChecksumAlgorithm(std::move(value)); return *this;} - - - /** - * Object token - */ - inline const Aws::String& GetObjectToken() const{ return m_objectToken; } - - /** - * Object token - */ - inline bool ObjectTokenHasBeenSet() const { return m_objectTokenHasBeenSet; } - - /** - * Object token - */ - inline void SetObjectToken(const Aws::String& value) { m_objectTokenHasBeenSet = true; m_objectToken = value; } - - /** - * Object token - */ - inline void SetObjectToken(Aws::String&& value) { m_objectTokenHasBeenSet = true; m_objectToken = std::move(value); } - - /** - * Object token - */ - inline void SetObjectToken(const char* value) { m_objectTokenHasBeenSet = true; m_objectToken.assign(value); } - - /** - * Object token - */ - inline BackupObject& WithObjectToken(const Aws::String& value) { SetObjectToken(value); return *this;} - - /** - * Object token - */ - inline BackupObject& WithObjectToken(Aws::String&& value) { SetObjectToken(std::move(value)); return *this;} - - /** - * Object token - */ - inline BackupObject& WithObjectToken(const char* value) { SetObjectToken(value); return *this;} - - private: - - Aws::String m_name; - bool m_nameHasBeenSet = false; - - long long m_chunksCount; - bool m_chunksCountHasBeenSet = false; - - Aws::String m_metadataString; - bool m_metadataStringHasBeenSet = false; - - Aws::String m_objectChecksum; - bool m_objectChecksumHasBeenSet = false; - - SummaryChecksumAlgorithm m_objectChecksumAlgorithm; - bool m_objectChecksumAlgorithmHasBeenSet = false; - - Aws::String m_objectToken; - bool m_objectTokenHasBeenSet = false; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/Chunk.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/Chunk.h deleted file mode 100644 index a505d9eb69c..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/Chunk.h +++ /dev/null @@ -1,215 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include - -namespace Aws -{ -namespace Utils -{ -namespace Json -{ - class JsonValue; - class JsonView; -} // namespace Json -} // namespace Utils -namespace BackupStorage -{ -namespace Model -{ - - /** - * Chunk

See Also:

AWS - * API Reference

- */ - class Chunk - { - public: - AWS_BACKUPSTORAGE_API Chunk(); - AWS_BACKUPSTORAGE_API Chunk(Aws::Utils::Json::JsonView jsonValue); - AWS_BACKUPSTORAGE_API Chunk& operator=(Aws::Utils::Json::JsonView jsonValue); - AWS_BACKUPSTORAGE_API Aws::Utils::Json::JsonValue Jsonize() const; - - - /** - * Chunk index - */ - inline long long GetIndex() const{ return m_index; } - - /** - * Chunk index - */ - inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; } - - /** - * Chunk index - */ - inline void SetIndex(long long value) { m_indexHasBeenSet = true; m_index = value; } - - /** - * Chunk index - */ - inline Chunk& WithIndex(long long value) { SetIndex(value); return *this;} - - - /** - * Chunk length - */ - inline long long GetLength() const{ return m_length; } - - /** - * Chunk length - */ - inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; } - - /** - * Chunk length - */ - inline void SetLength(long long value) { m_lengthHasBeenSet = true; m_length = value; } - - /** - * Chunk length - */ - inline Chunk& WithLength(long long value) { SetLength(value); return *this;} - - - /** - * Chunk checksum - */ - inline const Aws::String& GetChecksum() const{ return m_checksum; } - - /** - * Chunk checksum - */ - inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; } - - /** - * Chunk checksum - */ - inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; } - - /** - * Chunk checksum - */ - inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); } - - /** - * Chunk checksum - */ - inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); } - - /** - * Chunk checksum - */ - inline Chunk& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;} - - /** - * Chunk checksum - */ - inline Chunk& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;} - - /** - * Chunk checksum - */ - inline Chunk& WithChecksum(const char* value) { SetChecksum(value); return *this;} - - - /** - * Checksum algorithm - */ - inline const DataChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; } - - /** - * Checksum algorithm - */ - inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; } - - /** - * Checksum algorithm - */ - inline void SetChecksumAlgorithm(const DataChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; } - - /** - * Checksum algorithm - */ - inline void SetChecksumAlgorithm(DataChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); } - - /** - * Checksum algorithm - */ - inline Chunk& WithChecksumAlgorithm(const DataChecksumAlgorithm& value) { SetChecksumAlgorithm(value); return *this;} - - /** - * Checksum algorithm - */ - inline Chunk& WithChecksumAlgorithm(DataChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;} - - - /** - * Chunk token - */ - inline const Aws::String& GetChunkToken() const{ return m_chunkToken; } - - /** - * Chunk token - */ - inline bool ChunkTokenHasBeenSet() const { return m_chunkTokenHasBeenSet; } - - /** - * Chunk token - */ - inline void SetChunkToken(const Aws::String& value) { m_chunkTokenHasBeenSet = true; m_chunkToken = value; } - - /** - * Chunk token - */ - inline void SetChunkToken(Aws::String&& value) { m_chunkTokenHasBeenSet = true; m_chunkToken = std::move(value); } - - /** - * Chunk token - */ - inline void SetChunkToken(const char* value) { m_chunkTokenHasBeenSet = true; m_chunkToken.assign(value); } - - /** - * Chunk token - */ - inline Chunk& WithChunkToken(const Aws::String& value) { SetChunkToken(value); return *this;} - - /** - * Chunk token - */ - inline Chunk& WithChunkToken(Aws::String&& value) { SetChunkToken(std::move(value)); return *this;} - - /** - * Chunk token - */ - inline Chunk& WithChunkToken(const char* value) { SetChunkToken(value); return *this;} - - private: - - long long m_index; - bool m_indexHasBeenSet = false; - - long long m_length; - bool m_lengthHasBeenSet = false; - - Aws::String m_checksum; - bool m_checksumHasBeenSet = false; - - DataChecksumAlgorithm m_checksumAlgorithm; - bool m_checksumAlgorithmHasBeenSet = false; - - Aws::String m_chunkToken; - bool m_chunkTokenHasBeenSet = false; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/DataAlreadyExistsException.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/DataAlreadyExistsException.h deleted file mode 100644 index f32beae11dc..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/DataAlreadyExistsException.h +++ /dev/null @@ -1,162 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include - -namespace Aws -{ -namespace Utils -{ -namespace Json -{ - class JsonValue; - class JsonView; -} // namespace Json -} // namespace Utils -namespace BackupStorage -{ -namespace Model -{ - - /** - * Non-retryable exception. Attempted to create already existing object or chunk. - * This message contains a checksum of already presented data.

See Also:

- * AWS - * API Reference

- */ - class DataAlreadyExistsException - { - public: - AWS_BACKUPSTORAGE_API DataAlreadyExistsException(); - AWS_BACKUPSTORAGE_API DataAlreadyExistsException(Aws::Utils::Json::JsonView jsonValue); - AWS_BACKUPSTORAGE_API DataAlreadyExistsException& operator=(Aws::Utils::Json::JsonView jsonValue); - AWS_BACKUPSTORAGE_API Aws::Utils::Json::JsonValue Jsonize() const; - - - - inline const Aws::String& GetMessage() const{ return m_message; } - - - inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } - - - inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } - - - inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } - - - inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } - - - inline DataAlreadyExistsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} - - - inline DataAlreadyExistsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} - - - inline DataAlreadyExistsException& WithMessage(const char* value) { SetMessage(value); return *this;} - - - /** - * Data checksum used - */ - inline const Aws::String& GetChecksum() const{ return m_checksum; } - - /** - * Data checksum used - */ - inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; } - - /** - * Data checksum used - */ - inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; } - - /** - * Data checksum used - */ - inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); } - - /** - * Data checksum used - */ - inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); } - - /** - * Data checksum used - */ - inline DataAlreadyExistsException& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;} - - /** - * Data checksum used - */ - inline DataAlreadyExistsException& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;} - - /** - * Data checksum used - */ - inline DataAlreadyExistsException& WithChecksum(const char* value) { SetChecksum(value); return *this;} - - - /** - * Checksum algorithm used - */ - inline const Aws::String& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; } - - /** - * Checksum algorithm used - */ - inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; } - - /** - * Checksum algorithm used - */ - inline void SetChecksumAlgorithm(const Aws::String& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; } - - /** - * Checksum algorithm used - */ - inline void SetChecksumAlgorithm(Aws::String&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); } - - /** - * Checksum algorithm used - */ - inline void SetChecksumAlgorithm(const char* value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm.assign(value); } - - /** - * Checksum algorithm used - */ - inline DataAlreadyExistsException& WithChecksumAlgorithm(const Aws::String& value) { SetChecksumAlgorithm(value); return *this;} - - /** - * Checksum algorithm used - */ - inline DataAlreadyExistsException& WithChecksumAlgorithm(Aws::String&& value) { SetChecksumAlgorithm(std::move(value)); return *this;} - - /** - * Checksum algorithm used - */ - inline DataAlreadyExistsException& WithChecksumAlgorithm(const char* value) { SetChecksumAlgorithm(value); return *this;} - - private: - - Aws::String m_message; - bool m_messageHasBeenSet = false; - - Aws::String m_checksum; - bool m_checksumHasBeenSet = false; - - Aws::String m_checksumAlgorithm; - bool m_checksumAlgorithmHasBeenSet = false; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/DataChecksumAlgorithm.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/DataChecksumAlgorithm.h deleted file mode 100644 index bc756586254..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/DataChecksumAlgorithm.h +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include - -namespace Aws -{ -namespace BackupStorage -{ -namespace Model -{ - enum class DataChecksumAlgorithm - { - NOT_SET, - SHA256 - }; - -namespace DataChecksumAlgorithmMapper -{ -AWS_BACKUPSTORAGE_API DataChecksumAlgorithm GetDataChecksumAlgorithmForName(const Aws::String& name); - -AWS_BACKUPSTORAGE_API Aws::String GetNameForDataChecksumAlgorithm(DataChecksumAlgorithm value); -} // namespace DataChecksumAlgorithmMapper -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/DeleteObjectRequest.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/DeleteObjectRequest.h deleted file mode 100644 index 99d3e149599..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/DeleteObjectRequest.h +++ /dev/null @@ -1,127 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include - -namespace Aws -{ -namespace BackupStorage -{ -namespace Model -{ - - /** - */ - class DeleteObjectRequest : public BackupStorageRequest - { - public: - AWS_BACKUPSTORAGE_API DeleteObjectRequest(); - - // 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 "DeleteObject"; } - - AWS_BACKUPSTORAGE_API Aws::String SerializePayload() const override; - - - /** - * Backup job Id for the in-progress backup. - */ - inline const Aws::String& GetBackupJobId() const{ return m_backupJobId; } - - /** - * Backup job Id for the in-progress backup. - */ - inline bool BackupJobIdHasBeenSet() const { return m_backupJobIdHasBeenSet; } - - /** - * Backup job Id for the in-progress backup. - */ - inline void SetBackupJobId(const Aws::String& value) { m_backupJobIdHasBeenSet = true; m_backupJobId = value; } - - /** - * Backup job Id for the in-progress backup. - */ - inline void SetBackupJobId(Aws::String&& value) { m_backupJobIdHasBeenSet = true; m_backupJobId = std::move(value); } - - /** - * Backup job Id for the in-progress backup. - */ - inline void SetBackupJobId(const char* value) { m_backupJobIdHasBeenSet = true; m_backupJobId.assign(value); } - - /** - * Backup job Id for the in-progress backup. - */ - inline DeleteObjectRequest& WithBackupJobId(const Aws::String& value) { SetBackupJobId(value); return *this;} - - /** - * Backup job Id for the in-progress backup. - */ - inline DeleteObjectRequest& WithBackupJobId(Aws::String&& value) { SetBackupJobId(std::move(value)); return *this;} - - /** - * Backup job Id for the in-progress backup. - */ - inline DeleteObjectRequest& WithBackupJobId(const char* value) { SetBackupJobId(value); return *this;} - - - /** - * The name of the Object. - */ - inline const Aws::String& GetObjectName() const{ return m_objectName; } - - /** - * The name of the Object. - */ - inline bool ObjectNameHasBeenSet() const { return m_objectNameHasBeenSet; } - - /** - * The name of the Object. - */ - inline void SetObjectName(const Aws::String& value) { m_objectNameHasBeenSet = true; m_objectName = value; } - - /** - * The name of the Object. - */ - inline void SetObjectName(Aws::String&& value) { m_objectNameHasBeenSet = true; m_objectName = std::move(value); } - - /** - * The name of the Object. - */ - inline void SetObjectName(const char* value) { m_objectNameHasBeenSet = true; m_objectName.assign(value); } - - /** - * The name of the Object. - */ - inline DeleteObjectRequest& WithObjectName(const Aws::String& value) { SetObjectName(value); return *this;} - - /** - * The name of the Object. - */ - inline DeleteObjectRequest& WithObjectName(Aws::String&& value) { SetObjectName(std::move(value)); return *this;} - - /** - * The name of the Object. - */ - inline DeleteObjectRequest& WithObjectName(const char* value) { SetObjectName(value); return *this;} - - private: - - Aws::String m_backupJobId; - bool m_backupJobIdHasBeenSet = false; - - Aws::String m_objectName; - bool m_objectNameHasBeenSet = false; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/GetChunkRequest.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/GetChunkRequest.h deleted file mode 100644 index 22f2a3fa6cc..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/GetChunkRequest.h +++ /dev/null @@ -1,127 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include - -namespace Aws -{ -namespace BackupStorage -{ -namespace Model -{ - - /** - */ - class GetChunkRequest : public BackupStorageRequest - { - public: - AWS_BACKUPSTORAGE_API GetChunkRequest(); - - // 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 "GetChunk"; } - - AWS_BACKUPSTORAGE_API Aws::String SerializePayload() const override; - - - /** - * Storage job id - */ - inline const Aws::String& GetStorageJobId() const{ return m_storageJobId; } - - /** - * Storage job id - */ - inline bool StorageJobIdHasBeenSet() const { return m_storageJobIdHasBeenSet; } - - /** - * Storage job id - */ - inline void SetStorageJobId(const Aws::String& value) { m_storageJobIdHasBeenSet = true; m_storageJobId = value; } - - /** - * Storage job id - */ - inline void SetStorageJobId(Aws::String&& value) { m_storageJobIdHasBeenSet = true; m_storageJobId = std::move(value); } - - /** - * Storage job id - */ - inline void SetStorageJobId(const char* value) { m_storageJobIdHasBeenSet = true; m_storageJobId.assign(value); } - - /** - * Storage job id - */ - inline GetChunkRequest& WithStorageJobId(const Aws::String& value) { SetStorageJobId(value); return *this;} - - /** - * Storage job id - */ - inline GetChunkRequest& WithStorageJobId(Aws::String&& value) { SetStorageJobId(std::move(value)); return *this;} - - /** - * Storage job id - */ - inline GetChunkRequest& WithStorageJobId(const char* value) { SetStorageJobId(value); return *this;} - - - /** - * Chunk token - */ - inline const Aws::String& GetChunkToken() const{ return m_chunkToken; } - - /** - * Chunk token - */ - inline bool ChunkTokenHasBeenSet() const { return m_chunkTokenHasBeenSet; } - - /** - * Chunk token - */ - inline void SetChunkToken(const Aws::String& value) { m_chunkTokenHasBeenSet = true; m_chunkToken = value; } - - /** - * Chunk token - */ - inline void SetChunkToken(Aws::String&& value) { m_chunkTokenHasBeenSet = true; m_chunkToken = std::move(value); } - - /** - * Chunk token - */ - inline void SetChunkToken(const char* value) { m_chunkTokenHasBeenSet = true; m_chunkToken.assign(value); } - - /** - * Chunk token - */ - inline GetChunkRequest& WithChunkToken(const Aws::String& value) { SetChunkToken(value); return *this;} - - /** - * Chunk token - */ - inline GetChunkRequest& WithChunkToken(Aws::String&& value) { SetChunkToken(std::move(value)); return *this;} - - /** - * Chunk token - */ - inline GetChunkRequest& WithChunkToken(const char* value) { SetChunkToken(value); return *this;} - - private: - - Aws::String m_storageJobId; - bool m_storageJobIdHasBeenSet = false; - - Aws::String m_chunkToken; - bool m_chunkTokenHasBeenSet = false; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/GetChunkResult.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/GetChunkResult.h deleted file mode 100644 index 5d83a8b958e..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/GetChunkResult.h +++ /dev/null @@ -1,166 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include -#include -#include - -namespace Aws -{ -template -class AmazonWebServiceResult; - -namespace BackupStorage -{ -namespace Model -{ - class GetChunkResult - { - public: - AWS_BACKUPSTORAGE_API GetChunkResult(); - //We have to define these because Microsoft doesn't auto generate them - AWS_BACKUPSTORAGE_API GetChunkResult(GetChunkResult&&); - AWS_BACKUPSTORAGE_API GetChunkResult& operator=(GetChunkResult&&); - //we delete these because Microsoft doesn't handle move generation correctly - //and we therefore don't trust them to get it right here either. - GetChunkResult(const GetChunkResult&) = delete; - GetChunkResult& operator=(const GetChunkResult&) = delete; - - - AWS_BACKUPSTORAGE_API GetChunkResult(Aws::AmazonWebServiceResult&& result); - AWS_BACKUPSTORAGE_API GetChunkResult& operator=(Aws::AmazonWebServiceResult&& result); - - - - /** - * Chunk data - */ - inline Aws::IOStream& GetData() const { return m_data.GetUnderlyingStream(); } - - /** - * Chunk data - */ - inline void ReplaceBody(Aws::IOStream* body) { m_data = Aws::Utils::Stream::ResponseStream(body); } - - - /** - * Data length - */ - inline long long GetLength() const{ return m_length; } - - /** - * Data length - */ - inline void SetLength(long long value) { m_length = value; } - - /** - * Data length - */ - inline GetChunkResult& WithLength(long long value) { SetLength(value); return *this;} - - - /** - * Data checksum - */ - inline const Aws::String& GetChecksum() const{ return m_checksum; } - - /** - * Data checksum - */ - inline void SetChecksum(const Aws::String& value) { m_checksum = value; } - - /** - * Data checksum - */ - inline void SetChecksum(Aws::String&& value) { m_checksum = std::move(value); } - - /** - * Data checksum - */ - inline void SetChecksum(const char* value) { m_checksum.assign(value); } - - /** - * Data checksum - */ - inline GetChunkResult& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;} - - /** - * Data checksum - */ - inline GetChunkResult& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;} - - /** - * Data checksum - */ - inline GetChunkResult& WithChecksum(const char* value) { SetChecksum(value); return *this;} - - - /** - * Checksum algorithm - */ - inline const DataChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; } - - /** - * Checksum algorithm - */ - inline void SetChecksumAlgorithm(const DataChecksumAlgorithm& value) { m_checksumAlgorithm = value; } - - /** - * Checksum algorithm - */ - inline void SetChecksumAlgorithm(DataChecksumAlgorithm&& value) { m_checksumAlgorithm = std::move(value); } - - /** - * Checksum algorithm - */ - inline GetChunkResult& WithChecksumAlgorithm(const DataChecksumAlgorithm& value) { SetChecksumAlgorithm(value); return *this;} - - /** - * Checksum algorithm - */ - inline GetChunkResult& WithChecksumAlgorithm(DataChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;} - - - - inline const Aws::String& GetRequestId() const{ return m_requestId; } - - - inline void SetRequestId(const Aws::String& value) { m_requestId = value; } - - - inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } - - - inline void SetRequestId(const char* value) { m_requestId.assign(value); } - - - inline GetChunkResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - - - inline GetChunkResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - - - inline GetChunkResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - - private: - - Aws::Utils::Stream::ResponseStream m_data; - - long long m_length; - - Aws::String m_checksum; - - DataChecksumAlgorithm m_checksumAlgorithm; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/GetObjectMetadataRequest.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/GetObjectMetadataRequest.h deleted file mode 100644 index 1043ec22cab..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/GetObjectMetadataRequest.h +++ /dev/null @@ -1,127 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include - -namespace Aws -{ -namespace BackupStorage -{ -namespace Model -{ - - /** - */ - class GetObjectMetadataRequest : public BackupStorageRequest - { - public: - AWS_BACKUPSTORAGE_API GetObjectMetadataRequest(); - - // 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 "GetObjectMetadata"; } - - AWS_BACKUPSTORAGE_API Aws::String SerializePayload() const override; - - - /** - * Backup job id for the in-progress backup. - */ - inline const Aws::String& GetStorageJobId() const{ return m_storageJobId; } - - /** - * Backup job id for the in-progress backup. - */ - inline bool StorageJobIdHasBeenSet() const { return m_storageJobIdHasBeenSet; } - - /** - * Backup job id for the in-progress backup. - */ - inline void SetStorageJobId(const Aws::String& value) { m_storageJobIdHasBeenSet = true; m_storageJobId = value; } - - /** - * Backup job id for the in-progress backup. - */ - inline void SetStorageJobId(Aws::String&& value) { m_storageJobIdHasBeenSet = true; m_storageJobId = std::move(value); } - - /** - * Backup job id for the in-progress backup. - */ - inline void SetStorageJobId(const char* value) { m_storageJobIdHasBeenSet = true; m_storageJobId.assign(value); } - - /** - * Backup job id for the in-progress backup. - */ - inline GetObjectMetadataRequest& WithStorageJobId(const Aws::String& value) { SetStorageJobId(value); return *this;} - - /** - * Backup job id for the in-progress backup. - */ - inline GetObjectMetadataRequest& WithStorageJobId(Aws::String&& value) { SetStorageJobId(std::move(value)); return *this;} - - /** - * Backup job id for the in-progress backup. - */ - inline GetObjectMetadataRequest& WithStorageJobId(const char* value) { SetStorageJobId(value); return *this;} - - - /** - * Object token. - */ - inline const Aws::String& GetObjectToken() const{ return m_objectToken; } - - /** - * Object token. - */ - inline bool ObjectTokenHasBeenSet() const { return m_objectTokenHasBeenSet; } - - /** - * Object token. - */ - inline void SetObjectToken(const Aws::String& value) { m_objectTokenHasBeenSet = true; m_objectToken = value; } - - /** - * Object token. - */ - inline void SetObjectToken(Aws::String&& value) { m_objectTokenHasBeenSet = true; m_objectToken = std::move(value); } - - /** - * Object token. - */ - inline void SetObjectToken(const char* value) { m_objectTokenHasBeenSet = true; m_objectToken.assign(value); } - - /** - * Object token. - */ - inline GetObjectMetadataRequest& WithObjectToken(const Aws::String& value) { SetObjectToken(value); return *this;} - - /** - * Object token. - */ - inline GetObjectMetadataRequest& WithObjectToken(Aws::String&& value) { SetObjectToken(std::move(value)); return *this;} - - /** - * Object token. - */ - inline GetObjectMetadataRequest& WithObjectToken(const char* value) { SetObjectToken(value); return *this;} - - private: - - Aws::String m_storageJobId; - bool m_storageJobIdHasBeenSet = false; - - Aws::String m_objectToken; - bool m_objectTokenHasBeenSet = false; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/GetObjectMetadataResult.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/GetObjectMetadataResult.h deleted file mode 100644 index 7663c01ebbc..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/GetObjectMetadataResult.h +++ /dev/null @@ -1,204 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include -#include -#include - -namespace Aws -{ -template -class AmazonWebServiceResult; - -namespace BackupStorage -{ -namespace Model -{ - class GetObjectMetadataResult - { - public: - AWS_BACKUPSTORAGE_API GetObjectMetadataResult(); - //We have to define these because Microsoft doesn't auto generate them - AWS_BACKUPSTORAGE_API GetObjectMetadataResult(GetObjectMetadataResult&&); - AWS_BACKUPSTORAGE_API GetObjectMetadataResult& operator=(GetObjectMetadataResult&&); - //we delete these because Microsoft doesn't handle move generation correctly - //and we therefore don't trust them to get it right here either. - GetObjectMetadataResult(const GetObjectMetadataResult&) = delete; - GetObjectMetadataResult& operator=(const GetObjectMetadataResult&) = delete; - - - AWS_BACKUPSTORAGE_API GetObjectMetadataResult(Aws::AmazonWebServiceResult&& result); - AWS_BACKUPSTORAGE_API GetObjectMetadataResult& operator=(Aws::AmazonWebServiceResult&& result); - - - - /** - * Metadata string. - */ - inline const Aws::String& GetMetadataString() const{ return m_metadataString; } - - /** - * Metadata string. - */ - inline void SetMetadataString(const Aws::String& value) { m_metadataString = value; } - - /** - * Metadata string. - */ - inline void SetMetadataString(Aws::String&& value) { m_metadataString = std::move(value); } - - /** - * Metadata string. - */ - inline void SetMetadataString(const char* value) { m_metadataString.assign(value); } - - /** - * Metadata string. - */ - inline GetObjectMetadataResult& WithMetadataString(const Aws::String& value) { SetMetadataString(value); return *this;} - - /** - * Metadata string. - */ - inline GetObjectMetadataResult& WithMetadataString(Aws::String&& value) { SetMetadataString(std::move(value)); return *this;} - - /** - * Metadata string. - */ - inline GetObjectMetadataResult& WithMetadataString(const char* value) { SetMetadataString(value); return *this;} - - - /** - * Metadata blob. - */ - inline Aws::IOStream& GetMetadataBlob() const { return m_metadataBlob.GetUnderlyingStream(); } - - /** - * Metadata blob. - */ - inline void ReplaceBody(Aws::IOStream* body) { m_metadataBlob = Aws::Utils::Stream::ResponseStream(body); } - - - /** - * The size of MetadataBlob. - */ - inline long long GetMetadataBlobLength() const{ return m_metadataBlobLength; } - - /** - * The size of MetadataBlob. - */ - inline void SetMetadataBlobLength(long long value) { m_metadataBlobLength = value; } - - /** - * The size of MetadataBlob. - */ - inline GetObjectMetadataResult& WithMetadataBlobLength(long long value) { SetMetadataBlobLength(value); return *this;} - - - /** - * MetadataBlob checksum. - */ - inline const Aws::String& GetMetadataBlobChecksum() const{ return m_metadataBlobChecksum; } - - /** - * MetadataBlob checksum. - */ - inline void SetMetadataBlobChecksum(const Aws::String& value) { m_metadataBlobChecksum = value; } - - /** - * MetadataBlob checksum. - */ - inline void SetMetadataBlobChecksum(Aws::String&& value) { m_metadataBlobChecksum = std::move(value); } - - /** - * MetadataBlob checksum. - */ - inline void SetMetadataBlobChecksum(const char* value) { m_metadataBlobChecksum.assign(value); } - - /** - * MetadataBlob checksum. - */ - inline GetObjectMetadataResult& WithMetadataBlobChecksum(const Aws::String& value) { SetMetadataBlobChecksum(value); return *this;} - - /** - * MetadataBlob checksum. - */ - inline GetObjectMetadataResult& WithMetadataBlobChecksum(Aws::String&& value) { SetMetadataBlobChecksum(std::move(value)); return *this;} - - /** - * MetadataBlob checksum. - */ - inline GetObjectMetadataResult& WithMetadataBlobChecksum(const char* value) { SetMetadataBlobChecksum(value); return *this;} - - - /** - * Checksum algorithm. - */ - inline const DataChecksumAlgorithm& GetMetadataBlobChecksumAlgorithm() const{ return m_metadataBlobChecksumAlgorithm; } - - /** - * Checksum algorithm. - */ - inline void SetMetadataBlobChecksumAlgorithm(const DataChecksumAlgorithm& value) { m_metadataBlobChecksumAlgorithm = value; } - - /** - * Checksum algorithm. - */ - inline void SetMetadataBlobChecksumAlgorithm(DataChecksumAlgorithm&& value) { m_metadataBlobChecksumAlgorithm = std::move(value); } - - /** - * Checksum algorithm. - */ - inline GetObjectMetadataResult& WithMetadataBlobChecksumAlgorithm(const DataChecksumAlgorithm& value) { SetMetadataBlobChecksumAlgorithm(value); return *this;} - - /** - * Checksum algorithm. - */ - inline GetObjectMetadataResult& WithMetadataBlobChecksumAlgorithm(DataChecksumAlgorithm&& value) { SetMetadataBlobChecksumAlgorithm(std::move(value)); return *this;} - - - - inline const Aws::String& GetRequestId() const{ return m_requestId; } - - - inline void SetRequestId(const Aws::String& value) { m_requestId = value; } - - - inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } - - - inline void SetRequestId(const char* value) { m_requestId.assign(value); } - - - inline GetObjectMetadataResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - - - inline GetObjectMetadataResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - - - inline GetObjectMetadataResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - - private: - - Aws::String m_metadataString; - - Aws::Utils::Stream::ResponseStream m_metadataBlob; - - long long m_metadataBlobLength; - - Aws::String m_metadataBlobChecksum; - - DataChecksumAlgorithm m_metadataBlobChecksumAlgorithm; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/ListChunksRequest.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/ListChunksRequest.h deleted file mode 100644 index d9c141d043a..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/ListChunksRequest.h +++ /dev/null @@ -1,201 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include - -namespace Aws -{ -namespace Http -{ - class URI; -} //namespace Http -namespace BackupStorage -{ -namespace Model -{ - - /** - */ - class ListChunksRequest : public BackupStorageRequest - { - public: - AWS_BACKUPSTORAGE_API ListChunksRequest(); - - // 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 "ListChunks"; } - - AWS_BACKUPSTORAGE_API Aws::String SerializePayload() const override; - - AWS_BACKUPSTORAGE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; - - - /** - * Storage job id - */ - inline const Aws::String& GetStorageJobId() const{ return m_storageJobId; } - - /** - * Storage job id - */ - inline bool StorageJobIdHasBeenSet() const { return m_storageJobIdHasBeenSet; } - - /** - * Storage job id - */ - inline void SetStorageJobId(const Aws::String& value) { m_storageJobIdHasBeenSet = true; m_storageJobId = value; } - - /** - * Storage job id - */ - inline void SetStorageJobId(Aws::String&& value) { m_storageJobIdHasBeenSet = true; m_storageJobId = std::move(value); } - - /** - * Storage job id - */ - inline void SetStorageJobId(const char* value) { m_storageJobIdHasBeenSet = true; m_storageJobId.assign(value); } - - /** - * Storage job id - */ - inline ListChunksRequest& WithStorageJobId(const Aws::String& value) { SetStorageJobId(value); return *this;} - - /** - * Storage job id - */ - inline ListChunksRequest& WithStorageJobId(Aws::String&& value) { SetStorageJobId(std::move(value)); return *this;} - - /** - * Storage job id - */ - inline ListChunksRequest& WithStorageJobId(const char* value) { SetStorageJobId(value); return *this;} - - - /** - * Object token - */ - inline const Aws::String& GetObjectToken() const{ return m_objectToken; } - - /** - * Object token - */ - inline bool ObjectTokenHasBeenSet() const { return m_objectTokenHasBeenSet; } - - /** - * Object token - */ - inline void SetObjectToken(const Aws::String& value) { m_objectTokenHasBeenSet = true; m_objectToken = value; } - - /** - * Object token - */ - inline void SetObjectToken(Aws::String&& value) { m_objectTokenHasBeenSet = true; m_objectToken = std::move(value); } - - /** - * Object token - */ - inline void SetObjectToken(const char* value) { m_objectTokenHasBeenSet = true; m_objectToken.assign(value); } - - /** - * Object token - */ - inline ListChunksRequest& WithObjectToken(const Aws::String& value) { SetObjectToken(value); return *this;} - - /** - * Object token - */ - inline ListChunksRequest& WithObjectToken(Aws::String&& value) { SetObjectToken(std::move(value)); return *this;} - - /** - * Object token - */ - inline ListChunksRequest& WithObjectToken(const char* value) { SetObjectToken(value); return *this;} - - - /** - * Maximum number of chunks - */ - inline int GetMaxResults() const{ return m_maxResults; } - - /** - * Maximum number of chunks - */ - inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } - - /** - * Maximum number of chunks - */ - inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } - - /** - * Maximum number of chunks - */ - inline ListChunksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} - - - /** - * Pagination token - */ - inline const Aws::String& GetNextToken() const{ return m_nextToken; } - - /** - * Pagination token - */ - inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } - - /** - * Pagination token - */ - inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } - - /** - * Pagination token - */ - inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } - - /** - * Pagination token - */ - inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } - - /** - * Pagination token - */ - inline ListChunksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} - - /** - * Pagination token - */ - inline ListChunksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} - - /** - * Pagination token - */ - inline ListChunksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} - - private: - - Aws::String m_storageJobId; - bool m_storageJobIdHasBeenSet = false; - - Aws::String m_objectToken; - bool m_objectTokenHasBeenSet = false; - - int m_maxResults; - bool m_maxResultsHasBeenSet = false; - - Aws::String m_nextToken; - bool m_nextTokenHasBeenSet = false; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/ListChunksResult.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/ListChunksResult.h deleted file mode 100644 index 66179412c5b..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/ListChunksResult.h +++ /dev/null @@ -1,141 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include -#include - -namespace Aws -{ -template -class AmazonWebServiceResult; - -namespace Utils -{ -namespace Json -{ - class JsonValue; -} // namespace Json -} // namespace Utils -namespace BackupStorage -{ -namespace Model -{ - class ListChunksResult - { - public: - AWS_BACKUPSTORAGE_API ListChunksResult(); - AWS_BACKUPSTORAGE_API ListChunksResult(const Aws::AmazonWebServiceResult& result); - AWS_BACKUPSTORAGE_API ListChunksResult& operator=(const Aws::AmazonWebServiceResult& result); - - - /** - * List of chunks - */ - inline const Aws::Vector& GetChunkList() const{ return m_chunkList; } - - /** - * List of chunks - */ - inline void SetChunkList(const Aws::Vector& value) { m_chunkList = value; } - - /** - * List of chunks - */ - inline void SetChunkList(Aws::Vector&& value) { m_chunkList = std::move(value); } - - /** - * List of chunks - */ - inline ListChunksResult& WithChunkList(const Aws::Vector& value) { SetChunkList(value); return *this;} - - /** - * List of chunks - */ - inline ListChunksResult& WithChunkList(Aws::Vector&& value) { SetChunkList(std::move(value)); return *this;} - - /** - * List of chunks - */ - inline ListChunksResult& AddChunkList(const Chunk& value) { m_chunkList.push_back(value); return *this; } - - /** - * List of chunks - */ - inline ListChunksResult& AddChunkList(Chunk&& value) { m_chunkList.push_back(std::move(value)); return *this; } - - - /** - * Pagination token - */ - inline const Aws::String& GetNextToken() const{ return m_nextToken; } - - /** - * Pagination token - */ - inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } - - /** - * Pagination token - */ - inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } - - /** - * Pagination token - */ - inline void SetNextToken(const char* value) { m_nextToken.assign(value); } - - /** - * Pagination token - */ - inline ListChunksResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} - - /** - * Pagination token - */ - inline ListChunksResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} - - /** - * Pagination token - */ - inline ListChunksResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} - - - - inline const Aws::String& GetRequestId() const{ return m_requestId; } - - - inline void SetRequestId(const Aws::String& value) { m_requestId = value; } - - - inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } - - - inline void SetRequestId(const char* value) { m_requestId.assign(value); } - - - inline ListChunksResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - - - inline ListChunksResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - - - inline ListChunksResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - - private: - - Aws::Vector m_chunkList; - - Aws::String m_nextToken; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/ListObjectsRequest.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/ListObjectsRequest.h deleted file mode 100644 index e2b3d8e9440..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/ListObjectsRequest.h +++ /dev/null @@ -1,330 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include -#include - -namespace Aws -{ -namespace Http -{ - class URI; -} //namespace Http -namespace BackupStorage -{ -namespace Model -{ - - /** - */ - class ListObjectsRequest : public BackupStorageRequest - { - public: - AWS_BACKUPSTORAGE_API ListObjectsRequest(); - - // 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 "ListObjects"; } - - AWS_BACKUPSTORAGE_API Aws::String SerializePayload() const override; - - AWS_BACKUPSTORAGE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; - - - /** - * Storage job id - */ - inline const Aws::String& GetStorageJobId() const{ return m_storageJobId; } - - /** - * Storage job id - */ - inline bool StorageJobIdHasBeenSet() const { return m_storageJobIdHasBeenSet; } - - /** - * Storage job id - */ - inline void SetStorageJobId(const Aws::String& value) { m_storageJobIdHasBeenSet = true; m_storageJobId = value; } - - /** - * Storage job id - */ - inline void SetStorageJobId(Aws::String&& value) { m_storageJobIdHasBeenSet = true; m_storageJobId = std::move(value); } - - /** - * Storage job id - */ - inline void SetStorageJobId(const char* value) { m_storageJobIdHasBeenSet = true; m_storageJobId.assign(value); } - - /** - * Storage job id - */ - inline ListObjectsRequest& WithStorageJobId(const Aws::String& value) { SetStorageJobId(value); return *this;} - - /** - * Storage job id - */ - inline ListObjectsRequest& WithStorageJobId(Aws::String&& value) { SetStorageJobId(std::move(value)); return *this;} - - /** - * Storage job id - */ - inline ListObjectsRequest& WithStorageJobId(const char* value) { SetStorageJobId(value); return *this;} - - - /** - * Optional, specifies the starting Object name to list from. Ignored if NextToken - * is not NULL - */ - inline const Aws::String& GetStartingObjectName() const{ return m_startingObjectName; } - - /** - * Optional, specifies the starting Object name to list from. Ignored if NextToken - * is not NULL - */ - inline bool StartingObjectNameHasBeenSet() const { return m_startingObjectNameHasBeenSet; } - - /** - * Optional, specifies the starting Object name to list from. Ignored if NextToken - * is not NULL - */ - inline void SetStartingObjectName(const Aws::String& value) { m_startingObjectNameHasBeenSet = true; m_startingObjectName = value; } - - /** - * Optional, specifies the starting Object name to list from. Ignored if NextToken - * is not NULL - */ - inline void SetStartingObjectName(Aws::String&& value) { m_startingObjectNameHasBeenSet = true; m_startingObjectName = std::move(value); } - - /** - * Optional, specifies the starting Object name to list from. Ignored if NextToken - * is not NULL - */ - inline void SetStartingObjectName(const char* value) { m_startingObjectNameHasBeenSet = true; m_startingObjectName.assign(value); } - - /** - * Optional, specifies the starting Object name to list from. Ignored if NextToken - * is not NULL - */ - inline ListObjectsRequest& WithStartingObjectName(const Aws::String& value) { SetStartingObjectName(value); return *this;} - - /** - * Optional, specifies the starting Object name to list from. Ignored if NextToken - * is not NULL - */ - inline ListObjectsRequest& WithStartingObjectName(Aws::String&& value) { SetStartingObjectName(std::move(value)); return *this;} - - /** - * Optional, specifies the starting Object name to list from. Ignored if NextToken - * is not NULL - */ - inline ListObjectsRequest& WithStartingObjectName(const char* value) { SetStartingObjectName(value); return *this;} - - - /** - * Optional, specifies the starting Object prefix to list from. Ignored if - * NextToken is not NULL - */ - inline const Aws::String& GetStartingObjectPrefix() const{ return m_startingObjectPrefix; } - - /** - * Optional, specifies the starting Object prefix to list from. Ignored if - * NextToken is not NULL - */ - inline bool StartingObjectPrefixHasBeenSet() const { return m_startingObjectPrefixHasBeenSet; } - - /** - * Optional, specifies the starting Object prefix to list from. Ignored if - * NextToken is not NULL - */ - inline void SetStartingObjectPrefix(const Aws::String& value) { m_startingObjectPrefixHasBeenSet = true; m_startingObjectPrefix = value; } - - /** - * Optional, specifies the starting Object prefix to list from. Ignored if - * NextToken is not NULL - */ - inline void SetStartingObjectPrefix(Aws::String&& value) { m_startingObjectPrefixHasBeenSet = true; m_startingObjectPrefix = std::move(value); } - - /** - * Optional, specifies the starting Object prefix to list from. Ignored if - * NextToken is not NULL - */ - inline void SetStartingObjectPrefix(const char* value) { m_startingObjectPrefixHasBeenSet = true; m_startingObjectPrefix.assign(value); } - - /** - * Optional, specifies the starting Object prefix to list from. Ignored if - * NextToken is not NULL - */ - inline ListObjectsRequest& WithStartingObjectPrefix(const Aws::String& value) { SetStartingObjectPrefix(value); return *this;} - - /** - * Optional, specifies the starting Object prefix to list from. Ignored if - * NextToken is not NULL - */ - inline ListObjectsRequest& WithStartingObjectPrefix(Aws::String&& value) { SetStartingObjectPrefix(std::move(value)); return *this;} - - /** - * Optional, specifies the starting Object prefix to list from. Ignored if - * NextToken is not NULL - */ - inline ListObjectsRequest& WithStartingObjectPrefix(const char* value) { SetStartingObjectPrefix(value); return *this;} - - - /** - * Maximum objects count - */ - inline int GetMaxResults() const{ return m_maxResults; } - - /** - * Maximum objects count - */ - inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } - - /** - * Maximum objects count - */ - inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } - - /** - * Maximum objects count - */ - inline ListObjectsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} - - - /** - * Pagination token - */ - inline const Aws::String& GetNextToken() const{ return m_nextToken; } - - /** - * Pagination token - */ - inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } - - /** - * Pagination token - */ - inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } - - /** - * Pagination token - */ - inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } - - /** - * Pagination token - */ - inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } - - /** - * Pagination token - */ - inline ListObjectsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} - - /** - * Pagination token - */ - inline ListObjectsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} - - /** - * Pagination token - */ - inline ListObjectsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} - - - /** - * (Optional) Created before filter - */ - inline const Aws::Utils::DateTime& GetCreatedBefore() const{ return m_createdBefore; } - - /** - * (Optional) Created before filter - */ - inline bool CreatedBeforeHasBeenSet() const { return m_createdBeforeHasBeenSet; } - - /** - * (Optional) Created before filter - */ - inline void SetCreatedBefore(const Aws::Utils::DateTime& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = value; } - - /** - * (Optional) Created before filter - */ - inline void SetCreatedBefore(Aws::Utils::DateTime&& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = std::move(value); } - - /** - * (Optional) Created before filter - */ - inline ListObjectsRequest& WithCreatedBefore(const Aws::Utils::DateTime& value) { SetCreatedBefore(value); return *this;} - - /** - * (Optional) Created before filter - */ - inline ListObjectsRequest& WithCreatedBefore(Aws::Utils::DateTime&& value) { SetCreatedBefore(std::move(value)); return *this;} - - - /** - * (Optional) Created after filter - */ - inline const Aws::Utils::DateTime& GetCreatedAfter() const{ return m_createdAfter; } - - /** - * (Optional) Created after filter - */ - inline bool CreatedAfterHasBeenSet() const { return m_createdAfterHasBeenSet; } - - /** - * (Optional) Created after filter - */ - inline void SetCreatedAfter(const Aws::Utils::DateTime& value) { m_createdAfterHasBeenSet = true; m_createdAfter = value; } - - /** - * (Optional) Created after filter - */ - inline void SetCreatedAfter(Aws::Utils::DateTime&& value) { m_createdAfterHasBeenSet = true; m_createdAfter = std::move(value); } - - /** - * (Optional) Created after filter - */ - inline ListObjectsRequest& WithCreatedAfter(const Aws::Utils::DateTime& value) { SetCreatedAfter(value); return *this;} - - /** - * (Optional) Created after filter - */ - inline ListObjectsRequest& WithCreatedAfter(Aws::Utils::DateTime&& value) { SetCreatedAfter(std::move(value)); return *this;} - - private: - - Aws::String m_storageJobId; - bool m_storageJobIdHasBeenSet = false; - - Aws::String m_startingObjectName; - bool m_startingObjectNameHasBeenSet = false; - - Aws::String m_startingObjectPrefix; - bool m_startingObjectPrefixHasBeenSet = false; - - int m_maxResults; - bool m_maxResultsHasBeenSet = false; - - Aws::String m_nextToken; - bool m_nextTokenHasBeenSet = false; - - Aws::Utils::DateTime m_createdBefore; - bool m_createdBeforeHasBeenSet = false; - - Aws::Utils::DateTime m_createdAfter; - bool m_createdAfterHasBeenSet = false; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/ListObjectsResult.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/ListObjectsResult.h deleted file mode 100644 index aedbaadf659..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/ListObjectsResult.h +++ /dev/null @@ -1,141 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include -#include - -namespace Aws -{ -template -class AmazonWebServiceResult; - -namespace Utils -{ -namespace Json -{ - class JsonValue; -} // namespace Json -} // namespace Utils -namespace BackupStorage -{ -namespace Model -{ - class ListObjectsResult - { - public: - AWS_BACKUPSTORAGE_API ListObjectsResult(); - AWS_BACKUPSTORAGE_API ListObjectsResult(const Aws::AmazonWebServiceResult& result); - AWS_BACKUPSTORAGE_API ListObjectsResult& operator=(const Aws::AmazonWebServiceResult& result); - - - /** - * Object list - */ - inline const Aws::Vector& GetObjectList() const{ return m_objectList; } - - /** - * Object list - */ - inline void SetObjectList(const Aws::Vector& value) { m_objectList = value; } - - /** - * Object list - */ - inline void SetObjectList(Aws::Vector&& value) { m_objectList = std::move(value); } - - /** - * Object list - */ - inline ListObjectsResult& WithObjectList(const Aws::Vector& value) { SetObjectList(value); return *this;} - - /** - * Object list - */ - inline ListObjectsResult& WithObjectList(Aws::Vector&& value) { SetObjectList(std::move(value)); return *this;} - - /** - * Object list - */ - inline ListObjectsResult& AddObjectList(const BackupObject& value) { m_objectList.push_back(value); return *this; } - - /** - * Object list - */ - inline ListObjectsResult& AddObjectList(BackupObject&& value) { m_objectList.push_back(std::move(value)); return *this; } - - - /** - * Pagination token - */ - inline const Aws::String& GetNextToken() const{ return m_nextToken; } - - /** - * Pagination token - */ - inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } - - /** - * Pagination token - */ - inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } - - /** - * Pagination token - */ - inline void SetNextToken(const char* value) { m_nextToken.assign(value); } - - /** - * Pagination token - */ - inline ListObjectsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} - - /** - * Pagination token - */ - inline ListObjectsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} - - /** - * Pagination token - */ - inline ListObjectsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} - - - - inline const Aws::String& GetRequestId() const{ return m_requestId; } - - - inline void SetRequestId(const Aws::String& value) { m_requestId = value; } - - - inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } - - - inline void SetRequestId(const char* value) { m_requestId.assign(value); } - - - inline ListObjectsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - - - inline ListObjectsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - - - inline ListObjectsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - - private: - - Aws::Vector m_objectList; - - Aws::String m_nextToken; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/NotifyObjectCompleteRequest.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/NotifyObjectCompleteRequest.h deleted file mode 100644 index 3cfc6cb2699..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/NotifyObjectCompleteRequest.h +++ /dev/null @@ -1,361 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include -#include -#include -#include - -namespace Aws -{ -namespace Http -{ - class URI; -} //namespace Http -namespace BackupStorage -{ -namespace Model -{ - - /** - */ - class NotifyObjectCompleteRequest : public StreamingBackupStorageRequest - { - public: - AWS_BACKUPSTORAGE_API NotifyObjectCompleteRequest(); - - // 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 "NotifyObjectComplete"; } - - AWS_BACKUPSTORAGE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; - - AWS_BACKUPSTORAGE_API bool SignBody() const override { return false; } - - - /** - * Backup job Id for the in-progress backup - */ - inline const Aws::String& GetBackupJobId() const{ return m_backupJobId; } - - /** - * Backup job Id for the in-progress backup - */ - inline bool BackupJobIdHasBeenSet() const { return m_backupJobIdHasBeenSet; } - - /** - * Backup job Id for the in-progress backup - */ - inline void SetBackupJobId(const Aws::String& value) { m_backupJobIdHasBeenSet = true; m_backupJobId = value; } - - /** - * Backup job Id for the in-progress backup - */ - inline void SetBackupJobId(Aws::String&& value) { m_backupJobIdHasBeenSet = true; m_backupJobId = std::move(value); } - - /** - * Backup job Id for the in-progress backup - */ - inline void SetBackupJobId(const char* value) { m_backupJobIdHasBeenSet = true; m_backupJobId.assign(value); } - - /** - * Backup job Id for the in-progress backup - */ - inline NotifyObjectCompleteRequest& WithBackupJobId(const Aws::String& value) { SetBackupJobId(value); return *this;} - - /** - * Backup job Id for the in-progress backup - */ - inline NotifyObjectCompleteRequest& WithBackupJobId(Aws::String&& value) { SetBackupJobId(std::move(value)); return *this;} - - /** - * Backup job Id for the in-progress backup - */ - inline NotifyObjectCompleteRequest& WithBackupJobId(const char* value) { SetBackupJobId(value); return *this;} - - - /** - * Upload Id for the in-progress upload - */ - inline const Aws::String& GetUploadId() const{ return m_uploadId; } - - /** - * Upload Id for the in-progress upload - */ - inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; } - - /** - * Upload Id for the in-progress upload - */ - inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; } - - /** - * Upload Id for the in-progress upload - */ - inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); } - - /** - * Upload Id for the in-progress upload - */ - inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); } - - /** - * Upload Id for the in-progress upload - */ - inline NotifyObjectCompleteRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;} - - /** - * Upload Id for the in-progress upload - */ - inline NotifyObjectCompleteRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;} - - /** - * Upload Id for the in-progress upload - */ - inline NotifyObjectCompleteRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;} - - - /** - * Object checksum - */ - inline const Aws::String& GetObjectChecksum() const{ return m_objectChecksum; } - - /** - * Object checksum - */ - inline bool ObjectChecksumHasBeenSet() const { return m_objectChecksumHasBeenSet; } - - /** - * Object checksum - */ - inline void SetObjectChecksum(const Aws::String& value) { m_objectChecksumHasBeenSet = true; m_objectChecksum = value; } - - /** - * Object checksum - */ - inline void SetObjectChecksum(Aws::String&& value) { m_objectChecksumHasBeenSet = true; m_objectChecksum = std::move(value); } - - /** - * Object checksum - */ - inline void SetObjectChecksum(const char* value) { m_objectChecksumHasBeenSet = true; m_objectChecksum.assign(value); } - - /** - * Object checksum - */ - inline NotifyObjectCompleteRequest& WithObjectChecksum(const Aws::String& value) { SetObjectChecksum(value); return *this;} - - /** - * Object checksum - */ - inline NotifyObjectCompleteRequest& WithObjectChecksum(Aws::String&& value) { SetObjectChecksum(std::move(value)); return *this;} - - /** - * Object checksum - */ - inline NotifyObjectCompleteRequest& WithObjectChecksum(const char* value) { SetObjectChecksum(value); return *this;} - - - /** - * Checksum algorithm - */ - inline const SummaryChecksumAlgorithm& GetObjectChecksumAlgorithm() const{ return m_objectChecksumAlgorithm; } - - /** - * Checksum algorithm - */ - inline bool ObjectChecksumAlgorithmHasBeenSet() const { return m_objectChecksumAlgorithmHasBeenSet; } - - /** - * Checksum algorithm - */ - inline void SetObjectChecksumAlgorithm(const SummaryChecksumAlgorithm& value) { m_objectChecksumAlgorithmHasBeenSet = true; m_objectChecksumAlgorithm = value; } - - /** - * Checksum algorithm - */ - inline void SetObjectChecksumAlgorithm(SummaryChecksumAlgorithm&& value) { m_objectChecksumAlgorithmHasBeenSet = true; m_objectChecksumAlgorithm = std::move(value); } - - /** - * Checksum algorithm - */ - inline NotifyObjectCompleteRequest& WithObjectChecksumAlgorithm(const SummaryChecksumAlgorithm& value) { SetObjectChecksumAlgorithm(value); return *this;} - - /** - * Checksum algorithm - */ - inline NotifyObjectCompleteRequest& WithObjectChecksumAlgorithm(SummaryChecksumAlgorithm&& value) { SetObjectChecksumAlgorithm(std::move(value)); return *this;} - - - /** - * Optional metadata associated with an Object. Maximum string length is 256 bytes. - */ - inline const Aws::String& GetMetadataString() const{ return m_metadataString; } - - /** - * Optional metadata associated with an Object. Maximum string length is 256 bytes. - */ - inline bool MetadataStringHasBeenSet() const { return m_metadataStringHasBeenSet; } - - /** - * Optional metadata associated with an Object. Maximum string length is 256 bytes. - */ - inline void SetMetadataString(const Aws::String& value) { m_metadataStringHasBeenSet = true; m_metadataString = value; } - - /** - * Optional metadata associated with an Object. Maximum string length is 256 bytes. - */ - inline void SetMetadataString(Aws::String&& value) { m_metadataStringHasBeenSet = true; m_metadataString = std::move(value); } - - /** - * Optional metadata associated with an Object. Maximum string length is 256 bytes. - */ - inline void SetMetadataString(const char* value) { m_metadataStringHasBeenSet = true; m_metadataString.assign(value); } - - /** - * Optional metadata associated with an Object. Maximum string length is 256 bytes. - */ - inline NotifyObjectCompleteRequest& WithMetadataString(const Aws::String& value) { SetMetadataString(value); return *this;} - - /** - * Optional metadata associated with an Object. Maximum string length is 256 bytes. - */ - inline NotifyObjectCompleteRequest& WithMetadataString(Aws::String&& value) { SetMetadataString(std::move(value)); return *this;} - - /** - * Optional metadata associated with an Object. Maximum string length is 256 bytes. - */ - inline NotifyObjectCompleteRequest& WithMetadataString(const char* value) { SetMetadataString(value); return *this;} - - - /** - * The size of MetadataBlob. - */ - inline long long GetMetadataBlobLength() const{ return m_metadataBlobLength; } - - /** - * The size of MetadataBlob. - */ - inline bool MetadataBlobLengthHasBeenSet() const { return m_metadataBlobLengthHasBeenSet; } - - /** - * The size of MetadataBlob. - */ - inline void SetMetadataBlobLength(long long value) { m_metadataBlobLengthHasBeenSet = true; m_metadataBlobLength = value; } - - /** - * The size of MetadataBlob. - */ - inline NotifyObjectCompleteRequest& WithMetadataBlobLength(long long value) { SetMetadataBlobLength(value); return *this;} - - - /** - * Checksum of MetadataBlob. - */ - inline const Aws::String& GetMetadataBlobChecksum() const{ return m_metadataBlobChecksum; } - - /** - * Checksum of MetadataBlob. - */ - inline bool MetadataBlobChecksumHasBeenSet() const { return m_metadataBlobChecksumHasBeenSet; } - - /** - * Checksum of MetadataBlob. - */ - inline void SetMetadataBlobChecksum(const Aws::String& value) { m_metadataBlobChecksumHasBeenSet = true; m_metadataBlobChecksum = value; } - - /** - * Checksum of MetadataBlob. - */ - inline void SetMetadataBlobChecksum(Aws::String&& value) { m_metadataBlobChecksumHasBeenSet = true; m_metadataBlobChecksum = std::move(value); } - - /** - * Checksum of MetadataBlob. - */ - inline void SetMetadataBlobChecksum(const char* value) { m_metadataBlobChecksumHasBeenSet = true; m_metadataBlobChecksum.assign(value); } - - /** - * Checksum of MetadataBlob. - */ - inline NotifyObjectCompleteRequest& WithMetadataBlobChecksum(const Aws::String& value) { SetMetadataBlobChecksum(value); return *this;} - - /** - * Checksum of MetadataBlob. - */ - inline NotifyObjectCompleteRequest& WithMetadataBlobChecksum(Aws::String&& value) { SetMetadataBlobChecksum(std::move(value)); return *this;} - - /** - * Checksum of MetadataBlob. - */ - inline NotifyObjectCompleteRequest& WithMetadataBlobChecksum(const char* value) { SetMetadataBlobChecksum(value); return *this;} - - - /** - * Checksum algorithm. - */ - inline const DataChecksumAlgorithm& GetMetadataBlobChecksumAlgorithm() const{ return m_metadataBlobChecksumAlgorithm; } - - /** - * Checksum algorithm. - */ - inline bool MetadataBlobChecksumAlgorithmHasBeenSet() const { return m_metadataBlobChecksumAlgorithmHasBeenSet; } - - /** - * Checksum algorithm. - */ - inline void SetMetadataBlobChecksumAlgorithm(const DataChecksumAlgorithm& value) { m_metadataBlobChecksumAlgorithmHasBeenSet = true; m_metadataBlobChecksumAlgorithm = value; } - - /** - * Checksum algorithm. - */ - inline void SetMetadataBlobChecksumAlgorithm(DataChecksumAlgorithm&& value) { m_metadataBlobChecksumAlgorithmHasBeenSet = true; m_metadataBlobChecksumAlgorithm = std::move(value); } - - /** - * Checksum algorithm. - */ - inline NotifyObjectCompleteRequest& WithMetadataBlobChecksumAlgorithm(const DataChecksumAlgorithm& value) { SetMetadataBlobChecksumAlgorithm(value); return *this;} - - /** - * Checksum algorithm. - */ - inline NotifyObjectCompleteRequest& WithMetadataBlobChecksumAlgorithm(DataChecksumAlgorithm&& value) { SetMetadataBlobChecksumAlgorithm(std::move(value)); return *this;} - - private: - - Aws::String m_backupJobId; - bool m_backupJobIdHasBeenSet = false; - - Aws::String m_uploadId; - bool m_uploadIdHasBeenSet = false; - - Aws::String m_objectChecksum; - bool m_objectChecksumHasBeenSet = false; - - SummaryChecksumAlgorithm m_objectChecksumAlgorithm; - bool m_objectChecksumAlgorithmHasBeenSet = false; - - Aws::String m_metadataString; - bool m_metadataStringHasBeenSet = false; - - - long long m_metadataBlobLength; - bool m_metadataBlobLengthHasBeenSet = false; - - Aws::String m_metadataBlobChecksum; - bool m_metadataBlobChecksumHasBeenSet = false; - - DataChecksumAlgorithm m_metadataBlobChecksumAlgorithm; - bool m_metadataBlobChecksumAlgorithmHasBeenSet = false; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/NotifyObjectCompleteResult.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/NotifyObjectCompleteResult.h deleted file mode 100644 index 83684b19d58..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/NotifyObjectCompleteResult.h +++ /dev/null @@ -1,130 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include - -namespace Aws -{ -template -class AmazonWebServiceResult; - -namespace Utils -{ -namespace Json -{ - class JsonValue; -} // namespace Json -} // namespace Utils -namespace BackupStorage -{ -namespace Model -{ - class NotifyObjectCompleteResult - { - public: - AWS_BACKUPSTORAGE_API NotifyObjectCompleteResult(); - AWS_BACKUPSTORAGE_API NotifyObjectCompleteResult(const Aws::AmazonWebServiceResult& result); - AWS_BACKUPSTORAGE_API NotifyObjectCompleteResult& operator=(const Aws::AmazonWebServiceResult& result); - - - /** - * Object checksum - */ - inline const Aws::String& GetObjectChecksum() const{ return m_objectChecksum; } - - /** - * Object checksum - */ - inline void SetObjectChecksum(const Aws::String& value) { m_objectChecksum = value; } - - /** - * Object checksum - */ - inline void SetObjectChecksum(Aws::String&& value) { m_objectChecksum = std::move(value); } - - /** - * Object checksum - */ - inline void SetObjectChecksum(const char* value) { m_objectChecksum.assign(value); } - - /** - * Object checksum - */ - inline NotifyObjectCompleteResult& WithObjectChecksum(const Aws::String& value) { SetObjectChecksum(value); return *this;} - - /** - * Object checksum - */ - inline NotifyObjectCompleteResult& WithObjectChecksum(Aws::String&& value) { SetObjectChecksum(std::move(value)); return *this;} - - /** - * Object checksum - */ - inline NotifyObjectCompleteResult& WithObjectChecksum(const char* value) { SetObjectChecksum(value); return *this;} - - - /** - * Checksum algorithm - */ - inline const SummaryChecksumAlgorithm& GetObjectChecksumAlgorithm() const{ return m_objectChecksumAlgorithm; } - - /** - * Checksum algorithm - */ - inline void SetObjectChecksumAlgorithm(const SummaryChecksumAlgorithm& value) { m_objectChecksumAlgorithm = value; } - - /** - * Checksum algorithm - */ - inline void SetObjectChecksumAlgorithm(SummaryChecksumAlgorithm&& value) { m_objectChecksumAlgorithm = std::move(value); } - - /** - * Checksum algorithm - */ - inline NotifyObjectCompleteResult& WithObjectChecksumAlgorithm(const SummaryChecksumAlgorithm& value) { SetObjectChecksumAlgorithm(value); return *this;} - - /** - * Checksum algorithm - */ - inline NotifyObjectCompleteResult& WithObjectChecksumAlgorithm(SummaryChecksumAlgorithm&& value) { SetObjectChecksumAlgorithm(std::move(value)); return *this;} - - - - inline const Aws::String& GetRequestId() const{ return m_requestId; } - - - inline void SetRequestId(const Aws::String& value) { m_requestId = value; } - - - inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } - - - inline void SetRequestId(const char* value) { m_requestId.assign(value); } - - - inline NotifyObjectCompleteResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - - - inline NotifyObjectCompleteResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - - - inline NotifyObjectCompleteResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - - private: - - Aws::String m_objectChecksum; - - SummaryChecksumAlgorithm m_objectChecksumAlgorithm; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/PutChunkRequest.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/PutChunkRequest.h deleted file mode 100644 index 1a36db4e0ad..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/PutChunkRequest.h +++ /dev/null @@ -1,262 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include -#include -#include - -namespace Aws -{ -namespace Http -{ - class URI; -} //namespace Http -namespace BackupStorage -{ -namespace Model -{ - - /** - */ - class PutChunkRequest : public StreamingBackupStorageRequest - { - public: - AWS_BACKUPSTORAGE_API PutChunkRequest(); - - // 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 "PutChunk"; } - - AWS_BACKUPSTORAGE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; - - AWS_BACKUPSTORAGE_API bool SignBody() const override { return false; } - - - /** - * Backup job Id for the in-progress backup. - */ - inline const Aws::String& GetBackupJobId() const{ return m_backupJobId; } - - /** - * Backup job Id for the in-progress backup. - */ - inline bool BackupJobIdHasBeenSet() const { return m_backupJobIdHasBeenSet; } - - /** - * Backup job Id for the in-progress backup. - */ - inline void SetBackupJobId(const Aws::String& value) { m_backupJobIdHasBeenSet = true; m_backupJobId = value; } - - /** - * Backup job Id for the in-progress backup. - */ - inline void SetBackupJobId(Aws::String&& value) { m_backupJobIdHasBeenSet = true; m_backupJobId = std::move(value); } - - /** - * Backup job Id for the in-progress backup. - */ - inline void SetBackupJobId(const char* value) { m_backupJobIdHasBeenSet = true; m_backupJobId.assign(value); } - - /** - * Backup job Id for the in-progress backup. - */ - inline PutChunkRequest& WithBackupJobId(const Aws::String& value) { SetBackupJobId(value); return *this;} - - /** - * Backup job Id for the in-progress backup. - */ - inline PutChunkRequest& WithBackupJobId(Aws::String&& value) { SetBackupJobId(std::move(value)); return *this;} - - /** - * Backup job Id for the in-progress backup. - */ - inline PutChunkRequest& WithBackupJobId(const char* value) { SetBackupJobId(value); return *this;} - - - /** - * Upload Id for the in-progress upload. - */ - inline const Aws::String& GetUploadId() const{ return m_uploadId; } - - /** - * Upload Id for the in-progress upload. - */ - inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; } - - /** - * Upload Id for the in-progress upload. - */ - inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; } - - /** - * Upload Id for the in-progress upload. - */ - inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); } - - /** - * Upload Id for the in-progress upload. - */ - inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); } - - /** - * Upload Id for the in-progress upload. - */ - inline PutChunkRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;} - - /** - * Upload Id for the in-progress upload. - */ - inline PutChunkRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;} - - /** - * Upload Id for the in-progress upload. - */ - inline PutChunkRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;} - - - /** - * Describes this chunk's position relative to the other chunks - */ - inline long long GetChunkIndex() const{ return m_chunkIndex; } - - /** - * Describes this chunk's position relative to the other chunks - */ - inline bool ChunkIndexHasBeenSet() const { return m_chunkIndexHasBeenSet; } - - /** - * Describes this chunk's position relative to the other chunks - */ - inline void SetChunkIndex(long long value) { m_chunkIndexHasBeenSet = true; m_chunkIndex = value; } - - /** - * Describes this chunk's position relative to the other chunks - */ - inline PutChunkRequest& WithChunkIndex(long long value) { SetChunkIndex(value); return *this;} - - - /** - * Data length - */ - inline long long GetLength() const{ return m_length; } - - /** - * Data length - */ - inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; } - - /** - * Data length - */ - inline void SetLength(long long value) { m_lengthHasBeenSet = true; m_length = value; } - - /** - * Data length - */ - inline PutChunkRequest& WithLength(long long value) { SetLength(value); return *this;} - - - /** - * Data checksum - */ - inline const Aws::String& GetChecksum() const{ return m_checksum; } - - /** - * Data checksum - */ - inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; } - - /** - * Data checksum - */ - inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; } - - /** - * Data checksum - */ - inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); } - - /** - * Data checksum - */ - inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); } - - /** - * Data checksum - */ - inline PutChunkRequest& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;} - - /** - * Data checksum - */ - inline PutChunkRequest& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;} - - /** - * Data checksum - */ - inline PutChunkRequest& WithChecksum(const char* value) { SetChecksum(value); return *this;} - - - /** - * Checksum algorithm - */ - inline const DataChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; } - - /** - * Checksum algorithm - */ - inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; } - - /** - * Checksum algorithm - */ - inline void SetChecksumAlgorithm(const DataChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; } - - /** - * Checksum algorithm - */ - inline void SetChecksumAlgorithm(DataChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); } - - /** - * Checksum algorithm - */ - inline PutChunkRequest& WithChecksumAlgorithm(const DataChecksumAlgorithm& value) { SetChecksumAlgorithm(value); return *this;} - - /** - * Checksum algorithm - */ - inline PutChunkRequest& WithChecksumAlgorithm(DataChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;} - - private: - - Aws::String m_backupJobId; - bool m_backupJobIdHasBeenSet = false; - - Aws::String m_uploadId; - bool m_uploadIdHasBeenSet = false; - - long long m_chunkIndex; - bool m_chunkIndexHasBeenSet = false; - - - long long m_length; - bool m_lengthHasBeenSet = false; - - Aws::String m_checksum; - bool m_checksumHasBeenSet = false; - - DataChecksumAlgorithm m_checksumAlgorithm; - bool m_checksumAlgorithmHasBeenSet = false; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/PutChunkResult.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/PutChunkResult.h deleted file mode 100644 index 208b149288b..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/PutChunkResult.h +++ /dev/null @@ -1,130 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include - -namespace Aws -{ -template -class AmazonWebServiceResult; - -namespace Utils -{ -namespace Json -{ - class JsonValue; -} // namespace Json -} // namespace Utils -namespace BackupStorage -{ -namespace Model -{ - class PutChunkResult - { - public: - AWS_BACKUPSTORAGE_API PutChunkResult(); - AWS_BACKUPSTORAGE_API PutChunkResult(const Aws::AmazonWebServiceResult& result); - AWS_BACKUPSTORAGE_API PutChunkResult& operator=(const Aws::AmazonWebServiceResult& result); - - - /** - * Chunk checksum - */ - inline const Aws::String& GetChunkChecksum() const{ return m_chunkChecksum; } - - /** - * Chunk checksum - */ - inline void SetChunkChecksum(const Aws::String& value) { m_chunkChecksum = value; } - - /** - * Chunk checksum - */ - inline void SetChunkChecksum(Aws::String&& value) { m_chunkChecksum = std::move(value); } - - /** - * Chunk checksum - */ - inline void SetChunkChecksum(const char* value) { m_chunkChecksum.assign(value); } - - /** - * Chunk checksum - */ - inline PutChunkResult& WithChunkChecksum(const Aws::String& value) { SetChunkChecksum(value); return *this;} - - /** - * Chunk checksum - */ - inline PutChunkResult& WithChunkChecksum(Aws::String&& value) { SetChunkChecksum(std::move(value)); return *this;} - - /** - * Chunk checksum - */ - inline PutChunkResult& WithChunkChecksum(const char* value) { SetChunkChecksum(value); return *this;} - - - /** - * Checksum algorithm - */ - inline const DataChecksumAlgorithm& GetChunkChecksumAlgorithm() const{ return m_chunkChecksumAlgorithm; } - - /** - * Checksum algorithm - */ - inline void SetChunkChecksumAlgorithm(const DataChecksumAlgorithm& value) { m_chunkChecksumAlgorithm = value; } - - /** - * Checksum algorithm - */ - inline void SetChunkChecksumAlgorithm(DataChecksumAlgorithm&& value) { m_chunkChecksumAlgorithm = std::move(value); } - - /** - * Checksum algorithm - */ - inline PutChunkResult& WithChunkChecksumAlgorithm(const DataChecksumAlgorithm& value) { SetChunkChecksumAlgorithm(value); return *this;} - - /** - * Checksum algorithm - */ - inline PutChunkResult& WithChunkChecksumAlgorithm(DataChecksumAlgorithm&& value) { SetChunkChecksumAlgorithm(std::move(value)); return *this;} - - - - inline const Aws::String& GetRequestId() const{ return m_requestId; } - - - inline void SetRequestId(const Aws::String& value) { m_requestId = value; } - - - inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } - - - inline void SetRequestId(const char* value) { m_requestId.assign(value); } - - - inline PutChunkResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - - - inline PutChunkResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - - - inline PutChunkResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - - private: - - Aws::String m_chunkChecksum; - - DataChecksumAlgorithm m_chunkChecksumAlgorithm; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/PutObjectRequest.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/PutObjectRequest.h deleted file mode 100644 index 0389afaecd4..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/PutObjectRequest.h +++ /dev/null @@ -1,402 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include -#include -#include - -namespace Aws -{ -namespace Http -{ - class URI; -} //namespace Http -namespace BackupStorage -{ -namespace Model -{ - - /** - */ - class PutObjectRequest : public StreamingBackupStorageRequest - { - public: - AWS_BACKUPSTORAGE_API PutObjectRequest(); - - // 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 "PutObject"; } - - AWS_BACKUPSTORAGE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; - - AWS_BACKUPSTORAGE_API bool SignBody() const override { return false; } - - - /** - * Backup job Id for the in-progress backup. - */ - inline const Aws::String& GetBackupJobId() const{ return m_backupJobId; } - - /** - * Backup job Id for the in-progress backup. - */ - inline bool BackupJobIdHasBeenSet() const { return m_backupJobIdHasBeenSet; } - - /** - * Backup job Id for the in-progress backup. - */ - inline void SetBackupJobId(const Aws::String& value) { m_backupJobIdHasBeenSet = true; m_backupJobId = value; } - - /** - * Backup job Id for the in-progress backup. - */ - inline void SetBackupJobId(Aws::String&& value) { m_backupJobIdHasBeenSet = true; m_backupJobId = std::move(value); } - - /** - * Backup job Id for the in-progress backup. - */ - inline void SetBackupJobId(const char* value) { m_backupJobIdHasBeenSet = true; m_backupJobId.assign(value); } - - /** - * Backup job Id for the in-progress backup. - */ - inline PutObjectRequest& WithBackupJobId(const Aws::String& value) { SetBackupJobId(value); return *this;} - - /** - * Backup job Id for the in-progress backup. - */ - inline PutObjectRequest& WithBackupJobId(Aws::String&& value) { SetBackupJobId(std::move(value)); return *this;} - - /** - * Backup job Id for the in-progress backup. - */ - inline PutObjectRequest& WithBackupJobId(const char* value) { SetBackupJobId(value); return *this;} - - - /** - * The name of the Object to be uploaded. - */ - inline const Aws::String& GetObjectName() const{ return m_objectName; } - - /** - * The name of the Object to be uploaded. - */ - inline bool ObjectNameHasBeenSet() const { return m_objectNameHasBeenSet; } - - /** - * The name of the Object to be uploaded. - */ - inline void SetObjectName(const Aws::String& value) { m_objectNameHasBeenSet = true; m_objectName = value; } - - /** - * The name of the Object to be uploaded. - */ - inline void SetObjectName(Aws::String&& value) { m_objectNameHasBeenSet = true; m_objectName = std::move(value); } - - /** - * The name of the Object to be uploaded. - */ - inline void SetObjectName(const char* value) { m_objectNameHasBeenSet = true; m_objectName.assign(value); } - - /** - * The name of the Object to be uploaded. - */ - inline PutObjectRequest& WithObjectName(const Aws::String& value) { SetObjectName(value); return *this;} - - /** - * The name of the Object to be uploaded. - */ - inline PutObjectRequest& WithObjectName(Aws::String&& value) { SetObjectName(std::move(value)); return *this;} - - /** - * The name of the Object to be uploaded. - */ - inline PutObjectRequest& WithObjectName(const char* value) { SetObjectName(value); return *this;} - - - /** - * Store user defined metadata like backup checksum, disk ids, restore metadata - * etc. - */ - inline const Aws::String& GetMetadataString() const{ return m_metadataString; } - - /** - * Store user defined metadata like backup checksum, disk ids, restore metadata - * etc. - */ - inline bool MetadataStringHasBeenSet() const { return m_metadataStringHasBeenSet; } - - /** - * Store user defined metadata like backup checksum, disk ids, restore metadata - * etc. - */ - inline void SetMetadataString(const Aws::String& value) { m_metadataStringHasBeenSet = true; m_metadataString = value; } - - /** - * Store user defined metadata like backup checksum, disk ids, restore metadata - * etc. - */ - inline void SetMetadataString(Aws::String&& value) { m_metadataStringHasBeenSet = true; m_metadataString = std::move(value); } - - /** - * Store user defined metadata like backup checksum, disk ids, restore metadata - * etc. - */ - inline void SetMetadataString(const char* value) { m_metadataStringHasBeenSet = true; m_metadataString.assign(value); } - - /** - * Store user defined metadata like backup checksum, disk ids, restore metadata - * etc. - */ - inline PutObjectRequest& WithMetadataString(const Aws::String& value) { SetMetadataString(value); return *this;} - - /** - * Store user defined metadata like backup checksum, disk ids, restore metadata - * etc. - */ - inline PutObjectRequest& WithMetadataString(Aws::String&& value) { SetMetadataString(std::move(value)); return *this;} - - /** - * Store user defined metadata like backup checksum, disk ids, restore metadata - * etc. - */ - inline PutObjectRequest& WithMetadataString(const char* value) { SetMetadataString(value); return *this;} - - - /** - * Length of the inline chunk data. - */ - inline long long GetInlineChunkLength() const{ return m_inlineChunkLength; } - - /** - * Length of the inline chunk data. - */ - inline bool InlineChunkLengthHasBeenSet() const { return m_inlineChunkLengthHasBeenSet; } - - /** - * Length of the inline chunk data. - */ - inline void SetInlineChunkLength(long long value) { m_inlineChunkLengthHasBeenSet = true; m_inlineChunkLength = value; } - - /** - * Length of the inline chunk data. - */ - inline PutObjectRequest& WithInlineChunkLength(long long value) { SetInlineChunkLength(value); return *this;} - - - /** - * Inline chunk checksum - */ - inline const Aws::String& GetInlineChunkChecksum() const{ return m_inlineChunkChecksum; } - - /** - * Inline chunk checksum - */ - inline bool InlineChunkChecksumHasBeenSet() const { return m_inlineChunkChecksumHasBeenSet; } - - /** - * Inline chunk checksum - */ - inline void SetInlineChunkChecksum(const Aws::String& value) { m_inlineChunkChecksumHasBeenSet = true; m_inlineChunkChecksum = value; } - - /** - * Inline chunk checksum - */ - inline void SetInlineChunkChecksum(Aws::String&& value) { m_inlineChunkChecksumHasBeenSet = true; m_inlineChunkChecksum = std::move(value); } - - /** - * Inline chunk checksum - */ - inline void SetInlineChunkChecksum(const char* value) { m_inlineChunkChecksumHasBeenSet = true; m_inlineChunkChecksum.assign(value); } - - /** - * Inline chunk checksum - */ - inline PutObjectRequest& WithInlineChunkChecksum(const Aws::String& value) { SetInlineChunkChecksum(value); return *this;} - - /** - * Inline chunk checksum - */ - inline PutObjectRequest& WithInlineChunkChecksum(Aws::String&& value) { SetInlineChunkChecksum(std::move(value)); return *this;} - - /** - * Inline chunk checksum - */ - inline PutObjectRequest& WithInlineChunkChecksum(const char* value) { SetInlineChunkChecksum(value); return *this;} - - - /** - * Inline chunk checksum algorithm - */ - inline const Aws::String& GetInlineChunkChecksumAlgorithm() const{ return m_inlineChunkChecksumAlgorithm; } - - /** - * Inline chunk checksum algorithm - */ - inline bool InlineChunkChecksumAlgorithmHasBeenSet() const { return m_inlineChunkChecksumAlgorithmHasBeenSet; } - - /** - * Inline chunk checksum algorithm - */ - inline void SetInlineChunkChecksumAlgorithm(const Aws::String& value) { m_inlineChunkChecksumAlgorithmHasBeenSet = true; m_inlineChunkChecksumAlgorithm = value; } - - /** - * Inline chunk checksum algorithm - */ - inline void SetInlineChunkChecksumAlgorithm(Aws::String&& value) { m_inlineChunkChecksumAlgorithmHasBeenSet = true; m_inlineChunkChecksumAlgorithm = std::move(value); } - - /** - * Inline chunk checksum algorithm - */ - inline void SetInlineChunkChecksumAlgorithm(const char* value) { m_inlineChunkChecksumAlgorithmHasBeenSet = true; m_inlineChunkChecksumAlgorithm.assign(value); } - - /** - * Inline chunk checksum algorithm - */ - inline PutObjectRequest& WithInlineChunkChecksumAlgorithm(const Aws::String& value) { SetInlineChunkChecksumAlgorithm(value); return *this;} - - /** - * Inline chunk checksum algorithm - */ - inline PutObjectRequest& WithInlineChunkChecksumAlgorithm(Aws::String&& value) { SetInlineChunkChecksumAlgorithm(std::move(value)); return *this;} - - /** - * Inline chunk checksum algorithm - */ - inline PutObjectRequest& WithInlineChunkChecksumAlgorithm(const char* value) { SetInlineChunkChecksumAlgorithm(value); return *this;} - - - /** - * object checksum - */ - inline const Aws::String& GetObjectChecksum() const{ return m_objectChecksum; } - - /** - * object checksum - */ - inline bool ObjectChecksumHasBeenSet() const { return m_objectChecksumHasBeenSet; } - - /** - * object checksum - */ - inline void SetObjectChecksum(const Aws::String& value) { m_objectChecksumHasBeenSet = true; m_objectChecksum = value; } - - /** - * object checksum - */ - inline void SetObjectChecksum(Aws::String&& value) { m_objectChecksumHasBeenSet = true; m_objectChecksum = std::move(value); } - - /** - * object checksum - */ - inline void SetObjectChecksum(const char* value) { m_objectChecksumHasBeenSet = true; m_objectChecksum.assign(value); } - - /** - * object checksum - */ - inline PutObjectRequest& WithObjectChecksum(const Aws::String& value) { SetObjectChecksum(value); return *this;} - - /** - * object checksum - */ - inline PutObjectRequest& WithObjectChecksum(Aws::String&& value) { SetObjectChecksum(std::move(value)); return *this;} - - /** - * object checksum - */ - inline PutObjectRequest& WithObjectChecksum(const char* value) { SetObjectChecksum(value); return *this;} - - - /** - * object checksum algorithm - */ - inline const SummaryChecksumAlgorithm& GetObjectChecksumAlgorithm() const{ return m_objectChecksumAlgorithm; } - - /** - * object checksum algorithm - */ - inline bool ObjectChecksumAlgorithmHasBeenSet() const { return m_objectChecksumAlgorithmHasBeenSet; } - - /** - * object checksum algorithm - */ - inline void SetObjectChecksumAlgorithm(const SummaryChecksumAlgorithm& value) { m_objectChecksumAlgorithmHasBeenSet = true; m_objectChecksumAlgorithm = value; } - - /** - * object checksum algorithm - */ - inline void SetObjectChecksumAlgorithm(SummaryChecksumAlgorithm&& value) { m_objectChecksumAlgorithmHasBeenSet = true; m_objectChecksumAlgorithm = std::move(value); } - - /** - * object checksum algorithm - */ - inline PutObjectRequest& WithObjectChecksumAlgorithm(const SummaryChecksumAlgorithm& value) { SetObjectChecksumAlgorithm(value); return *this;} - - /** - * object checksum algorithm - */ - inline PutObjectRequest& WithObjectChecksumAlgorithm(SummaryChecksumAlgorithm&& value) { SetObjectChecksumAlgorithm(std::move(value)); return *this;} - - - /** - * Throw an exception if Object name is already exist. - */ - inline bool GetThrowOnDuplicate() const{ return m_throwOnDuplicate; } - - /** - * Throw an exception if Object name is already exist. - */ - inline bool ThrowOnDuplicateHasBeenSet() const { return m_throwOnDuplicateHasBeenSet; } - - /** - * Throw an exception if Object name is already exist. - */ - inline void SetThrowOnDuplicate(bool value) { m_throwOnDuplicateHasBeenSet = true; m_throwOnDuplicate = value; } - - /** - * Throw an exception if Object name is already exist. - */ - inline PutObjectRequest& WithThrowOnDuplicate(bool value) { SetThrowOnDuplicate(value); return *this;} - - private: - - Aws::String m_backupJobId; - bool m_backupJobIdHasBeenSet = false; - - Aws::String m_objectName; - bool m_objectNameHasBeenSet = false; - - Aws::String m_metadataString; - bool m_metadataStringHasBeenSet = false; - - - long long m_inlineChunkLength; - bool m_inlineChunkLengthHasBeenSet = false; - - Aws::String m_inlineChunkChecksum; - bool m_inlineChunkChecksumHasBeenSet = false; - - Aws::String m_inlineChunkChecksumAlgorithm; - bool m_inlineChunkChecksumAlgorithmHasBeenSet = false; - - Aws::String m_objectChecksum; - bool m_objectChecksumHasBeenSet = false; - - SummaryChecksumAlgorithm m_objectChecksumAlgorithm; - bool m_objectChecksumAlgorithmHasBeenSet = false; - - bool m_throwOnDuplicate; - bool m_throwOnDuplicateHasBeenSet = false; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/PutObjectResult.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/PutObjectResult.h deleted file mode 100644 index 3fa885c9d06..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/PutObjectResult.h +++ /dev/null @@ -1,197 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include -#include - -namespace Aws -{ -template -class AmazonWebServiceResult; - -namespace Utils -{ -namespace Json -{ - class JsonValue; -} // namespace Json -} // namespace Utils -namespace BackupStorage -{ -namespace Model -{ - class PutObjectResult - { - public: - AWS_BACKUPSTORAGE_API PutObjectResult(); - AWS_BACKUPSTORAGE_API PutObjectResult(const Aws::AmazonWebServiceResult& result); - AWS_BACKUPSTORAGE_API PutObjectResult& operator=(const Aws::AmazonWebServiceResult& result); - - - /** - * Inline chunk checksum - */ - inline const Aws::String& GetInlineChunkChecksum() const{ return m_inlineChunkChecksum; } - - /** - * Inline chunk checksum - */ - inline void SetInlineChunkChecksum(const Aws::String& value) { m_inlineChunkChecksum = value; } - - /** - * Inline chunk checksum - */ - inline void SetInlineChunkChecksum(Aws::String&& value) { m_inlineChunkChecksum = std::move(value); } - - /** - * Inline chunk checksum - */ - inline void SetInlineChunkChecksum(const char* value) { m_inlineChunkChecksum.assign(value); } - - /** - * Inline chunk checksum - */ - inline PutObjectResult& WithInlineChunkChecksum(const Aws::String& value) { SetInlineChunkChecksum(value); return *this;} - - /** - * Inline chunk checksum - */ - inline PutObjectResult& WithInlineChunkChecksum(Aws::String&& value) { SetInlineChunkChecksum(std::move(value)); return *this;} - - /** - * Inline chunk checksum - */ - inline PutObjectResult& WithInlineChunkChecksum(const char* value) { SetInlineChunkChecksum(value); return *this;} - - - /** - * Inline chunk checksum algorithm - */ - inline const DataChecksumAlgorithm& GetInlineChunkChecksumAlgorithm() const{ return m_inlineChunkChecksumAlgorithm; } - - /** - * Inline chunk checksum algorithm - */ - inline void SetInlineChunkChecksumAlgorithm(const DataChecksumAlgorithm& value) { m_inlineChunkChecksumAlgorithm = value; } - - /** - * Inline chunk checksum algorithm - */ - inline void SetInlineChunkChecksumAlgorithm(DataChecksumAlgorithm&& value) { m_inlineChunkChecksumAlgorithm = std::move(value); } - - /** - * Inline chunk checksum algorithm - */ - inline PutObjectResult& WithInlineChunkChecksumAlgorithm(const DataChecksumAlgorithm& value) { SetInlineChunkChecksumAlgorithm(value); return *this;} - - /** - * Inline chunk checksum algorithm - */ - inline PutObjectResult& WithInlineChunkChecksumAlgorithm(DataChecksumAlgorithm&& value) { SetInlineChunkChecksumAlgorithm(std::move(value)); return *this;} - - - /** - * object checksum - */ - inline const Aws::String& GetObjectChecksum() const{ return m_objectChecksum; } - - /** - * object checksum - */ - inline void SetObjectChecksum(const Aws::String& value) { m_objectChecksum = value; } - - /** - * object checksum - */ - inline void SetObjectChecksum(Aws::String&& value) { m_objectChecksum = std::move(value); } - - /** - * object checksum - */ - inline void SetObjectChecksum(const char* value) { m_objectChecksum.assign(value); } - - /** - * object checksum - */ - inline PutObjectResult& WithObjectChecksum(const Aws::String& value) { SetObjectChecksum(value); return *this;} - - /** - * object checksum - */ - inline PutObjectResult& WithObjectChecksum(Aws::String&& value) { SetObjectChecksum(std::move(value)); return *this;} - - /** - * object checksum - */ - inline PutObjectResult& WithObjectChecksum(const char* value) { SetObjectChecksum(value); return *this;} - - - /** - * object checksum algorithm - */ - inline const SummaryChecksumAlgorithm& GetObjectChecksumAlgorithm() const{ return m_objectChecksumAlgorithm; } - - /** - * object checksum algorithm - */ - inline void SetObjectChecksumAlgorithm(const SummaryChecksumAlgorithm& value) { m_objectChecksumAlgorithm = value; } - - /** - * object checksum algorithm - */ - inline void SetObjectChecksumAlgorithm(SummaryChecksumAlgorithm&& value) { m_objectChecksumAlgorithm = std::move(value); } - - /** - * object checksum algorithm - */ - inline PutObjectResult& WithObjectChecksumAlgorithm(const SummaryChecksumAlgorithm& value) { SetObjectChecksumAlgorithm(value); return *this;} - - /** - * object checksum algorithm - */ - inline PutObjectResult& WithObjectChecksumAlgorithm(SummaryChecksumAlgorithm&& value) { SetObjectChecksumAlgorithm(std::move(value)); return *this;} - - - - inline const Aws::String& GetRequestId() const{ return m_requestId; } - - - inline void SetRequestId(const Aws::String& value) { m_requestId = value; } - - - inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } - - - inline void SetRequestId(const char* value) { m_requestId.assign(value); } - - - inline PutObjectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - - - inline PutObjectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - - - inline PutObjectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - - private: - - Aws::String m_inlineChunkChecksum; - - DataChecksumAlgorithm m_inlineChunkChecksumAlgorithm; - - Aws::String m_objectChecksum; - - SummaryChecksumAlgorithm m_objectChecksumAlgorithm; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/StartObjectRequest.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/StartObjectRequest.h deleted file mode 100644 index 29c6b2de89e..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/StartObjectRequest.h +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include -#include - -namespace Aws -{ -namespace BackupStorage -{ -namespace Model -{ - - /** - */ - class StartObjectRequest : public BackupStorageRequest - { - public: - AWS_BACKUPSTORAGE_API StartObjectRequest(); - - // 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 "StartObject"; } - - AWS_BACKUPSTORAGE_API Aws::String SerializePayload() const override; - - - /** - * Backup job Id for the in-progress backup - */ - inline const Aws::String& GetBackupJobId() const{ return m_backupJobId; } - - /** - * Backup job Id for the in-progress backup - */ - inline bool BackupJobIdHasBeenSet() const { return m_backupJobIdHasBeenSet; } - - /** - * Backup job Id for the in-progress backup - */ - inline void SetBackupJobId(const Aws::String& value) { m_backupJobIdHasBeenSet = true; m_backupJobId = value; } - - /** - * Backup job Id for the in-progress backup - */ - inline void SetBackupJobId(Aws::String&& value) { m_backupJobIdHasBeenSet = true; m_backupJobId = std::move(value); } - - /** - * Backup job Id for the in-progress backup - */ - inline void SetBackupJobId(const char* value) { m_backupJobIdHasBeenSet = true; m_backupJobId.assign(value); } - - /** - * Backup job Id for the in-progress backup - */ - inline StartObjectRequest& WithBackupJobId(const Aws::String& value) { SetBackupJobId(value); return *this;} - - /** - * Backup job Id for the in-progress backup - */ - inline StartObjectRequest& WithBackupJobId(Aws::String&& value) { SetBackupJobId(std::move(value)); return *this;} - - /** - * Backup job Id for the in-progress backup - */ - inline StartObjectRequest& WithBackupJobId(const char* value) { SetBackupJobId(value); return *this;} - - - /** - * Name for the object. - */ - inline const Aws::String& GetObjectName() const{ return m_objectName; } - - /** - * Name for the object. - */ - inline bool ObjectNameHasBeenSet() const { return m_objectNameHasBeenSet; } - - /** - * Name for the object. - */ - inline void SetObjectName(const Aws::String& value) { m_objectNameHasBeenSet = true; m_objectName = value; } - - /** - * Name for the object. - */ - inline void SetObjectName(Aws::String&& value) { m_objectNameHasBeenSet = true; m_objectName = std::move(value); } - - /** - * Name for the object. - */ - inline void SetObjectName(const char* value) { m_objectNameHasBeenSet = true; m_objectName.assign(value); } - - /** - * Name for the object. - */ - inline StartObjectRequest& WithObjectName(const Aws::String& value) { SetObjectName(value); return *this;} - - /** - * Name for the object. - */ - inline StartObjectRequest& WithObjectName(Aws::String&& value) { SetObjectName(std::move(value)); return *this;} - - /** - * Name for the object. - */ - inline StartObjectRequest& WithObjectName(const char* value) { SetObjectName(value); return *this;} - - - /** - * Throw an exception if Object name is already exist. - */ - inline bool GetThrowOnDuplicate() const{ return m_throwOnDuplicate; } - - /** - * Throw an exception if Object name is already exist. - */ - inline bool ThrowOnDuplicateHasBeenSet() const { return m_throwOnDuplicateHasBeenSet; } - - /** - * Throw an exception if Object name is already exist. - */ - inline void SetThrowOnDuplicate(bool value) { m_throwOnDuplicateHasBeenSet = true; m_throwOnDuplicate = value; } - - /** - * Throw an exception if Object name is already exist. - */ - inline StartObjectRequest& WithThrowOnDuplicate(bool value) { SetThrowOnDuplicate(value); return *this;} - - private: - - Aws::String m_backupJobId; - bool m_backupJobIdHasBeenSet = false; - - Aws::String m_objectName; - bool m_objectNameHasBeenSet = false; - - bool m_throwOnDuplicate; - bool m_throwOnDuplicateHasBeenSet = false; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/StartObjectResult.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/StartObjectResult.h deleted file mode 100644 index dac0375c372..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/StartObjectResult.h +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include -#include - -namespace Aws -{ -template -class AmazonWebServiceResult; - -namespace Utils -{ -namespace Json -{ - class JsonValue; -} // namespace Json -} // namespace Utils -namespace BackupStorage -{ -namespace Model -{ - class StartObjectResult - { - public: - AWS_BACKUPSTORAGE_API StartObjectResult(); - AWS_BACKUPSTORAGE_API StartObjectResult(const Aws::AmazonWebServiceResult& result); - AWS_BACKUPSTORAGE_API StartObjectResult& operator=(const Aws::AmazonWebServiceResult& result); - - - /** - * Upload Id for a given upload. - */ - inline const Aws::String& GetUploadId() const{ return m_uploadId; } - - /** - * Upload Id for a given upload. - */ - inline void SetUploadId(const Aws::String& value) { m_uploadId = value; } - - /** - * Upload Id for a given upload. - */ - inline void SetUploadId(Aws::String&& value) { m_uploadId = std::move(value); } - - /** - * Upload Id for a given upload. - */ - inline void SetUploadId(const char* value) { m_uploadId.assign(value); } - - /** - * Upload Id for a given upload. - */ - inline StartObjectResult& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;} - - /** - * Upload Id for a given upload. - */ - inline StartObjectResult& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;} - - /** - * Upload Id for a given upload. - */ - inline StartObjectResult& WithUploadId(const char* value) { SetUploadId(value); return *this;} - - - - inline const Aws::String& GetRequestId() const{ return m_requestId; } - - - inline void SetRequestId(const Aws::String& value) { m_requestId = value; } - - - inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } - - - inline void SetRequestId(const char* value) { m_requestId.assign(value); } - - - inline StartObjectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - - - inline StartObjectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - - - inline StartObjectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - - private: - - Aws::String m_uploadId; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/SummaryChecksumAlgorithm.h b/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/SummaryChecksumAlgorithm.h deleted file mode 100644 index 2514ad96b4e..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/include/aws/backupstorage/model/SummaryChecksumAlgorithm.h +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#pragma once -#include -#include - -namespace Aws -{ -namespace BackupStorage -{ -namespace Model -{ - enum class SummaryChecksumAlgorithm - { - NOT_SET, - SUMMARY - }; - -namespace SummaryChecksumAlgorithmMapper -{ -AWS_BACKUPSTORAGE_API SummaryChecksumAlgorithm GetSummaryChecksumAlgorithmForName(const Aws::String& name); - -AWS_BACKUPSTORAGE_API Aws::String GetNameForSummaryChecksumAlgorithm(SummaryChecksumAlgorithm value); -} // namespace SummaryChecksumAlgorithmMapper -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageClient.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageClient.cpp deleted file mode 100644 index bb07a2b37e4..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageClient.cpp +++ /dev/null @@ -1,562 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include - - -using namespace Aws; -using namespace Aws::Auth; -using namespace Aws::Client; -using namespace Aws::BackupStorage; -using namespace Aws::BackupStorage::Model; -using namespace Aws::Http; -using namespace Aws::Utils::Json; -using namespace smithy::components::tracing; -using ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; - -namespace Aws -{ - namespace BackupStorage - { - const char SERVICE_NAME[] = "backup-storage"; - const char ALLOCATION_TAG[] = "BackupStorageClient"; - } -} -const char* BackupStorageClient::GetServiceName() {return SERVICE_NAME;} -const char* BackupStorageClient::GetAllocationTag() {return ALLOCATION_TAG;} - -BackupStorageClient::BackupStorageClient(const BackupStorage::BackupStorageClientConfiguration& clientConfiguration, - std::shared_ptr endpointProvider) : - BASECLASS(clientConfiguration, - Aws::MakeShared(ALLOCATION_TAG, - Aws::MakeShared(ALLOCATION_TAG), - SERVICE_NAME, - Aws::Region::ComputeSignerRegion(clientConfiguration.region)), - Aws::MakeShared(ALLOCATION_TAG)), - m_clientConfiguration(clientConfiguration), - m_executor(clientConfiguration.executor), - m_endpointProvider(endpointProvider ? std::move(endpointProvider) : Aws::MakeShared(ALLOCATION_TAG)) -{ - init(m_clientConfiguration); -} - -BackupStorageClient::BackupStorageClient(const AWSCredentials& credentials, - std::shared_ptr endpointProvider, - const BackupStorage::BackupStorageClientConfiguration& clientConfiguration) : - BASECLASS(clientConfiguration, - Aws::MakeShared(ALLOCATION_TAG, - Aws::MakeShared(ALLOCATION_TAG, credentials), - SERVICE_NAME, - Aws::Region::ComputeSignerRegion(clientConfiguration.region)), - Aws::MakeShared(ALLOCATION_TAG)), - m_clientConfiguration(clientConfiguration), - m_executor(clientConfiguration.executor), - m_endpointProvider(endpointProvider ? std::move(endpointProvider) : Aws::MakeShared(ALLOCATION_TAG)) -{ - init(m_clientConfiguration); -} - -BackupStorageClient::BackupStorageClient(const std::shared_ptr& credentialsProvider, - std::shared_ptr endpointProvider, - const BackupStorage::BackupStorageClientConfiguration& clientConfiguration) : - BASECLASS(clientConfiguration, - Aws::MakeShared(ALLOCATION_TAG, - credentialsProvider, - SERVICE_NAME, - Aws::Region::ComputeSignerRegion(clientConfiguration.region)), - Aws::MakeShared(ALLOCATION_TAG)), - m_clientConfiguration(clientConfiguration), - m_executor(clientConfiguration.executor), - m_endpointProvider(endpointProvider ? std::move(endpointProvider) : Aws::MakeShared(ALLOCATION_TAG)) -{ - init(m_clientConfiguration); -} - - /* Legacy constructors due deprecation */ - BackupStorageClient::BackupStorageClient(const Client::ClientConfiguration& clientConfiguration) : - BASECLASS(clientConfiguration, - Aws::MakeShared(ALLOCATION_TAG, - Aws::MakeShared(ALLOCATION_TAG), - SERVICE_NAME, - Aws::Region::ComputeSignerRegion(clientConfiguration.region)), - Aws::MakeShared(ALLOCATION_TAG)), - m_clientConfiguration(clientConfiguration), - m_executor(clientConfiguration.executor), - m_endpointProvider(Aws::MakeShared(ALLOCATION_TAG)) -{ - init(m_clientConfiguration); -} - -BackupStorageClient::BackupStorageClient(const AWSCredentials& credentials, - const Client::ClientConfiguration& clientConfiguration) : - BASECLASS(clientConfiguration, - Aws::MakeShared(ALLOCATION_TAG, - Aws::MakeShared(ALLOCATION_TAG, credentials), - SERVICE_NAME, - Aws::Region::ComputeSignerRegion(clientConfiguration.region)), - Aws::MakeShared(ALLOCATION_TAG)), - m_clientConfiguration(clientConfiguration), - m_executor(clientConfiguration.executor), - m_endpointProvider(Aws::MakeShared(ALLOCATION_TAG)) -{ - init(m_clientConfiguration); -} - -BackupStorageClient::BackupStorageClient(const std::shared_ptr& credentialsProvider, - const Client::ClientConfiguration& clientConfiguration) : - BASECLASS(clientConfiguration, - Aws::MakeShared(ALLOCATION_TAG, - credentialsProvider, - SERVICE_NAME, - Aws::Region::ComputeSignerRegion(clientConfiguration.region)), - Aws::MakeShared(ALLOCATION_TAG)), - m_clientConfiguration(clientConfiguration), - m_executor(clientConfiguration.executor), - m_endpointProvider(Aws::MakeShared(ALLOCATION_TAG)) -{ - init(m_clientConfiguration); -} - - /* End of legacy constructors due deprecation */ -BackupStorageClient::~BackupStorageClient() -{ - ShutdownSdkClient(this, -1); -} - -std::shared_ptr& BackupStorageClient::accessEndpointProvider() -{ - return m_endpointProvider; -} - -void BackupStorageClient::init(const BackupStorage::BackupStorageClientConfiguration& config) -{ - AWSClient::SetServiceClientName("BackupStorage"); - AWS_CHECK_PTR(SERVICE_NAME, m_endpointProvider); - m_endpointProvider->InitBuiltInParameters(config); -} - -void BackupStorageClient::OverrideEndpoint(const Aws::String& endpoint) -{ - AWS_CHECK_PTR(SERVICE_NAME, m_endpointProvider); - m_endpointProvider->OverrideEndpoint(endpoint); -} - -DeleteObjectOutcome BackupStorageClient::DeleteObject(const DeleteObjectRequest& request) const -{ - AWS_OPERATION_GUARD(DeleteObject); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteObject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.BackupJobIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DeleteObject", "Required field: BackupJobId, is not set"); - return DeleteObjectOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BackupJobId]", false)); - } - if (!request.ObjectNameHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DeleteObject", "Required field: ObjectName, is not set"); - return DeleteObjectOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ObjectName]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteObject, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteObject, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteObject", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> DeleteObjectOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteObject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/backup-jobs/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetBackupJobId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/object/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetObjectName()); - return DeleteObjectOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - -GetChunkOutcome BackupStorageClient::GetChunk(const GetChunkRequest& request) const -{ - AWS_OPERATION_GUARD(GetChunk); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetChunk, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.StorageJobIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("GetChunk", "Required field: StorageJobId, is not set"); - return GetChunkOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [StorageJobId]", false)); - } - if (!request.ChunkTokenHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("GetChunk", "Required field: ChunkToken, is not set"); - return GetChunkOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ChunkToken]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetChunk, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetChunk, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetChunk", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetChunkOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetChunk, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/restore-jobs/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetStorageJobId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/chunk/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetChunkToken()); - return GetChunkOutcome(MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - -GetObjectMetadataOutcome BackupStorageClient::GetObjectMetadata(const GetObjectMetadataRequest& request) const -{ - AWS_OPERATION_GUARD(GetObjectMetadata); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetObjectMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.StorageJobIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("GetObjectMetadata", "Required field: StorageJobId, is not set"); - return GetObjectMetadataOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [StorageJobId]", false)); - } - if (!request.ObjectTokenHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("GetObjectMetadata", "Required field: ObjectToken, is not set"); - return GetObjectMetadataOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ObjectToken]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetObjectMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, GetObjectMetadata, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetObjectMetadata", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> GetObjectMetadataOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetObjectMetadata, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/restore-jobs/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetStorageJobId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/object/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetObjectToken()); - endpointResolutionOutcome.GetResult().AddPathSegments("/metadata"); - return GetObjectMetadataOutcome(MakeRequestWithUnparsedResponse(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - -ListChunksOutcome BackupStorageClient::ListChunks(const ListChunksRequest& request) const -{ - AWS_OPERATION_GUARD(ListChunks); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListChunks, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.StorageJobIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("ListChunks", "Required field: StorageJobId, is not set"); - return ListChunksOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [StorageJobId]", false)); - } - if (!request.ObjectTokenHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("ListChunks", "Required field: ObjectToken, is not set"); - return ListChunksOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ObjectToken]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListChunks, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListChunks, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListChunks", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListChunksOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListChunks, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/restore-jobs/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetStorageJobId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/chunks/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetObjectToken()); - endpointResolutionOutcome.GetResult().AddPathSegments("/list"); - return ListChunksOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - -ListObjectsOutcome BackupStorageClient::ListObjects(const ListObjectsRequest& request) const -{ - AWS_OPERATION_GUARD(ListObjects); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListObjects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.StorageJobIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("ListObjects", "Required field: StorageJobId, is not set"); - return ListObjectsOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [StorageJobId]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListObjects, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListObjects, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListObjects", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> ListObjectsOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListObjects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/restore-jobs/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetStorageJobId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/objects/list"); - return ListObjectsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - -NotifyObjectCompleteOutcome BackupStorageClient::NotifyObjectComplete(const NotifyObjectCompleteRequest& request) const -{ - AWS_OPERATION_GUARD(NotifyObjectComplete); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, NotifyObjectComplete, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.BackupJobIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("NotifyObjectComplete", "Required field: BackupJobId, is not set"); - return NotifyObjectCompleteOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BackupJobId]", false)); - } - if (!request.UploadIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("NotifyObjectComplete", "Required field: UploadId, is not set"); - return NotifyObjectCompleteOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [UploadId]", false)); - } - if (!request.ObjectChecksumHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("NotifyObjectComplete", "Required field: ObjectChecksum, is not set"); - return NotifyObjectCompleteOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ObjectChecksum]", false)); - } - if (!request.ObjectChecksumAlgorithmHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("NotifyObjectComplete", "Required field: ObjectChecksumAlgorithm, is not set"); - return NotifyObjectCompleteOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ObjectChecksumAlgorithm]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, NotifyObjectComplete, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, NotifyObjectComplete, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".NotifyObjectComplete", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> NotifyObjectCompleteOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, NotifyObjectComplete, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/backup-jobs/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetBackupJobId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/object/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetUploadId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/complete"); - return NotifyObjectCompleteOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - -PutChunkOutcome BackupStorageClient::PutChunk(const PutChunkRequest& request) const -{ - AWS_OPERATION_GUARD(PutChunk); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, PutChunk, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.BackupJobIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("PutChunk", "Required field: BackupJobId, is not set"); - return PutChunkOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BackupJobId]", false)); - } - if (!request.UploadIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("PutChunk", "Required field: UploadId, is not set"); - return PutChunkOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [UploadId]", false)); - } - if (!request.ChunkIndexHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("PutChunk", "Required field: ChunkIndex, is not set"); - return PutChunkOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ChunkIndex]", false)); - } - if (!request.LengthHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("PutChunk", "Required field: Length, is not set"); - return PutChunkOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Length]", false)); - } - if (!request.ChecksumHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("PutChunk", "Required field: Checksum, is not set"); - return PutChunkOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [Checksum]", false)); - } - if (!request.ChecksumAlgorithmHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("PutChunk", "Required field: ChecksumAlgorithm, is not set"); - return PutChunkOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ChecksumAlgorithm]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, PutChunk, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, PutChunk, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".PutChunk", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> PutChunkOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, PutChunk, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/backup-jobs/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetBackupJobId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/chunk/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetUploadId()); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetChunkIndex()); - return PutChunkOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - -PutObjectOutcome BackupStorageClient::PutObject(const PutObjectRequest& request) const -{ - AWS_OPERATION_GUARD(PutObject); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, PutObject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.BackupJobIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("PutObject", "Required field: BackupJobId, is not set"); - return PutObjectOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BackupJobId]", false)); - } - if (!request.ObjectNameHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("PutObject", "Required field: ObjectName, is not set"); - return PutObjectOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ObjectName]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, PutObject, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, PutObject, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".PutObject", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> PutObjectOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, PutObject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/backup-jobs/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetBackupJobId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/object/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetObjectName()); - endpointResolutionOutcome.GetResult().AddPathSegments("/put-object"); - return PutObjectOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - -StartObjectOutcome BackupStorageClient::StartObject(const StartObjectRequest& request) const -{ - AWS_OPERATION_GUARD(StartObject); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, StartObject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.BackupJobIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("StartObject", "Required field: BackupJobId, is not set"); - return StartObjectOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BackupJobId]", false)); - } - if (!request.ObjectNameHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("StartObject", "Required field: ObjectName, is not set"); - return StartObjectOutcome(Aws::Client::AWSError(BackupStorageErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ObjectName]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, StartObject, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, StartObject, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".StartObject", - {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, - smithy::components::tracing::SpanKind::CLIENT); - return TracingUtils::MakeCallWithTiming( - [&]()-> StartObjectOutcome { - auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( - [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, - TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); - AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, StartObject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/backup-jobs/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetBackupJobId()); - endpointResolutionOutcome.GetResult().AddPathSegments("/object/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetObjectName()); - return StartObjectOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageEndpointProvider.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageEndpointProvider.cpp deleted file mode 100644 index bd7910f5f69..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageEndpointProvider.cpp +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include - -namespace Aws -{ -namespace BackupStorage -{ -namespace Endpoint -{ -} // namespace Endpoint -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageEndpointRules.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageEndpointRules.cpp deleted file mode 100644 index c1303aa16d3..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageEndpointRules.cpp +++ /dev/null @@ -1,167 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -namespace Aws -{ -namespace BackupStorage -{ -const size_t BackupStorageEndpointRules::RulesBlobStrLen = 3500; -const size_t BackupStorageEndpointRules::RulesBlobSize = 3501; - -using RulesBlobT = Aws::Array; -static constexpr RulesBlobT RulesBlob = {{ -'{','"','v','e','r','s','i','o','n','"',':','"','1','.','0','"',',','"','p','a','r','a','m','e','t', -'e','r','s','"',':','{','"','R','e','g','i','o','n','"',':','{','"','b','u','i','l','t','I','n','"', -':','"','A','W','S',':',':','R','e','g','i','o','n','"',',','"','r','e','q','u','i','r','e','d','"', -':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a','t','i','o','n','"',':','"','T', -'h','e',' ','A','W','S',' ','r','e','g','i','o','n',' ','u','s','e','d',' ','t','o',' ','d','i','s', -'p','a','t','c','h',' ','t','h','e',' ','r','e','q','u','e','s','t','.','"',',','"','t','y','p','e', -'"',':','"','S','t','r','i','n','g','"','}',',','"','U','s','e','D','u','a','l','S','t','a','c','k', -'"',':','{','"','b','u','i','l','t','I','n','"',':','"','A','W','S',':',':','U','s','e','D','u','a', -'l','S','t','a','c','k','"',',','"','r','e','q','u','i','r','e','d','"',':','t','r','u','e',',','"', -'d','e','f','a','u','l','t','"',':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a', -'t','i','o','n','"',':','"','W','h','e','n',' ','t','r','u','e',',',' ','u','s','e',' ','t','h','e', -' ','d','u','a','l','-','s','t','a','c','k',' ','e','n','d','p','o','i','n','t','.',' ','I','f',' ', -'t','h','e',' ','c','o','n','f','i','g','u','r','e','d',' ','e','n','d','p','o','i','n','t',' ','d', -'o','e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ','d','u','a','l','-','s','t','a','c', -'k',',',' ','d','i','s','p','a','t','c','h','i','n','g',' ','t','h','e',' ','r','e','q','u','e','s', -'t',' ','M','A','Y',' ','r','e','t','u','r','n',' ','a','n',' ','e','r','r','o','r','.','"',',','"', -'t','y','p','e','"',':','"','B','o','o','l','e','a','n','"','}',',','"','U','s','e','F','I','P','S', -'"',':','{','"','b','u','i','l','t','I','n','"',':','"','A','W','S',':',':','U','s','e','F','I','P', -'S','"',',','"','r','e','q','u','i','r','e','d','"',':','t','r','u','e',',','"','d','e','f','a','u', -'l','t','"',':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a','t','i','o','n','"', -':','"','W','h','e','n',' ','t','r','u','e',',',' ','s','e','n','d',' ','t','h','i','s',' ','r','e', -'q','u','e','s','t',' ','t','o',' ','t','h','e',' ','F','I','P','S','-','c','o','m','p','l','i','a', -'n','t',' ','r','e','g','i','o','n','a','l',' ','e','n','d','p','o','i','n','t','.',' ','I','f',' ', -'t','h','e',' ','c','o','n','f','i','g','u','r','e','d',' ','e','n','d','p','o','i','n','t',' ','d', -'o','e','s',' ','n','o','t',' ','h','a','v','e',' ','a',' ','F','I','P','S',' ','c','o','m','p','l', -'i','a','n','t',' ','e','n','d','p','o','i','n','t',',',' ','d','i','s','p','a','t','c','h','i','n', -'g',' ','t','h','e',' ','r','e','q','u','e','s','t',' ','w','i','l','l',' ','r','e','t','u','r','n', -' ','a','n',' ','e','r','r','o','r','.','"',',','"','t','y','p','e','"',':','"','B','o','o','l','e', -'a','n','"','}',',','"','E','n','d','p','o','i','n','t','"',':','{','"','b','u','i','l','t','I','n', -'"',':','"','S','D','K',':',':','E','n','d','p','o','i','n','t','"',',','"','r','e','q','u','i','r', -'e','d','"',':','f','a','l','s','e',',','"','d','o','c','u','m','e','n','t','a','t','i','o','n','"', -':','"','O','v','e','r','r','i','d','e',' ','t','h','e',' ','e','n','d','p','o','i','n','t',' ','u', -'s','e','d',' ','t','o',' ','s','e','n','d',' ','t','h','i','s',' ','r','e','q','u','e','s','t','"', -',','"','t','y','p','e','"',':','"','S','t','r','i','n','g','"','}','}',',','"','r','u','l','e','s', -'"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"', -'i','s','S','e','t','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','E','n', -'d','p','o','i','n','t','"','}',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"', -',','"','r','u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[', -'{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r', -'g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','F','I','P','S','"','}',',','t','r', -'u','e',']','}',']',',','"','e','r','r','o','r','"',':','"','I','n','v','a','l','i','d',' ','C','o', -'n','f','i','g','u','r','a','t','i','o','n',':',' ','F','I','P','S',' ','a','n','d',' ','c','u','s', -'t','o','m',' ','e','n','d','p','o','i','n','t',' ','a','r','e',' ','n','o','t',' ','s','u','p','p', -'o','r','t','e','d','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',',','{','"', -'c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e', -'a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':', -'"','U','s','e','D','u','a','l','S','t','a','c','k','"','}',',','t','r','u','e',']','}',']',',','"', -'e','r','r','o','r','"',':','"','I','n','v','a','l','i','d',' ','C','o','n','f','i','g','u','r','a', -'t','i','o','n',':',' ','D','u','a','l','s','t','a','c','k',' ','a','n','d',' ','c','u','s','t','o', -'m',' ','e','n','d','p','o','i','n','t',' ','a','r','e',' ','n','o','t',' ','s','u','p','p','o','r', -'t','e','d','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',',','{','"','c','o', -'n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{', -'"','u','r','l','"',':','{','"','r','e','f','"',':','"','E','n','d','p','o','i','n','t','"','}',',', -'"','p','r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r','s','"', -':','{','}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}',']','}', -',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','i','s', -'S','e','t','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','R','e','g','i', -'o','n','"','}',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u', -'l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n', -'"',':','"','a','w','s','.','p','a','r','t','i','t','i','o','n','"',',','"','a','r','g','v','"',':', -'[','{','"','r','e','f','"',':','"','R','e','g','i','o','n','"','}',']',',','"','a','s','s','i','g', -'n','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}',']',',','"','t', -'y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"',':','[','{','"','c','o', -'n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n', -'E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U', -'s','e','F','I','P','S','"','}',',','t','r','u','e',']','}',',','{','"','f','n','"',':','"','b','o', -'o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{','"','r','e', -'f','"',':','"','U','s','e','D','u','a','l','S','t','a','c','k','"','}',',','t','r','u','e',']','}', -']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"',':','[', -'{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"','b','o','o', -'l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','t','r','u','e',',', -'{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"',':','[','{', -'"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','"','}',',', -'"','s','u','p','p','o','r','t','s','F','I','P','S','"',']','}',']','}',',','{','"','f','n','"',':', -'"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','t', -'r','u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v', -'"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l', -'t','"','}',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',']','}', -']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"', -':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o', -'i','n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','b','a','c','k', -'u','p','s','t','o','r','a','g','e','-','f','i','p','s','.','{','R','e','g','i','o','n','}','.','{', -'P','a','r','t','i','t','i','o','n','R','e','s','u','l','t','#','d','u','a','l','S','t','a','c','k', -'D','n','s','S','u','f','f','i','x','}','"',',','"','p','r','o','p','e','r','t','i','e','s','"',':', -'{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"', -'e','n','d','p','o','i','n','t','"','}',']','}',',','{','"','c','o','n','d','i','t','i','o','n','s', -'"',':','[',']',',','"','e','r','r','o','r','"',':','"','F','I','P','S',' ','a','n','d',' ','D','u', -'a','l','S','t','a','c','k',' ','a','r','e',' ','e','n','a','b','l','e','d',',',' ','b','u','t',' ', -'t','h','i','s',' ','p','a','r','t','i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ','s', -'u','p','p','o','r','t',' ','o','n','e',' ','o','r',' ','b','o','t','h','"',',','"','t','y','p','e', -'"',':','"','e','r','r','o','r','"','}',']','}',',','{','"','c','o','n','d','i','t','i','o','n','s', -'"',':','[','{','"','f','n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',', -'"','a','r','g','v','"',':','[','{','"','r','e','f','"',':','"','U','s','e','F','I','P','S','"','}', -',','t','r','u','e',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r', -'u','l','e','s','"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f', -'n','"',':','"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"', -':','[','t','r','u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a', -'r','g','v','"',':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e', -'s','u','l','t','"','}',',','"','s','u','p','p','o','r','t','s','F','I','P','S','"',']','}',']','}', -']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"',':','[', -'{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n', -'t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','b','a','c','k','u','p', -'s','t','o','r','a','g','e','-','f','i','p','s','.','{','R','e','g','i','o','n','}','.','{','P','a', -'r','t','i','t','i','o','n','R','e','s','u','l','t','#','d','n','s','S','u','f','f','i','x','}','"', -',','"','p','r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e','a','d','e','r','s', -'"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i','n','t','"','}',']', -'}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','r','r','o','r', -'"',':','"','F','I','P','S',' ','i','s',' ','e','n','a','b','l','e','d',' ','b','u','t',' ','t','h', -'i','s',' ','p','a','r','t','i','t','i','o','n',' ','d','o','e','s',' ','n','o','t',' ','s','u','p', -'p','o','r','t',' ','F','I','P','S','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"', -'}',']','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':', -'"','b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','{', -'"','r','e','f','"',':','"','U','s','e','D','u','a','l','S','t','a','c','k','"','}',',','t','r','u', -'e',']','}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s', -'"',':','[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[','{','"','f','n','"',':','"', -'b','o','o','l','e','a','n','E','q','u','a','l','s','"',',','"','a','r','g','v','"',':','[','t','r', -'u','e',',','{','"','f','n','"',':','"','g','e','t','A','t','t','r','"',',','"','a','r','g','v','"', -':','[','{','"','r','e','f','"',':','"','P','a','r','t','i','t','i','o','n','R','e','s','u','l','t', -'"','}',',','"','s','u','p','p','o','r','t','s','D','u','a','l','S','t','a','c','k','"',']','}',']', -'}',']',',','"','t','y','p','e','"',':','"','t','r','e','e','"',',','"','r','u','l','e','s','"',':', -'[','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i', -'n','t','"',':','{','"','u','r','l','"',':','"','h','t','t','p','s',':','/','/','b','a','c','k','u', -'p','s','t','o','r','a','g','e','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t', -'i','o','n','R','e','s','u','l','t','#','d','u','a','l','S','t','a','c','k','D','n','s','S','u','f', -'f','i','x','}','"',',','"','p','r','o','p','e','r','t','i','e','s','"',':','{','}',',','"','h','e', -'a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e','"',':','"','e','n','d','p','o','i', -'n','t','"','}',']','}',',','{','"','c','o','n','d','i','t','i','o','n','s','"',':','[',']',',','"', -'e','r','r','o','r','"',':','"','D','u','a','l','S','t','a','c','k',' ','i','s',' ','e','n','a','b', -'l','e','d',' ','b','u','t',' ','t','h','i','s',' ','p','a','r','t','i','t','i','o','n',' ','d','o', -'e','s',' ','n','o','t',' ','s','u','p','p','o','r','t',' ','D','u','a','l','S','t','a','c','k','"', -',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',']','}',',','{','"','c','o','n','d', -'i','t','i','o','n','s','"',':','[',']',',','"','e','n','d','p','o','i','n','t','"',':','{','"','u', -'r','l','"',':','"','h','t','t','p','s',':','/','/','b','a','c','k','u','p','s','t','o','r','a','g', -'e','.','{','R','e','g','i','o','n','}','.','{','P','a','r','t','i','t','i','o','n','R','e','s','u', -'l','t','#','d','n','s','S','u','f','f','i','x','}','"',',','"','p','r','o','p','e','r','t','i','e', -'s','"',':','{','}',',','"','h','e','a','d','e','r','s','"',':','{','}','}',',','"','t','y','p','e', -'"',':','"','e','n','d','p','o','i','n','t','"','}',']','}',']','}',',','{','"','c','o','n','d','i', -'t','i','o','n','s','"',':','[',']',',','"','e','r','r','o','r','"',':','"','I','n','v','a','l','i', -'d',' ','C','o','n','f','i','g','u','r','a','t','i','o','n',':',' ','M','i','s','s','i','n','g',' ', -'R','e','g','i','o','n','"',',','"','t','y','p','e','"',':','"','e','r','r','o','r','"','}',']','}', -'\0' -}}; - -const char* BackupStorageEndpointRules::GetRulesBlob() -{ - return RulesBlob.data(); -} - -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageErrorMarshaller.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageErrorMarshaller.cpp deleted file mode 100644 index 7dcd8b21b75..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageErrorMarshaller.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include - -using namespace Aws::Client; -using namespace Aws::BackupStorage; - -AWSError BackupStorageErrorMarshaller::FindErrorByName(const char* errorName) const -{ - AWSError error = BackupStorageErrorMapper::GetErrorForName(errorName); - if(error.GetErrorType() != CoreErrors::UNKNOWN) - { - return error; - } - - return AWSErrorMarshaller::FindErrorByName(errorName); -} \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageErrors.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageErrors.cpp deleted file mode 100644 index 1d5d875d268..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageErrors.cpp +++ /dev/null @@ -1,70 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include - -using namespace Aws::Client; -using namespace Aws::Utils; -using namespace Aws::BackupStorage; -using namespace Aws::BackupStorage::Model; - -namespace Aws -{ -namespace BackupStorage -{ -template<> AWS_BACKUPSTORAGE_API DataAlreadyExistsException BackupStorageError::GetModeledError() -{ - assert(this->GetErrorType() == BackupStorageErrors::DATA_ALREADY_EXISTS); - return DataAlreadyExistsException(this->GetJsonPayload().View()); -} - -namespace BackupStorageErrorMapper -{ - -static const int NOT_READABLE_INPUT_STREAM_HASH = HashingUtils::HashString("NotReadableInputStreamException"); -static const int ILLEGAL_ARGUMENT_HASH = HashingUtils::HashString("IllegalArgumentException"); -static const int RETRYABLE_HASH = HashingUtils::HashString("RetryableException"); -static const int DATA_ALREADY_EXISTS_HASH = HashingUtils::HashString("DataAlreadyExistsException"); -static const int SERVICE_INTERNAL_HASH = HashingUtils::HashString("ServiceInternalException"); -static const int K_M_S_INVALID_KEY_USAGE_HASH = HashingUtils::HashString("KMSInvalidKeyUsageException"); - - -AWSError GetErrorForName(const char* errorName) -{ - int hashCode = HashingUtils::HashString(errorName); - - if (hashCode == NOT_READABLE_INPUT_STREAM_HASH) - { - return AWSError(static_cast(BackupStorageErrors::NOT_READABLE_INPUT_STREAM), RetryableType::NOT_RETRYABLE); - } - else if (hashCode == ILLEGAL_ARGUMENT_HASH) - { - return AWSError(static_cast(BackupStorageErrors::ILLEGAL_ARGUMENT), RetryableType::NOT_RETRYABLE); - } - else if (hashCode == RETRYABLE_HASH) - { - return AWSError(static_cast(BackupStorageErrors::RETRYABLE), RetryableType::NOT_RETRYABLE); - } - else if (hashCode == DATA_ALREADY_EXISTS_HASH) - { - return AWSError(static_cast(BackupStorageErrors::DATA_ALREADY_EXISTS), RetryableType::NOT_RETRYABLE); - } - else if (hashCode == SERVICE_INTERNAL_HASH) - { - return AWSError(static_cast(BackupStorageErrors::SERVICE_INTERNAL), RetryableType::NOT_RETRYABLE); - } - else if (hashCode == K_M_S_INVALID_KEY_USAGE_HASH) - { - return AWSError(static_cast(BackupStorageErrors::K_M_S_INVALID_KEY_USAGE), RetryableType::NOT_RETRYABLE); - } - return AWSError(CoreErrors::UNKNOWN, false); -} - -} // namespace BackupStorageErrorMapper -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageRequest.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageRequest.cpp deleted file mode 100644 index 823e7fbeaf7..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/BackupStorageRequest.cpp +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - - -#include - -namespace Aws -{ -namespace BackupStorage -{ -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/BackupObject.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/BackupObject.cpp deleted file mode 100644 index 0a448f9933e..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/BackupObject.cpp +++ /dev/null @@ -1,137 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -#include - -using namespace Aws::Utils::Json; -using namespace Aws::Utils; - -namespace Aws -{ -namespace BackupStorage -{ -namespace Model -{ - -BackupObject::BackupObject() : - m_nameHasBeenSet(false), - m_chunksCount(0), - m_chunksCountHasBeenSet(false), - m_metadataStringHasBeenSet(false), - m_objectChecksumHasBeenSet(false), - m_objectChecksumAlgorithm(SummaryChecksumAlgorithm::NOT_SET), - m_objectChecksumAlgorithmHasBeenSet(false), - m_objectTokenHasBeenSet(false) -{ -} - -BackupObject::BackupObject(JsonView jsonValue) : - m_nameHasBeenSet(false), - m_chunksCount(0), - m_chunksCountHasBeenSet(false), - m_metadataStringHasBeenSet(false), - m_objectChecksumHasBeenSet(false), - m_objectChecksumAlgorithm(SummaryChecksumAlgorithm::NOT_SET), - m_objectChecksumAlgorithmHasBeenSet(false), - m_objectTokenHasBeenSet(false) -{ - *this = jsonValue; -} - -BackupObject& BackupObject::operator =(JsonView jsonValue) -{ - if(jsonValue.ValueExists("Name")) - { - m_name = jsonValue.GetString("Name"); - - m_nameHasBeenSet = true; - } - - if(jsonValue.ValueExists("ChunksCount")) - { - m_chunksCount = jsonValue.GetInt64("ChunksCount"); - - m_chunksCountHasBeenSet = true; - } - - if(jsonValue.ValueExists("MetadataString")) - { - m_metadataString = jsonValue.GetString("MetadataString"); - - m_metadataStringHasBeenSet = true; - } - - if(jsonValue.ValueExists("ObjectChecksum")) - { - m_objectChecksum = jsonValue.GetString("ObjectChecksum"); - - m_objectChecksumHasBeenSet = true; - } - - if(jsonValue.ValueExists("ObjectChecksumAlgorithm")) - { - m_objectChecksumAlgorithm = SummaryChecksumAlgorithmMapper::GetSummaryChecksumAlgorithmForName(jsonValue.GetString("ObjectChecksumAlgorithm")); - - m_objectChecksumAlgorithmHasBeenSet = true; - } - - if(jsonValue.ValueExists("ObjectToken")) - { - m_objectToken = jsonValue.GetString("ObjectToken"); - - m_objectTokenHasBeenSet = true; - } - - return *this; -} - -JsonValue BackupObject::Jsonize() const -{ - JsonValue payload; - - if(m_nameHasBeenSet) - { - payload.WithString("Name", m_name); - - } - - if(m_chunksCountHasBeenSet) - { - payload.WithInt64("ChunksCount", m_chunksCount); - - } - - if(m_metadataStringHasBeenSet) - { - payload.WithString("MetadataString", m_metadataString); - - } - - if(m_objectChecksumHasBeenSet) - { - payload.WithString("ObjectChecksum", m_objectChecksum); - - } - - if(m_objectChecksumAlgorithmHasBeenSet) - { - payload.WithString("ObjectChecksumAlgorithm", SummaryChecksumAlgorithmMapper::GetNameForSummaryChecksumAlgorithm(m_objectChecksumAlgorithm)); - } - - if(m_objectTokenHasBeenSet) - { - payload.WithString("ObjectToken", m_objectToken); - - } - - return payload; -} - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/Chunk.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/Chunk.cpp deleted file mode 100644 index 73c3d3d4506..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/Chunk.cpp +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -#include - -using namespace Aws::Utils::Json; -using namespace Aws::Utils; - -namespace Aws -{ -namespace BackupStorage -{ -namespace Model -{ - -Chunk::Chunk() : - m_index(0), - m_indexHasBeenSet(false), - m_length(0), - m_lengthHasBeenSet(false), - m_checksumHasBeenSet(false), - m_checksumAlgorithm(DataChecksumAlgorithm::NOT_SET), - m_checksumAlgorithmHasBeenSet(false), - m_chunkTokenHasBeenSet(false) -{ -} - -Chunk::Chunk(JsonView jsonValue) : - m_index(0), - m_indexHasBeenSet(false), - m_length(0), - m_lengthHasBeenSet(false), - m_checksumHasBeenSet(false), - m_checksumAlgorithm(DataChecksumAlgorithm::NOT_SET), - m_checksumAlgorithmHasBeenSet(false), - m_chunkTokenHasBeenSet(false) -{ - *this = jsonValue; -} - -Chunk& Chunk::operator =(JsonView jsonValue) -{ - if(jsonValue.ValueExists("Index")) - { - m_index = jsonValue.GetInt64("Index"); - - m_indexHasBeenSet = true; - } - - if(jsonValue.ValueExists("Length")) - { - m_length = jsonValue.GetInt64("Length"); - - m_lengthHasBeenSet = true; - } - - if(jsonValue.ValueExists("Checksum")) - { - m_checksum = jsonValue.GetString("Checksum"); - - m_checksumHasBeenSet = true; - } - - if(jsonValue.ValueExists("ChecksumAlgorithm")) - { - m_checksumAlgorithm = DataChecksumAlgorithmMapper::GetDataChecksumAlgorithmForName(jsonValue.GetString("ChecksumAlgorithm")); - - m_checksumAlgorithmHasBeenSet = true; - } - - if(jsonValue.ValueExists("ChunkToken")) - { - m_chunkToken = jsonValue.GetString("ChunkToken"); - - m_chunkTokenHasBeenSet = true; - } - - return *this; -} - -JsonValue Chunk::Jsonize() const -{ - JsonValue payload; - - if(m_indexHasBeenSet) - { - payload.WithInt64("Index", m_index); - - } - - if(m_lengthHasBeenSet) - { - payload.WithInt64("Length", m_length); - - } - - if(m_checksumHasBeenSet) - { - payload.WithString("Checksum", m_checksum); - - } - - if(m_checksumAlgorithmHasBeenSet) - { - payload.WithString("ChecksumAlgorithm", DataChecksumAlgorithmMapper::GetNameForDataChecksumAlgorithm(m_checksumAlgorithm)); - } - - if(m_chunkTokenHasBeenSet) - { - payload.WithString("ChunkToken", m_chunkToken); - - } - - return payload; -} - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/DataAlreadyExistsException.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/DataAlreadyExistsException.cpp deleted file mode 100644 index d4b156f0477..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/DataAlreadyExistsException.cpp +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -#include - -using namespace Aws::Utils::Json; -using namespace Aws::Utils; - -namespace Aws -{ -namespace BackupStorage -{ -namespace Model -{ - -DataAlreadyExistsException::DataAlreadyExistsException() : - m_messageHasBeenSet(false), - m_checksumHasBeenSet(false), - m_checksumAlgorithmHasBeenSet(false) -{ -} - -DataAlreadyExistsException::DataAlreadyExistsException(JsonView jsonValue) : - m_messageHasBeenSet(false), - m_checksumHasBeenSet(false), - m_checksumAlgorithmHasBeenSet(false) -{ - *this = jsonValue; -} - -DataAlreadyExistsException& DataAlreadyExistsException::operator =(JsonView jsonValue) -{ - if(jsonValue.ValueExists("Message")) - { - m_message = jsonValue.GetString("Message"); - - m_messageHasBeenSet = true; - } - - if(jsonValue.ValueExists("Checksum")) - { - m_checksum = jsonValue.GetString("Checksum"); - - m_checksumHasBeenSet = true; - } - - if(jsonValue.ValueExists("ChecksumAlgorithm")) - { - m_checksumAlgorithm = jsonValue.GetString("ChecksumAlgorithm"); - - m_checksumAlgorithmHasBeenSet = true; - } - - return *this; -} - -JsonValue DataAlreadyExistsException::Jsonize() const -{ - JsonValue payload; - - if(m_messageHasBeenSet) - { - payload.WithString("Message", m_message); - - } - - if(m_checksumHasBeenSet) - { - payload.WithString("Checksum", m_checksum); - - } - - if(m_checksumAlgorithmHasBeenSet) - { - payload.WithString("ChecksumAlgorithm", m_checksumAlgorithm); - - } - - return payload; -} - -} // namespace Model -} // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/DataChecksumAlgorithm.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/DataChecksumAlgorithm.cpp deleted file mode 100644 index 9edac14f9c2..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/DataChecksumAlgorithm.cpp +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include - -using namespace Aws::Utils; - - -namespace Aws -{ - namespace BackupStorage - { - namespace Model - { - namespace DataChecksumAlgorithmMapper - { - - static const int SHA256_HASH = HashingUtils::HashString("SHA256"); - - - DataChecksumAlgorithm GetDataChecksumAlgorithmForName(const Aws::String& name) - { - int hashCode = HashingUtils::HashString(name.c_str()); - if (hashCode == SHA256_HASH) - { - return DataChecksumAlgorithm::SHA256; - } - EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); - if(overflowContainer) - { - overflowContainer->StoreOverflow(hashCode, name); - return static_cast(hashCode); - } - - return DataChecksumAlgorithm::NOT_SET; - } - - Aws::String GetNameForDataChecksumAlgorithm(DataChecksumAlgorithm enumValue) - { - switch(enumValue) - { - case DataChecksumAlgorithm::NOT_SET: - return {}; - case DataChecksumAlgorithm::SHA256: - return "SHA256"; - default: - EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); - if(overflowContainer) - { - return overflowContainer->RetrieveOverflow(static_cast(enumValue)); - } - - return {}; - } - } - - } // namespace DataChecksumAlgorithmMapper - } // namespace Model - } // namespace BackupStorage -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/DeleteObjectRequest.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/DeleteObjectRequest.cpp deleted file mode 100644 index 1f688360aea..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/DeleteObjectRequest.cpp +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -#include - -using namespace Aws::BackupStorage::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; - -DeleteObjectRequest::DeleteObjectRequest() : - m_backupJobIdHasBeenSet(false), - m_objectNameHasBeenSet(false) -{ -} - -Aws::String DeleteObjectRequest::SerializePayload() const -{ - return {}; -} - - - - diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/GetChunkRequest.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/GetChunkRequest.cpp deleted file mode 100644 index 3d64e2c9c98..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/GetChunkRequest.cpp +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -#include - -using namespace Aws::BackupStorage::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; - -GetChunkRequest::GetChunkRequest() : - m_storageJobIdHasBeenSet(false), - m_chunkTokenHasBeenSet(false) -{ -} - -Aws::String GetChunkRequest::SerializePayload() const -{ - return {}; -} - - - - diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/GetChunkResult.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/GetChunkResult.cpp deleted file mode 100644 index 7146c520075..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/GetChunkResult.cpp +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include -#include - -#include - -using namespace Aws::BackupStorage::Model; -using namespace Aws::Utils::Stream; -using namespace Aws::Utils; -using namespace Aws; - -GetChunkResult::GetChunkResult() : - m_length(0), - m_checksumAlgorithm(DataChecksumAlgorithm::NOT_SET) -{ -} - -GetChunkResult::GetChunkResult(GetChunkResult&& toMove) : - m_data(std::move(toMove.m_data)), - m_length(toMove.m_length), - m_checksum(std::move(toMove.m_checksum)), - m_checksumAlgorithm(toMove.m_checksumAlgorithm), - m_requestId(std::move(toMove.m_requestId)) -{ -} - -GetChunkResult& GetChunkResult::operator=(GetChunkResult&& toMove) -{ - if(this == &toMove) - { - return *this; - } - - m_data = std::move(toMove.m_data); - m_length = toMove.m_length; - m_checksum = std::move(toMove.m_checksum); - m_checksumAlgorithm = toMove.m_checksumAlgorithm; - m_requestId = std::move(toMove.m_requestId); - - return *this; -} - -GetChunkResult::GetChunkResult(Aws::AmazonWebServiceResult&& result) : - m_length(0), - m_checksumAlgorithm(DataChecksumAlgorithm::NOT_SET) -{ - *this = std::move(result); -} - -GetChunkResult& GetChunkResult::operator =(Aws::AmazonWebServiceResult&& result) -{ - m_data = result.TakeOwnershipOfPayload(); - - const auto& headers = result.GetHeaderValueCollection(); - const auto& lengthIter = headers.find("x-amz-data-length"); - if(lengthIter != headers.end()) - { - m_length = StringUtils::ConvertToInt64(lengthIter->second.c_str()); - } - - const auto& checksumIter = headers.find("x-amz-checksum"); - if(checksumIter != headers.end()) - { - m_checksum = checksumIter->second; - } - - const auto& checksumAlgorithmIter = headers.find("x-amz-checksum-algorithm"); - if(checksumAlgorithmIter != headers.end()) - { - m_checksumAlgorithm = DataChecksumAlgorithmMapper::GetDataChecksumAlgorithmForName(checksumAlgorithmIter->second); - } - - const auto& requestIdIter = headers.find("x-amzn-requestid"); - if(requestIdIter != headers.end()) - { - m_requestId = requestIdIter->second; - } - - return *this; -} diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/GetObjectMetadataRequest.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/GetObjectMetadataRequest.cpp deleted file mode 100644 index 594fb7fb62e..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/GetObjectMetadataRequest.cpp +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -#include - -using namespace Aws::BackupStorage::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; - -GetObjectMetadataRequest::GetObjectMetadataRequest() : - m_storageJobIdHasBeenSet(false), - m_objectTokenHasBeenSet(false) -{ -} - -Aws::String GetObjectMetadataRequest::SerializePayload() const -{ - return {}; -} - - - - diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/GetObjectMetadataResult.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/GetObjectMetadataResult.cpp deleted file mode 100644 index 5aa3a583508..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/GetObjectMetadataResult.cpp +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include -#include - -#include - -using namespace Aws::BackupStorage::Model; -using namespace Aws::Utils::Stream; -using namespace Aws::Utils; -using namespace Aws; - -GetObjectMetadataResult::GetObjectMetadataResult() : - m_metadataBlobLength(0), - m_metadataBlobChecksumAlgorithm(DataChecksumAlgorithm::NOT_SET) -{ -} - -GetObjectMetadataResult::GetObjectMetadataResult(GetObjectMetadataResult&& toMove) : - m_metadataString(std::move(toMove.m_metadataString)), - m_metadataBlob(std::move(toMove.m_metadataBlob)), - m_metadataBlobLength(toMove.m_metadataBlobLength), - m_metadataBlobChecksum(std::move(toMove.m_metadataBlobChecksum)), - m_metadataBlobChecksumAlgorithm(toMove.m_metadataBlobChecksumAlgorithm), - m_requestId(std::move(toMove.m_requestId)) -{ -} - -GetObjectMetadataResult& GetObjectMetadataResult::operator=(GetObjectMetadataResult&& toMove) -{ - if(this == &toMove) - { - return *this; - } - - m_metadataString = std::move(toMove.m_metadataString); - m_metadataBlob = std::move(toMove.m_metadataBlob); - m_metadataBlobLength = toMove.m_metadataBlobLength; - m_metadataBlobChecksum = std::move(toMove.m_metadataBlobChecksum); - m_metadataBlobChecksumAlgorithm = toMove.m_metadataBlobChecksumAlgorithm; - m_requestId = std::move(toMove.m_requestId); - - return *this; -} - -GetObjectMetadataResult::GetObjectMetadataResult(Aws::AmazonWebServiceResult&& result) : - m_metadataBlobLength(0), - m_metadataBlobChecksumAlgorithm(DataChecksumAlgorithm::NOT_SET) -{ - *this = std::move(result); -} - -GetObjectMetadataResult& GetObjectMetadataResult::operator =(Aws::AmazonWebServiceResult&& result) -{ - m_metadataBlob = result.TakeOwnershipOfPayload(); - - const auto& headers = result.GetHeaderValueCollection(); - const auto& metadataStringIter = headers.find("x-amz-metadata-string"); - if(metadataStringIter != headers.end()) - { - m_metadataString = metadataStringIter->second; - } - - const auto& metadataBlobLengthIter = headers.find("x-amz-data-length"); - if(metadataBlobLengthIter != headers.end()) - { - m_metadataBlobLength = StringUtils::ConvertToInt64(metadataBlobLengthIter->second.c_str()); - } - - const auto& metadataBlobChecksumIter = headers.find("x-amz-checksum"); - if(metadataBlobChecksumIter != headers.end()) - { - m_metadataBlobChecksum = metadataBlobChecksumIter->second; - } - - const auto& metadataBlobChecksumAlgorithmIter = headers.find("x-amz-checksum-algorithm"); - if(metadataBlobChecksumAlgorithmIter != headers.end()) - { - m_metadataBlobChecksumAlgorithm = DataChecksumAlgorithmMapper::GetDataChecksumAlgorithmForName(metadataBlobChecksumAlgorithmIter->second); - } - - const auto& requestIdIter = headers.find("x-amzn-requestid"); - if(requestIdIter != headers.end()) - { - m_requestId = requestIdIter->second; - } - - return *this; -} diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/ListChunksRequest.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/ListChunksRequest.cpp deleted file mode 100644 index b1a871b8b36..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/ListChunksRequest.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include - -#include - -using namespace Aws::BackupStorage::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws::Http; - -ListChunksRequest::ListChunksRequest() : - m_storageJobIdHasBeenSet(false), - m_objectTokenHasBeenSet(false), - m_maxResults(0), - m_maxResultsHasBeenSet(false), - m_nextTokenHasBeenSet(false) -{ -} - -Aws::String ListChunksRequest::SerializePayload() const -{ - return {}; -} - -void ListChunksRequest::AddQueryStringParameters(URI& uri) const -{ - Aws::StringStream ss; - if(m_maxResultsHasBeenSet) - { - ss << m_maxResults; - uri.AddQueryStringParameter("max-results", ss.str()); - ss.str(""); - } - - if(m_nextTokenHasBeenSet) - { - ss << m_nextToken; - uri.AddQueryStringParameter("next-token", ss.str()); - ss.str(""); - } - -} - - - diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/ListChunksResult.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/ListChunksResult.cpp deleted file mode 100644 index c28fd46d97b..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/ListChunksResult.cpp +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include -#include -#include - -#include - -using namespace Aws::BackupStorage::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -ListChunksResult::ListChunksResult() -{ -} - -ListChunksResult::ListChunksResult(const Aws::AmazonWebServiceResult& result) -{ - *this = result; -} - -ListChunksResult& ListChunksResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("ChunkList")) - { - Aws::Utils::Array chunkListJsonList = jsonValue.GetArray("ChunkList"); - for(unsigned chunkListIndex = 0; chunkListIndex < chunkListJsonList.GetLength(); ++chunkListIndex) - { - m_chunkList.push_back(chunkListJsonList[chunkListIndex].AsObject()); - } - } - - if(jsonValue.ValueExists("NextToken")) - { - m_nextToken = jsonValue.GetString("NextToken"); - - } - - - const auto& headers = result.GetHeaderValueCollection(); - const auto& requestIdIter = headers.find("x-amzn-requestid"); - if(requestIdIter != headers.end()) - { - m_requestId = requestIdIter->second; - } - - - return *this; -} diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/ListObjectsRequest.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/ListObjectsRequest.cpp deleted file mode 100644 index a531362f1c0..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/ListObjectsRequest.cpp +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include - -#include - -using namespace Aws::BackupStorage::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws::Http; - -ListObjectsRequest::ListObjectsRequest() : - m_storageJobIdHasBeenSet(false), - m_startingObjectNameHasBeenSet(false), - m_startingObjectPrefixHasBeenSet(false), - m_maxResults(0), - m_maxResultsHasBeenSet(false), - m_nextTokenHasBeenSet(false), - m_createdBeforeHasBeenSet(false), - m_createdAfterHasBeenSet(false) -{ -} - -Aws::String ListObjectsRequest::SerializePayload() const -{ - return {}; -} - -void ListObjectsRequest::AddQueryStringParameters(URI& uri) const -{ - Aws::StringStream ss; - if(m_startingObjectNameHasBeenSet) - { - ss << m_startingObjectName; - uri.AddQueryStringParameter("starting-object-name", ss.str()); - ss.str(""); - } - - if(m_startingObjectPrefixHasBeenSet) - { - ss << m_startingObjectPrefix; - uri.AddQueryStringParameter("starting-object-prefix", ss.str()); - ss.str(""); - } - - if(m_maxResultsHasBeenSet) - { - ss << m_maxResults; - uri.AddQueryStringParameter("max-results", ss.str()); - ss.str(""); - } - - if(m_nextTokenHasBeenSet) - { - ss << m_nextToken; - uri.AddQueryStringParameter("next-token", ss.str()); - ss.str(""); - } - - if(m_createdBeforeHasBeenSet) - { - ss << m_createdBefore.ToGmtString(Aws::Utils::DateFormat::ISO_8601); - uri.AddQueryStringParameter("created-before", ss.str()); - ss.str(""); - } - - if(m_createdAfterHasBeenSet) - { - ss << m_createdAfter.ToGmtString(Aws::Utils::DateFormat::ISO_8601); - uri.AddQueryStringParameter("created-after", ss.str()); - ss.str(""); - } - -} - - - diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/ListObjectsResult.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/ListObjectsResult.cpp deleted file mode 100644 index 939c2b6b56d..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/ListObjectsResult.cpp +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include -#include -#include - -#include - -using namespace Aws::BackupStorage::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -ListObjectsResult::ListObjectsResult() -{ -} - -ListObjectsResult::ListObjectsResult(const Aws::AmazonWebServiceResult& result) -{ - *this = result; -} - -ListObjectsResult& ListObjectsResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("ObjectList")) - { - Aws::Utils::Array objectListJsonList = jsonValue.GetArray("ObjectList"); - for(unsigned objectListIndex = 0; objectListIndex < objectListJsonList.GetLength(); ++objectListIndex) - { - m_objectList.push_back(objectListJsonList[objectListIndex].AsObject()); - } - } - - if(jsonValue.ValueExists("NextToken")) - { - m_nextToken = jsonValue.GetString("NextToken"); - - } - - - const auto& headers = result.GetHeaderValueCollection(); - const auto& requestIdIter = headers.find("x-amzn-requestid"); - if(requestIdIter != headers.end()) - { - m_requestId = requestIdIter->second; - } - - - return *this; -} diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/NotifyObjectCompleteRequest.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/NotifyObjectCompleteRequest.cpp deleted file mode 100644 index 163356a491b..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/NotifyObjectCompleteRequest.cpp +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include -#include - -#include - -using namespace Aws::BackupStorage::Model; -using namespace Aws::Utils::Stream; -using namespace Aws::Utils; -using namespace Aws::Http; -using namespace Aws; - -NotifyObjectCompleteRequest::NotifyObjectCompleteRequest() : - m_backupJobIdHasBeenSet(false), - m_uploadIdHasBeenSet(false), - m_objectChecksumHasBeenSet(false), - m_objectChecksumAlgorithm(SummaryChecksumAlgorithm::NOT_SET), - m_objectChecksumAlgorithmHasBeenSet(false), - m_metadataStringHasBeenSet(false), - m_metadataBlobLength(0), - m_metadataBlobLengthHasBeenSet(false), - m_metadataBlobChecksumHasBeenSet(false), - m_metadataBlobChecksumAlgorithm(DataChecksumAlgorithm::NOT_SET), - m_metadataBlobChecksumAlgorithmHasBeenSet(false) -{ -} - - -void NotifyObjectCompleteRequest::AddQueryStringParameters(URI& uri) const -{ - Aws::StringStream ss; - if(m_objectChecksumHasBeenSet) - { - ss << m_objectChecksum; - uri.AddQueryStringParameter("checksum", ss.str()); - ss.str(""); - } - - if(m_objectChecksumAlgorithmHasBeenSet) - { - ss << SummaryChecksumAlgorithmMapper::GetNameForSummaryChecksumAlgorithm(m_objectChecksumAlgorithm); - uri.AddQueryStringParameter("checksum-algorithm", ss.str()); - ss.str(""); - } - - if(m_metadataStringHasBeenSet) - { - ss << m_metadataString; - uri.AddQueryStringParameter("metadata-string", ss.str()); - ss.str(""); - } - - if(m_metadataBlobLengthHasBeenSet) - { - ss << m_metadataBlobLength; - uri.AddQueryStringParameter("metadata-blob-length", ss.str()); - ss.str(""); - } - - if(m_metadataBlobChecksumHasBeenSet) - { - ss << m_metadataBlobChecksum; - uri.AddQueryStringParameter("metadata-checksum", ss.str()); - ss.str(""); - } - - if(m_metadataBlobChecksumAlgorithmHasBeenSet) - { - ss << DataChecksumAlgorithmMapper::GetNameForDataChecksumAlgorithm(m_metadataBlobChecksumAlgorithm); - uri.AddQueryStringParameter("metadata-checksum-algorithm", ss.str()); - ss.str(""); - } - -} - diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/NotifyObjectCompleteResult.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/NotifyObjectCompleteResult.cpp deleted file mode 100644 index 6fd2ab7f3d0..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/NotifyObjectCompleteResult.cpp +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include -#include -#include - -#include - -using namespace Aws::BackupStorage::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -NotifyObjectCompleteResult::NotifyObjectCompleteResult() : - m_objectChecksumAlgorithm(SummaryChecksumAlgorithm::NOT_SET) -{ -} - -NotifyObjectCompleteResult::NotifyObjectCompleteResult(const Aws::AmazonWebServiceResult& result) : - m_objectChecksumAlgorithm(SummaryChecksumAlgorithm::NOT_SET) -{ - *this = result; -} - -NotifyObjectCompleteResult& NotifyObjectCompleteResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("ObjectChecksum")) - { - m_objectChecksum = jsonValue.GetString("ObjectChecksum"); - - } - - if(jsonValue.ValueExists("ObjectChecksumAlgorithm")) - { - m_objectChecksumAlgorithm = SummaryChecksumAlgorithmMapper::GetSummaryChecksumAlgorithmForName(jsonValue.GetString("ObjectChecksumAlgorithm")); - - } - - - const auto& headers = result.GetHeaderValueCollection(); - const auto& requestIdIter = headers.find("x-amzn-requestid"); - if(requestIdIter != headers.end()) - { - m_requestId = requestIdIter->second; - } - - - return *this; -} diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/PutChunkRequest.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/PutChunkRequest.cpp deleted file mode 100644 index 7d0b0b88127..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/PutChunkRequest.cpp +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include -#include - -#include - -using namespace Aws::BackupStorage::Model; -using namespace Aws::Utils::Stream; -using namespace Aws::Utils; -using namespace Aws::Http; -using namespace Aws; - -PutChunkRequest::PutChunkRequest() : - m_backupJobIdHasBeenSet(false), - m_uploadIdHasBeenSet(false), - m_chunkIndex(0), - m_chunkIndexHasBeenSet(false), - m_length(0), - m_lengthHasBeenSet(false), - m_checksumHasBeenSet(false), - m_checksumAlgorithm(DataChecksumAlgorithm::NOT_SET), - m_checksumAlgorithmHasBeenSet(false) -{ -} - - -void PutChunkRequest::AddQueryStringParameters(URI& uri) const -{ - Aws::StringStream ss; - if(m_lengthHasBeenSet) - { - ss << m_length; - uri.AddQueryStringParameter("length", ss.str()); - ss.str(""); - } - - if(m_checksumHasBeenSet) - { - ss << m_checksum; - uri.AddQueryStringParameter("checksum", ss.str()); - ss.str(""); - } - - if(m_checksumAlgorithmHasBeenSet) - { - ss << DataChecksumAlgorithmMapper::GetNameForDataChecksumAlgorithm(m_checksumAlgorithm); - uri.AddQueryStringParameter("checksum-algorithm", ss.str()); - ss.str(""); - } - -} - diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/PutChunkResult.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/PutChunkResult.cpp deleted file mode 100644 index 2e465410974..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/PutChunkResult.cpp +++ /dev/null @@ -1,56 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include -#include -#include - -#include - -using namespace Aws::BackupStorage::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -PutChunkResult::PutChunkResult() : - m_chunkChecksumAlgorithm(DataChecksumAlgorithm::NOT_SET) -{ -} - -PutChunkResult::PutChunkResult(const Aws::AmazonWebServiceResult& result) : - m_chunkChecksumAlgorithm(DataChecksumAlgorithm::NOT_SET) -{ - *this = result; -} - -PutChunkResult& PutChunkResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("ChunkChecksum")) - { - m_chunkChecksum = jsonValue.GetString("ChunkChecksum"); - - } - - if(jsonValue.ValueExists("ChunkChecksumAlgorithm")) - { - m_chunkChecksumAlgorithm = DataChecksumAlgorithmMapper::GetDataChecksumAlgorithmForName(jsonValue.GetString("ChunkChecksumAlgorithm")); - - } - - - const auto& headers = result.GetHeaderValueCollection(); - const auto& requestIdIter = headers.find("x-amzn-requestid"); - if(requestIdIter != headers.end()) - { - m_requestId = requestIdIter->second; - } - - - return *this; -} diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/PutObjectRequest.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/PutObjectRequest.cpp deleted file mode 100644 index 8419bd15d28..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/PutObjectRequest.cpp +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include -#include - -#include - -using namespace Aws::BackupStorage::Model; -using namespace Aws::Utils::Stream; -using namespace Aws::Utils; -using namespace Aws::Http; -using namespace Aws; - -PutObjectRequest::PutObjectRequest() : - m_backupJobIdHasBeenSet(false), - m_objectNameHasBeenSet(false), - m_metadataStringHasBeenSet(false), - m_inlineChunkLength(0), - m_inlineChunkLengthHasBeenSet(false), - m_inlineChunkChecksumHasBeenSet(false), - m_inlineChunkChecksumAlgorithmHasBeenSet(false), - m_objectChecksumHasBeenSet(false), - m_objectChecksumAlgorithm(SummaryChecksumAlgorithm::NOT_SET), - m_objectChecksumAlgorithmHasBeenSet(false), - m_throwOnDuplicate(false), - m_throwOnDuplicateHasBeenSet(false) -{ -} - - -void PutObjectRequest::AddQueryStringParameters(URI& uri) const -{ - Aws::StringStream ss; - if(m_metadataStringHasBeenSet) - { - ss << m_metadataString; - uri.AddQueryStringParameter("metadata-string", ss.str()); - ss.str(""); - } - - if(m_inlineChunkLengthHasBeenSet) - { - ss << m_inlineChunkLength; - uri.AddQueryStringParameter("length", ss.str()); - ss.str(""); - } - - if(m_inlineChunkChecksumHasBeenSet) - { - ss << m_inlineChunkChecksum; - uri.AddQueryStringParameter("checksum", ss.str()); - ss.str(""); - } - - if(m_inlineChunkChecksumAlgorithmHasBeenSet) - { - ss << m_inlineChunkChecksumAlgorithm; - uri.AddQueryStringParameter("checksum-algorithm", ss.str()); - ss.str(""); - } - - if(m_objectChecksumHasBeenSet) - { - ss << m_objectChecksum; - uri.AddQueryStringParameter("object-checksum", ss.str()); - ss.str(""); - } - - if(m_objectChecksumAlgorithmHasBeenSet) - { - ss << SummaryChecksumAlgorithmMapper::GetNameForSummaryChecksumAlgorithm(m_objectChecksumAlgorithm); - uri.AddQueryStringParameter("object-checksum-algorithm", ss.str()); - ss.str(""); - } - - if(m_throwOnDuplicateHasBeenSet) - { - ss << m_throwOnDuplicate; - uri.AddQueryStringParameter("throwOnDuplicate", ss.str()); - ss.str(""); - } - -} - diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/PutObjectResult.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/PutObjectResult.cpp deleted file mode 100644 index 9e432950dc4..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/PutObjectResult.cpp +++ /dev/null @@ -1,70 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include -#include -#include - -#include - -using namespace Aws::BackupStorage::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -PutObjectResult::PutObjectResult() : - m_inlineChunkChecksumAlgorithm(DataChecksumAlgorithm::NOT_SET), - m_objectChecksumAlgorithm(SummaryChecksumAlgorithm::NOT_SET) -{ -} - -PutObjectResult::PutObjectResult(const Aws::AmazonWebServiceResult& result) : - m_inlineChunkChecksumAlgorithm(DataChecksumAlgorithm::NOT_SET), - m_objectChecksumAlgorithm(SummaryChecksumAlgorithm::NOT_SET) -{ - *this = result; -} - -PutObjectResult& PutObjectResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("InlineChunkChecksum")) - { - m_inlineChunkChecksum = jsonValue.GetString("InlineChunkChecksum"); - - } - - if(jsonValue.ValueExists("InlineChunkChecksumAlgorithm")) - { - m_inlineChunkChecksumAlgorithm = DataChecksumAlgorithmMapper::GetDataChecksumAlgorithmForName(jsonValue.GetString("InlineChunkChecksumAlgorithm")); - - } - - if(jsonValue.ValueExists("ObjectChecksum")) - { - m_objectChecksum = jsonValue.GetString("ObjectChecksum"); - - } - - if(jsonValue.ValueExists("ObjectChecksumAlgorithm")) - { - m_objectChecksumAlgorithm = SummaryChecksumAlgorithmMapper::GetSummaryChecksumAlgorithmForName(jsonValue.GetString("ObjectChecksumAlgorithm")); - - } - - - const auto& headers = result.GetHeaderValueCollection(); - const auto& requestIdIter = headers.find("x-amzn-requestid"); - if(requestIdIter != headers.end()) - { - m_requestId = requestIdIter->second; - } - - - return *this; -} diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/StartObjectRequest.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/StartObjectRequest.cpp deleted file mode 100644 index 0ed6b8f984e..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/StartObjectRequest.cpp +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -#include - -using namespace Aws::BackupStorage::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; - -StartObjectRequest::StartObjectRequest() : - m_backupJobIdHasBeenSet(false), - m_objectNameHasBeenSet(false), - m_throwOnDuplicate(false), - m_throwOnDuplicateHasBeenSet(false) -{ -} - -Aws::String StartObjectRequest::SerializePayload() const -{ - JsonValue payload; - - if(m_throwOnDuplicateHasBeenSet) - { - payload.WithBool("ThrowOnDuplicate", m_throwOnDuplicate); - - } - - return payload.View().WriteReadable(); -} - - - - diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/StartObjectResult.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/StartObjectResult.cpp deleted file mode 100644 index 01e68f61b60..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/StartObjectResult.cpp +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include -#include -#include - -#include - -using namespace Aws::BackupStorage::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -StartObjectResult::StartObjectResult() -{ -} - -StartObjectResult::StartObjectResult(const Aws::AmazonWebServiceResult& result) -{ - *this = result; -} - -StartObjectResult& StartObjectResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("UploadId")) - { - m_uploadId = jsonValue.GetString("UploadId"); - - } - - - const auto& headers = result.GetHeaderValueCollection(); - const auto& requestIdIter = headers.find("x-amzn-requestid"); - if(requestIdIter != headers.end()) - { - m_requestId = requestIdIter->second; - } - - - return *this; -} diff --git a/generated/src/aws-cpp-sdk-backupstorage/source/model/SummaryChecksumAlgorithm.cpp b/generated/src/aws-cpp-sdk-backupstorage/source/model/SummaryChecksumAlgorithm.cpp deleted file mode 100644 index ae58dfcb02e..00000000000 --- a/generated/src/aws-cpp-sdk-backupstorage/source/model/SummaryChecksumAlgorithm.cpp +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include - -using namespace Aws::Utils; - - -namespace Aws -{ - namespace BackupStorage - { - namespace Model - { - namespace SummaryChecksumAlgorithmMapper - { - - static const int SUMMARY_HASH = HashingUtils::HashString("SUMMARY"); - - - SummaryChecksumAlgorithm GetSummaryChecksumAlgorithmForName(const Aws::String& name) - { - int hashCode = HashingUtils::HashString(name.c_str()); - if (hashCode == SUMMARY_HASH) - { - return SummaryChecksumAlgorithm::SUMMARY; - } - EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); - if(overflowContainer) - { - overflowContainer->StoreOverflow(hashCode, name); - return static_cast(hashCode); - } - - return SummaryChecksumAlgorithm::NOT_SET; - } - - Aws::String GetNameForSummaryChecksumAlgorithm(SummaryChecksumAlgorithm enumValue) - { - switch(enumValue) - { - case SummaryChecksumAlgorithm::NOT_SET: - return {}; - case SummaryChecksumAlgorithm::SUMMARY: - return "SUMMARY"; - default: - EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); - if(overflowContainer) - { - return overflowContainer->RetrieveOverflow(static_cast(enumValue)); - } - - return {}; - } - } - - } // namespace SummaryChecksumAlgorithmMapper - } // namespace Model - } // namespace BackupStorage -} // namespace Aws diff --git a/generated/tests/backupstorage-gen-tests/BackupStorageEndpointProviderTests.cpp b/generated/tests/backupstorage-gen-tests/BackupStorageEndpointProviderTests.cpp deleted file mode 100644 index 4a56c2704f8..00000000000 --- a/generated/tests/backupstorage-gen-tests/BackupStorageEndpointProviderTests.cpp +++ /dev/null @@ -1,428 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -#include - - -static const char* ALLOCATION_TAG = "AWSBackupStorageEndpointProviderTests"; -using BackupStorageEndpointProvider = Aws::BackupStorage::Endpoint::BackupStorageEndpointProvider; -using EndpointParameters = Aws::Vector; -using ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; - -using EpParam = Aws::Endpoint::EndpointParameter; -using EpProp = Aws::Endpoint::EndpointParameter; // just a container to store test expectations -using ExpEpProps = Aws::UnorderedMap>>; -using ExpEpAuthScheme = Aws::Vector; -using ExpEpHeaders = Aws::UnorderedMap>; - -struct BackupStorageEndpointProviderEndpointTestCase -{ - using OperationParamsFromTest = EndpointParameters; - - struct Expect - { - struct Endpoint - { - Aws::String url; - ExpEpAuthScheme authScheme; - ExpEpProps properties; - ExpEpHeaders headers; - } endpoint; - Aws::String error; - }; - struct OperationInput - { - Aws::String operationName; - OperationParamsFromTest operationParams; - OperationParamsFromTest builtinParams; - OperationParamsFromTest clientParams; - }; - - Aws::String documentation; - // Specification tells us it is Client Initialization parameters - // At the same time, specification tells us to test EndpointProvider not the client itself - // Hence params here will be set as a client params (just like a dedicated field above). - Aws::Vector params; - Aws::Vector tags; - Expect expect; - // Aws::Vector operationInput; -}; - -class BackupStorageEndpointProviderTests : public ::testing::TestWithParam -{ -public: - static const size_t TEST_CASES_SZ; -protected: - static Aws::Vector getTestCase(); - static Aws::UniquePtrSafeDeleted> TEST_CASES; - static void SetUpTestSuite() - { - TEST_CASES = Aws::MakeUniqueSafeDeleted>(ALLOCATION_TAG, getTestCase()); - ASSERT_TRUE(TEST_CASES) << "Failed to allocate TEST_CASES table"; - assert(TEST_CASES->size() == TEST_CASES_SZ); - } - - static void TearDownTestSuite() - { - TEST_CASES.reset(); - } -}; - -Aws::UniquePtrSafeDeleted> BackupStorageEndpointProviderTests::TEST_CASES; -const size_t BackupStorageEndpointProviderTests::TEST_CASES_SZ = 25; - -Aws::Vector BackupStorageEndpointProviderTests::getTestCase() { - - Aws::Vector test_cases = { - /*TEST CASE 0*/ - {"For region us-east-1 with FIPS enabled and DualStack enabled", // documentation - {EpParam("UseFIPS", true), EpParam("Region", "us-east-1"), EpParam("UseDualStack", true)}, // params - {}, // tags - {{/*epUrl*/"https://backupstorage-fips.us-east-1.api.aws", - {/*authScheme*/}, - {/*properties*/}, - {/*headers*/}}, {/*No error*/}} // expect - }, - /*TEST CASE 1*/ - {"For region us-east-1 with FIPS enabled and DualStack disabled", // documentation - {EpParam("UseFIPS", true), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params - {}, // tags - {{/*epUrl*/"https://backupstorage-fips.us-east-1.amazonaws.com", - {/*authScheme*/}, - {/*properties*/}, - {/*headers*/}}, {/*No error*/}} // expect - }, - /*TEST CASE 2*/ - {"For region us-east-1 with FIPS disabled and DualStack enabled", // documentation - {EpParam("UseFIPS", false), EpParam("Region", "us-east-1"), EpParam("UseDualStack", true)}, // params - {}, // tags - {{/*epUrl*/"https://backupstorage.us-east-1.api.aws", - {/*authScheme*/}, - {/*properties*/}, - {/*headers*/}}, {/*No error*/}} // expect - }, - /*TEST CASE 3*/ - {"For region us-east-1 with FIPS disabled and DualStack disabled", // documentation - {EpParam("UseFIPS", false), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params - {}, // tags - {{/*epUrl*/"https://backupstorage.us-east-1.amazonaws.com", - {/*authScheme*/}, - {/*properties*/}, - {/*headers*/}}, {/*No error*/}} // expect - }, - /*TEST CASE 4*/ - {"For region cn-north-1 with FIPS enabled and DualStack enabled", // documentation - {EpParam("UseFIPS", true), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", true)}, // params - {}, // tags - {{/*epUrl*/"https://backupstorage-fips.cn-north-1.api.amazonwebservices.com.cn", - {/*authScheme*/}, - {/*properties*/}, - {/*headers*/}}, {/*No error*/}} // expect - }, - /*TEST CASE 5*/ - {"For region cn-north-1 with FIPS enabled and DualStack disabled", // documentation - {EpParam("UseFIPS", true), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", false)}, // params - {}, // tags - {{/*epUrl*/"https://backupstorage-fips.cn-north-1.amazonaws.com.cn", - {/*authScheme*/}, - {/*properties*/}, - {/*headers*/}}, {/*No error*/}} // expect - }, - /*TEST CASE 6*/ - {"For region cn-north-1 with FIPS disabled and DualStack enabled", // documentation - {EpParam("UseFIPS", false), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", true)}, // params - {}, // tags - {{/*epUrl*/"https://backupstorage.cn-north-1.api.amazonwebservices.com.cn", - {/*authScheme*/}, - {/*properties*/}, - {/*headers*/}}, {/*No error*/}} // expect - }, - /*TEST CASE 7*/ - {"For region cn-north-1 with FIPS disabled and DualStack disabled", // documentation - {EpParam("UseFIPS", false), EpParam("Region", "cn-north-1"), EpParam("UseDualStack", false)}, // params - {}, // tags - {{/*epUrl*/"https://backupstorage.cn-north-1.amazonaws.com.cn", - {/*authScheme*/}, - {/*properties*/}, - {/*headers*/}}, {/*No error*/}} // expect - }, - /*TEST CASE 8*/ - {"For region us-gov-east-1 with FIPS enabled and DualStack enabled", // documentation - {EpParam("UseFIPS", true), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", true)}, // params - {}, // tags - {{/*epUrl*/"https://backupstorage-fips.us-gov-east-1.api.aws", - {/*authScheme*/}, - {/*properties*/}, - {/*headers*/}}, {/*No error*/}} // expect - }, - /*TEST CASE 9*/ - {"For region us-gov-east-1 with FIPS enabled and DualStack disabled", // documentation - {EpParam("UseFIPS", true), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", false)}, // params - {}, // tags - {{/*epUrl*/"https://backupstorage-fips.us-gov-east-1.amazonaws.com", - {/*authScheme*/}, - {/*properties*/}, - {/*headers*/}}, {/*No error*/}} // expect - }, - /*TEST CASE 10*/ - {"For region us-gov-east-1 with FIPS disabled and DualStack enabled", // documentation - {EpParam("UseFIPS", false), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", true)}, // params - {}, // tags - {{/*epUrl*/"https://backupstorage.us-gov-east-1.api.aws", - {/*authScheme*/}, - {/*properties*/}, - {/*headers*/}}, {/*No error*/}} // expect - }, - /*TEST CASE 11*/ - {"For region us-gov-east-1 with FIPS disabled and DualStack disabled", // documentation - {EpParam("UseFIPS", false), EpParam("Region", "us-gov-east-1"), EpParam("UseDualStack", false)}, // params - {}, // tags - {{/*epUrl*/"https://backupstorage.us-gov-east-1.amazonaws.com", - {/*authScheme*/}, - {/*properties*/}, - {/*headers*/}}, {/*No error*/}} // expect - }, - /*TEST CASE 12*/ - {"For region us-iso-east-1 with FIPS enabled and DualStack enabled", // documentation - {EpParam("UseFIPS", true), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", true)}, // params - {}, // tags - {{/*No endpoint expected*/}, /*error*/"FIPS and DualStack are enabled, but this partition does not support one or both"} // expect - }, - /*TEST CASE 13*/ - {"For region us-iso-east-1 with FIPS enabled and DualStack disabled", // documentation - {EpParam("UseFIPS", true), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", false)}, // params - {}, // tags - {{/*epUrl*/"https://backupstorage-fips.us-iso-east-1.c2s.ic.gov", - {/*authScheme*/}, - {/*properties*/}, - {/*headers*/}}, {/*No error*/}} // expect - }, - /*TEST CASE 14*/ - {"For region us-iso-east-1 with FIPS disabled and DualStack enabled", // documentation - {EpParam("UseFIPS", false), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", true)}, // params - {}, // tags - {{/*No endpoint expected*/}, /*error*/"DualStack is enabled but this partition does not support DualStack"} // expect - }, - /*TEST CASE 15*/ - {"For region us-iso-east-1 with FIPS disabled and DualStack disabled", // documentation - {EpParam("UseFIPS", false), EpParam("Region", "us-iso-east-1"), EpParam("UseDualStack", false)}, // params - {}, // tags - {{/*epUrl*/"https://backupstorage.us-iso-east-1.c2s.ic.gov", - {/*authScheme*/}, - {/*properties*/}, - {/*headers*/}}, {/*No error*/}} // expect - }, - /*TEST CASE 16*/ - {"For region us-isob-east-1 with FIPS enabled and DualStack enabled", // documentation - {EpParam("UseFIPS", true), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", true)}, // params - {}, // tags - {{/*No endpoint expected*/}, /*error*/"FIPS and DualStack are enabled, but this partition does not support one or both"} // expect - }, - /*TEST CASE 17*/ - {"For region us-isob-east-1 with FIPS enabled and DualStack disabled", // documentation - {EpParam("UseFIPS", true), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", false)}, // params - {}, // tags - {{/*epUrl*/"https://backupstorage-fips.us-isob-east-1.sc2s.sgov.gov", - {/*authScheme*/}, - {/*properties*/}, - {/*headers*/}}, {/*No error*/}} // expect - }, - /*TEST CASE 18*/ - {"For region us-isob-east-1 with FIPS disabled and DualStack enabled", // documentation - {EpParam("UseFIPS", false), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", true)}, // params - {}, // tags - {{/*No endpoint expected*/}, /*error*/"DualStack is enabled but this partition does not support DualStack"} // expect - }, - /*TEST CASE 19*/ - {"For region us-isob-east-1 with FIPS disabled and DualStack disabled", // documentation - {EpParam("UseFIPS", false), EpParam("Region", "us-isob-east-1"), EpParam("UseDualStack", false)}, // params - {}, // tags - {{/*epUrl*/"https://backupstorage.us-isob-east-1.sc2s.sgov.gov", - {/*authScheme*/}, - {/*properties*/}, - {/*headers*/}}, {/*No error*/}} // expect - }, - /*TEST CASE 20*/ - {"For custom endpoint with region set and fips disabled and dualstack disabled", // documentation - {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params - {}, // tags - {{/*epUrl*/"https://example.com", - {/*authScheme*/}, - {/*properties*/}, - {/*headers*/}}, {/*No error*/}} // expect - }, - /*TEST CASE 21*/ - {"For custom endpoint with region not set and fips disabled and dualstack disabled", // documentation - {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("UseDualStack", false)}, // params - {}, // tags - {{/*epUrl*/"https://example.com", - {/*authScheme*/}, - {/*properties*/}, - {/*headers*/}}, {/*No error*/}} // expect - }, - /*TEST CASE 22*/ - {"For custom endpoint with fips enabled and dualstack disabled", // documentation - {EpParam("UseFIPS", true), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", false)}, // params - {}, // tags - {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: FIPS and custom endpoint are not supported"} // expect - }, - /*TEST CASE 23*/ - {"For custom endpoint with fips disabled and dualstack enabled", // documentation - {EpParam("UseFIPS", false), EpParam("Endpoint", "https://example.com"), EpParam("Region", "us-east-1"), EpParam("UseDualStack", true)}, // params - {}, // tags - {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: Dualstack and custom endpoint are not supported"} // expect - }, - /*TEST CASE 24*/ - {"Missing region", // documentation - {}, // params - {}, // tags - {{/*No endpoint expected*/}, /*error*/"Invalid Configuration: Missing Region"} // expect - } - }; - return test_cases; -} - -Aws::String RulesToSdkSignerName(const Aws::String& rulesSignerName) -{ - Aws::String sdkSigner = "NullSigner"; - if (rulesSignerName == "sigv4") { - sdkSigner = "SignatureV4"; - } else if (rulesSignerName == "sigv4a") { - sdkSigner = "AsymmetricSignatureV4"; - } else if (rulesSignerName == "none") { - sdkSigner = "NullSigner"; - } else if (rulesSignerName == "bearer") { - sdkSigner = "Bearer"; - } else if (rulesSignerName == "s3Express") { - sdkSigner = "S3ExpressSigner"; - } else { - sdkSigner = rulesSignerName; - } - - return sdkSigner; -} - -void ValidateOutcome(const ResolveEndpointOutcome& outcome, const BackupStorageEndpointProviderEndpointTestCase::Expect& expect) -{ - if(!expect.error.empty()) - { - ASSERT_FALSE(outcome.IsSuccess()) << "Expected failure with message:\n" << expect.error; - ASSERT_EQ(outcome.GetError().GetMessage(), expect.error); - } - else - { - AWS_ASSERT_SUCCESS(outcome); - ASSERT_EQ(outcome.GetResult().GetURL(), expect.endpoint.url); - const auto expAuthSchemesIt = expect.endpoint.properties.find("authSchemes"); - if (expAuthSchemesIt != expect.endpoint.properties.end()) - { - // in the list of AuthSchemes, select the one with a highest priority - const Aws::Vector priotityList = {"s3Express", "sigv4a", "sigv4", "bearer", "none", ""}; - const auto expectedAuthSchemePropsIt = std::find_first_of(expAuthSchemesIt->second.begin(), expAuthSchemesIt->second.end(), - priotityList.begin(), priotityList.end(), [](const Aws::Vector& props, const Aws::String& expName) - { - const auto& propNameIt = std::find_if(props.begin(), props.end(), [](const EpProp& prop) - { - return prop.GetName() == "name"; - }); - assert(propNameIt != props.end()); - return propNameIt->GetStrValueNoCheck() == expName; - }); - assert(expectedAuthSchemePropsIt != expAuthSchemesIt->second.end()); - - const auto& endpointResultAttrs = outcome.GetResult().GetAttributes(); - ASSERT_TRUE(endpointResultAttrs) << "Expected non-empty EndpointAttributes (authSchemes)"; - for (const auto& expProperty : *expectedAuthSchemePropsIt) - { - if (expProperty.GetName() == "name") { - ASSERT_TRUE(!endpointResultAttrs->authScheme.GetName().empty()); - ASSERT_EQ(RulesToSdkSignerName(expProperty.GetStrValueNoCheck()), endpointResultAttrs->authScheme.GetName()); - } else if (expProperty.GetName() == "signingName") { - ASSERT_TRUE(endpointResultAttrs->authScheme.GetSigningName()); - ASSERT_EQ(expProperty.GetStrValueNoCheck(), endpointResultAttrs->authScheme.GetSigningName().value()); - } else if (expProperty.GetName() == "signingRegion") { - ASSERT_TRUE(endpointResultAttrs->authScheme.GetSigningRegion()); - ASSERT_EQ(expProperty.GetStrValueNoCheck(), endpointResultAttrs->authScheme.GetSigningRegion().value()); - } else if (expProperty.GetName() == "signingRegionSet") { - ASSERT_TRUE(endpointResultAttrs->authScheme.GetSigningRegionSet()); - ASSERT_EQ(expProperty.GetStrValueNoCheck(), endpointResultAttrs->authScheme.GetSigningRegionSet().value()); - } else if (expProperty.GetName() == "disableDoubleEncoding") { - ASSERT_TRUE(endpointResultAttrs->authScheme.GetDisableDoubleEncoding()); - ASSERT_EQ(expProperty.GetBoolValueNoCheck(), endpointResultAttrs->authScheme.GetDisableDoubleEncoding().value()); - } else { - FAIL() << "Unsupported Auth type property " << expProperty.GetName() << ". Need to update test."; - } - } - } - - EXPECT_EQ(expect.endpoint.headers.empty(), outcome.GetResult().GetHeaders().empty()); - for(const auto& expHeaderVec : expect.endpoint.headers) - { - const auto& retHeaderIt = outcome.GetResult().GetHeaders().find(expHeaderVec.first); - ASSERT_TRUE(retHeaderIt != outcome.GetResult().GetHeaders().end()); - - auto retHeaderVec = Aws::Utils::StringUtils::Split(retHeaderIt->second, ';'); - std::sort(retHeaderVec.begin(), retHeaderVec.end()); - - auto expHeaderVecSorted = expHeaderVec.second; - std::sort(expHeaderVecSorted.begin(), expHeaderVecSorted.end()); - - ASSERT_EQ(expHeaderVecSorted, retHeaderVec); - } - } -} - -TEST_P(BackupStorageEndpointProviderTests, EndpointProviderTest) -{ - const size_t TEST_CASE_IDX = GetParam(); - ASSERT_LT(TEST_CASE_IDX, TEST_CASES->size()) << "Something is wrong with the test fixture itself."; - const BackupStorageEndpointProviderEndpointTestCase& TEST_CASE = TEST_CASES->at(TEST_CASE_IDX); - SCOPED_TRACE(Aws::String("\nTEST CASE # ") + Aws::Utils::StringUtils::to_string(TEST_CASE_IDX) + ": " + TEST_CASE.documentation); - SCOPED_TRACE(Aws::String("\n--gtest_filter=EndpointTestsFromModel/BackupStorageEndpointProviderTests.EndpointProviderTest/") + Aws::Utils::StringUtils::to_string(TEST_CASE_IDX)); - - std::shared_ptr endpointProvider = Aws::MakeShared(ALLOCATION_TAG); - ASSERT_TRUE(endpointProvider) << "Failed to allocate/initialize BackupStorageEndpointProvider"; - - EndpointParameters endpointParameters; - for(const auto& param : TEST_CASE.params) - { - endpointParameters.emplace(endpointParameters.end(), Aws::Endpoint::EndpointParameter(param)); - } - auto resolvedEndpointOutcome = endpointProvider->ResolveEndpoint(endpointParameters); - ValidateOutcome(resolvedEndpointOutcome, TEST_CASE.expect); - -#if 0 // temporarily disabled - for(const auto& operation : TEST_CASE.operationInput) - { - /* - * Most specific to least specific value locations: - staticContextParams - contextParam - clientContextParams - Built-In Bindings - Built-in binding default values - */ - const Aws::Vector> - operationInputParams = {std::cref(operation.builtinParams), std::cref(operation.clientParams), std::cref(operation.operationParams)}; - - for(const auto& paramSource : operationInputParams) - { - for(const auto& param : paramSource.get()) - { - endpointParameters.emplace(endpointParameters.end(), Aws::Endpoint::EndpointParameter(param)); - } - } - auto resolvedEndpointOutcomePerOperation = endpointProvider->ResolveEndpoint(endpointParameters); - ValidateOutcome(resolvedEndpointOutcomePerOperation, TEST_CASE.expect); - } -#endif -} - -INSTANTIATE_TEST_SUITE_P(EndpointTestsFromModel, - BackupStorageEndpointProviderTests, - ::testing::Range((size_t) 0u, BackupStorageEndpointProviderTests::TEST_CASES_SZ)); diff --git a/generated/tests/backupstorage-gen-tests/CMakeLists.txt b/generated/tests/backupstorage-gen-tests/CMakeLists.txt deleted file mode 100644 index 917cd43c5ed..00000000000 --- a/generated/tests/backupstorage-gen-tests/CMakeLists.txt +++ /dev/null @@ -1,42 +0,0 @@ -add_project(backupstorage-gen-tests - "Tests for the AWS BACKUPSTORAGE C++ SDK" - testing-resources - aws-cpp-sdk-backupstorage - aws-cpp-sdk-core) - -file(GLOB AWS_BACKUPSTORAGE_GENERATED_TEST_SRC - "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" -) - -if(MSVC AND BUILD_SHARED_LIBS) - add_definitions(-DGTEST_LINKED_AS_SHARED_LIBRARY=1) -endif() - -if (CMAKE_CROSSCOMPILING) - set(AUTORUN_UNIT_TESTS OFF) -endif() - -if (AUTORUN_UNIT_TESTS) - enable_testing() -endif() - -if(PLATFORM_ANDROID AND BUILD_SHARED_LIBS) - add_library(${PROJECT_NAME} "${AWS_BACKUPSTORAGE_GENERATED_TEST_SRC}") -else() - add_executable(${PROJECT_NAME} "${AWS_BACKUPSTORAGE_GENERATED_TEST_SRC}") -endif() - -set_compiler_flags(${PROJECT_NAME}) -set_compiler_warnings(${PROJECT_NAME}) - -target_link_libraries(${PROJECT_NAME} ${PROJECT_LIBS}) - -if (AUTORUN_UNIT_TESTS) - ADD_CUSTOM_COMMAND( TARGET ${PROJECT_NAME} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E env LD_LIBRARY_PATH=${AWS_AUTORUN_LD_LIBRARY_PATH}:$ENV{LD_LIBRARY_PATH} $ - ARGS "--gtest_brief=1") -endif() - -if(NOT CMAKE_CROSSCOMPILING) - SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${PROJECT_NAME}) -endif() \ No newline at end of file diff --git a/generated/tests/backupstorage-gen-tests/RunTests.cpp b/generated/tests/backupstorage-gen-tests/RunTests.cpp deleted file mode 100644 index f2f10a7c789..00000000000 --- a/generated/tests/backupstorage-gen-tests/RunTests.cpp +++ /dev/null @@ -1,29 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include -#include -#include -#include - -int main(int argc, char** argv) -{ - Aws::SDKOptions options; - options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Trace; - - AWS_BEGIN_MEMORY_TEST_EX(options, 1024, 128); - Aws::Testing::InitPlatformTest(options); - Aws::Testing::ParseArgs(argc, argv); - - Aws::InitAPI(options); - ::testing::InitGoogleTest(&argc, argv); - int exitCode = RUN_ALL_TESTS(); - Aws::ShutdownAPI(options); - - AWS_END_MEMORY_TEST_EX; - Aws::Testing::ShutdownPlatformTest(options); - return exitCode; -} diff --git a/tools/code-generation/api-descriptions/backupstorage-2018-04-10.normal.json b/tools/code-generation/api-descriptions/backupstorage-2018-04-10.normal.json deleted file mode 100644 index 57a99fa9692..00000000000 --- a/tools/code-generation/api-descriptions/backupstorage-2018-04-10.normal.json +++ /dev/null @@ -1,924 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2018-04-10", - "endpointPrefix":"backupstorage", - "jsonVersion":"1.1", - "protocol":"rest-json", - "serviceFullName":"AWS Backup Storage", - "serviceId":"BackupStorage", - "signatureVersion":"v4", - "signingName":"backup-storage", - "uid":"backupstorage-2018-04-10" - }, - "operations":{ - "DeleteObject":{ - "name":"DeleteObject", - "http":{ - "method":"DELETE", - "requestUri":"/backup-jobs/{jobId}/object/{objectName}" - }, - "input":{"shape":"DeleteObjectInput"}, - "errors":[ - {"shape":"ServiceUnavailableException"}, - {"shape":"ServiceInternalException"}, - {"shape":"RetryableException"}, - {"shape":"IllegalArgumentException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ThrottlingException"}, - {"shape":"AccessDeniedException"} - ], - "documentation":"Delete Object from the incremental base Backup." - }, - "GetChunk":{ - "name":"GetChunk", - "http":{ - "method":"GET", - "requestUri":"/restore-jobs/{jobId}/chunk/{chunkToken}" - }, - "input":{"shape":"GetChunkInput"}, - "output":{"shape":"GetChunkOutput"}, - "errors":[ - {"shape":"IllegalArgumentException"}, - {"shape":"RetryableException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ServiceInternalException"}, - {"shape":"ThrottlingException"}, - {"shape":"KMSInvalidKeyUsageException"}, - {"shape":"AccessDeniedException"} - ], - "documentation":"Gets the specified object's chunk." - }, - "GetObjectMetadata":{ - "name":"GetObjectMetadata", - "http":{ - "method":"GET", - "requestUri":"/restore-jobs/{jobId}/object/{objectToken}/metadata" - }, - "input":{"shape":"GetObjectMetadataInput"}, - "output":{"shape":"GetObjectMetadataOutput"}, - "errors":[ - {"shape":"ServiceUnavailableException"}, - {"shape":"ServiceInternalException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"RetryableException"}, - {"shape":"IllegalArgumentException"}, - {"shape":"ThrottlingException"}, - {"shape":"KMSInvalidKeyUsageException"}, - {"shape":"AccessDeniedException"} - ], - "documentation":"Get metadata associated with an Object." - }, - "ListChunks":{ - "name":"ListChunks", - "http":{ - "method":"GET", - "requestUri":"/restore-jobs/{jobId}/chunks/{objectToken}/list" - }, - "input":{"shape":"ListChunksInput"}, - "output":{"shape":"ListChunksOutput"}, - "errors":[ - {"shape":"ServiceUnavailableException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ServiceInternalException"}, - {"shape":"RetryableException"}, - {"shape":"IllegalArgumentException"}, - {"shape":"AccessDeniedException"} - ], - "documentation":"List chunks in a given Object" - }, - "ListObjects":{ - "name":"ListObjects", - "http":{ - "method":"GET", - "requestUri":"/restore-jobs/{jobId}/objects/list" - }, - "input":{"shape":"ListObjectsInput"}, - "output":{"shape":"ListObjectsOutput"}, - "errors":[ - {"shape":"ServiceUnavailableException"}, - {"shape":"ServiceInternalException"}, - {"shape":"RetryableException"}, - {"shape":"IllegalArgumentException"}, - {"shape":"ThrottlingException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"KMSInvalidKeyUsageException"}, - {"shape":"AccessDeniedException"} - ], - "documentation":"List all Objects in a given Backup." - }, - "NotifyObjectComplete":{ - "name":"NotifyObjectComplete", - "http":{ - "method":"PUT", - "requestUri":"/backup-jobs/{jobId}/object/{uploadId}/complete" - }, - "input":{"shape":"NotifyObjectCompleteInput"}, - "output":{"shape":"NotifyObjectCompleteOutput"}, - "errors":[ - {"shape":"ServiceUnavailableException"}, - {"shape":"ServiceInternalException"}, - {"shape":"NotReadableInputStreamException"}, - {"shape":"RetryableException"}, - {"shape":"IllegalArgumentException"}, - {"shape":"ThrottlingException"}, - {"shape":"KMSInvalidKeyUsageException"}, - {"shape":"AccessDeniedException"} - ], - "documentation":"Complete upload", - "authtype":"v4-unsigned-body" - }, - "PutChunk":{ - "name":"PutChunk", - "http":{ - "method":"PUT", - "requestUri":"/backup-jobs/{jobId}/chunk/{uploadId}/{chunkIndex}" - }, - "input":{"shape":"PutChunkInput"}, - "output":{"shape":"PutChunkOutput"}, - "errors":[ - {"shape":"ServiceUnavailableException"}, - {"shape":"ServiceInternalException"}, - {"shape":"NotReadableInputStreamException"}, - {"shape":"RetryableException"}, - {"shape":"IllegalArgumentException"}, - {"shape":"ThrottlingException"}, - {"shape":"KMSInvalidKeyUsageException"}, - {"shape":"AccessDeniedException"} - ], - "documentation":"Upload chunk.", - "authtype":"v4-unsigned-body" - }, - "PutObject":{ - "name":"PutObject", - "http":{ - "method":"PUT", - "requestUri":"/backup-jobs/{jobId}/object/{objectName}/put-object" - }, - "input":{"shape":"PutObjectInput"}, - "output":{"shape":"PutObjectOutput"}, - "errors":[ - {"shape":"ServiceUnavailableException"}, - {"shape":"ServiceInternalException"}, - {"shape":"NotReadableInputStreamException"}, - {"shape":"RetryableException"}, - {"shape":"IllegalArgumentException"}, - {"shape":"ThrottlingException"}, - {"shape":"KMSInvalidKeyUsageException"}, - {"shape":"AccessDeniedException"} - ], - "documentation":"Upload object that can store object metadata String and data blob in single API call using inline chunk field.", - "authtype":"v4-unsigned-body" - }, - "StartObject":{ - "name":"StartObject", - "http":{ - "method":"PUT", - "requestUri":"/backup-jobs/{jobId}/object/{objectName}" - }, - "input":{"shape":"StartObjectInput"}, - "output":{"shape":"StartObjectOutput"}, - "errors":[ - {"shape":"ServiceUnavailableException"}, - {"shape":"ServiceInternalException"}, - {"shape":"RetryableException"}, - {"shape":"IllegalArgumentException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"DataAlreadyExistsException"}, - {"shape":"ThrottlingException"}, - {"shape":"AccessDeniedException"} - ], - "documentation":"Start upload containing one or many chunks." - } - }, - "shapes":{ - "AccessDeniedException":{ - "type":"structure", - "members":{ - "Message":{"shape":"ServiceErrorMessage"} - }, - "error":{"httpStatusCode":403}, - "exception":true, - "synthetic":true - }, - "BackupObject":{ - "type":"structure", - "required":[ - "Name", - "ObjectChecksum", - "ObjectChecksumAlgorithm", - "ObjectToken" - ], - "members":{ - "Name":{ - "shape":"string", - "documentation":"Object name" - }, - "ChunksCount":{ - "shape":"OptionalLong", - "documentation":"Number of chunks in object" - }, - "MetadataString":{ - "shape":"string", - "documentation":"Metadata string associated with the Object" - }, - "ObjectChecksum":{ - "shape":"string", - "documentation":"Object checksum" - }, - "ObjectChecksumAlgorithm":{ - "shape":"SummaryChecksumAlgorithm", - "documentation":"Checksum algorithm" - }, - "ObjectToken":{ - "shape":"string", - "documentation":"Object token" - } - }, - "documentation":"Object" - }, - "Chunk":{ - "type":"structure", - "required":[ - "Index", - "Length", - "Checksum", - "ChecksumAlgorithm", - "ChunkToken" - ], - "members":{ - "Index":{ - "shape":"long", - "documentation":"Chunk index" - }, - "Length":{ - "shape":"long", - "documentation":"Chunk length" - }, - "Checksum":{ - "shape":"string", - "documentation":"Chunk checksum" - }, - "ChecksumAlgorithm":{ - "shape":"DataChecksumAlgorithm", - "documentation":"Checksum algorithm" - }, - "ChunkToken":{ - "shape":"string", - "documentation":"Chunk token" - } - }, - "documentation":"Chunk" - }, - "ChunkList":{ - "type":"list", - "member":{"shape":"Chunk"} - }, - "DataAlreadyExistsException":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"}, - "Checksum":{ - "shape":"string", - "documentation":"Data checksum used" - }, - "ChecksumAlgorithm":{ - "shape":"string", - "documentation":"Checksum algorithm used" - } - }, - "documentation":"Non-retryable exception. Attempted to create already existing object or chunk. This message contains a checksum of already presented data.", - "error":{"httpStatusCode":400}, - "exception":true - }, - "DataChecksumAlgorithm":{ - "type":"string", - "enum":["SHA256"] - }, - "DeleteObjectInput":{ - "type":"structure", - "required":[ - "BackupJobId", - "ObjectName" - ], - "members":{ - "BackupJobId":{ - "shape":"string", - "documentation":"Backup job Id for the in-progress backup.", - "location":"uri", - "locationName":"jobId" - }, - "ObjectName":{ - "shape":"string", - "documentation":"The name of the Object.", - "location":"uri", - "locationName":"objectName" - } - } - }, - "GetChunkInput":{ - "type":"structure", - "required":[ - "StorageJobId", - "ChunkToken" - ], - "members":{ - "StorageJobId":{ - "shape":"string", - "documentation":"Storage job id", - "location":"uri", - "locationName":"jobId" - }, - "ChunkToken":{ - "shape":"string", - "documentation":"Chunk token", - "location":"uri", - "locationName":"chunkToken" - } - } - }, - "GetChunkOutput":{ - "type":"structure", - "required":[ - "Data", - "Length", - "Checksum", - "ChecksumAlgorithm" - ], - "members":{ - "Data":{ - "shape":"PayloadBlob", - "documentation":"Chunk data" - }, - "Length":{ - "shape":"long", - "documentation":"Data length", - "location":"header", - "locationName":"x-amz-data-length" - }, - "Checksum":{ - "shape":"string", - "documentation":"Data checksum", - "location":"header", - "locationName":"x-amz-checksum" - }, - "ChecksumAlgorithm":{ - "shape":"DataChecksumAlgorithm", - "documentation":"Checksum algorithm", - "location":"header", - "locationName":"x-amz-checksum-algorithm" - } - }, - "payload":"Data" - }, - "GetObjectMetadataInput":{ - "type":"structure", - "required":[ - "StorageJobId", - "ObjectToken" - ], - "members":{ - "StorageJobId":{ - "shape":"string", - "documentation":"Backup job id for the in-progress backup.", - "location":"uri", - "locationName":"jobId" - }, - "ObjectToken":{ - "shape":"string", - "documentation":"Object token.", - "location":"uri", - "locationName":"objectToken" - } - } - }, - "GetObjectMetadataOutput":{ - "type":"structure", - "members":{ - "MetadataString":{ - "shape":"string", - "documentation":"Metadata string.", - "location":"header", - "locationName":"x-amz-metadata-string" - }, - "MetadataBlob":{ - "shape":"PayloadBlob", - "documentation":"Metadata blob." - }, - "MetadataBlobLength":{ - "shape":"long", - "documentation":"The size of MetadataBlob.", - "location":"header", - "locationName":"x-amz-data-length" - }, - "MetadataBlobChecksum":{ - "shape":"string", - "documentation":"MetadataBlob checksum.", - "location":"header", - "locationName":"x-amz-checksum" - }, - "MetadataBlobChecksumAlgorithm":{ - "shape":"DataChecksumAlgorithm", - "documentation":"Checksum algorithm.", - "location":"header", - "locationName":"x-amz-checksum-algorithm" - } - }, - "payload":"MetadataBlob" - }, - "IllegalArgumentException":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "documentation":"Non-retryable exception, indicates client error (wrong argument passed to API). See exception message for details.", - "error":{"httpStatusCode":400}, - "exception":true - }, - "KMSInvalidKeyUsageException":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "documentation":"Non-retryable exception. Indicates the KMS key usage is incorrect. See exception message for details.", - "error":{"httpStatusCode":400}, - "exception":true - }, - "ListChunksInput":{ - "type":"structure", - "required":[ - "StorageJobId", - "ObjectToken" - ], - "members":{ - "StorageJobId":{ - "shape":"string", - "documentation":"Storage job id", - "location":"uri", - "locationName":"jobId" - }, - "ObjectToken":{ - "shape":"string", - "documentation":"Object token", - "location":"uri", - "locationName":"objectToken" - }, - "MaxResults":{ - "shape":"MaxResults", - "documentation":"Maximum number of chunks", - "location":"querystring", - "locationName":"max-results" - }, - "NextToken":{ - "shape":"string", - "documentation":"Pagination token", - "location":"querystring", - "locationName":"next-token" - } - } - }, - "ListChunksOutput":{ - "type":"structure", - "required":["ChunkList"], - "members":{ - "ChunkList":{ - "shape":"ChunkList", - "documentation":"List of chunks" - }, - "NextToken":{ - "shape":"string", - "documentation":"Pagination token" - } - } - }, - "ListObjectsInput":{ - "type":"structure", - "required":["StorageJobId"], - "members":{ - "StorageJobId":{ - "shape":"string", - "documentation":"Storage job id", - "location":"uri", - "locationName":"jobId" - }, - "StartingObjectName":{ - "shape":"string", - "documentation":"Optional, specifies the starting Object name to list from. Ignored if NextToken is not NULL", - "location":"querystring", - "locationName":"starting-object-name" - }, - "StartingObjectPrefix":{ - "shape":"string", - "documentation":"Optional, specifies the starting Object prefix to list from. Ignored if NextToken is not NULL", - "location":"querystring", - "locationName":"starting-object-prefix" - }, - "MaxResults":{ - "shape":"MaxResults", - "documentation":"Maximum objects count", - "location":"querystring", - "locationName":"max-results" - }, - "NextToken":{ - "shape":"string", - "documentation":"Pagination token", - "location":"querystring", - "locationName":"next-token" - }, - "CreatedBefore":{ - "shape":"timestamp", - "documentation":"(Optional) Created before filter", - "location":"querystring", - "locationName":"created-before" - }, - "CreatedAfter":{ - "shape":"timestamp", - "documentation":"(Optional) Created after filter", - "location":"querystring", - "locationName":"created-after" - } - } - }, - "ListObjectsOutput":{ - "type":"structure", - "required":["ObjectList"], - "members":{ - "ObjectList":{ - "shape":"ObjectList", - "documentation":"Object list" - }, - "NextToken":{ - "shape":"string", - "documentation":"Pagination token" - } - } - }, - "MaxResults":{ - "type":"integer", - "max":100, - "min":1 - }, - "MetadataString":{ - "type":"string", - "pattern":"^.{1,256}$" - }, - "NotReadableInputStreamException":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "documentation":"Retryalble exception. Indicated issues while reading an input stream due to the networking issues or connection drop on the client side.", - "error":{"httpStatusCode":400}, - "exception":true - }, - "NotifyObjectCompleteInput":{ - "type":"structure", - "required":[ - "BackupJobId", - "UploadId", - "ObjectChecksum", - "ObjectChecksumAlgorithm" - ], - "members":{ - "BackupJobId":{ - "shape":"string", - "documentation":"Backup job Id for the in-progress backup", - "location":"uri", - "locationName":"jobId" - }, - "UploadId":{ - "shape":"string", - "documentation":"Upload Id for the in-progress upload", - "location":"uri", - "locationName":"uploadId" - }, - "ObjectChecksum":{ - "shape":"string", - "documentation":"Object checksum", - "location":"querystring", - "locationName":"checksum" - }, - "ObjectChecksumAlgorithm":{ - "shape":"SummaryChecksumAlgorithm", - "documentation":"Checksum algorithm", - "location":"querystring", - "locationName":"checksum-algorithm" - }, - "MetadataString":{ - "shape":"MetadataString", - "documentation":"Optional metadata associated with an Object. Maximum string length is 256 bytes.", - "location":"querystring", - "locationName":"metadata-string" - }, - "MetadataBlob":{ - "shape":"PayloadBlob", - "documentation":"Optional metadata associated with an Object. Maximum length is 4MB." - }, - "MetadataBlobLength":{ - "shape":"long", - "documentation":"The size of MetadataBlob.", - "location":"querystring", - "locationName":"metadata-blob-length" - }, - "MetadataBlobChecksum":{ - "shape":"string", - "documentation":"Checksum of MetadataBlob.", - "location":"querystring", - "locationName":"metadata-checksum" - }, - "MetadataBlobChecksumAlgorithm":{ - "shape":"DataChecksumAlgorithm", - "documentation":"Checksum algorithm.", - "location":"querystring", - "locationName":"metadata-checksum-algorithm" - } - }, - "payload":"MetadataBlob" - }, - "NotifyObjectCompleteOutput":{ - "type":"structure", - "required":[ - "ObjectChecksum", - "ObjectChecksumAlgorithm" - ], - "members":{ - "ObjectChecksum":{ - "shape":"string", - "documentation":"Object checksum" - }, - "ObjectChecksumAlgorithm":{ - "shape":"SummaryChecksumAlgorithm", - "documentation":"Checksum algorithm" - } - } - }, - "ObjectList":{ - "type":"list", - "member":{"shape":"BackupObject"} - }, - "OptionalLong":{"type":"long"}, - "PayloadBlob":{ - "type":"blob", - "streaming":true - }, - "PutChunkInput":{ - "type":"structure", - "required":[ - "BackupJobId", - "UploadId", - "ChunkIndex", - "Data", - "Length", - "Checksum", - "ChecksumAlgorithm" - ], - "members":{ - "BackupJobId":{ - "shape":"string", - "documentation":"Backup job Id for the in-progress backup.", - "location":"uri", - "locationName":"jobId" - }, - "UploadId":{ - "shape":"string", - "documentation":"Upload Id for the in-progress upload.", - "location":"uri", - "locationName":"uploadId" - }, - "ChunkIndex":{ - "shape":"long", - "documentation":"Describes this chunk's position relative to the other chunks", - "location":"uri", - "locationName":"chunkIndex" - }, - "Data":{ - "shape":"PayloadBlob", - "documentation":"Data to be uploaded" - }, - "Length":{ - "shape":"long", - "documentation":"Data length", - "location":"querystring", - "locationName":"length" - }, - "Checksum":{ - "shape":"string", - "documentation":"Data checksum", - "location":"querystring", - "locationName":"checksum" - }, - "ChecksumAlgorithm":{ - "shape":"DataChecksumAlgorithm", - "documentation":"Checksum algorithm", - "location":"querystring", - "locationName":"checksum-algorithm" - } - }, - "payload":"Data" - }, - "PutChunkOutput":{ - "type":"structure", - "required":[ - "ChunkChecksum", - "ChunkChecksumAlgorithm" - ], - "members":{ - "ChunkChecksum":{ - "shape":"string", - "documentation":"Chunk checksum" - }, - "ChunkChecksumAlgorithm":{ - "shape":"DataChecksumAlgorithm", - "documentation":"Checksum algorithm" - } - } - }, - "PutObjectInput":{ - "type":"structure", - "required":[ - "BackupJobId", - "ObjectName" - ], - "members":{ - "BackupJobId":{ - "shape":"string", - "documentation":"Backup job Id for the in-progress backup.", - "location":"uri", - "locationName":"jobId" - }, - "ObjectName":{ - "shape":"string", - "documentation":"The name of the Object to be uploaded.", - "location":"uri", - "locationName":"objectName" - }, - "MetadataString":{ - "shape":"string", - "documentation":"Store user defined metadata like backup checksum, disk ids, restore metadata etc.", - "location":"querystring", - "locationName":"metadata-string" - }, - "InlineChunk":{ - "shape":"PayloadBlob", - "documentation":"Inline chunk data to be uploaded." - }, - "InlineChunkLength":{ - "shape":"long", - "documentation":"Length of the inline chunk data.", - "location":"querystring", - "locationName":"length" - }, - "InlineChunkChecksum":{ - "shape":"string", - "documentation":"Inline chunk checksum", - "location":"querystring", - "locationName":"checksum" - }, - "InlineChunkChecksumAlgorithm":{ - "shape":"string", - "documentation":"Inline chunk checksum algorithm", - "location":"querystring", - "locationName":"checksum-algorithm" - }, - "ObjectChecksum":{ - "shape":"string", - "documentation":"object checksum", - "location":"querystring", - "locationName":"object-checksum" - }, - "ObjectChecksumAlgorithm":{ - "shape":"SummaryChecksumAlgorithm", - "documentation":"object checksum algorithm", - "location":"querystring", - "locationName":"object-checksum-algorithm" - }, - "ThrowOnDuplicate":{ - "shape":"boolean", - "documentation":"Throw an exception if Object name is already exist.", - "location":"querystring", - "locationName":"throwOnDuplicate" - } - }, - "payload":"InlineChunk" - }, - "PutObjectOutput":{ - "type":"structure", - "required":[ - "InlineChunkChecksum", - "InlineChunkChecksumAlgorithm", - "ObjectChecksum", - "ObjectChecksumAlgorithm" - ], - "members":{ - "InlineChunkChecksum":{ - "shape":"string", - "documentation":"Inline chunk checksum" - }, - "InlineChunkChecksumAlgorithm":{ - "shape":"DataChecksumAlgorithm", - "documentation":"Inline chunk checksum algorithm" - }, - "ObjectChecksum":{ - "shape":"string", - "documentation":"object checksum" - }, - "ObjectChecksumAlgorithm":{ - "shape":"SummaryChecksumAlgorithm", - "documentation":"object checksum algorithm" - } - } - }, - "ResourceNotFoundException":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "documentation":"Non-retryable exception. Attempted to make an operation on non-existing or expired resource.", - "error":{"httpStatusCode":404}, - "exception":true - }, - "RetryableException":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "documentation":"Retryable exception. In general indicates internal failure that can be fixed by retry.", - "error":{"httpStatusCode":500}, - "exception":true - }, - "ServiceErrorMessage":{"type":"string"}, - "ServiceInternalException":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "documentation":"Deprecated. To be removed from the model.", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - "ServiceUnavailableException":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "documentation":"Retryable exception, indicates internal server error.", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - "StartObjectInput":{ - "type":"structure", - "required":[ - "BackupJobId", - "ObjectName" - ], - "members":{ - "BackupJobId":{ - "shape":"string", - "documentation":"Backup job Id for the in-progress backup", - "location":"uri", - "locationName":"jobId" - }, - "ObjectName":{ - "shape":"string", - "documentation":"Name for the object.", - "location":"uri", - "locationName":"objectName" - }, - "ThrowOnDuplicate":{ - "shape":"boolean", - "documentation":"Throw an exception if Object name is already exist." - } - } - }, - "StartObjectOutput":{ - "type":"structure", - "required":["UploadId"], - "members":{ - "UploadId":{ - "shape":"string", - "documentation":"Upload Id for a given upload." - } - } - }, - "SummaryChecksumAlgorithm":{ - "type":"string", - "enum":["SUMMARY"] - }, - "ThrottlingException":{ - "type":"structure", - "members":{ - "Message":{"shape":"string"} - }, - "documentation":"Increased rate over throttling limits. Can be retried with exponential backoff.", - "error":{"httpStatusCode":429}, - "exception":true - }, - "boolean":{"type":"boolean"}, - "long":{"type":"long"}, - "string":{"type":"string"}, - "timestamp":{"type":"timestamp"} - }, - "documentation":"The frontend service for Cryo Storage." -} diff --git a/tools/code-generation/endpoints/backupstorage-2018-04-10.endpoint-rule-set.json b/tools/code-generation/endpoints/backupstorage-2018-04-10.endpoint-rule-set.json deleted file mode 100644 index de1b329f49f..00000000000 --- a/tools/code-generation/endpoints/backupstorage-2018-04-10.endpoint-rule-set.json +++ /dev/null @@ -1,314 +0,0 @@ -{ - "version": "1.0", - "parameters": { - "Region": { - "builtIn": "AWS::Region", - "required": false, - "documentation": "The AWS region used to dispatch the request.", - "type": "String" - }, - "UseDualStack": { - "builtIn": "AWS::UseDualStack", - "required": true, - "default": false, - "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - "type": "Boolean" - }, - "UseFIPS": { - "builtIn": "AWS::UseFIPS", - "required": true, - "default": false, - "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - "type": "Boolean" - }, - "Endpoint": { - "builtIn": "SDK::Endpoint", - "required": false, - "documentation": "Override the endpoint used to send this request", - "type": "String" - } - }, - "rules": [ - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Endpoint" - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Region" - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "aws.partition", - "argv": [ - { - "ref": "Region" - } - ], - "assign": "PartitionResult" - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - }, - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://backupstorage-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://backupstorage-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://backupstorage.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" - } - ] - }, - { - "conditions": [], - "endpoint": { - "url": "https://backupstorage.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - } - ] - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" - } - ] -} \ No newline at end of file diff --git a/tools/code-generation/endpoints/backupstorage-2018-04-10.endpoint-tests.json b/tools/code-generation/endpoints/backupstorage-2018-04-10.endpoint-tests.json deleted file mode 100644 index ce01d1ddf5f..00000000000 --- a/tools/code-generation/endpoints/backupstorage-2018-04-10.endpoint-tests.json +++ /dev/null @@ -1,314 +0,0 @@ -{ - "testCases": [ - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://backupstorage-fips.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://backupstorage-fips.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://backupstorage.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://backupstorage.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://backupstorage-fips.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://backupstorage-fips.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://backupstorage.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://backupstorage.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://backupstorage-fips.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://backupstorage-fips.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://backupstorage.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://backupstorage.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://backupstorage-fips.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://backupstorage.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://backupstorage-fips.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://backupstorage.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", - "expect": { - "endpoint": { - "url": "https://example.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", - "expect": { - "endpoint": { - "url": "https://example.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with fips enabled and dualstack disabled", - "expect": { - "error": "Invalid Configuration: FIPS and custom endpoint are not supported" - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with fips disabled and dualstack enabled", - "expect": { - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "Missing region", - "expect": { - "error": "Invalid Configuration: Missing Region" - } - } - ], - "version": "1.0" -} \ No newline at end of file