From fda875c24742f1d406d47793925b87bd260f0ab8 Mon Sep 17 00:00:00 2001 From: sbiscigl Date: Mon, 22 Jul 2024 10:16:22 -0400 Subject: [PATCH] remove mobile hub client --- .../src/aws-cpp-sdk-mobile/CMakeLists.txt | 76 -- .../include/aws/mobile/MobileClient.h | 327 -------- .../aws/mobile/MobileEndpointProvider.h | 61 -- .../include/aws/mobile/MobileEndpointRules.h | 23 - .../aws/mobile/MobileErrorMarshaller.h | 23 - .../include/aws/mobile/MobileErrors.h | 77 -- .../include/aws/mobile/MobileRequest.h | 48 -- .../aws/mobile/MobileServiceClientModel.h | 123 --- .../include/aws/mobile/Mobile_EXPORTS.h | 32 - .../include/aws/mobile/model/BundleDetails.h | 136 ---- .../aws/mobile/model/CreateProjectRequest.h | 102 --- .../aws/mobile/model/CreateProjectResult.h | 72 -- .../aws/mobile/model/DeleteProjectRequest.h | 60 -- .../aws/mobile/model/DeleteProjectResult.h | 91 --- .../aws/mobile/model/DescribeBundleRequest.h | 60 -- .../aws/mobile/model/DescribeBundleResult.h | 72 -- .../aws/mobile/model/DescribeProjectRequest.h | 81 -- .../aws/mobile/model/DescribeProjectResult.h | 70 -- .../aws/mobile/model/ExportBundleRequest.h | 100 --- .../aws/mobile/model/ExportBundleResult.h | 76 -- .../aws/mobile/model/ExportProjectRequest.h | 60 -- .../aws/mobile/model/ExportProjectResult.h | 110 --- .../aws/mobile/model/LimitExceededException.h | 77 -- .../aws/mobile/model/ListBundlesRequest.h | 81 -- .../aws/mobile/model/ListBundlesResult.h | 91 --- .../aws/mobile/model/ListProjectsRequest.h | 81 -- .../aws/mobile/model/ListProjectsResult.h | 86 -- .../include/aws/mobile/model/Platform.h | 36 - .../include/aws/mobile/model/ProjectDetails.h | 169 ---- .../include/aws/mobile/model/ProjectState.h | 32 - .../include/aws/mobile/model/ProjectSummary.h | 79 -- .../include/aws/mobile/model/Resource.h | 126 --- .../model/ServiceUnavailableException.h | 75 -- .../mobile/model/TooManyRequestsException.h | 76 -- .../aws/mobile/model/UpdateProjectRequest.h | 66 -- .../aws/mobile/model/UpdateProjectResult.h | 72 -- .../source/MobileClient.cpp | 450 ----------- .../source/MobileEndpointProvider.cpp | 16 - .../source/MobileEndpointRules.cpp | 165 ---- .../source/MobileErrorMarshaller.cpp | 22 - .../source/MobileErrors.cpp | 84 -- .../source/MobileRequest.cpp | 14 - .../source/model/BundleDetails.cpp | 137 ---- .../source/model/CreateProjectRequest.cpp | 53 -- .../source/model/CreateProjectResult.cpp | 48 -- .../source/model/DeleteProjectRequest.cpp | 27 - .../source/model/DeleteProjectResult.cpp | 60 -- .../source/model/DescribeBundleRequest.cpp | 27 - .../source/model/DescribeBundleResult.cpp | 48 -- .../source/model/DescribeProjectRequest.cpp | 50 -- .../source/model/DescribeProjectResult.cpp | 48 -- .../source/model/ExportBundleRequest.cpp | 51 -- .../source/model/ExportBundleResult.cpp | 48 -- .../source/model/ExportProjectRequest.cpp | 27 - .../source/model/ExportProjectResult.cpp | 60 -- .../source/model/LimitExceededException.cpp | 61 -- .../source/model/ListBundlesRequest.cpp | 50 -- .../source/model/ListBundlesResult.cpp | 57 -- .../source/model/ListProjectsRequest.cpp | 50 -- .../source/model/ListProjectsResult.cpp | 57 -- .../source/model/Platform.cpp | 107 --- .../source/model/ProjectDetails.cpp | 163 ---- .../source/model/ProjectState.cpp | 79 -- .../source/model/ProjectSummary.cpp | 73 -- .../source/model/Resource.cpp | 123 --- .../model/ServiceUnavailableException.cpp | 61 -- .../source/model/TooManyRequestsException.cpp | 61 -- .../source/model/UpdateProjectRequest.cpp | 37 - .../source/model/UpdateProjectResult.cpp | 48 -- .../tests/mobile-gen-tests/CMakeLists.txt | 42 - .../MobileEndpointProviderTests.cpp | 428 ---------- generated/tests/mobile-gen-tests/RunTests.cpp | 29 - .../mobile-2017-07-01.normal.json | 732 ------------------ .../mobile-2017-07-01.endpoint-rule-set.json | 314 -------- .../mobile-2017-07-01.endpoint-tests.json | 314 -------- 75 files changed, 7348 deletions(-) delete mode 100644 generated/src/aws-cpp-sdk-mobile/CMakeLists.txt delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileClient.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileEndpointProvider.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileEndpointRules.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileErrorMarshaller.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileErrors.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileRequest.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileServiceClientModel.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/Mobile_EXPORTS.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/BundleDetails.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/CreateProjectRequest.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/CreateProjectResult.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DeleteProjectRequest.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DeleteProjectResult.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DescribeBundleRequest.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DescribeBundleResult.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DescribeProjectRequest.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DescribeProjectResult.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ExportBundleRequest.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ExportBundleResult.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ExportProjectRequest.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ExportProjectResult.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/LimitExceededException.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ListBundlesRequest.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ListBundlesResult.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ListProjectsRequest.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ListProjectsResult.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/Platform.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ProjectDetails.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ProjectState.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ProjectSummary.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/Resource.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ServiceUnavailableException.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/TooManyRequestsException.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/UpdateProjectRequest.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/UpdateProjectResult.h delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/MobileClient.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/MobileEndpointProvider.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/MobileEndpointRules.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/MobileErrorMarshaller.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/MobileErrors.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/MobileRequest.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/BundleDetails.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/CreateProjectRequest.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/CreateProjectResult.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/DeleteProjectRequest.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/DeleteProjectResult.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/DescribeBundleRequest.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/DescribeBundleResult.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/DescribeProjectRequest.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/DescribeProjectResult.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/ExportBundleRequest.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/ExportBundleResult.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/ExportProjectRequest.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/ExportProjectResult.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/LimitExceededException.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/ListBundlesRequest.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/ListBundlesResult.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/ListProjectsRequest.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/ListProjectsResult.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/Platform.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/ProjectDetails.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/ProjectState.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/ProjectSummary.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/Resource.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/ServiceUnavailableException.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/TooManyRequestsException.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/UpdateProjectRequest.cpp delete mode 100644 generated/src/aws-cpp-sdk-mobile/source/model/UpdateProjectResult.cpp delete mode 100644 generated/tests/mobile-gen-tests/CMakeLists.txt delete mode 100644 generated/tests/mobile-gen-tests/MobileEndpointProviderTests.cpp delete mode 100644 generated/tests/mobile-gen-tests/RunTests.cpp delete mode 100644 tools/code-generation/api-descriptions/mobile-2017-07-01.normal.json delete mode 100644 tools/code-generation/endpoints/mobile-2017-07-01.endpoint-rule-set.json delete mode 100644 tools/code-generation/endpoints/mobile-2017-07-01.endpoint-tests.json diff --git a/generated/src/aws-cpp-sdk-mobile/CMakeLists.txt b/generated/src/aws-cpp-sdk-mobile/CMakeLists.txt deleted file mode 100644 index ef09e47cc67..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/CMakeLists.txt +++ /dev/null @@ -1,76 +0,0 @@ -add_project(aws-cpp-sdk-mobile "C++ SDK for the AWS mobile service" aws-cpp-sdk-core) - -file(GLOB AWS_MOBILE_HEADERS - "include/aws/mobile/*.h" -) - -file(GLOB AWS_MOBILE_MODEL_HEADERS - "include/aws/mobile/model/*.h" -) - -file(GLOB AWS_MOBILE_SOURCE - "source/*.cpp" -) - -file(GLOB AWS_MOBILE_MODEL_SOURCE - "source/model/*.cpp" -) - -file(GLOB MOBILE_UNIFIED_HEADERS - ${AWS_MOBILE_HEADERS} - ${AWS_MOBILE_MODEL_HEADERS} -) - -file(GLOB MOBILE_UNITY_SRC - ${AWS_MOBILE_SOURCE} - ${AWS_MOBILE_MODEL_SOURCE} -) - -if(ENABLE_UNITY_BUILD) - enable_unity_build("MOBILE" MOBILE_UNITY_SRC) -endif() - -file(GLOB MOBILE_SRC - ${MOBILE_UNIFIED_HEADERS} - ${MOBILE_UNITY_SRC} -) - -if(WIN32) - #if we are compiling for visual studio, create a sane directory tree. - if(MSVC) - source_group("Header Files\\aws\\mobile" FILES ${AWS_MOBILE_HEADERS}) - source_group("Header Files\\aws\\mobile\\model" FILES ${AWS_MOBILE_MODEL_HEADERS}) - source_group("Source Files" FILES ${AWS_MOBILE_SOURCE}) - source_group("Source Files\\model" FILES ${AWS_MOBILE_MODEL_SOURCE}) - endif(MSVC) -endif() - -set(MOBILE_INCLUDES - "${CMAKE_CURRENT_SOURCE_DIR}/include/" -) - -add_library(${PROJECT_NAME} ${MOBILE_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_MOBILE_EXPORTS") -endif() - -target_include_directories(${PROJECT_NAME} PUBLIC - $ - $) - -target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS}) - - -setup_install() - -install (FILES ${AWS_MOBILE_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/mobile) -install (FILES ${AWS_MOBILE_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/mobile/model) - -do_packaging() - - diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileClient.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileClient.h deleted file mode 100644 index 6604aa3c8fe..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileClient.h +++ /dev/null @@ -1,327 +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 Mobile -{ - /** - *

AWS Mobile Service provides mobile app and website developers with - * capabilities required to configure AWS resources and bootstrap their developer - * desktop projects with the necessary SDKs, constants, tools and samples to make - * use of those resources.

- */ - class AWS_MOBILE_API MobileClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods - { - public: - typedef Aws::Client::AWSJsonClient BASECLASS; - static const char* GetServiceName(); - static const char* GetAllocationTag(); - - typedef MobileClientConfiguration ClientConfigurationType; - typedef MobileEndpointProvider 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. - */ - MobileClient(const Aws::Mobile::MobileClientConfiguration& clientConfiguration = Aws::Mobile::MobileClientConfiguration(), - 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. - */ - MobileClient(const Aws::Auth::AWSCredentials& credentials, - std::shared_ptr endpointProvider = nullptr, - const Aws::Mobile::MobileClientConfiguration& clientConfiguration = Aws::Mobile::MobileClientConfiguration()); - - /** - * 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 - */ - MobileClient(const std::shared_ptr& credentialsProvider, - std::shared_ptr endpointProvider = nullptr, - const Aws::Mobile::MobileClientConfiguration& clientConfiguration = Aws::Mobile::MobileClientConfiguration()); - - - /* 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. - */ - MobileClient(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. - */ - MobileClient(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 - */ - MobileClient(const std::shared_ptr& credentialsProvider, - const Aws::Client::ClientConfiguration& clientConfiguration); - - /* End of legacy constructors due deprecation */ - virtual ~MobileClient(); - - /** - *

Creates an AWS Mobile Hub project.

See Also:

AWS - * API Reference

- */ - virtual Model::CreateProjectOutcome CreateProject(const Model::CreateProjectRequest& request = {}) const; - - /** - * A Callable wrapper for CreateProject that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::CreateProjectOutcomeCallable CreateProjectCallable(const CreateProjectRequestT& request = {}) const - { - return SubmitCallable(&MobileClient::CreateProject, request); - } - - /** - * An Async wrapper for CreateProject that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void CreateProjectAsync(const CreateProjectResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const CreateProjectRequestT& request = {}) const - { - return SubmitAsync(&MobileClient::CreateProject, request, handler, context); - } - - /** - *

Delets a project in AWS Mobile Hub.

See Also:

AWS - * API Reference

- */ - virtual Model::DeleteProjectOutcome DeleteProject(const Model::DeleteProjectRequest& request) const; - - /** - * A Callable wrapper for DeleteProject that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::DeleteProjectOutcomeCallable DeleteProjectCallable(const DeleteProjectRequestT& request) const - { - return SubmitCallable(&MobileClient::DeleteProject, request); - } - - /** - * An Async wrapper for DeleteProject that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void DeleteProjectAsync(const DeleteProjectRequestT& request, const DeleteProjectResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&MobileClient::DeleteProject, request, handler, context); - } - - /** - *

Get the bundle details for the requested bundle id.

See - * Also:

AWS - * API Reference

- */ - virtual Model::DescribeBundleOutcome DescribeBundle(const Model::DescribeBundleRequest& request) const; - - /** - * A Callable wrapper for DescribeBundle that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::DescribeBundleOutcomeCallable DescribeBundleCallable(const DescribeBundleRequestT& request) const - { - return SubmitCallable(&MobileClient::DescribeBundle, request); - } - - /** - * An Async wrapper for DescribeBundle that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void DescribeBundleAsync(const DescribeBundleRequestT& request, const DescribeBundleResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&MobileClient::DescribeBundle, request, handler, context); - } - - /** - *

Gets details about a project in AWS Mobile Hub.

See Also:

- * AWS - * API Reference

- */ - virtual Model::DescribeProjectOutcome DescribeProject(const Model::DescribeProjectRequest& request) const; - - /** - * A Callable wrapper for DescribeProject that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::DescribeProjectOutcomeCallable DescribeProjectCallable(const DescribeProjectRequestT& request) const - { - return SubmitCallable(&MobileClient::DescribeProject, request); - } - - /** - * An Async wrapper for DescribeProject that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void DescribeProjectAsync(const DescribeProjectRequestT& request, const DescribeProjectResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&MobileClient::DescribeProject, request, handler, context); - } - - /** - *

Generates customized software development kit (SDK) and or tool packages - * used to integrate mobile web or mobile app clients with backend AWS resources. - *

See Also:

AWS - * API Reference

- */ - virtual Model::ExportBundleOutcome ExportBundle(const Model::ExportBundleRequest& request) const; - - /** - * A Callable wrapper for ExportBundle that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::ExportBundleOutcomeCallable ExportBundleCallable(const ExportBundleRequestT& request) const - { - return SubmitCallable(&MobileClient::ExportBundle, request); - } - - /** - * An Async wrapper for ExportBundle that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void ExportBundleAsync(const ExportBundleRequestT& request, const ExportBundleResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&MobileClient::ExportBundle, request, handler, context); - } - - /** - *

Exports project configuration to a snapshot which can be downloaded and - * shared. Note that mobile app push credentials are encrypted in exported - * projects, so they can only be shared successfully within the same AWS account. - *

See Also:

AWS - * API Reference

- */ - virtual Model::ExportProjectOutcome ExportProject(const Model::ExportProjectRequest& request) const; - - /** - * A Callable wrapper for ExportProject that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::ExportProjectOutcomeCallable ExportProjectCallable(const ExportProjectRequestT& request) const - { - return SubmitCallable(&MobileClient::ExportProject, request); - } - - /** - * An Async wrapper for ExportProject that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void ExportProjectAsync(const ExportProjectRequestT& request, const ExportProjectResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&MobileClient::ExportProject, request, handler, context); - } - - /** - *

List all available bundles.

See Also:

AWS - * API Reference

- */ - virtual Model::ListBundlesOutcome ListBundles(const Model::ListBundlesRequest& request = {}) const; - - /** - * A Callable wrapper for ListBundles that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::ListBundlesOutcomeCallable ListBundlesCallable(const ListBundlesRequestT& request = {}) const - { - return SubmitCallable(&MobileClient::ListBundles, request); - } - - /** - * An Async wrapper for ListBundles that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void ListBundlesAsync(const ListBundlesResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const ListBundlesRequestT& request = {}) const - { - return SubmitAsync(&MobileClient::ListBundles, request, handler, context); - } - - /** - *

Lists projects in AWS Mobile Hub.

See Also:

AWS - * API Reference

- */ - virtual Model::ListProjectsOutcome ListProjects(const Model::ListProjectsRequest& request = {}) const; - - /** - * A Callable wrapper for ListProjects that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::ListProjectsOutcomeCallable ListProjectsCallable(const ListProjectsRequestT& request = {}) const - { - return SubmitCallable(&MobileClient::ListProjects, request); - } - - /** - * An Async wrapper for ListProjects that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void ListProjectsAsync(const ListProjectsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr, const ListProjectsRequestT& request = {}) const - { - return SubmitAsync(&MobileClient::ListProjects, request, handler, context); - } - - /** - *

Update an existing project.

See Also:

AWS - * API Reference

- */ - virtual Model::UpdateProjectOutcome UpdateProject(const Model::UpdateProjectRequest& request) const; - - /** - * A Callable wrapper for UpdateProject that returns a future to the operation so that it can be executed in parallel to other requests. - */ - template - Model::UpdateProjectOutcomeCallable UpdateProjectCallable(const UpdateProjectRequestT& request) const - { - return SubmitCallable(&MobileClient::UpdateProject, request); - } - - /** - * An Async wrapper for UpdateProject that queues the request into a thread executor and triggers associated callback when operation has finished. - */ - template - void UpdateProjectAsync(const UpdateProjectRequestT& request, const UpdateProjectResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const - { - return SubmitAsync(&MobileClient::UpdateProject, request, handler, context); - } - - - void OverrideEndpoint(const Aws::String& endpoint); - std::shared_ptr& accessEndpointProvider(); - private: - friend class Aws::Client::ClientWithAsyncTemplateMethods; - void init(const MobileClientConfiguration& clientConfiguration); - - MobileClientConfiguration m_clientConfiguration; - std::shared_ptr m_executor; - std::shared_ptr m_endpointProvider; - }; - -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileEndpointProvider.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileEndpointProvider.h deleted file mode 100644 index 01c88ac8b45..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileEndpointProvider.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 Mobile -{ -namespace Endpoint -{ -using EndpointParameters = Aws::Endpoint::EndpointParameters; -using Aws::Endpoint::EndpointProviderBase; -using Aws::Endpoint::DefaultEndpointProvider; - -using MobileClientContextParameters = Aws::Endpoint::ClientContextParameters; - -using MobileClientConfiguration = Aws::Client::GenericClientConfiguration; -using MobileBuiltInParameters = Aws::Endpoint::BuiltInParameters; - -/** - * The type for the Mobile 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 MobileEndpointProviderBase = - EndpointProviderBase; - -using MobileDefaultEpProviderBase = - DefaultEndpointProvider; - -/** - * Default endpoint provider used for this service - */ -class AWS_MOBILE_API MobileEndpointProvider : public MobileDefaultEpProviderBase -{ -public: - using MobileResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; - - MobileEndpointProvider() - : MobileDefaultEpProviderBase(Aws::Mobile::MobileEndpointRules::GetRulesBlob(), Aws::Mobile::MobileEndpointRules::RulesBlobSize) - {} - - ~MobileEndpointProvider() - { - } -}; -} // namespace Endpoint -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileEndpointRules.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileEndpointRules.h deleted file mode 100644 index a136fe25280..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileEndpointRules.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 Mobile -{ -class MobileEndpointRules -{ -public: - static const size_t RulesBlobStrLen; - static const size_t RulesBlobSize; - - static const char* GetRulesBlob(); -}; -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileErrorMarshaller.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileErrorMarshaller.h deleted file mode 100644 index e1e804f2203..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileErrorMarshaller.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_MOBILE_API MobileErrorMarshaller : 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-mobile/include/aws/mobile/MobileErrors.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileErrors.h deleted file mode 100644 index c5de90e6d45..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileErrors.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 Mobile -{ -enum class MobileErrors -{ - //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, - /////////////////////////////////////////////////////////////////////////////////////////// - - ACCOUNT_ACTION_REQUIRED= static_cast(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1, - BAD_REQUEST, - LIMIT_EXCEEDED, - NOT_FOUND, - TOO_MANY_REQUESTS, - UNAUTHORIZED -}; - -class AWS_MOBILE_API MobileError : public Aws::Client::AWSError -{ -public: - MobileError() {} - MobileError(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} - MobileError(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} - MobileError(const Aws::Client::AWSError& rhs) : Aws::Client::AWSError(rhs) {} - MobileError(Aws::Client::AWSError&& rhs) : Aws::Client::AWSError(rhs) {} - - template - T GetModeledError(); -}; - -namespace MobileErrorMapper -{ - AWS_MOBILE_API Aws::Client::AWSError GetErrorForName(const char* errorName); -} - -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileRequest.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileRequest.h deleted file mode 100644 index 2a981e59968..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileRequest.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 Mobile -{ - class AWS_MOBILE_API MobileRequest : public Aws::AmazonSerializableWebServiceRequest - { - public: - using EndpointParameter = Aws::Endpoint::EndpointParameter; - using EndpointParameters = Aws::Endpoint::EndpointParameters; - - virtual ~MobileRequest () {} - - 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, "2017-07-01")); - return headers; - } - - protected: - virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); } - - }; - - typedef Aws::AmazonStreamingWebServiceRequest StreamingMobileRequest; - -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileServiceClientModel.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileServiceClientModel.h deleted file mode 100644 index efd0807b908..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/MobileServiceClientModel.h +++ /dev/null @@ -1,123 +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 MobileClient header */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -/* End of service model headers required in MobileClient 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 Mobile - { - using MobileClientConfiguration = Aws::Client::GenericClientConfiguration; - using MobileEndpointProviderBase = Aws::Mobile::Endpoint::MobileEndpointProviderBase; - using MobileEndpointProvider = Aws::Mobile::Endpoint::MobileEndpointProvider; - - namespace Model - { - /* Service model forward declarations required in MobileClient header */ - class CreateProjectRequest; - class DeleteProjectRequest; - class DescribeBundleRequest; - class DescribeProjectRequest; - class ExportBundleRequest; - class ExportProjectRequest; - class ListBundlesRequest; - class ListProjectsRequest; - class UpdateProjectRequest; - /* End of service model forward declarations required in MobileClient header */ - - /* Service model Outcome class definitions */ - typedef Aws::Utils::Outcome CreateProjectOutcome; - typedef Aws::Utils::Outcome DeleteProjectOutcome; - typedef Aws::Utils::Outcome DescribeBundleOutcome; - typedef Aws::Utils::Outcome DescribeProjectOutcome; - typedef Aws::Utils::Outcome ExportBundleOutcome; - typedef Aws::Utils::Outcome ExportProjectOutcome; - typedef Aws::Utils::Outcome ListBundlesOutcome; - typedef Aws::Utils::Outcome ListProjectsOutcome; - typedef Aws::Utils::Outcome UpdateProjectOutcome; - /* End of service model Outcome class definitions */ - - /* Service model Outcome callable definitions */ - typedef std::future CreateProjectOutcomeCallable; - typedef std::future DeleteProjectOutcomeCallable; - typedef std::future DescribeBundleOutcomeCallable; - typedef std::future DescribeProjectOutcomeCallable; - typedef std::future ExportBundleOutcomeCallable; - typedef std::future ExportProjectOutcomeCallable; - typedef std::future ListBundlesOutcomeCallable; - typedef std::future ListProjectsOutcomeCallable; - typedef std::future UpdateProjectOutcomeCallable; - /* End of service model Outcome callable definitions */ - } // namespace Model - - class MobileClient; - - /* Service model async handlers definitions */ - typedef std::function&) > CreateProjectResponseReceivedHandler; - typedef std::function&) > DeleteProjectResponseReceivedHandler; - typedef std::function&) > DescribeBundleResponseReceivedHandler; - typedef std::function&) > DescribeProjectResponseReceivedHandler; - typedef std::function&) > ExportBundleResponseReceivedHandler; - typedef std::function&) > ExportProjectResponseReceivedHandler; - typedef std::function&) > ListBundlesResponseReceivedHandler; - typedef std::function&) > ListProjectsResponseReceivedHandler; - typedef std::function&) > UpdateProjectResponseReceivedHandler; - /* End of service model async handlers definitions */ - } // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/Mobile_EXPORTS.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/Mobile_EXPORTS.h deleted file mode 100644 index be664d0ec9b..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/Mobile_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_MOBILE_EXPORTS - #define AWS_MOBILE_API __declspec(dllexport) - #else - #define AWS_MOBILE_API __declspec(dllimport) - #endif /* AWS_MOBILE_EXPORTS */ - #define AWS_MOBILE_EXTERN - #else - #define AWS_MOBILE_API - #define AWS_MOBILE_EXTERN extern - #endif // USE_IMPORT_EXPORT -#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) - #define AWS_MOBILE_API - #define AWS_MOBILE_EXTERN extern -#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32) diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/BundleDetails.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/BundleDetails.h deleted file mode 100644 index 25f0fd8edf4..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/BundleDetails.h +++ /dev/null @@ -1,136 +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 Utils -{ -namespace Json -{ - class JsonValue; - class JsonView; -} // namespace Json -} // namespace Utils -namespace Mobile -{ -namespace Model -{ - - /** - *

The details of the bundle.

See Also:

AWS - * API Reference

- */ - class BundleDetails - { - public: - AWS_MOBILE_API BundleDetails(); - AWS_MOBILE_API BundleDetails(Aws::Utils::Json::JsonView jsonValue); - AWS_MOBILE_API BundleDetails& operator=(Aws::Utils::Json::JsonView jsonValue); - AWS_MOBILE_API Aws::Utils::Json::JsonValue Jsonize() const; - - - ///@{ - - inline const Aws::String& GetBundleId() const{ return m_bundleId; } - inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; } - inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; } - inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); } - inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); } - inline BundleDetails& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;} - inline BundleDetails& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;} - inline BundleDetails& WithBundleId(const char* value) { SetBundleId(value); return *this;} - ///@} - - ///@{ - - inline const Aws::String& GetTitle() const{ return m_title; } - inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } - inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } - inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } - inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } - inline BundleDetails& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} - inline BundleDetails& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} - inline BundleDetails& WithTitle(const char* value) { SetTitle(value); return *this;} - ///@} - - ///@{ - - inline const Aws::String& GetVersion() const{ return m_version; } - inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } - inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } - inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } - inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } - inline BundleDetails& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} - inline BundleDetails& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} - inline BundleDetails& WithVersion(const char* value) { SetVersion(value); return *this;} - ///@} - - ///@{ - - inline const Aws::String& GetDescription() const{ return m_description; } - inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } - inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } - inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } - inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } - inline BundleDetails& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} - inline BundleDetails& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} - inline BundleDetails& WithDescription(const char* value) { SetDescription(value); return *this;} - ///@} - - ///@{ - - inline const Aws::String& GetIconUrl() const{ return m_iconUrl; } - inline bool IconUrlHasBeenSet() const { return m_iconUrlHasBeenSet; } - inline void SetIconUrl(const Aws::String& value) { m_iconUrlHasBeenSet = true; m_iconUrl = value; } - inline void SetIconUrl(Aws::String&& value) { m_iconUrlHasBeenSet = true; m_iconUrl = std::move(value); } - inline void SetIconUrl(const char* value) { m_iconUrlHasBeenSet = true; m_iconUrl.assign(value); } - inline BundleDetails& WithIconUrl(const Aws::String& value) { SetIconUrl(value); return *this;} - inline BundleDetails& WithIconUrl(Aws::String&& value) { SetIconUrl(std::move(value)); return *this;} - inline BundleDetails& WithIconUrl(const char* value) { SetIconUrl(value); return *this;} - ///@} - - ///@{ - - inline const Aws::Vector& GetAvailablePlatforms() const{ return m_availablePlatforms; } - inline bool AvailablePlatformsHasBeenSet() const { return m_availablePlatformsHasBeenSet; } - inline void SetAvailablePlatforms(const Aws::Vector& value) { m_availablePlatformsHasBeenSet = true; m_availablePlatforms = value; } - inline void SetAvailablePlatforms(Aws::Vector&& value) { m_availablePlatformsHasBeenSet = true; m_availablePlatforms = std::move(value); } - inline BundleDetails& WithAvailablePlatforms(const Aws::Vector& value) { SetAvailablePlatforms(value); return *this;} - inline BundleDetails& WithAvailablePlatforms(Aws::Vector&& value) { SetAvailablePlatforms(std::move(value)); return *this;} - inline BundleDetails& AddAvailablePlatforms(const Platform& value) { m_availablePlatformsHasBeenSet = true; m_availablePlatforms.push_back(value); return *this; } - inline BundleDetails& AddAvailablePlatforms(Platform&& value) { m_availablePlatformsHasBeenSet = true; m_availablePlatforms.push_back(std::move(value)); return *this; } - ///@} - private: - - Aws::String m_bundleId; - bool m_bundleIdHasBeenSet = false; - - Aws::String m_title; - bool m_titleHasBeenSet = false; - - Aws::String m_version; - bool m_versionHasBeenSet = false; - - Aws::String m_description; - bool m_descriptionHasBeenSet = false; - - Aws::String m_iconUrl; - bool m_iconUrlHasBeenSet = false; - - Aws::Vector m_availablePlatforms; - bool m_availablePlatformsHasBeenSet = false; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/CreateProjectRequest.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/CreateProjectRequest.h deleted file mode 100644 index f88a2143806..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/CreateProjectRequest.h +++ /dev/null @@ -1,102 +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 Mobile -{ -namespace Model -{ - - /** - *

Request structure used to request a project be created.

See - * Also:

AWS - * API Reference

- */ - class CreateProjectRequest : public StreamingMobileRequest - { - public: - AWS_MOBILE_API CreateProjectRequest(); - - // 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 "CreateProject"; } - - AWS_MOBILE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; - - - ///@{ - /** - *

Name of the project.

- */ - inline const Aws::String& GetName() const{ return m_name; } - inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } - inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } - inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } - inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } - inline CreateProjectRequest& WithName(const Aws::String& value) { SetName(value); return *this;} - inline CreateProjectRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} - inline CreateProjectRequest& WithName(const char* value) { SetName(value); return *this;} - ///@} - - ///@{ - /** - *

Default region where project resources should be created.

- */ - inline const Aws::String& GetRegion() const{ return m_region; } - inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } - inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } - inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } - inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } - inline CreateProjectRequest& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} - inline CreateProjectRequest& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} - inline CreateProjectRequest& WithRegion(const char* value) { SetRegion(value); return *this;} - ///@} - - ///@{ - /** - *

Unique identifier for an exported snapshot of project configuration. This - * snapshot identifier is included in the share URL when a project is exported. - *

- */ - inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; } - inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; } - inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; } - inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); } - inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); } - inline CreateProjectRequest& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} - inline CreateProjectRequest& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;} - inline CreateProjectRequest& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;} - ///@} - private: - - Aws::String m_name; - bool m_nameHasBeenSet = false; - - Aws::String m_region; - bool m_regionHasBeenSet = false; - - - Aws::String m_snapshotId; - bool m_snapshotIdHasBeenSet = false; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/CreateProjectResult.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/CreateProjectResult.h deleted file mode 100644 index c1078c09e0a..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/CreateProjectResult.h +++ /dev/null @@ -1,72 +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 Mobile -{ -namespace Model -{ - /** - *

Result structure used in response to a request to create a project. - *

See Also:

AWS - * API Reference

- */ - class CreateProjectResult - { - public: - AWS_MOBILE_API CreateProjectResult(); - AWS_MOBILE_API CreateProjectResult(const Aws::AmazonWebServiceResult& result); - AWS_MOBILE_API CreateProjectResult& operator=(const Aws::AmazonWebServiceResult& result); - - - ///@{ - /** - *

Detailed information about the created AWS Mobile Hub project.

- */ - inline const ProjectDetails& GetDetails() const{ return m_details; } - inline void SetDetails(const ProjectDetails& value) { m_details = value; } - inline void SetDetails(ProjectDetails&& value) { m_details = std::move(value); } - inline CreateProjectResult& WithDetails(const ProjectDetails& value) { SetDetails(value); return *this;} - inline CreateProjectResult& WithDetails(ProjectDetails&& value) { SetDetails(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 CreateProjectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - inline CreateProjectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - inline CreateProjectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - ///@} - private: - - ProjectDetails m_details; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DeleteProjectRequest.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DeleteProjectRequest.h deleted file mode 100644 index d6e1d60a982..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DeleteProjectRequest.h +++ /dev/null @@ -1,60 +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 Mobile -{ -namespace Model -{ - - /** - *

Request structure used to request a project be deleted.

See - * Also:

AWS - * API Reference

- */ - class DeleteProjectRequest : public MobileRequest - { - public: - AWS_MOBILE_API DeleteProjectRequest(); - - // 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 "DeleteProject"; } - - AWS_MOBILE_API Aws::String SerializePayload() const override; - - - ///@{ - /** - *

Unique project identifier.

- */ - inline const Aws::String& GetProjectId() const{ return m_projectId; } - inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; } - inline void SetProjectId(const Aws::String& value) { m_projectIdHasBeenSet = true; m_projectId = value; } - inline void SetProjectId(Aws::String&& value) { m_projectIdHasBeenSet = true; m_projectId = std::move(value); } - inline void SetProjectId(const char* value) { m_projectIdHasBeenSet = true; m_projectId.assign(value); } - inline DeleteProjectRequest& WithProjectId(const Aws::String& value) { SetProjectId(value); return *this;} - inline DeleteProjectRequest& WithProjectId(Aws::String&& value) { SetProjectId(std::move(value)); return *this;} - inline DeleteProjectRequest& WithProjectId(const char* value) { SetProjectId(value); return *this;} - ///@} - private: - - Aws::String m_projectId; - bool m_projectIdHasBeenSet = false; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DeleteProjectResult.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DeleteProjectResult.h deleted file mode 100644 index 8552d3f5b6c..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DeleteProjectResult.h +++ /dev/null @@ -1,91 +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 Mobile -{ -namespace Model -{ - /** - *

Result structure used in response to request to delete a project. - *

See Also:

AWS - * API Reference

- */ - class DeleteProjectResult - { - public: - AWS_MOBILE_API DeleteProjectResult(); - AWS_MOBILE_API DeleteProjectResult(const Aws::AmazonWebServiceResult& result); - AWS_MOBILE_API DeleteProjectResult& operator=(const Aws::AmazonWebServiceResult& result); - - - ///@{ - /** - *

Resources which were deleted.

- */ - inline const Aws::Vector& GetDeletedResources() const{ return m_deletedResources; } - inline void SetDeletedResources(const Aws::Vector& value) { m_deletedResources = value; } - inline void SetDeletedResources(Aws::Vector&& value) { m_deletedResources = std::move(value); } - inline DeleteProjectResult& WithDeletedResources(const Aws::Vector& value) { SetDeletedResources(value); return *this;} - inline DeleteProjectResult& WithDeletedResources(Aws::Vector&& value) { SetDeletedResources(std::move(value)); return *this;} - inline DeleteProjectResult& AddDeletedResources(const Resource& value) { m_deletedResources.push_back(value); return *this; } - inline DeleteProjectResult& AddDeletedResources(Resource&& value) { m_deletedResources.push_back(std::move(value)); return *this; } - ///@} - - ///@{ - /** - *

Resources which were not deleted, due to a risk of losing potentially - * important data or files.

- */ - inline const Aws::Vector& GetOrphanedResources() const{ return m_orphanedResources; } - inline void SetOrphanedResources(const Aws::Vector& value) { m_orphanedResources = value; } - inline void SetOrphanedResources(Aws::Vector&& value) { m_orphanedResources = std::move(value); } - inline DeleteProjectResult& WithOrphanedResources(const Aws::Vector& value) { SetOrphanedResources(value); return *this;} - inline DeleteProjectResult& WithOrphanedResources(Aws::Vector&& value) { SetOrphanedResources(std::move(value)); return *this;} - inline DeleteProjectResult& AddOrphanedResources(const Resource& value) { m_orphanedResources.push_back(value); return *this; } - inline DeleteProjectResult& AddOrphanedResources(Resource&& value) { m_orphanedResources.push_back(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 DeleteProjectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - inline DeleteProjectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - inline DeleteProjectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - ///@} - private: - - Aws::Vector m_deletedResources; - - Aws::Vector m_orphanedResources; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DescribeBundleRequest.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DescribeBundleRequest.h deleted file mode 100644 index d2f3be329d0..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DescribeBundleRequest.h +++ /dev/null @@ -1,60 +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 Mobile -{ -namespace Model -{ - - /** - *

Request structure to request the details of a specific bundle. - *

See Also:

AWS - * API Reference

- */ - class DescribeBundleRequest : public MobileRequest - { - public: - AWS_MOBILE_API DescribeBundleRequest(); - - // 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 "DescribeBundle"; } - - AWS_MOBILE_API Aws::String SerializePayload() const override; - - - ///@{ - /** - *

Unique bundle identifier.

- */ - inline const Aws::String& GetBundleId() const{ return m_bundleId; } - inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; } - inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; } - inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); } - inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); } - inline DescribeBundleRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;} - inline DescribeBundleRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;} - inline DescribeBundleRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;} - ///@} - private: - - Aws::String m_bundleId; - bool m_bundleIdHasBeenSet = false; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DescribeBundleResult.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DescribeBundleResult.h deleted file mode 100644 index 610a17206ee..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DescribeBundleResult.h +++ /dev/null @@ -1,72 +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 Mobile -{ -namespace Model -{ - /** - *

Result structure contains the details of the bundle.

See - * Also:

AWS - * API Reference

- */ - class DescribeBundleResult - { - public: - AWS_MOBILE_API DescribeBundleResult(); - AWS_MOBILE_API DescribeBundleResult(const Aws::AmazonWebServiceResult& result); - AWS_MOBILE_API DescribeBundleResult& operator=(const Aws::AmazonWebServiceResult& result); - - - ///@{ - /** - *

The details of the bundle.

- */ - inline const BundleDetails& GetDetails() const{ return m_details; } - inline void SetDetails(const BundleDetails& value) { m_details = value; } - inline void SetDetails(BundleDetails&& value) { m_details = std::move(value); } - inline DescribeBundleResult& WithDetails(const BundleDetails& value) { SetDetails(value); return *this;} - inline DescribeBundleResult& WithDetails(BundleDetails&& value) { SetDetails(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 DescribeBundleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - inline DescribeBundleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - inline DescribeBundleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - ///@} - private: - - BundleDetails m_details; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DescribeProjectRequest.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DescribeProjectRequest.h deleted file mode 100644 index 061400f3332..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DescribeProjectRequest.h +++ /dev/null @@ -1,81 +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 Mobile -{ -namespace Model -{ - - /** - *

Request structure used to request details about a project.

See - * Also:

AWS - * API Reference

- */ - class DescribeProjectRequest : public MobileRequest - { - public: - AWS_MOBILE_API DescribeProjectRequest(); - - // 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 "DescribeProject"; } - - AWS_MOBILE_API Aws::String SerializePayload() const override; - - AWS_MOBILE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; - - - ///@{ - /** - *

Unique project identifier.

- */ - inline const Aws::String& GetProjectId() const{ return m_projectId; } - inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; } - inline void SetProjectId(const Aws::String& value) { m_projectIdHasBeenSet = true; m_projectId = value; } - inline void SetProjectId(Aws::String&& value) { m_projectIdHasBeenSet = true; m_projectId = std::move(value); } - inline void SetProjectId(const char* value) { m_projectIdHasBeenSet = true; m_projectId.assign(value); } - inline DescribeProjectRequest& WithProjectId(const Aws::String& value) { SetProjectId(value); return *this;} - inline DescribeProjectRequest& WithProjectId(Aws::String&& value) { SetProjectId(std::move(value)); return *this;} - inline DescribeProjectRequest& WithProjectId(const char* value) { SetProjectId(value); return *this;} - ///@} - - ///@{ - /** - *

If set to true, causes AWS Mobile Hub to synchronize information from other - * services, e.g., update state of AWS CloudFormation stacks in the AWS Mobile Hub - * project.

- */ - inline bool GetSyncFromResources() const{ return m_syncFromResources; } - inline bool SyncFromResourcesHasBeenSet() const { return m_syncFromResourcesHasBeenSet; } - inline void SetSyncFromResources(bool value) { m_syncFromResourcesHasBeenSet = true; m_syncFromResources = value; } - inline DescribeProjectRequest& WithSyncFromResources(bool value) { SetSyncFromResources(value); return *this;} - ///@} - private: - - Aws::String m_projectId; - bool m_projectIdHasBeenSet = false; - - bool m_syncFromResources; - bool m_syncFromResourcesHasBeenSet = false; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DescribeProjectResult.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DescribeProjectResult.h deleted file mode 100644 index c0ca8063231..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/DescribeProjectResult.h +++ /dev/null @@ -1,70 +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 Mobile -{ -namespace Model -{ - /** - *

Result structure used for requests of project details.

See - * Also:

AWS - * API Reference

- */ - class DescribeProjectResult - { - public: - AWS_MOBILE_API DescribeProjectResult(); - AWS_MOBILE_API DescribeProjectResult(const Aws::AmazonWebServiceResult& result); - AWS_MOBILE_API DescribeProjectResult& operator=(const Aws::AmazonWebServiceResult& result); - - - ///@{ - - inline const ProjectDetails& GetDetails() const{ return m_details; } - inline void SetDetails(const ProjectDetails& value) { m_details = value; } - inline void SetDetails(ProjectDetails&& value) { m_details = std::move(value); } - inline DescribeProjectResult& WithDetails(const ProjectDetails& value) { SetDetails(value); return *this;} - inline DescribeProjectResult& WithDetails(ProjectDetails&& value) { SetDetails(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 DescribeProjectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - inline DescribeProjectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - inline DescribeProjectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - ///@} - private: - - ProjectDetails m_details; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ExportBundleRequest.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ExportBundleRequest.h deleted file mode 100644 index d1fa1dd38ea..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ExportBundleRequest.h +++ /dev/null @@ -1,100 +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 Mobile -{ -namespace Model -{ - - /** - *

Request structure used to request generation of custom SDK and tool packages - * required to integrate mobile web or app clients with backed AWS resources. - *

See Also:

AWS - * API Reference

- */ - class ExportBundleRequest : public MobileRequest - { - public: - AWS_MOBILE_API ExportBundleRequest(); - - // 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 "ExportBundle"; } - - AWS_MOBILE_API Aws::String SerializePayload() const override; - - AWS_MOBILE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; - - - ///@{ - /** - *

Unique bundle identifier.

- */ - inline const Aws::String& GetBundleId() const{ return m_bundleId; } - inline bool BundleIdHasBeenSet() const { return m_bundleIdHasBeenSet; } - inline void SetBundleId(const Aws::String& value) { m_bundleIdHasBeenSet = true; m_bundleId = value; } - inline void SetBundleId(Aws::String&& value) { m_bundleIdHasBeenSet = true; m_bundleId = std::move(value); } - inline void SetBundleId(const char* value) { m_bundleIdHasBeenSet = true; m_bundleId.assign(value); } - inline ExportBundleRequest& WithBundleId(const Aws::String& value) { SetBundleId(value); return *this;} - inline ExportBundleRequest& WithBundleId(Aws::String&& value) { SetBundleId(std::move(value)); return *this;} - inline ExportBundleRequest& WithBundleId(const char* value) { SetBundleId(value); return *this;} - ///@} - - ///@{ - /** - *

Unique project identifier.

- */ - inline const Aws::String& GetProjectId() const{ return m_projectId; } - inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; } - inline void SetProjectId(const Aws::String& value) { m_projectIdHasBeenSet = true; m_projectId = value; } - inline void SetProjectId(Aws::String&& value) { m_projectIdHasBeenSet = true; m_projectId = std::move(value); } - inline void SetProjectId(const char* value) { m_projectIdHasBeenSet = true; m_projectId.assign(value); } - inline ExportBundleRequest& WithProjectId(const Aws::String& value) { SetProjectId(value); return *this;} - inline ExportBundleRequest& WithProjectId(Aws::String&& value) { SetProjectId(std::move(value)); return *this;} - inline ExportBundleRequest& WithProjectId(const char* value) { SetProjectId(value); return *this;} - ///@} - - ///@{ - /** - *

Developer desktop or target application platform.

- */ - inline const Platform& GetPlatform() const{ return m_platform; } - inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } - inline void SetPlatform(const Platform& value) { m_platformHasBeenSet = true; m_platform = value; } - inline void SetPlatform(Platform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); } - inline ExportBundleRequest& WithPlatform(const Platform& value) { SetPlatform(value); return *this;} - inline ExportBundleRequest& WithPlatform(Platform&& value) { SetPlatform(std::move(value)); return *this;} - ///@} - private: - - Aws::String m_bundleId; - bool m_bundleIdHasBeenSet = false; - - Aws::String m_projectId; - bool m_projectIdHasBeenSet = false; - - Platform m_platform; - bool m_platformHasBeenSet = false; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ExportBundleResult.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ExportBundleResult.h deleted file mode 100644 index 8a26d0554b2..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ExportBundleResult.h +++ /dev/null @@ -1,76 +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 Mobile -{ -namespace Model -{ - /** - *

Result structure which contains link to download custom-generated SDK and - * tool packages used to integrate mobile web or app clients with backed AWS - * resources.

See Also:

AWS - * API Reference

- */ - class ExportBundleResult - { - public: - AWS_MOBILE_API ExportBundleResult(); - AWS_MOBILE_API ExportBundleResult(const Aws::AmazonWebServiceResult& result); - AWS_MOBILE_API ExportBundleResult& operator=(const Aws::AmazonWebServiceResult& result); - - - ///@{ - /** - *

URL which contains the custom-generated SDK and tool packages used to - * integrate the client mobile app or web app with the AWS resources created by the - * AWS Mobile Hub project.

- */ - inline const Aws::String& GetDownloadUrl() const{ return m_downloadUrl; } - inline void SetDownloadUrl(const Aws::String& value) { m_downloadUrl = value; } - inline void SetDownloadUrl(Aws::String&& value) { m_downloadUrl = std::move(value); } - inline void SetDownloadUrl(const char* value) { m_downloadUrl.assign(value); } - inline ExportBundleResult& WithDownloadUrl(const Aws::String& value) { SetDownloadUrl(value); return *this;} - inline ExportBundleResult& WithDownloadUrl(Aws::String&& value) { SetDownloadUrl(std::move(value)); return *this;} - inline ExportBundleResult& WithDownloadUrl(const char* value) { SetDownloadUrl(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 ExportBundleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - inline ExportBundleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - inline ExportBundleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - ///@} - private: - - Aws::String m_downloadUrl; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ExportProjectRequest.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ExportProjectRequest.h deleted file mode 100644 index 68ea8537625..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ExportProjectRequest.h +++ /dev/null @@ -1,60 +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 Mobile -{ -namespace Model -{ - - /** - *

Request structure used in requests to export project configuration details. - *

See Also:

AWS - * API Reference

- */ - class ExportProjectRequest : public MobileRequest - { - public: - AWS_MOBILE_API ExportProjectRequest(); - - // 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 "ExportProject"; } - - AWS_MOBILE_API Aws::String SerializePayload() const override; - - - ///@{ - /** - *

Unique project identifier.

- */ - inline const Aws::String& GetProjectId() const{ return m_projectId; } - inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; } - inline void SetProjectId(const Aws::String& value) { m_projectIdHasBeenSet = true; m_projectId = value; } - inline void SetProjectId(Aws::String&& value) { m_projectIdHasBeenSet = true; m_projectId = std::move(value); } - inline void SetProjectId(const char* value) { m_projectIdHasBeenSet = true; m_projectId.assign(value); } - inline ExportProjectRequest& WithProjectId(const Aws::String& value) { SetProjectId(value); return *this;} - inline ExportProjectRequest& WithProjectId(Aws::String&& value) { SetProjectId(std::move(value)); return *this;} - inline ExportProjectRequest& WithProjectId(const char* value) { SetProjectId(value); return *this;} - ///@} - private: - - Aws::String m_projectId; - bool m_projectIdHasBeenSet = false; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ExportProjectResult.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ExportProjectResult.h deleted file mode 100644 index 35be0a61768..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ExportProjectResult.h +++ /dev/null @@ -1,110 +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 Mobile -{ -namespace Model -{ - /** - *

Result structure used for requests to export project configuration details. - *

See Also:

AWS - * API Reference

- */ - class ExportProjectResult - { - public: - AWS_MOBILE_API ExportProjectResult(); - AWS_MOBILE_API ExportProjectResult(const Aws::AmazonWebServiceResult& result); - AWS_MOBILE_API ExportProjectResult& operator=(const Aws::AmazonWebServiceResult& result); - - - ///@{ - /** - *

URL which can be used to download the exported project configuation file(s). - *

- */ - inline const Aws::String& GetDownloadUrl() const{ return m_downloadUrl; } - inline void SetDownloadUrl(const Aws::String& value) { m_downloadUrl = value; } - inline void SetDownloadUrl(Aws::String&& value) { m_downloadUrl = std::move(value); } - inline void SetDownloadUrl(const char* value) { m_downloadUrl.assign(value); } - inline ExportProjectResult& WithDownloadUrl(const Aws::String& value) { SetDownloadUrl(value); return *this;} - inline ExportProjectResult& WithDownloadUrl(Aws::String&& value) { SetDownloadUrl(std::move(value)); return *this;} - inline ExportProjectResult& WithDownloadUrl(const char* value) { SetDownloadUrl(value); return *this;} - ///@} - - ///@{ - /** - *

URL which can be shared to allow other AWS users to create their own project - * in AWS Mobile Hub with the same configuration as the specified project. This URL - * pertains to a snapshot in time of the project configuration that is created when - * this API is called. If you want to share additional changes to your project - * configuration, then you will need to create and share a new snapshot by calling - * this method again.

- */ - inline const Aws::String& GetShareUrl() const{ return m_shareUrl; } - inline void SetShareUrl(const Aws::String& value) { m_shareUrl = value; } - inline void SetShareUrl(Aws::String&& value) { m_shareUrl = std::move(value); } - inline void SetShareUrl(const char* value) { m_shareUrl.assign(value); } - inline ExportProjectResult& WithShareUrl(const Aws::String& value) { SetShareUrl(value); return *this;} - inline ExportProjectResult& WithShareUrl(Aws::String&& value) { SetShareUrl(std::move(value)); return *this;} - inline ExportProjectResult& WithShareUrl(const char* value) { SetShareUrl(value); return *this;} - ///@} - - ///@{ - /** - *

Unique identifier for the exported snapshot of the project configuration. - * This snapshot identifier is included in the share URL.

- */ - inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; } - inline void SetSnapshotId(const Aws::String& value) { m_snapshotId = value; } - inline void SetSnapshotId(Aws::String&& value) { m_snapshotId = std::move(value); } - inline void SetSnapshotId(const char* value) { m_snapshotId.assign(value); } - inline ExportProjectResult& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;} - inline ExportProjectResult& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;} - inline ExportProjectResult& WithSnapshotId(const char* value) { SetSnapshotId(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 ExportProjectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - inline ExportProjectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - inline ExportProjectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - ///@} - private: - - Aws::String m_downloadUrl; - - Aws::String m_shareUrl; - - Aws::String m_snapshotId; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/LimitExceededException.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/LimitExceededException.h deleted file mode 100644 index d5ecb598fdb..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/LimitExceededException.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 Utils -{ -namespace Json -{ - class JsonValue; - class JsonView; -} // namespace Json -} // namespace Utils -namespace Mobile -{ -namespace Model -{ - - /** - *

There are too many AWS Mobile Hub projects in the account or the account has - * exceeded the maximum number of resources in some AWS service. You should create - * another sub-account using AWS Organizations or remove some resources and retry - * your request.

See Also:

AWS - * API Reference

- */ - class LimitExceededException - { - public: - AWS_MOBILE_API LimitExceededException(); - AWS_MOBILE_API LimitExceededException(Aws::Utils::Json::JsonView jsonValue); - AWS_MOBILE_API LimitExceededException& operator=(Aws::Utils::Json::JsonView jsonValue); - AWS_MOBILE_API Aws::Utils::Json::JsonValue Jsonize() const; - - - ///@{ - - inline const Aws::String& GetRetryAfterSeconds() const{ return m_retryAfterSeconds; } - inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; } - inline void SetRetryAfterSeconds(const Aws::String& value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; } - inline void SetRetryAfterSeconds(Aws::String&& value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = std::move(value); } - inline void SetRetryAfterSeconds(const char* value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds.assign(value); } - inline LimitExceededException& WithRetryAfterSeconds(const Aws::String& value) { SetRetryAfterSeconds(value); return *this;} - inline LimitExceededException& WithRetryAfterSeconds(Aws::String&& value) { SetRetryAfterSeconds(std::move(value)); return *this;} - inline LimitExceededException& WithRetryAfterSeconds(const char* value) { SetRetryAfterSeconds(value); return *this;} - ///@} - - ///@{ - - 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 LimitExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} - inline LimitExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} - inline LimitExceededException& WithMessage(const char* value) { SetMessage(value); return *this;} - ///@} - private: - - Aws::String m_retryAfterSeconds; - bool m_retryAfterSecondsHasBeenSet = false; - - Aws::String m_message; - bool m_messageHasBeenSet = false; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ListBundlesRequest.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ListBundlesRequest.h deleted file mode 100644 index 91383c09f81..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ListBundlesRequest.h +++ /dev/null @@ -1,81 +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 Mobile -{ -namespace Model -{ - - /** - *

Request structure to request all available bundles.

See - * Also:

AWS - * API Reference

- */ - class ListBundlesRequest : public MobileRequest - { - public: - AWS_MOBILE_API ListBundlesRequest(); - - // 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 "ListBundles"; } - - AWS_MOBILE_API Aws::String SerializePayload() const override; - - AWS_MOBILE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; - - - ///@{ - /** - *

Maximum number of records to list in a single response.

- */ - inline int GetMaxResults() const{ return m_maxResults; } - inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } - inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } - inline ListBundlesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} - ///@} - - ///@{ - /** - *

Pagination token. Set to null to start listing bundles from start. If - * non-null pagination token is returned in a result, then pass its value in here - * in another request to list more bundles.

- */ - inline const Aws::String& GetNextToken() const{ return m_nextToken; } - inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } - inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } - inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } - inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } - inline ListBundlesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} - inline ListBundlesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} - inline ListBundlesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} - ///@} - private: - - int m_maxResults; - bool m_maxResultsHasBeenSet = false; - - Aws::String m_nextToken; - bool m_nextTokenHasBeenSet = false; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ListBundlesResult.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ListBundlesResult.h deleted file mode 100644 index fa8597f4c63..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ListBundlesResult.h +++ /dev/null @@ -1,91 +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 Mobile -{ -namespace Model -{ - /** - *

Result structure contains a list of all available bundles with details. - *

See Also:

AWS - * API Reference

- */ - class ListBundlesResult - { - public: - AWS_MOBILE_API ListBundlesResult(); - AWS_MOBILE_API ListBundlesResult(const Aws::AmazonWebServiceResult& result); - AWS_MOBILE_API ListBundlesResult& operator=(const Aws::AmazonWebServiceResult& result); - - - ///@{ - /** - *

A list of bundles.

- */ - inline const Aws::Vector& GetBundleList() const{ return m_bundleList; } - inline void SetBundleList(const Aws::Vector& value) { m_bundleList = value; } - inline void SetBundleList(Aws::Vector&& value) { m_bundleList = std::move(value); } - inline ListBundlesResult& WithBundleList(const Aws::Vector& value) { SetBundleList(value); return *this;} - inline ListBundlesResult& WithBundleList(Aws::Vector&& value) { SetBundleList(std::move(value)); return *this;} - inline ListBundlesResult& AddBundleList(const BundleDetails& value) { m_bundleList.push_back(value); return *this; } - inline ListBundlesResult& AddBundleList(BundleDetails&& value) { m_bundleList.push_back(std::move(value)); return *this; } - ///@} - - ///@{ - /** - *

Pagination token. If non-null pagination token is returned in a result, then - * pass its value in another request to fetch more entries.

- */ - inline const Aws::String& GetNextToken() const{ return m_nextToken; } - inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } - inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } - inline void SetNextToken(const char* value) { m_nextToken.assign(value); } - inline ListBundlesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} - inline ListBundlesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} - inline ListBundlesResult& 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 ListBundlesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - inline ListBundlesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - inline ListBundlesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - ///@} - private: - - Aws::Vector m_bundleList; - - Aws::String m_nextToken; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ListProjectsRequest.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ListProjectsRequest.h deleted file mode 100644 index 3d4d2dc25ea..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ListProjectsRequest.h +++ /dev/null @@ -1,81 +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 Mobile -{ -namespace Model -{ - - /** - *

Request structure used to request projects list in AWS Mobile Hub. - *

See Also:

AWS - * API Reference

- */ - class ListProjectsRequest : public MobileRequest - { - public: - AWS_MOBILE_API ListProjectsRequest(); - - // 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 "ListProjects"; } - - AWS_MOBILE_API Aws::String SerializePayload() const override; - - AWS_MOBILE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; - - - ///@{ - /** - *

Maximum number of records to list in a single response.

- */ - inline int GetMaxResults() const{ return m_maxResults; } - inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } - inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } - inline ListProjectsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} - ///@} - - ///@{ - /** - *

Pagination token. Set to null to start listing projects from start. If - * non-null pagination token is returned in a result, then pass its value in here - * in another request to list more projects.

- */ - inline const Aws::String& GetNextToken() const{ return m_nextToken; } - inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } - inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } - inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } - inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } - inline ListProjectsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} - inline ListProjectsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} - inline ListProjectsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} - ///@} - private: - - int m_maxResults; - bool m_maxResultsHasBeenSet = false; - - Aws::String m_nextToken; - bool m_nextTokenHasBeenSet = false; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ListProjectsResult.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ListProjectsResult.h deleted file mode 100644 index 7726e71e734..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ListProjectsResult.h +++ /dev/null @@ -1,86 +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 Mobile -{ -namespace Model -{ - /** - *

Result structure used for requests to list projects in AWS Mobile Hub. - *

See Also:

AWS - * API Reference

- */ - class ListProjectsResult - { - public: - AWS_MOBILE_API ListProjectsResult(); - AWS_MOBILE_API ListProjectsResult(const Aws::AmazonWebServiceResult& result); - AWS_MOBILE_API ListProjectsResult& operator=(const Aws::AmazonWebServiceResult& result); - - - ///@{ - - inline const Aws::Vector& GetProjects() const{ return m_projects; } - inline void SetProjects(const Aws::Vector& value) { m_projects = value; } - inline void SetProjects(Aws::Vector&& value) { m_projects = std::move(value); } - inline ListProjectsResult& WithProjects(const Aws::Vector& value) { SetProjects(value); return *this;} - inline ListProjectsResult& WithProjects(Aws::Vector&& value) { SetProjects(std::move(value)); return *this;} - inline ListProjectsResult& AddProjects(const ProjectSummary& value) { m_projects.push_back(value); return *this; } - inline ListProjectsResult& AddProjects(ProjectSummary&& value) { m_projects.push_back(std::move(value)); return *this; } - ///@} - - ///@{ - - inline const Aws::String& GetNextToken() const{ return m_nextToken; } - inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } - inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } - inline void SetNextToken(const char* value) { m_nextToken.assign(value); } - inline ListProjectsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} - inline ListProjectsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} - inline ListProjectsResult& 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 ListProjectsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - inline ListProjectsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - inline ListProjectsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - ///@} - private: - - Aws::Vector m_projects; - - Aws::String m_nextToken; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/Platform.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/Platform.h deleted file mode 100644 index a9c5a348625..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/Platform.h +++ /dev/null @@ -1,36 +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 Mobile -{ -namespace Model -{ - enum class Platform - { - NOT_SET, - OSX, - WINDOWS, - LINUX, - OBJC, - SWIFT, - ANDROID_, - JAVASCRIPT - }; - -namespace PlatformMapper -{ -AWS_MOBILE_API Platform GetPlatformForName(const Aws::String& name); - -AWS_MOBILE_API Aws::String GetNameForPlatform(Platform value); -} // namespace PlatformMapper -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ProjectDetails.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ProjectDetails.h deleted file mode 100644 index 6b35815cccc..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ProjectDetails.h +++ /dev/null @@ -1,169 +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 Utils -{ -namespace Json -{ - class JsonValue; - class JsonView; -} // namespace Json -} // namespace Utils -namespace Mobile -{ -namespace Model -{ - - /** - *

Detailed information about an AWS Mobile Hub project.

See - * Also:

AWS - * API Reference

- */ - class ProjectDetails - { - public: - AWS_MOBILE_API ProjectDetails(); - AWS_MOBILE_API ProjectDetails(Aws::Utils::Json::JsonView jsonValue); - AWS_MOBILE_API ProjectDetails& operator=(Aws::Utils::Json::JsonView jsonValue); - AWS_MOBILE_API Aws::Utils::Json::JsonValue Jsonize() const; - - - ///@{ - - inline const Aws::String& GetName() const{ return m_name; } - inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } - inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } - inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } - inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } - inline ProjectDetails& WithName(const Aws::String& value) { SetName(value); return *this;} - inline ProjectDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} - inline ProjectDetails& WithName(const char* value) { SetName(value); return *this;} - ///@} - - ///@{ - - inline const Aws::String& GetProjectId() const{ return m_projectId; } - inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; } - inline void SetProjectId(const Aws::String& value) { m_projectIdHasBeenSet = true; m_projectId = value; } - inline void SetProjectId(Aws::String&& value) { m_projectIdHasBeenSet = true; m_projectId = std::move(value); } - inline void SetProjectId(const char* value) { m_projectIdHasBeenSet = true; m_projectId.assign(value); } - inline ProjectDetails& WithProjectId(const Aws::String& value) { SetProjectId(value); return *this;} - inline ProjectDetails& WithProjectId(Aws::String&& value) { SetProjectId(std::move(value)); return *this;} - inline ProjectDetails& WithProjectId(const char* value) { SetProjectId(value); return *this;} - ///@} - - ///@{ - - inline const Aws::String& GetRegion() const{ return m_region; } - inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } - inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } - inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } - inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } - inline ProjectDetails& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} - inline ProjectDetails& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} - inline ProjectDetails& WithRegion(const char* value) { SetRegion(value); return *this;} - ///@} - - ///@{ - - inline const ProjectState& GetState() const{ return m_state; } - inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } - inline void SetState(const ProjectState& value) { m_stateHasBeenSet = true; m_state = value; } - inline void SetState(ProjectState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } - inline ProjectDetails& WithState(const ProjectState& value) { SetState(value); return *this;} - inline ProjectDetails& WithState(ProjectState&& value) { SetState(std::move(value)); return *this;} - ///@} - - ///@{ - /** - *

Date the project was created.

- */ - inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; } - inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; } - inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; } - inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); } - inline ProjectDetails& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} - inline ProjectDetails& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} - ///@} - - ///@{ - /** - *

Date of the last modification of the project.

- */ - inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; } - inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; } - inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = value; } - inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::move(value); } - inline ProjectDetails& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;} - inline ProjectDetails& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(std::move(value)); return *this;} - ///@} - - ///@{ - /** - *

Website URL for this project in the AWS Mobile Hub console.

- */ - inline const Aws::String& GetConsoleUrl() const{ return m_consoleUrl; } - inline bool ConsoleUrlHasBeenSet() const { return m_consoleUrlHasBeenSet; } - inline void SetConsoleUrl(const Aws::String& value) { m_consoleUrlHasBeenSet = true; m_consoleUrl = value; } - inline void SetConsoleUrl(Aws::String&& value) { m_consoleUrlHasBeenSet = true; m_consoleUrl = std::move(value); } - inline void SetConsoleUrl(const char* value) { m_consoleUrlHasBeenSet = true; m_consoleUrl.assign(value); } - inline ProjectDetails& WithConsoleUrl(const Aws::String& value) { SetConsoleUrl(value); return *this;} - inline ProjectDetails& WithConsoleUrl(Aws::String&& value) { SetConsoleUrl(std::move(value)); return *this;} - inline ProjectDetails& WithConsoleUrl(const char* value) { SetConsoleUrl(value); return *this;} - ///@} - - ///@{ - - inline const Aws::Vector& GetResources() const{ return m_resources; } - inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; } - inline void SetResources(const Aws::Vector& value) { m_resourcesHasBeenSet = true; m_resources = value; } - inline void SetResources(Aws::Vector&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); } - inline ProjectDetails& WithResources(const Aws::Vector& value) { SetResources(value); return *this;} - inline ProjectDetails& WithResources(Aws::Vector&& value) { SetResources(std::move(value)); return *this;} - inline ProjectDetails& AddResources(const Resource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } - inline ProjectDetails& AddResources(Resource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; } - ///@} - private: - - Aws::String m_name; - bool m_nameHasBeenSet = false; - - Aws::String m_projectId; - bool m_projectIdHasBeenSet = false; - - Aws::String m_region; - bool m_regionHasBeenSet = false; - - ProjectState m_state; - bool m_stateHasBeenSet = false; - - Aws::Utils::DateTime m_createdDate; - bool m_createdDateHasBeenSet = false; - - Aws::Utils::DateTime m_lastUpdatedDate; - bool m_lastUpdatedDateHasBeenSet = false; - - Aws::String m_consoleUrl; - bool m_consoleUrlHasBeenSet = false; - - Aws::Vector m_resources; - bool m_resourcesHasBeenSet = false; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ProjectState.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ProjectState.h deleted file mode 100644 index 1acbc0a0aff..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ProjectState.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 -#include -#include - -namespace Aws -{ -namespace Mobile -{ -namespace Model -{ - enum class ProjectState - { - NOT_SET, - NORMAL, - SYNCING, - IMPORTING - }; - -namespace ProjectStateMapper -{ -AWS_MOBILE_API ProjectState GetProjectStateForName(const Aws::String& name); - -AWS_MOBILE_API Aws::String GetNameForProjectState(ProjectState value); -} // namespace ProjectStateMapper -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ProjectSummary.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ProjectSummary.h deleted file mode 100644 index a5c0c0739ac..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ProjectSummary.h +++ /dev/null @@ -1,79 +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 Mobile -{ -namespace Model -{ - - /** - *

Summary information about an AWS Mobile Hub project.

See - * Also:

AWS - * API Reference

- */ - class ProjectSummary - { - public: - AWS_MOBILE_API ProjectSummary(); - AWS_MOBILE_API ProjectSummary(Aws::Utils::Json::JsonView jsonValue); - AWS_MOBILE_API ProjectSummary& operator=(Aws::Utils::Json::JsonView jsonValue); - AWS_MOBILE_API Aws::Utils::Json::JsonValue Jsonize() const; - - - ///@{ - /** - *

Name of the project.

- */ - inline const Aws::String& GetName() const{ return m_name; } - inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } - inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } - inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } - inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } - inline ProjectSummary& WithName(const Aws::String& value) { SetName(value); return *this;} - inline ProjectSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} - inline ProjectSummary& WithName(const char* value) { SetName(value); return *this;} - ///@} - - ///@{ - /** - *

Unique project identifier.

- */ - inline const Aws::String& GetProjectId() const{ return m_projectId; } - inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; } - inline void SetProjectId(const Aws::String& value) { m_projectIdHasBeenSet = true; m_projectId = value; } - inline void SetProjectId(Aws::String&& value) { m_projectIdHasBeenSet = true; m_projectId = std::move(value); } - inline void SetProjectId(const char* value) { m_projectIdHasBeenSet = true; m_projectId.assign(value); } - inline ProjectSummary& WithProjectId(const Aws::String& value) { SetProjectId(value); return *this;} - inline ProjectSummary& WithProjectId(Aws::String&& value) { SetProjectId(std::move(value)); return *this;} - inline ProjectSummary& WithProjectId(const char* value) { SetProjectId(value); return *this;} - ///@} - private: - - Aws::String m_name; - bool m_nameHasBeenSet = false; - - Aws::String m_projectId; - bool m_projectIdHasBeenSet = false; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/Resource.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/Resource.h deleted file mode 100644 index 5939682be81..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/Resource.h +++ /dev/null @@ -1,126 +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 Mobile -{ -namespace Model -{ - - /** - *

Information about an instance of an AWS resource associated with a project. - *

See Also:

AWS API - * Reference

- */ - class Resource - { - public: - AWS_MOBILE_API Resource(); - AWS_MOBILE_API Resource(Aws::Utils::Json::JsonView jsonValue); - AWS_MOBILE_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue); - AWS_MOBILE_API Aws::Utils::Json::JsonValue Jsonize() const; - - - ///@{ - - inline const Aws::String& GetType() const{ return m_type; } - inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } - inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } - inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } - inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } - inline Resource& WithType(const Aws::String& value) { SetType(value); return *this;} - inline Resource& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} - inline Resource& WithType(const char* value) { SetType(value); return *this;} - ///@} - - ///@{ - - inline const Aws::String& GetName() const{ return m_name; } - inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } - inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } - inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } - inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } - inline Resource& WithName(const Aws::String& value) { SetName(value); return *this;} - inline Resource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} - inline Resource& WithName(const char* value) { SetName(value); return *this;} - ///@} - - ///@{ - - inline const Aws::String& GetArn() const{ return m_arn; } - inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } - inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } - inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } - inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } - inline Resource& WithArn(const Aws::String& value) { SetArn(value); return *this;} - inline Resource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} - inline Resource& WithArn(const char* value) { SetArn(value); return *this;} - ///@} - - ///@{ - - inline const Aws::String& GetFeature() const{ return m_feature; } - inline bool FeatureHasBeenSet() const { return m_featureHasBeenSet; } - inline void SetFeature(const Aws::String& value) { m_featureHasBeenSet = true; m_feature = value; } - inline void SetFeature(Aws::String&& value) { m_featureHasBeenSet = true; m_feature = std::move(value); } - inline void SetFeature(const char* value) { m_featureHasBeenSet = true; m_feature.assign(value); } - inline Resource& WithFeature(const Aws::String& value) { SetFeature(value); return *this;} - inline Resource& WithFeature(Aws::String&& value) { SetFeature(std::move(value)); return *this;} - inline Resource& WithFeature(const char* value) { SetFeature(value); return *this;} - ///@} - - ///@{ - - inline const Aws::Map& GetAttributes() const{ return m_attributes; } - inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } - inline void SetAttributes(const Aws::Map& value) { m_attributesHasBeenSet = true; m_attributes = value; } - inline void SetAttributes(Aws::Map&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } - inline Resource& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;} - inline Resource& WithAttributes(Aws::Map&& value) { SetAttributes(std::move(value)); return *this;} - inline Resource& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } - inline Resource& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } - inline Resource& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } - inline Resource& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; } - inline Resource& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } - inline Resource& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } - inline Resource& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } - ///@} - private: - - Aws::String m_type; - bool m_typeHasBeenSet = false; - - Aws::String m_name; - bool m_nameHasBeenSet = false; - - Aws::String m_arn; - bool m_arnHasBeenSet = false; - - Aws::String m_feature; - bool m_featureHasBeenSet = false; - - Aws::Map m_attributes; - bool m_attributesHasBeenSet = false; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ServiceUnavailableException.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ServiceUnavailableException.h deleted file mode 100644 index e2f332fe421..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/ServiceUnavailableException.h +++ /dev/null @@ -1,75 +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 Mobile -{ -namespace Model -{ - - /** - *

The service is temporarily unavailable. The request should be retried after - * some time delay.

See Also:

AWS - * API Reference

- */ - class ServiceUnavailableException - { - public: - AWS_MOBILE_API ServiceUnavailableException(); - AWS_MOBILE_API ServiceUnavailableException(Aws::Utils::Json::JsonView jsonValue); - AWS_MOBILE_API ServiceUnavailableException& operator=(Aws::Utils::Json::JsonView jsonValue); - AWS_MOBILE_API Aws::Utils::Json::JsonValue Jsonize() const; - - - ///@{ - - inline const Aws::String& GetRetryAfterSeconds() const{ return m_retryAfterSeconds; } - inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; } - inline void SetRetryAfterSeconds(const Aws::String& value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; } - inline void SetRetryAfterSeconds(Aws::String&& value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = std::move(value); } - inline void SetRetryAfterSeconds(const char* value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds.assign(value); } - inline ServiceUnavailableException& WithRetryAfterSeconds(const Aws::String& value) { SetRetryAfterSeconds(value); return *this;} - inline ServiceUnavailableException& WithRetryAfterSeconds(Aws::String&& value) { SetRetryAfterSeconds(std::move(value)); return *this;} - inline ServiceUnavailableException& WithRetryAfterSeconds(const char* value) { SetRetryAfterSeconds(value); return *this;} - ///@} - - ///@{ - - 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 ServiceUnavailableException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} - inline ServiceUnavailableException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} - inline ServiceUnavailableException& WithMessage(const char* value) { SetMessage(value); return *this;} - ///@} - private: - - Aws::String m_retryAfterSeconds; - bool m_retryAfterSecondsHasBeenSet = false; - - Aws::String m_message; - bool m_messageHasBeenSet = false; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/TooManyRequestsException.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/TooManyRequestsException.h deleted file mode 100644 index b7fef8b1c7c..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/TooManyRequestsException.h +++ /dev/null @@ -1,76 +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 Mobile -{ -namespace Model -{ - - /** - *

Too many requests have been received for this AWS account in too short a - * time. The request should be retried after some time delay.

See - * Also:

AWS - * API Reference

- */ - class TooManyRequestsException - { - public: - AWS_MOBILE_API TooManyRequestsException(); - AWS_MOBILE_API TooManyRequestsException(Aws::Utils::Json::JsonView jsonValue); - AWS_MOBILE_API TooManyRequestsException& operator=(Aws::Utils::Json::JsonView jsonValue); - AWS_MOBILE_API Aws::Utils::Json::JsonValue Jsonize() const; - - - ///@{ - - inline const Aws::String& GetRetryAfterSeconds() const{ return m_retryAfterSeconds; } - inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; } - inline void SetRetryAfterSeconds(const Aws::String& value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; } - inline void SetRetryAfterSeconds(Aws::String&& value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = std::move(value); } - inline void SetRetryAfterSeconds(const char* value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds.assign(value); } - inline TooManyRequestsException& WithRetryAfterSeconds(const Aws::String& value) { SetRetryAfterSeconds(value); return *this;} - inline TooManyRequestsException& WithRetryAfterSeconds(Aws::String&& value) { SetRetryAfterSeconds(std::move(value)); return *this;} - inline TooManyRequestsException& WithRetryAfterSeconds(const char* value) { SetRetryAfterSeconds(value); return *this;} - ///@} - - ///@{ - - 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 TooManyRequestsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} - inline TooManyRequestsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} - inline TooManyRequestsException& WithMessage(const char* value) { SetMessage(value); return *this;} - ///@} - private: - - Aws::String m_retryAfterSeconds; - bool m_retryAfterSecondsHasBeenSet = false; - - Aws::String m_message; - bool m_messageHasBeenSet = false; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/UpdateProjectRequest.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/UpdateProjectRequest.h deleted file mode 100644 index d78163a7f39..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/UpdateProjectRequest.h +++ /dev/null @@ -1,66 +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 Mobile -{ -namespace Model -{ - - /** - *

Request structure used for requests to update project configuration. - *

See Also:

AWS - * API Reference

- */ - class UpdateProjectRequest : public StreamingMobileRequest - { - public: - AWS_MOBILE_API UpdateProjectRequest(); - - // 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 "UpdateProject"; } - - AWS_MOBILE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; - - - ///@{ - /** - *

Unique project identifier.

- */ - inline const Aws::String& GetProjectId() const{ return m_projectId; } - inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; } - inline void SetProjectId(const Aws::String& value) { m_projectIdHasBeenSet = true; m_projectId = value; } - inline void SetProjectId(Aws::String&& value) { m_projectIdHasBeenSet = true; m_projectId = std::move(value); } - inline void SetProjectId(const char* value) { m_projectIdHasBeenSet = true; m_projectId.assign(value); } - inline UpdateProjectRequest& WithProjectId(const Aws::String& value) { SetProjectId(value); return *this;} - inline UpdateProjectRequest& WithProjectId(Aws::String&& value) { SetProjectId(std::move(value)); return *this;} - inline UpdateProjectRequest& WithProjectId(const char* value) { SetProjectId(value); return *this;} - ///@} - private: - - - Aws::String m_projectId; - bool m_projectIdHasBeenSet = false; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/UpdateProjectResult.h b/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/UpdateProjectResult.h deleted file mode 100644 index b74279ef1e2..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/include/aws/mobile/model/UpdateProjectResult.h +++ /dev/null @@ -1,72 +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 Mobile -{ -namespace Model -{ - /** - *

Result structure used for requests to updated project configuration. - *

See Also:

AWS - * API Reference

- */ - class UpdateProjectResult - { - public: - AWS_MOBILE_API UpdateProjectResult(); - AWS_MOBILE_API UpdateProjectResult(const Aws::AmazonWebServiceResult& result); - AWS_MOBILE_API UpdateProjectResult& operator=(const Aws::AmazonWebServiceResult& result); - - - ///@{ - /** - *

Detailed information about the updated AWS Mobile Hub project.

- */ - inline const ProjectDetails& GetDetails() const{ return m_details; } - inline void SetDetails(const ProjectDetails& value) { m_details = value; } - inline void SetDetails(ProjectDetails&& value) { m_details = std::move(value); } - inline UpdateProjectResult& WithDetails(const ProjectDetails& value) { SetDetails(value); return *this;} - inline UpdateProjectResult& WithDetails(ProjectDetails&& value) { SetDetails(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 UpdateProjectResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} - inline UpdateProjectResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} - inline UpdateProjectResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} - ///@} - private: - - ProjectDetails m_details; - - Aws::String m_requestId; - }; - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/source/MobileClient.cpp b/generated/src/aws-cpp-sdk-mobile/source/MobileClient.cpp deleted file mode 100644 index d8918e3a155..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/MobileClient.cpp +++ /dev/null @@ -1,450 +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::Mobile; -using namespace Aws::Mobile::Model; -using namespace Aws::Http; -using namespace Aws::Utils::Json; -using namespace smithy::components::tracing; -using ResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome; - -namespace Aws -{ - namespace Mobile - { - const char SERVICE_NAME[] = "AWSMobileHubService"; - const char ALLOCATION_TAG[] = "MobileClient"; - } -} -const char* MobileClient::GetServiceName() {return SERVICE_NAME;} -const char* MobileClient::GetAllocationTag() {return ALLOCATION_TAG;} - -MobileClient::MobileClient(const Mobile::MobileClientConfiguration& 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); -} - -MobileClient::MobileClient(const AWSCredentials& credentials, - std::shared_ptr endpointProvider, - const Mobile::MobileClientConfiguration& 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); -} - -MobileClient::MobileClient(const std::shared_ptr& credentialsProvider, - std::shared_ptr endpointProvider, - const Mobile::MobileClientConfiguration& 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 */ - MobileClient::MobileClient(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); -} - -MobileClient::MobileClient(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); -} - -MobileClient::MobileClient(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 */ -MobileClient::~MobileClient() -{ - ShutdownSdkClient(this, -1); -} - -std::shared_ptr& MobileClient::accessEndpointProvider() -{ - return m_endpointProvider; -} - -void MobileClient::init(const Mobile::MobileClientConfiguration& config) -{ - AWSClient::SetServiceClientName("Mobile"); - AWS_CHECK_PTR(SERVICE_NAME, m_endpointProvider); - m_endpointProvider->InitBuiltInParameters(config); -} - -void MobileClient::OverrideEndpoint(const Aws::String& endpoint) -{ - AWS_CHECK_PTR(SERVICE_NAME, m_endpointProvider); - m_endpointProvider->OverrideEndpoint(endpoint); -} - -CreateProjectOutcome MobileClient::CreateProject(const CreateProjectRequest& request) const -{ - AWS_OPERATION_GUARD(CreateProject); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateProject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateProject, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, CreateProject, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateProject", - {{ 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( - [&]()-> CreateProjectOutcome { - 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, CreateProject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/projects"); - return CreateProjectOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - -DeleteProjectOutcome MobileClient::DeleteProject(const DeleteProjectRequest& request) const -{ - AWS_OPERATION_GUARD(DeleteProject); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteProject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ProjectIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DeleteProject", "Required field: ProjectId, is not set"); - return DeleteProjectOutcome(Aws::Client::AWSError(MobileErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProjectId]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteProject, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DeleteProject, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteProject", - {{ 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( - [&]()-> DeleteProjectOutcome { - 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, DeleteProject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/projects/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetProjectId()); - return DeleteProjectOutcome(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()}}); -} - -DescribeBundleOutcome MobileClient::DescribeBundle(const DescribeBundleRequest& request) const -{ - AWS_OPERATION_GUARD(DescribeBundle); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeBundle, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.BundleIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DescribeBundle", "Required field: BundleId, is not set"); - return DescribeBundleOutcome(Aws::Client::AWSError(MobileErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BundleId]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeBundle, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeBundle, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeBundle", - {{ 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( - [&]()-> DescribeBundleOutcome { - 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, DescribeBundle, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/bundles/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetBundleId()); - return DescribeBundleOutcome(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()}}); -} - -DescribeProjectOutcome MobileClient::DescribeProject(const DescribeProjectRequest& request) const -{ - AWS_OPERATION_GUARD(DescribeProject); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, DescribeProject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ProjectIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("DescribeProject", "Required field: ProjectId, is not set"); - return DescribeProjectOutcome(Aws::Client::AWSError(MobileErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProjectId]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DescribeProject, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, DescribeProject, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DescribeProject", - {{ 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( - [&]()-> DescribeProjectOutcome { - 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, DescribeProject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/project"); - return DescribeProjectOutcome(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()}}); -} - -ExportBundleOutcome MobileClient::ExportBundle(const ExportBundleRequest& request) const -{ - AWS_OPERATION_GUARD(ExportBundle); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ExportBundle, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.BundleIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("ExportBundle", "Required field: BundleId, is not set"); - return ExportBundleOutcome(Aws::Client::AWSError(MobileErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [BundleId]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ExportBundle, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ExportBundle, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ExportBundle", - {{ 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( - [&]()-> ExportBundleOutcome { - 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, ExportBundle, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/bundles/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetBundleId()); - return ExportBundleOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - -ExportProjectOutcome MobileClient::ExportProject(const ExportProjectRequest& request) const -{ - AWS_OPERATION_GUARD(ExportProject); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ExportProject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ProjectIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("ExportProject", "Required field: ProjectId, is not set"); - return ExportProjectOutcome(Aws::Client::AWSError(MobileErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProjectId]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ExportProject, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ExportProject, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ExportProject", - {{ 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( - [&]()-> ExportProjectOutcome { - 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, ExportProject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/exports/"); - endpointResolutionOutcome.GetResult().AddPathSegment(request.GetProjectId()); - return ExportProjectOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); - }, - TracingUtils::SMITHY_CLIENT_DURATION_METRIC, - *meter, - {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); -} - -ListBundlesOutcome MobileClient::ListBundles(const ListBundlesRequest& request) const -{ - AWS_OPERATION_GUARD(ListBundles); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListBundles, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListBundles, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListBundles, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListBundles", - {{ 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( - [&]()-> ListBundlesOutcome { - 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, ListBundles, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/bundles"); - return ListBundlesOutcome(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()}}); -} - -ListProjectsOutcome MobileClient::ListProjects(const ListProjectsRequest& request) const -{ - AWS_OPERATION_GUARD(ListProjects); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListProjects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListProjects, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, ListProjects, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListProjects", - {{ 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( - [&]()-> ListProjectsOutcome { - 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, ListProjects, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/projects"); - return ListProjectsOutcome(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()}}); -} - -UpdateProjectOutcome MobileClient::UpdateProject(const UpdateProjectRequest& request) const -{ - AWS_OPERATION_GUARD(UpdateProject); - AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateProject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); - if (!request.ProjectIdHasBeenSet()) - { - AWS_LOGSTREAM_ERROR("UpdateProject", "Required field: ProjectId, is not set"); - return UpdateProjectOutcome(Aws::Client::AWSError(MobileErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProjectId]", false)); - } - AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateProject, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); - auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); - AWS_OPERATION_CHECK_PTR(meter, UpdateProject, CoreErrors, CoreErrors::NOT_INITIALIZED); - auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateProject", - {{ 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( - [&]()-> UpdateProjectOutcome { - 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, UpdateProject, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); - endpointResolutionOutcome.GetResult().AddPathSegments("/update"); - return UpdateProjectOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, 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-mobile/source/MobileEndpointProvider.cpp b/generated/src/aws-cpp-sdk-mobile/source/MobileEndpointProvider.cpp deleted file mode 100644 index c3fd0c43187..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/MobileEndpointProvider.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 Mobile -{ -namespace Endpoint -{ -} // namespace Endpoint -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/source/MobileEndpointRules.cpp b/generated/src/aws-cpp-sdk-mobile/source/MobileEndpointRules.cpp deleted file mode 100644 index feae6ff1e21..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/MobileEndpointRules.cpp +++ /dev/null @@ -1,165 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -namespace Aws -{ -namespace Mobile -{ -const size_t MobileEndpointRules::RulesBlobStrLen = 3472; -const size_t MobileEndpointRules::RulesBlobSize = 3473; - -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',':','/','/','m','o','b','i', -'l','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',':','/','/','m','o','b','i','l','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',':','/','/','m','o','b','i','l','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',':','/','/','m','o','b','i','l','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* MobileEndpointRules::GetRulesBlob() -{ - return RulesBlob.data(); -} - -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/source/MobileErrorMarshaller.cpp b/generated/src/aws-cpp-sdk-mobile/source/MobileErrorMarshaller.cpp deleted file mode 100644 index af05c4f76c0..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/MobileErrorMarshaller.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::Mobile; - -AWSError MobileErrorMarshaller::FindErrorByName(const char* errorName) const -{ - AWSError error = MobileErrorMapper::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-mobile/source/MobileErrors.cpp b/generated/src/aws-cpp-sdk-mobile/source/MobileErrors.cpp deleted file mode 100644 index 13730ce9a66..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/MobileErrors.cpp +++ /dev/null @@ -1,84 +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::Client; -using namespace Aws::Utils; -using namespace Aws::Mobile; -using namespace Aws::Mobile::Model; - -namespace Aws -{ -namespace Mobile -{ -template<> AWS_MOBILE_API ServiceUnavailableException MobileError::GetModeledError() -{ - assert(this->GetErrorType() == MobileErrors::SERVICE_UNAVAILABLE); - return ServiceUnavailableException(this->GetJsonPayload().View()); -} - -template<> AWS_MOBILE_API LimitExceededException MobileError::GetModeledError() -{ - assert(this->GetErrorType() == MobileErrors::LIMIT_EXCEEDED); - return LimitExceededException(this->GetJsonPayload().View()); -} - -template<> AWS_MOBILE_API TooManyRequestsException MobileError::GetModeledError() -{ - assert(this->GetErrorType() == MobileErrors::TOO_MANY_REQUESTS); - return TooManyRequestsException(this->GetJsonPayload().View()); -} - -namespace MobileErrorMapper -{ - -static const int NOT_FOUND_HASH = HashingUtils::HashString("NotFoundException"); -static const int UNAUTHORIZED_HASH = HashingUtils::HashString("UnauthorizedException"); -static const int LIMIT_EXCEEDED_HASH = HashingUtils::HashString("LimitExceededException"); -static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException"); -static const int ACCOUNT_ACTION_REQUIRED_HASH = HashingUtils::HashString("AccountActionRequiredException"); -static const int BAD_REQUEST_HASH = HashingUtils::HashString("BadRequestException"); - - -AWSError GetErrorForName(const char* errorName) -{ - int hashCode = HashingUtils::HashString(errorName); - - if (hashCode == NOT_FOUND_HASH) - { - return AWSError(static_cast(MobileErrors::NOT_FOUND), RetryableType::NOT_RETRYABLE); - } - else if (hashCode == UNAUTHORIZED_HASH) - { - return AWSError(static_cast(MobileErrors::UNAUTHORIZED), RetryableType::NOT_RETRYABLE); - } - else if (hashCode == LIMIT_EXCEEDED_HASH) - { - return AWSError(static_cast(MobileErrors::LIMIT_EXCEEDED), RetryableType::RETRYABLE); - } - else if (hashCode == TOO_MANY_REQUESTS_HASH) - { - return AWSError(static_cast(MobileErrors::TOO_MANY_REQUESTS), RetryableType::RETRYABLE); - } - else if (hashCode == ACCOUNT_ACTION_REQUIRED_HASH) - { - return AWSError(static_cast(MobileErrors::ACCOUNT_ACTION_REQUIRED), RetryableType::NOT_RETRYABLE); - } - else if (hashCode == BAD_REQUEST_HASH) - { - return AWSError(static_cast(MobileErrors::BAD_REQUEST), RetryableType::NOT_RETRYABLE); - } - return AWSError(CoreErrors::UNKNOWN, false); -} - -} // namespace MobileErrorMapper -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/source/MobileRequest.cpp b/generated/src/aws-cpp-sdk-mobile/source/MobileRequest.cpp deleted file mode 100644 index 9a8866666cd..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/MobileRequest.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 Mobile -{ -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/BundleDetails.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/BundleDetails.cpp deleted file mode 100644 index 0cf1a87cba3..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/BundleDetails.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 Mobile -{ -namespace Model -{ - -BundleDetails::BundleDetails() : - m_bundleIdHasBeenSet(false), - m_titleHasBeenSet(false), - m_versionHasBeenSet(false), - m_descriptionHasBeenSet(false), - m_iconUrlHasBeenSet(false), - m_availablePlatformsHasBeenSet(false) -{ -} - -BundleDetails::BundleDetails(JsonView jsonValue) - : BundleDetails() -{ - *this = jsonValue; -} - -BundleDetails& BundleDetails::operator =(JsonView jsonValue) -{ - if(jsonValue.ValueExists("bundleId")) - { - m_bundleId = jsonValue.GetString("bundleId"); - - m_bundleIdHasBeenSet = true; - } - - if(jsonValue.ValueExists("title")) - { - m_title = jsonValue.GetString("title"); - - m_titleHasBeenSet = true; - } - - if(jsonValue.ValueExists("version")) - { - m_version = jsonValue.GetString("version"); - - m_versionHasBeenSet = true; - } - - if(jsonValue.ValueExists("description")) - { - m_description = jsonValue.GetString("description"); - - m_descriptionHasBeenSet = true; - } - - if(jsonValue.ValueExists("iconUrl")) - { - m_iconUrl = jsonValue.GetString("iconUrl"); - - m_iconUrlHasBeenSet = true; - } - - if(jsonValue.ValueExists("availablePlatforms")) - { - Aws::Utils::Array availablePlatformsJsonList = jsonValue.GetArray("availablePlatforms"); - for(unsigned availablePlatformsIndex = 0; availablePlatformsIndex < availablePlatformsJsonList.GetLength(); ++availablePlatformsIndex) - { - m_availablePlatforms.push_back(PlatformMapper::GetPlatformForName(availablePlatformsJsonList[availablePlatformsIndex].AsString())); - } - m_availablePlatformsHasBeenSet = true; - } - - return *this; -} - -JsonValue BundleDetails::Jsonize() const -{ - JsonValue payload; - - if(m_bundleIdHasBeenSet) - { - payload.WithString("bundleId", m_bundleId); - - } - - if(m_titleHasBeenSet) - { - payload.WithString("title", m_title); - - } - - if(m_versionHasBeenSet) - { - payload.WithString("version", m_version); - - } - - if(m_descriptionHasBeenSet) - { - payload.WithString("description", m_description); - - } - - if(m_iconUrlHasBeenSet) - { - payload.WithString("iconUrl", m_iconUrl); - - } - - if(m_availablePlatformsHasBeenSet) - { - Aws::Utils::Array availablePlatformsJsonList(m_availablePlatforms.size()); - for(unsigned availablePlatformsIndex = 0; availablePlatformsIndex < availablePlatformsJsonList.GetLength(); ++availablePlatformsIndex) - { - availablePlatformsJsonList[availablePlatformsIndex].AsString(PlatformMapper::GetNameForPlatform(m_availablePlatforms[availablePlatformsIndex])); - } - payload.WithArray("availablePlatforms", std::move(availablePlatformsJsonList)); - - } - - return payload; -} - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/CreateProjectRequest.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/CreateProjectRequest.cpp deleted file mode 100644 index fba30c67a62..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/CreateProjectRequest.cpp +++ /dev/null @@ -1,53 +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::Mobile::Model; -using namespace Aws::Utils::Stream; -using namespace Aws::Utils; -using namespace Aws::Http; -using namespace Aws; - -CreateProjectRequest::CreateProjectRequest() : - m_nameHasBeenSet(false), - m_regionHasBeenSet(false), - m_snapshotIdHasBeenSet(false) -{ -} - - -void CreateProjectRequest::AddQueryStringParameters(URI& uri) const -{ - Aws::StringStream ss; - if(m_nameHasBeenSet) - { - ss << m_name; - uri.AddQueryStringParameter("name", ss.str()); - ss.str(""); - } - - if(m_regionHasBeenSet) - { - ss << m_region; - uri.AddQueryStringParameter("region", ss.str()); - ss.str(""); - } - - if(m_snapshotIdHasBeenSet) - { - ss << m_snapshotId; - uri.AddQueryStringParameter("snapshotId", ss.str()); - ss.str(""); - } - -} - diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/CreateProjectResult.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/CreateProjectResult.cpp deleted file mode 100644 index 3b984ea7cdb..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/CreateProjectResult.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::Mobile::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -CreateProjectResult::CreateProjectResult() -{ -} - -CreateProjectResult::CreateProjectResult(const Aws::AmazonWebServiceResult& result) -{ - *this = result; -} - -CreateProjectResult& CreateProjectResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("details")) - { - m_details = jsonValue.GetObject("details"); - - } - - - 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-mobile/source/model/DeleteProjectRequest.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/DeleteProjectRequest.cpp deleted file mode 100644 index a4d90631fe4..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/DeleteProjectRequest.cpp +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -#include - -using namespace Aws::Mobile::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; - -DeleteProjectRequest::DeleteProjectRequest() : - m_projectIdHasBeenSet(false) -{ -} - -Aws::String DeleteProjectRequest::SerializePayload() const -{ - return {}; -} - - - - diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/DeleteProjectResult.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/DeleteProjectResult.cpp deleted file mode 100644 index 1dcd74ebbbb..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/DeleteProjectResult.cpp +++ /dev/null @@ -1,60 +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::Mobile::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -DeleteProjectResult::DeleteProjectResult() -{ -} - -DeleteProjectResult::DeleteProjectResult(const Aws::AmazonWebServiceResult& result) -{ - *this = result; -} - -DeleteProjectResult& DeleteProjectResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("deletedResources")) - { - Aws::Utils::Array deletedResourcesJsonList = jsonValue.GetArray("deletedResources"); - for(unsigned deletedResourcesIndex = 0; deletedResourcesIndex < deletedResourcesJsonList.GetLength(); ++deletedResourcesIndex) - { - m_deletedResources.push_back(deletedResourcesJsonList[deletedResourcesIndex].AsObject()); - } - } - - if(jsonValue.ValueExists("orphanedResources")) - { - Aws::Utils::Array orphanedResourcesJsonList = jsonValue.GetArray("orphanedResources"); - for(unsigned orphanedResourcesIndex = 0; orphanedResourcesIndex < orphanedResourcesJsonList.GetLength(); ++orphanedResourcesIndex) - { - m_orphanedResources.push_back(orphanedResourcesJsonList[orphanedResourcesIndex].AsObject()); - } - } - - - 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-mobile/source/model/DescribeBundleRequest.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/DescribeBundleRequest.cpp deleted file mode 100644 index e259efc4353..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/DescribeBundleRequest.cpp +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -#include - -using namespace Aws::Mobile::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; - -DescribeBundleRequest::DescribeBundleRequest() : - m_bundleIdHasBeenSet(false) -{ -} - -Aws::String DescribeBundleRequest::SerializePayload() const -{ - return {}; -} - - - - diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/DescribeBundleResult.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/DescribeBundleResult.cpp deleted file mode 100644 index 72c1e5e0b20..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/DescribeBundleResult.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::Mobile::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -DescribeBundleResult::DescribeBundleResult() -{ -} - -DescribeBundleResult::DescribeBundleResult(const Aws::AmazonWebServiceResult& result) -{ - *this = result; -} - -DescribeBundleResult& DescribeBundleResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("details")) - { - m_details = jsonValue.GetObject("details"); - - } - - - 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-mobile/source/model/DescribeProjectRequest.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/DescribeProjectRequest.cpp deleted file mode 100644 index 0fba592c724..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/DescribeProjectRequest.cpp +++ /dev/null @@ -1,50 +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::Mobile::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws::Http; - -DescribeProjectRequest::DescribeProjectRequest() : - m_projectIdHasBeenSet(false), - m_syncFromResources(false), - m_syncFromResourcesHasBeenSet(false) -{ -} - -Aws::String DescribeProjectRequest::SerializePayload() const -{ - return {}; -} - -void DescribeProjectRequest::AddQueryStringParameters(URI& uri) const -{ - Aws::StringStream ss; - if(m_projectIdHasBeenSet) - { - ss << m_projectId; - uri.AddQueryStringParameter("projectId", ss.str()); - ss.str(""); - } - - if(m_syncFromResourcesHasBeenSet) - { - ss << m_syncFromResources; - uri.AddQueryStringParameter("syncFromResources", ss.str()); - ss.str(""); - } - -} - - - diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/DescribeProjectResult.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/DescribeProjectResult.cpp deleted file mode 100644 index 31e5f43d2df..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/DescribeProjectResult.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::Mobile::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -DescribeProjectResult::DescribeProjectResult() -{ -} - -DescribeProjectResult::DescribeProjectResult(const Aws::AmazonWebServiceResult& result) -{ - *this = result; -} - -DescribeProjectResult& DescribeProjectResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("details")) - { - m_details = jsonValue.GetObject("details"); - - } - - - 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-mobile/source/model/ExportBundleRequest.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/ExportBundleRequest.cpp deleted file mode 100644 index a1cea65e704..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/ExportBundleRequest.cpp +++ /dev/null @@ -1,51 +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::Mobile::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws::Http; - -ExportBundleRequest::ExportBundleRequest() : - m_bundleIdHasBeenSet(false), - m_projectIdHasBeenSet(false), - m_platform(Platform::NOT_SET), - m_platformHasBeenSet(false) -{ -} - -Aws::String ExportBundleRequest::SerializePayload() const -{ - return {}; -} - -void ExportBundleRequest::AddQueryStringParameters(URI& uri) const -{ - Aws::StringStream ss; - if(m_projectIdHasBeenSet) - { - ss << m_projectId; - uri.AddQueryStringParameter("projectId", ss.str()); - ss.str(""); - } - - if(m_platformHasBeenSet) - { - ss << PlatformMapper::GetNameForPlatform(m_platform); - uri.AddQueryStringParameter("platform", ss.str()); - ss.str(""); - } - -} - - - diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/ExportBundleResult.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/ExportBundleResult.cpp deleted file mode 100644 index 1ca1bef0a01..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/ExportBundleResult.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::Mobile::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -ExportBundleResult::ExportBundleResult() -{ -} - -ExportBundleResult::ExportBundleResult(const Aws::AmazonWebServiceResult& result) -{ - *this = result; -} - -ExportBundleResult& ExportBundleResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("downloadUrl")) - { - m_downloadUrl = jsonValue.GetString("downloadUrl"); - - } - - - 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-mobile/source/model/ExportProjectRequest.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/ExportProjectRequest.cpp deleted file mode 100644 index 1cfffc92010..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/ExportProjectRequest.cpp +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include -#include - -#include - -using namespace Aws::Mobile::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; - -ExportProjectRequest::ExportProjectRequest() : - m_projectIdHasBeenSet(false) -{ -} - -Aws::String ExportProjectRequest::SerializePayload() const -{ - return {}; -} - - - - diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/ExportProjectResult.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/ExportProjectResult.cpp deleted file mode 100644 index 1ecf920dd10..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/ExportProjectResult.cpp +++ /dev/null @@ -1,60 +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::Mobile::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -ExportProjectResult::ExportProjectResult() -{ -} - -ExportProjectResult::ExportProjectResult(const Aws::AmazonWebServiceResult& result) -{ - *this = result; -} - -ExportProjectResult& ExportProjectResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("downloadUrl")) - { - m_downloadUrl = jsonValue.GetString("downloadUrl"); - - } - - if(jsonValue.ValueExists("shareUrl")) - { - m_shareUrl = jsonValue.GetString("shareUrl"); - - } - - if(jsonValue.ValueExists("snapshotId")) - { - m_snapshotId = jsonValue.GetString("snapshotId"); - - } - - - 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-mobile/source/model/LimitExceededException.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/LimitExceededException.cpp deleted file mode 100644 index 63f68fa8365..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/LimitExceededException.cpp +++ /dev/null @@ -1,61 +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::Json; -using namespace Aws::Utils; - -namespace Aws -{ -namespace Mobile -{ -namespace Model -{ - -LimitExceededException::LimitExceededException() : - m_retryAfterSecondsHasBeenSet(false), - m_messageHasBeenSet(false) -{ -} - -LimitExceededException::LimitExceededException(JsonView jsonValue) - : LimitExceededException() -{ - *this = jsonValue; -} - -LimitExceededException& LimitExceededException::operator =(JsonView jsonValue) -{ - if(jsonValue.ValueExists("message")) - { - m_message = jsonValue.GetString("message"); - - m_messageHasBeenSet = true; - } - - return *this; -} - -JsonValue LimitExceededException::Jsonize() const -{ - JsonValue payload; - - if(m_messageHasBeenSet) - { - payload.WithString("message", m_message); - - } - - return payload; -} - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/ListBundlesRequest.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/ListBundlesRequest.cpp deleted file mode 100644 index d547465c518..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/ListBundlesRequest.cpp +++ /dev/null @@ -1,50 +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::Mobile::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws::Http; - -ListBundlesRequest::ListBundlesRequest() : - m_maxResults(0), - m_maxResultsHasBeenSet(false), - m_nextTokenHasBeenSet(false) -{ -} - -Aws::String ListBundlesRequest::SerializePayload() const -{ - return {}; -} - -void ListBundlesRequest::AddQueryStringParameters(URI& uri) const -{ - Aws::StringStream ss; - if(m_maxResultsHasBeenSet) - { - ss << m_maxResults; - uri.AddQueryStringParameter("maxResults", ss.str()); - ss.str(""); - } - - if(m_nextTokenHasBeenSet) - { - ss << m_nextToken; - uri.AddQueryStringParameter("nextToken", ss.str()); - ss.str(""); - } - -} - - - diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/ListBundlesResult.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/ListBundlesResult.cpp deleted file mode 100644 index 30d36541c62..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/ListBundlesResult.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::Mobile::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -ListBundlesResult::ListBundlesResult() -{ -} - -ListBundlesResult::ListBundlesResult(const Aws::AmazonWebServiceResult& result) -{ - *this = result; -} - -ListBundlesResult& ListBundlesResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("bundleList")) - { - Aws::Utils::Array bundleListJsonList = jsonValue.GetArray("bundleList"); - for(unsigned bundleListIndex = 0; bundleListIndex < bundleListJsonList.GetLength(); ++bundleListIndex) - { - m_bundleList.push_back(bundleListJsonList[bundleListIndex].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-mobile/source/model/ListProjectsRequest.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/ListProjectsRequest.cpp deleted file mode 100644 index a72d9ce45e0..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/ListProjectsRequest.cpp +++ /dev/null @@ -1,50 +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::Mobile::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws::Http; - -ListProjectsRequest::ListProjectsRequest() : - m_maxResults(0), - m_maxResultsHasBeenSet(false), - m_nextTokenHasBeenSet(false) -{ -} - -Aws::String ListProjectsRequest::SerializePayload() const -{ - return {}; -} - -void ListProjectsRequest::AddQueryStringParameters(URI& uri) const -{ - Aws::StringStream ss; - if(m_maxResultsHasBeenSet) - { - ss << m_maxResults; - uri.AddQueryStringParameter("maxResults", ss.str()); - ss.str(""); - } - - if(m_nextTokenHasBeenSet) - { - ss << m_nextToken; - uri.AddQueryStringParameter("nextToken", ss.str()); - ss.str(""); - } - -} - - - diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/ListProjectsResult.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/ListProjectsResult.cpp deleted file mode 100644 index d691d687fcc..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/ListProjectsResult.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::Mobile::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -ListProjectsResult::ListProjectsResult() -{ -} - -ListProjectsResult::ListProjectsResult(const Aws::AmazonWebServiceResult& result) -{ - *this = result; -} - -ListProjectsResult& ListProjectsResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("projects")) - { - Aws::Utils::Array projectsJsonList = jsonValue.GetArray("projects"); - for(unsigned projectsIndex = 0; projectsIndex < projectsJsonList.GetLength(); ++projectsIndex) - { - m_projects.push_back(projectsJsonList[projectsIndex].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-mobile/source/model/Platform.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/Platform.cpp deleted file mode 100644 index 7c5e17db463..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/Platform.cpp +++ /dev/null @@ -1,107 +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 Mobile - { - namespace Model - { - namespace PlatformMapper - { - - static const int OSX_HASH = HashingUtils::HashString("OSX"); - static const int WINDOWS_HASH = HashingUtils::HashString("WINDOWS"); - static const int LINUX_HASH = HashingUtils::HashString("LINUX"); - static const int OBJC_HASH = HashingUtils::HashString("OBJC"); - static const int SWIFT_HASH = HashingUtils::HashString("SWIFT"); - static const int ANDROID__HASH = HashingUtils::HashString("ANDROID"); - static const int JAVASCRIPT_HASH = HashingUtils::HashString("JAVASCRIPT"); - - - Platform GetPlatformForName(const Aws::String& name) - { - int hashCode = HashingUtils::HashString(name.c_str()); - if (hashCode == OSX_HASH) - { - return Platform::OSX; - } - else if (hashCode == WINDOWS_HASH) - { - return Platform::WINDOWS; - } - else if (hashCode == LINUX_HASH) - { - return Platform::LINUX; - } - else if (hashCode == OBJC_HASH) - { - return Platform::OBJC; - } - else if (hashCode == SWIFT_HASH) - { - return Platform::SWIFT; - } - else if (hashCode == ANDROID__HASH) - { - return Platform::ANDROID_; - } - else if (hashCode == JAVASCRIPT_HASH) - { - return Platform::JAVASCRIPT; - } - EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); - if(overflowContainer) - { - overflowContainer->StoreOverflow(hashCode, name); - return static_cast(hashCode); - } - - return Platform::NOT_SET; - } - - Aws::String GetNameForPlatform(Platform enumValue) - { - switch(enumValue) - { - case Platform::NOT_SET: - return {}; - case Platform::OSX: - return "OSX"; - case Platform::WINDOWS: - return "WINDOWS"; - case Platform::LINUX: - return "LINUX"; - case Platform::OBJC: - return "OBJC"; - case Platform::SWIFT: - return "SWIFT"; - case Platform::ANDROID_: - return "ANDROID"; - case Platform::JAVASCRIPT: - return "JAVASCRIPT"; - default: - EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); - if(overflowContainer) - { - return overflowContainer->RetrieveOverflow(static_cast(enumValue)); - } - - return {}; - } - } - - } // namespace PlatformMapper - } // namespace Model - } // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/ProjectDetails.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/ProjectDetails.cpp deleted file mode 100644 index 1e81cee23e2..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/ProjectDetails.cpp +++ /dev/null @@ -1,163 +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 Mobile -{ -namespace Model -{ - -ProjectDetails::ProjectDetails() : - m_nameHasBeenSet(false), - m_projectIdHasBeenSet(false), - m_regionHasBeenSet(false), - m_state(ProjectState::NOT_SET), - m_stateHasBeenSet(false), - m_createdDateHasBeenSet(false), - m_lastUpdatedDateHasBeenSet(false), - m_consoleUrlHasBeenSet(false), - m_resourcesHasBeenSet(false) -{ -} - -ProjectDetails::ProjectDetails(JsonView jsonValue) - : ProjectDetails() -{ - *this = jsonValue; -} - -ProjectDetails& ProjectDetails::operator =(JsonView jsonValue) -{ - if(jsonValue.ValueExists("name")) - { - m_name = jsonValue.GetString("name"); - - m_nameHasBeenSet = true; - } - - if(jsonValue.ValueExists("projectId")) - { - m_projectId = jsonValue.GetString("projectId"); - - m_projectIdHasBeenSet = true; - } - - if(jsonValue.ValueExists("region")) - { - m_region = jsonValue.GetString("region"); - - m_regionHasBeenSet = true; - } - - if(jsonValue.ValueExists("state")) - { - m_state = ProjectStateMapper::GetProjectStateForName(jsonValue.GetString("state")); - - m_stateHasBeenSet = true; - } - - if(jsonValue.ValueExists("createdDate")) - { - m_createdDate = jsonValue.GetDouble("createdDate"); - - m_createdDateHasBeenSet = true; - } - - if(jsonValue.ValueExists("lastUpdatedDate")) - { - m_lastUpdatedDate = jsonValue.GetDouble("lastUpdatedDate"); - - m_lastUpdatedDateHasBeenSet = true; - } - - if(jsonValue.ValueExists("consoleUrl")) - { - m_consoleUrl = jsonValue.GetString("consoleUrl"); - - m_consoleUrlHasBeenSet = true; - } - - if(jsonValue.ValueExists("resources")) - { - Aws::Utils::Array resourcesJsonList = jsonValue.GetArray("resources"); - for(unsigned resourcesIndex = 0; resourcesIndex < resourcesJsonList.GetLength(); ++resourcesIndex) - { - m_resources.push_back(resourcesJsonList[resourcesIndex].AsObject()); - } - m_resourcesHasBeenSet = true; - } - - return *this; -} - -JsonValue ProjectDetails::Jsonize() const -{ - JsonValue payload; - - if(m_nameHasBeenSet) - { - payload.WithString("name", m_name); - - } - - if(m_projectIdHasBeenSet) - { - payload.WithString("projectId", m_projectId); - - } - - if(m_regionHasBeenSet) - { - payload.WithString("region", m_region); - - } - - if(m_stateHasBeenSet) - { - payload.WithString("state", ProjectStateMapper::GetNameForProjectState(m_state)); - } - - if(m_createdDateHasBeenSet) - { - payload.WithDouble("createdDate", m_createdDate.SecondsWithMSPrecision()); - } - - if(m_lastUpdatedDateHasBeenSet) - { - payload.WithDouble("lastUpdatedDate", m_lastUpdatedDate.SecondsWithMSPrecision()); - } - - if(m_consoleUrlHasBeenSet) - { - payload.WithString("consoleUrl", m_consoleUrl); - - } - - if(m_resourcesHasBeenSet) - { - Aws::Utils::Array resourcesJsonList(m_resources.size()); - for(unsigned resourcesIndex = 0; resourcesIndex < resourcesJsonList.GetLength(); ++resourcesIndex) - { - resourcesJsonList[resourcesIndex].AsObject(m_resources[resourcesIndex].Jsonize()); - } - payload.WithArray("resources", std::move(resourcesJsonList)); - - } - - return payload; -} - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/ProjectState.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/ProjectState.cpp deleted file mode 100644 index fea872ff132..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/ProjectState.cpp +++ /dev/null @@ -1,79 +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 Mobile - { - namespace Model - { - namespace ProjectStateMapper - { - - static const int NORMAL_HASH = HashingUtils::HashString("NORMAL"); - static const int SYNCING_HASH = HashingUtils::HashString("SYNCING"); - static const int IMPORTING_HASH = HashingUtils::HashString("IMPORTING"); - - - ProjectState GetProjectStateForName(const Aws::String& name) - { - int hashCode = HashingUtils::HashString(name.c_str()); - if (hashCode == NORMAL_HASH) - { - return ProjectState::NORMAL; - } - else if (hashCode == SYNCING_HASH) - { - return ProjectState::SYNCING; - } - else if (hashCode == IMPORTING_HASH) - { - return ProjectState::IMPORTING; - } - EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); - if(overflowContainer) - { - overflowContainer->StoreOverflow(hashCode, name); - return static_cast(hashCode); - } - - return ProjectState::NOT_SET; - } - - Aws::String GetNameForProjectState(ProjectState enumValue) - { - switch(enumValue) - { - case ProjectState::NOT_SET: - return {}; - case ProjectState::NORMAL: - return "NORMAL"; - case ProjectState::SYNCING: - return "SYNCING"; - case ProjectState::IMPORTING: - return "IMPORTING"; - default: - EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); - if(overflowContainer) - { - return overflowContainer->RetrieveOverflow(static_cast(enumValue)); - } - - return {}; - } - } - - } // namespace ProjectStateMapper - } // namespace Model - } // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/ProjectSummary.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/ProjectSummary.cpp deleted file mode 100644 index 54f851619de..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/ProjectSummary.cpp +++ /dev/null @@ -1,73 +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 Mobile -{ -namespace Model -{ - -ProjectSummary::ProjectSummary() : - m_nameHasBeenSet(false), - m_projectIdHasBeenSet(false) -{ -} - -ProjectSummary::ProjectSummary(JsonView jsonValue) - : ProjectSummary() -{ - *this = jsonValue; -} - -ProjectSummary& ProjectSummary::operator =(JsonView jsonValue) -{ - if(jsonValue.ValueExists("name")) - { - m_name = jsonValue.GetString("name"); - - m_nameHasBeenSet = true; - } - - if(jsonValue.ValueExists("projectId")) - { - m_projectId = jsonValue.GetString("projectId"); - - m_projectIdHasBeenSet = true; - } - - return *this; -} - -JsonValue ProjectSummary::Jsonize() const -{ - JsonValue payload; - - if(m_nameHasBeenSet) - { - payload.WithString("name", m_name); - - } - - if(m_projectIdHasBeenSet) - { - payload.WithString("projectId", m_projectId); - - } - - return payload; -} - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/Resource.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/Resource.cpp deleted file mode 100644 index b6869b08c81..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/Resource.cpp +++ /dev/null @@ -1,123 +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 Mobile -{ -namespace Model -{ - -Resource::Resource() : - m_typeHasBeenSet(false), - m_nameHasBeenSet(false), - m_arnHasBeenSet(false), - m_featureHasBeenSet(false), - m_attributesHasBeenSet(false) -{ -} - -Resource::Resource(JsonView jsonValue) - : Resource() -{ - *this = jsonValue; -} - -Resource& Resource::operator =(JsonView jsonValue) -{ - if(jsonValue.ValueExists("type")) - { - m_type = jsonValue.GetString("type"); - - m_typeHasBeenSet = true; - } - - if(jsonValue.ValueExists("name")) - { - m_name = jsonValue.GetString("name"); - - m_nameHasBeenSet = true; - } - - if(jsonValue.ValueExists("arn")) - { - m_arn = jsonValue.GetString("arn"); - - m_arnHasBeenSet = true; - } - - if(jsonValue.ValueExists("feature")) - { - m_feature = jsonValue.GetString("feature"); - - m_featureHasBeenSet = true; - } - - if(jsonValue.ValueExists("attributes")) - { - Aws::Map attributesJsonMap = jsonValue.GetObject("attributes").GetAllObjects(); - for(auto& attributesItem : attributesJsonMap) - { - m_attributes[attributesItem.first] = attributesItem.second.AsString(); - } - m_attributesHasBeenSet = true; - } - - return *this; -} - -JsonValue Resource::Jsonize() const -{ - JsonValue payload; - - if(m_typeHasBeenSet) - { - payload.WithString("type", m_type); - - } - - if(m_nameHasBeenSet) - { - payload.WithString("name", m_name); - - } - - if(m_arnHasBeenSet) - { - payload.WithString("arn", m_arn); - - } - - if(m_featureHasBeenSet) - { - payload.WithString("feature", m_feature); - - } - - if(m_attributesHasBeenSet) - { - JsonValue attributesJsonMap; - for(auto& attributesItem : m_attributes) - { - attributesJsonMap.WithString(attributesItem.first, attributesItem.second); - } - payload.WithObject("attributes", std::move(attributesJsonMap)); - - } - - return payload; -} - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/ServiceUnavailableException.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/ServiceUnavailableException.cpp deleted file mode 100644 index 7efdf6e3d16..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/ServiceUnavailableException.cpp +++ /dev/null @@ -1,61 +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::Json; -using namespace Aws::Utils; - -namespace Aws -{ -namespace Mobile -{ -namespace Model -{ - -ServiceUnavailableException::ServiceUnavailableException() : - m_retryAfterSecondsHasBeenSet(false), - m_messageHasBeenSet(false) -{ -} - -ServiceUnavailableException::ServiceUnavailableException(JsonView jsonValue) - : ServiceUnavailableException() -{ - *this = jsonValue; -} - -ServiceUnavailableException& ServiceUnavailableException::operator =(JsonView jsonValue) -{ - if(jsonValue.ValueExists("message")) - { - m_message = jsonValue.GetString("message"); - - m_messageHasBeenSet = true; - } - - return *this; -} - -JsonValue ServiceUnavailableException::Jsonize() const -{ - JsonValue payload; - - if(m_messageHasBeenSet) - { - payload.WithString("message", m_message); - - } - - return payload; -} - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/TooManyRequestsException.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/TooManyRequestsException.cpp deleted file mode 100644 index 522e27eebf7..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/TooManyRequestsException.cpp +++ /dev/null @@ -1,61 +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::Json; -using namespace Aws::Utils; - -namespace Aws -{ -namespace Mobile -{ -namespace Model -{ - -TooManyRequestsException::TooManyRequestsException() : - m_retryAfterSecondsHasBeenSet(false), - m_messageHasBeenSet(false) -{ -} - -TooManyRequestsException::TooManyRequestsException(JsonView jsonValue) - : TooManyRequestsException() -{ - *this = jsonValue; -} - -TooManyRequestsException& TooManyRequestsException::operator =(JsonView jsonValue) -{ - if(jsonValue.ValueExists("message")) - { - m_message = jsonValue.GetString("message"); - - m_messageHasBeenSet = true; - } - - return *this; -} - -JsonValue TooManyRequestsException::Jsonize() const -{ - JsonValue payload; - - if(m_messageHasBeenSet) - { - payload.WithString("message", m_message); - - } - - return payload; -} - -} // namespace Model -} // namespace Mobile -} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/UpdateProjectRequest.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/UpdateProjectRequest.cpp deleted file mode 100644 index 4f2cb27bb8f..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/UpdateProjectRequest.cpp +++ /dev/null @@ -1,37 +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::Mobile::Model; -using namespace Aws::Utils::Stream; -using namespace Aws::Utils; -using namespace Aws::Http; -using namespace Aws; - -UpdateProjectRequest::UpdateProjectRequest() : - m_projectIdHasBeenSet(false) -{ -} - - -void UpdateProjectRequest::AddQueryStringParameters(URI& uri) const -{ - Aws::StringStream ss; - if(m_projectIdHasBeenSet) - { - ss << m_projectId; - uri.AddQueryStringParameter("projectId", ss.str()); - ss.str(""); - } - -} - diff --git a/generated/src/aws-cpp-sdk-mobile/source/model/UpdateProjectResult.cpp b/generated/src/aws-cpp-sdk-mobile/source/model/UpdateProjectResult.cpp deleted file mode 100644 index d29ca9ee39f..00000000000 --- a/generated/src/aws-cpp-sdk-mobile/source/model/UpdateProjectResult.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::Mobile::Model; -using namespace Aws::Utils::Json; -using namespace Aws::Utils; -using namespace Aws; - -UpdateProjectResult::UpdateProjectResult() -{ -} - -UpdateProjectResult::UpdateProjectResult(const Aws::AmazonWebServiceResult& result) -{ - *this = result; -} - -UpdateProjectResult& UpdateProjectResult::operator =(const Aws::AmazonWebServiceResult& result) -{ - JsonView jsonValue = result.GetPayload().View(); - if(jsonValue.ValueExists("details")) - { - m_details = jsonValue.GetObject("details"); - - } - - - 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/tests/mobile-gen-tests/CMakeLists.txt b/generated/tests/mobile-gen-tests/CMakeLists.txt deleted file mode 100644 index 21729cf01db..00000000000 --- a/generated/tests/mobile-gen-tests/CMakeLists.txt +++ /dev/null @@ -1,42 +0,0 @@ -add_project(mobile-gen-tests - "Tests for the AWS MOBILE C++ SDK" - testing-resources - aws-cpp-sdk-mobile - aws-cpp-sdk-core) - -file(GLOB AWS_MOBILE_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_MOBILE_GENERATED_TEST_SRC}") -else() - add_executable(${PROJECT_NAME} "${AWS_MOBILE_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/mobile-gen-tests/MobileEndpointProviderTests.cpp b/generated/tests/mobile-gen-tests/MobileEndpointProviderTests.cpp deleted file mode 100644 index 3913e074b2f..00000000000 --- a/generated/tests/mobile-gen-tests/MobileEndpointProviderTests.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 = "AWSMobileEndpointProviderTests"; -using MobileEndpointProvider = Aws::Mobile::Endpoint::MobileEndpointProvider; -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 MobileEndpointProviderEndpointTestCase -{ - 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 MobileEndpointProviderTests : 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> MobileEndpointProviderTests::TEST_CASES; -const size_t MobileEndpointProviderTests::TEST_CASES_SZ = 25; - -Aws::Vector MobileEndpointProviderTests::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://mobile-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://mobile-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://mobile.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://mobile.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://mobile-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://mobile-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://mobile.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://mobile.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://mobile-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://mobile-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://mobile.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://mobile.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://mobile-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://mobile.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://mobile-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://mobile.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 MobileEndpointProviderEndpointTestCase::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(MobileEndpointProviderTests, 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 MobileEndpointProviderEndpointTestCase& 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/MobileEndpointProviderTests.EndpointProviderTest/") + Aws::Utils::StringUtils::to_string(TEST_CASE_IDX)); - - std::shared_ptr endpointProvider = Aws::MakeShared(ALLOCATION_TAG); - ASSERT_TRUE(endpointProvider) << "Failed to allocate/initialize MobileEndpointProvider"; - - 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, - MobileEndpointProviderTests, - ::testing::Range((size_t) 0u, MobileEndpointProviderTests::TEST_CASES_SZ)); diff --git a/generated/tests/mobile-gen-tests/RunTests.cpp b/generated/tests/mobile-gen-tests/RunTests.cpp deleted file mode 100644 index f2f10a7c789..00000000000 --- a/generated/tests/mobile-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/mobile-2017-07-01.normal.json b/tools/code-generation/api-descriptions/mobile-2017-07-01.normal.json deleted file mode 100644 index b588798ebce..00000000000 --- a/tools/code-generation/api-descriptions/mobile-2017-07-01.normal.json +++ /dev/null @@ -1,732 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2017-07-01", - "endpointPrefix":"mobile", - "jsonVersion":"1.1", - "protocol":"rest-json", - "serviceFullName":"AWS Mobile", - "serviceId":"Mobile", - "signatureVersion":"v4", - "signingName":"AWSMobileHubService", - "uid":"mobile-2017-07-01" - }, - "operations":{ - "CreateProject":{ - "name":"CreateProject", - "http":{ - "method":"POST", - "requestUri":"/projects" - }, - "input":{"shape":"CreateProjectRequest"}, - "output":{"shape":"CreateProjectResult"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"ServiceUnavailableException"}, - {"shape":"UnauthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"BadRequestException"}, - {"shape":"NotFoundException"}, - {"shape":"LimitExceededException"} - ], - "documentation":"

Creates an AWS Mobile Hub project.

" - }, - "DeleteProject":{ - "name":"DeleteProject", - "http":{ - "method":"DELETE", - "requestUri":"/projects/{projectId}" - }, - "input":{"shape":"DeleteProjectRequest"}, - "output":{"shape":"DeleteProjectResult"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"ServiceUnavailableException"}, - {"shape":"UnauthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"NotFoundException"} - ], - "documentation":"

Delets a project in AWS Mobile Hub.

" - }, - "DescribeBundle":{ - "name":"DescribeBundle", - "http":{ - "method":"GET", - "requestUri":"/bundles/{bundleId}" - }, - "input":{"shape":"DescribeBundleRequest"}, - "output":{"shape":"DescribeBundleResult"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"ServiceUnavailableException"}, - {"shape":"UnauthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"BadRequestException"}, - {"shape":"NotFoundException"} - ], - "documentation":"

Get the bundle details for the requested bundle id.

" - }, - "DescribeProject":{ - "name":"DescribeProject", - "http":{ - "method":"GET", - "requestUri":"/project" - }, - "input":{"shape":"DescribeProjectRequest"}, - "output":{"shape":"DescribeProjectResult"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"ServiceUnavailableException"}, - {"shape":"UnauthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"BadRequestException"}, - {"shape":"NotFoundException"} - ], - "documentation":"

Gets details about a project in AWS Mobile Hub.

" - }, - "ExportBundle":{ - "name":"ExportBundle", - "http":{ - "method":"POST", - "requestUri":"/bundles/{bundleId}" - }, - "input":{"shape":"ExportBundleRequest"}, - "output":{"shape":"ExportBundleResult"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"ServiceUnavailableException"}, - {"shape":"UnauthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"BadRequestException"}, - {"shape":"NotFoundException"} - ], - "documentation":"

Generates customized software development kit (SDK) and or tool packages used to integrate mobile web or mobile app clients with backend AWS resources.

" - }, - "ExportProject":{ - "name":"ExportProject", - "http":{ - "method":"POST", - "requestUri":"/exports/{projectId}" - }, - "input":{"shape":"ExportProjectRequest"}, - "output":{"shape":"ExportProjectResult"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"ServiceUnavailableException"}, - {"shape":"UnauthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"BadRequestException"}, - {"shape":"NotFoundException"} - ], - "documentation":"

Exports project configuration to a snapshot which can be downloaded and shared. Note that mobile app push credentials are encrypted in exported projects, so they can only be shared successfully within the same AWS account.

" - }, - "ListBundles":{ - "name":"ListBundles", - "http":{ - "method":"GET", - "requestUri":"/bundles" - }, - "input":{"shape":"ListBundlesRequest"}, - "output":{"shape":"ListBundlesResult"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"ServiceUnavailableException"}, - {"shape":"UnauthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"BadRequestException"} - ], - "documentation":"

List all available bundles.

" - }, - "ListProjects":{ - "name":"ListProjects", - "http":{ - "method":"GET", - "requestUri":"/projects" - }, - "input":{"shape":"ListProjectsRequest"}, - "output":{"shape":"ListProjectsResult"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"ServiceUnavailableException"}, - {"shape":"UnauthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"BadRequestException"} - ], - "documentation":"

Lists projects in AWS Mobile Hub.

" - }, - "UpdateProject":{ - "name":"UpdateProject", - "http":{ - "method":"POST", - "requestUri":"/update" - }, - "input":{"shape":"UpdateProjectRequest"}, - "output":{"shape":"UpdateProjectResult"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"ServiceUnavailableException"}, - {"shape":"UnauthorizedException"}, - {"shape":"TooManyRequestsException"}, - {"shape":"BadRequestException"}, - {"shape":"NotFoundException"}, - {"shape":"AccountActionRequiredException"}, - {"shape":"LimitExceededException"} - ], - "documentation":"

Update an existing project.

" - } - }, - "shapes":{ - "AccountActionRequiredException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "documentation":"

Account Action is required in order to continue the request.

", - "error":{"httpStatusCode":403}, - "exception":true - }, - "AttributeKey":{ - "type":"string", - "documentation":"

Key part of key-value attribute pairs.

" - }, - "AttributeValue":{ - "type":"string", - "documentation":"

Value part of key-value attribute pairs.

" - }, - "Attributes":{ - "type":"map", - "key":{"shape":"AttributeKey"}, - "value":{"shape":"AttributeValue"}, - "documentation":"

Key-value attribute pairs.

" - }, - "BadRequestException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "documentation":"

The request cannot be processed because some parameter is not valid or the project state prevents the operation from being performed.

", - "error":{"httpStatusCode":400}, - "exception":true - }, - "Boolean":{"type":"boolean"}, - "BundleDescription":{ - "type":"string", - "documentation":"

Description of the download bundle.

" - }, - "BundleDetails":{ - "type":"structure", - "members":{ - "bundleId":{"shape":"BundleId"}, - "title":{"shape":"BundleTitle"}, - "version":{"shape":"BundleVersion"}, - "description":{"shape":"BundleDescription"}, - "iconUrl":{"shape":"IconUrl"}, - "availablePlatforms":{"shape":"Platforms"} - }, - "documentation":"

The details of the bundle.

" - }, - "BundleId":{ - "type":"string", - "documentation":"

Unique bundle identifier.

" - }, - "BundleList":{ - "type":"list", - "member":{"shape":"BundleDetails"}, - "documentation":"

A list of bundles.

" - }, - "BundleTitle":{ - "type":"string", - "documentation":"

Title of the download bundle.

" - }, - "BundleVersion":{ - "type":"string", - "documentation":"

Version of the download bundle.

" - }, - "ConsoleUrl":{"type":"string"}, - "Contents":{ - "type":"blob", - "documentation":"

Binary file data.

" - }, - "CreateProjectRequest":{ - "type":"structure", - "members":{ - "name":{ - "shape":"ProjectName", - "documentation":"

Name of the project.

", - "location":"querystring", - "locationName":"name" - }, - "region":{ - "shape":"ProjectRegion", - "documentation":"

Default region where project resources should be created.

", - "location":"querystring", - "locationName":"region" - }, - "contents":{ - "shape":"Contents", - "documentation":"

ZIP or YAML file which contains configuration settings to be used when creating the project. This may be the contents of the file downloaded from the URL provided in an export project operation.

" - }, - "snapshotId":{ - "shape":"SnapshotId", - "documentation":"

Unique identifier for an exported snapshot of project configuration. This snapshot identifier is included in the share URL when a project is exported.

", - "location":"querystring", - "locationName":"snapshotId" - } - }, - "documentation":"

Request structure used to request a project be created.

", - "payload":"contents" - }, - "CreateProjectResult":{ - "type":"structure", - "members":{ - "details":{ - "shape":"ProjectDetails", - "documentation":"

Detailed information about the created AWS Mobile Hub project.

" - } - }, - "documentation":"

Result structure used in response to a request to create a project.

" - }, - "Date":{"type":"timestamp"}, - "DeleteProjectRequest":{ - "type":"structure", - "required":["projectId"], - "members":{ - "projectId":{ - "shape":"ProjectId", - "documentation":"

Unique project identifier.

", - "location":"uri", - "locationName":"projectId" - } - }, - "documentation":"

Request structure used to request a project be deleted.

" - }, - "DeleteProjectResult":{ - "type":"structure", - "members":{ - "deletedResources":{ - "shape":"Resources", - "documentation":"

Resources which were deleted.

" - }, - "orphanedResources":{ - "shape":"Resources", - "documentation":"

Resources which were not deleted, due to a risk of losing potentially important data or files.

" - } - }, - "documentation":"

Result structure used in response to request to delete a project.

" - }, - "DescribeBundleRequest":{ - "type":"structure", - "required":["bundleId"], - "members":{ - "bundleId":{ - "shape":"BundleId", - "documentation":"

Unique bundle identifier.

", - "location":"uri", - "locationName":"bundleId" - } - }, - "documentation":"

Request structure to request the details of a specific bundle.

" - }, - "DescribeBundleResult":{ - "type":"structure", - "members":{ - "details":{ - "shape":"BundleDetails", - "documentation":"

The details of the bundle.

" - } - }, - "documentation":"

Result structure contains the details of the bundle.

" - }, - "DescribeProjectRequest":{ - "type":"structure", - "required":["projectId"], - "members":{ - "projectId":{ - "shape":"ProjectId", - "documentation":"

Unique project identifier.

", - "location":"querystring", - "locationName":"projectId" - }, - "syncFromResources":{ - "shape":"Boolean", - "documentation":"

If set to true, causes AWS Mobile Hub to synchronize information from other services, e.g., update state of AWS CloudFormation stacks in the AWS Mobile Hub project.

", - "location":"querystring", - "locationName":"syncFromResources" - } - }, - "documentation":"

Request structure used to request details about a project.

" - }, - "DescribeProjectResult":{ - "type":"structure", - "members":{ - "details":{"shape":"ProjectDetails"} - }, - "documentation":"

Result structure used for requests of project details.

" - }, - "DownloadUrl":{ - "type":"string", - "documentation":"

The download Url.

" - }, - "ErrorMessage":{ - "type":"string", - "documentation":"

The Exception Error Message.

" - }, - "ExportBundleRequest":{ - "type":"structure", - "required":["bundleId"], - "members":{ - "bundleId":{ - "shape":"BundleId", - "documentation":"

Unique bundle identifier.

", - "location":"uri", - "locationName":"bundleId" - }, - "projectId":{ - "shape":"ProjectId", - "documentation":"

Unique project identifier.

", - "location":"querystring", - "locationName":"projectId" - }, - "platform":{ - "shape":"Platform", - "documentation":"

Developer desktop or target application platform.

", - "location":"querystring", - "locationName":"platform" - } - }, - "documentation":"

Request structure used to request generation of custom SDK and tool packages required to integrate mobile web or app clients with backed AWS resources.

" - }, - "ExportBundleResult":{ - "type":"structure", - "members":{ - "downloadUrl":{ - "shape":"DownloadUrl", - "documentation":"

URL which contains the custom-generated SDK and tool packages used to integrate the client mobile app or web app with the AWS resources created by the AWS Mobile Hub project.

" - } - }, - "documentation":"

Result structure which contains link to download custom-generated SDK and tool packages used to integrate mobile web or app clients with backed AWS resources.

" - }, - "ExportProjectRequest":{ - "type":"structure", - "required":["projectId"], - "members":{ - "projectId":{ - "shape":"ProjectId", - "documentation":"

Unique project identifier.

", - "location":"uri", - "locationName":"projectId" - } - }, - "documentation":"

Request structure used in requests to export project configuration details.

" - }, - "ExportProjectResult":{ - "type":"structure", - "members":{ - "downloadUrl":{ - "shape":"DownloadUrl", - "documentation":"

URL which can be used to download the exported project configuation file(s).

" - }, - "shareUrl":{ - "shape":"ShareUrl", - "documentation":"

URL which can be shared to allow other AWS users to create their own project in AWS Mobile Hub with the same configuration as the specified project. This URL pertains to a snapshot in time of the project configuration that is created when this API is called. If you want to share additional changes to your project configuration, then you will need to create and share a new snapshot by calling this method again.

" - }, - "snapshotId":{ - "shape":"SnapshotId", - "documentation":"

Unique identifier for the exported snapshot of the project configuration. This snapshot identifier is included in the share URL.

" - } - }, - "documentation":"

Result structure used for requests to export project configuration details.

" - }, - "Feature":{ - "type":"string", - "documentation":"

Identifies which feature in AWS Mobile Hub is associated with this AWS resource.

" - }, - "IconUrl":{ - "type":"string", - "documentation":"

Icon for the download bundle.

" - }, - "InternalFailureException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "documentation":"

The service has encountered an unexpected error condition which prevents it from servicing the request.

", - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - "LimitExceededException":{ - "type":"structure", - "members":{ - "retryAfterSeconds":{ - "shape":"ErrorMessage", - "location":"header", - "locationName":"Retry-After" - }, - "message":{"shape":"ErrorMessage"} - }, - "documentation":"

There are too many AWS Mobile Hub projects in the account or the account has exceeded the maximum number of resources in some AWS service. You should create another sub-account using AWS Organizations or remove some resources and retry your request.

", - "error":{"httpStatusCode":429}, - "exception":true - }, - "ListBundlesRequest":{ - "type":"structure", - "members":{ - "maxResults":{ - "shape":"MaxResults", - "documentation":"

Maximum number of records to list in a single response.

", - "location":"querystring", - "locationName":"maxResults" - }, - "nextToken":{ - "shape":"NextToken", - "documentation":"

Pagination token. Set to null to start listing bundles from start. If non-null pagination token is returned in a result, then pass its value in here in another request to list more bundles.

", - "location":"querystring", - "locationName":"nextToken" - } - }, - "documentation":"

Request structure to request all available bundles.

" - }, - "ListBundlesResult":{ - "type":"structure", - "members":{ - "bundleList":{ - "shape":"BundleList", - "documentation":"

A list of bundles.

" - }, - "nextToken":{ - "shape":"NextToken", - "documentation":"

Pagination token. If non-null pagination token is returned in a result, then pass its value in another request to fetch more entries.

" - } - }, - "documentation":"

Result structure contains a list of all available bundles with details.

" - }, - "ListProjectsRequest":{ - "type":"structure", - "members":{ - "maxResults":{ - "shape":"MaxResults", - "documentation":"

Maximum number of records to list in a single response.

", - "location":"querystring", - "locationName":"maxResults" - }, - "nextToken":{ - "shape":"NextToken", - "documentation":"

Pagination token. Set to null to start listing projects from start. If non-null pagination token is returned in a result, then pass its value in here in another request to list more projects.

", - "location":"querystring", - "locationName":"nextToken" - } - }, - "documentation":"

Request structure used to request projects list in AWS Mobile Hub.

" - }, - "ListProjectsResult":{ - "type":"structure", - "members":{ - "projects":{"shape":"ProjectSummaries"}, - "nextToken":{"shape":"NextToken"} - }, - "documentation":"

Result structure used for requests to list projects in AWS Mobile Hub.

" - }, - "MaxResults":{ - "type":"integer", - "documentation":"

Maximum number of records to list in a single response.

" - }, - "NextToken":{ - "type":"string", - "documentation":"

Pagination token. Set to null to start listing records from start. If non-null pagination token is returned in a result, then pass its value in here in another request to list more entries.

" - }, - "NotFoundException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "documentation":"

No entity can be found with the specified identifier.

", - "error":{"httpStatusCode":404}, - "exception":true - }, - "Platform":{ - "type":"string", - "documentation":"

Developer desktop or target mobile app or website platform.

", - "enum":[ - "OSX", - "WINDOWS", - "LINUX", - "OBJC", - "SWIFT", - "ANDROID", - "JAVASCRIPT" - ] - }, - "Platforms":{ - "type":"list", - "member":{"shape":"Platform"}, - "documentation":"

Developer desktop or mobile app or website platforms.

" - }, - "ProjectDetails":{ - "type":"structure", - "members":{ - "name":{"shape":"ProjectName"}, - "projectId":{"shape":"ProjectId"}, - "region":{"shape":"ProjectRegion"}, - "state":{"shape":"ProjectState"}, - "createdDate":{ - "shape":"Date", - "documentation":"

Date the project was created.

" - }, - "lastUpdatedDate":{ - "shape":"Date", - "documentation":"

Date of the last modification of the project.

" - }, - "consoleUrl":{ - "shape":"ConsoleUrl", - "documentation":"

Website URL for this project in the AWS Mobile Hub console.

" - }, - "resources":{"shape":"Resources"} - }, - "documentation":"

Detailed information about an AWS Mobile Hub project.

" - }, - "ProjectId":{ - "type":"string", - "documentation":"

Unique project identifier.

" - }, - "ProjectName":{ - "type":"string", - "documentation":"

Name of the project.

" - }, - "ProjectRegion":{ - "type":"string", - "documentation":"

Default region to use for AWS resource creation in the AWS Mobile Hub project.

" - }, - "ProjectState":{ - "type":"string", - "documentation":"

Synchronization state for a project.

", - "enum":[ - "NORMAL", - "SYNCING", - "IMPORTING" - ] - }, - "ProjectSummaries":{ - "type":"list", - "member":{"shape":"ProjectSummary"}, - "documentation":"

List of projects.

" - }, - "ProjectSummary":{ - "type":"structure", - "members":{ - "name":{ - "shape":"ProjectName", - "documentation":"

Name of the project.

" - }, - "projectId":{ - "shape":"ProjectId", - "documentation":"

Unique project identifier.

" - } - }, - "documentation":"

Summary information about an AWS Mobile Hub project.

" - }, - "Resource":{ - "type":"structure", - "members":{ - "type":{"shape":"ResourceType"}, - "name":{"shape":"ResourceName"}, - "arn":{"shape":"ResourceArn"}, - "feature":{"shape":"Feature"}, - "attributes":{"shape":"Attributes"} - }, - "documentation":"

Information about an instance of an AWS resource associated with a project.

" - }, - "ResourceArn":{ - "type":"string", - "documentation":"

AWS resource name which uniquely identifies the resource in AWS systems.

" - }, - "ResourceName":{ - "type":"string", - "documentation":"

Name of the AWS resource (e.g., for an Amazon S3 bucket this is the name of the bucket).

" - }, - "ResourceType":{ - "type":"string", - "documentation":"

Simplified name for type of AWS resource (e.g., bucket is an Amazon S3 bucket).

" - }, - "Resources":{ - "type":"list", - "member":{"shape":"Resource"}, - "documentation":"

List of AWS resources associated with a project.

" - }, - "ServiceUnavailableException":{ - "type":"structure", - "members":{ - "retryAfterSeconds":{ - "shape":"ErrorMessage", - "location":"header", - "locationName":"Retry-After" - }, - "message":{"shape":"ErrorMessage"} - }, - "documentation":"

The service is temporarily unavailable. The request should be retried after some time delay.

", - "error":{"httpStatusCode":503}, - "exception":true, - "fault":true - }, - "ShareUrl":{ - "type":"string", - "documentation":"

URL which can be shared to allow other AWS users to create their own project in AWS Mobile Hub with the same configuration as the specified project. This URL pertains to a snapshot in time of the project configuration that is created when this API is called. If you want to share additional changes to your project configuration, then you will need to create and share a new snapshot by calling this method again.

" - }, - "SnapshotId":{ - "type":"string", - "documentation":"

Unique identifier for the exported snapshot of the project configuration. This snapshot identifier is included in the share URL.

" - }, - "TooManyRequestsException":{ - "type":"structure", - "members":{ - "retryAfterSeconds":{ - "shape":"ErrorMessage", - "location":"header", - "locationName":"Retry-After" - }, - "message":{"shape":"ErrorMessage"} - }, - "documentation":"

Too many requests have been received for this AWS account in too short a time. The request should be retried after some time delay.

", - "error":{"httpStatusCode":429}, - "exception":true - }, - "UnauthorizedException":{ - "type":"structure", - "members":{ - "message":{"shape":"ErrorMessage"} - }, - "documentation":"

Credentials of the caller are insufficient to authorize the request.

", - "error":{"httpStatusCode":401}, - "exception":true - }, - "UpdateProjectRequest":{ - "type":"structure", - "required":["projectId"], - "members":{ - "contents":{ - "shape":"Contents", - "documentation":"

ZIP or YAML file which contains project configuration to be updated. This should be the contents of the file downloaded from the URL provided in an export project operation.

" - }, - "projectId":{ - "shape":"ProjectId", - "documentation":"

Unique project identifier.

", - "location":"querystring", - "locationName":"projectId" - } - }, - "documentation":"

Request structure used for requests to update project configuration.

", - "payload":"contents" - }, - "UpdateProjectResult":{ - "type":"structure", - "members":{ - "details":{ - "shape":"ProjectDetails", - "documentation":"

Detailed information about the updated AWS Mobile Hub project.

" - } - }, - "documentation":"

Result structure used for requests to updated project configuration.

" - } - }, - "documentation":"

AWS Mobile Service provides mobile app and website developers with capabilities required to configure AWS resources and bootstrap their developer desktop projects with the necessary SDKs, constants, tools and samples to make use of those resources.

" -} diff --git a/tools/code-generation/endpoints/mobile-2017-07-01.endpoint-rule-set.json b/tools/code-generation/endpoints/mobile-2017-07-01.endpoint-rule-set.json deleted file mode 100644 index 0941f3c2396..00000000000 --- a/tools/code-generation/endpoints/mobile-2017-07-01.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://mobile-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://mobile-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://mobile.{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://mobile.{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/mobile-2017-07-01.endpoint-tests.json b/tools/code-generation/endpoints/mobile-2017-07-01.endpoint-tests.json deleted file mode 100644 index 8008ab4d0f1..00000000000 --- a/tools/code-generation/endpoints/mobile-2017-07-01.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://mobile-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://mobile-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://mobile.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://mobile.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://mobile-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://mobile-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://mobile.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://mobile.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://mobile-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://mobile-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://mobile.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://mobile.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://mobile-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://mobile.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://mobile-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://mobile.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