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

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

View File

@@ -0,0 +1,76 @@
add_project(aws-cpp-sdk-iot1click-projects "C++ SDK for the AWS iot1click-projects service" aws-cpp-sdk-core)
file(GLOB AWS_IOT1CLICK-PROJECTS_HEADERS
"include/aws/iot1click-projects/*.h"
)
file(GLOB AWS_IOT1CLICK-PROJECTS_MODEL_HEADERS
"include/aws/iot1click-projects/model/*.h"
)
file(GLOB AWS_IOT1CLICK-PROJECTS_SOURCE
"source/*.cpp"
)
file(GLOB AWS_IOT1CLICK-PROJECTS_MODEL_SOURCE
"source/model/*.cpp"
)
file(GLOB IOT1CLICK-PROJECTS_UNIFIED_HEADERS
${AWS_IOT1CLICK-PROJECTS_HEADERS}
${AWS_IOT1CLICK-PROJECTS_MODEL_HEADERS}
)
file(GLOB IOT1CLICK-PROJECTS_UNITY_SRC
${AWS_IOT1CLICK-PROJECTS_SOURCE}
${AWS_IOT1CLICK-PROJECTS_MODEL_SOURCE}
)
if(ENABLE_UNITY_BUILD)
enable_unity_build("IOT1CLICK-PROJECTS" IOT1CLICK-PROJECTS_UNITY_SRC)
endif()
file(GLOB IOT1CLICK-PROJECTS_SRC
${IOT1CLICK-PROJECTS_UNIFIED_HEADERS}
${IOT1CLICK-PROJECTS_UNITY_SRC}
)
if(WIN32)
#if we are compiling for visual studio, create a sane directory tree.
if(MSVC)
source_group("Header Files\\aws\\iot1click-projects" FILES ${AWS_IOT1CLICK-PROJECTS_HEADERS})
source_group("Header Files\\aws\\iot1click-projects\\model" FILES ${AWS_IOT1CLICK-PROJECTS_MODEL_HEADERS})
source_group("Source Files" FILES ${AWS_IOT1CLICK-PROJECTS_SOURCE})
source_group("Source Files\\model" FILES ${AWS_IOT1CLICK-PROJECTS_MODEL_SOURCE})
endif(MSVC)
endif()
set(IOT1CLICK-PROJECTS_INCLUDES
"${CMAKE_CURRENT_SOURCE_DIR}/include/"
)
add_library(${PROJECT_NAME} ${IOT1CLICK-PROJECTS_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_IOT1CLICKPROJECTS_EXPORTS")
endif()
target_include_directories(${PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS})
setup_install()
install (FILES ${AWS_IOT1CLICK-PROJECTS_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/iot1click-projects)
install (FILES ${AWS_IOT1CLICK-PROJECTS_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/iot1click-projects/model)
do_packaging()

View File

@@ -0,0 +1,651 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/IoT1ClickProjectsErrors.h>
#include <aws/core/client/AWSError.h>
#include <aws/core/client/ClientConfiguration.h>
#include <aws/core/client/AWSClient.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/iot1click-projects/model/AssociateDeviceWithPlacementResult.h>
#include <aws/iot1click-projects/model/CreatePlacementResult.h>
#include <aws/iot1click-projects/model/CreateProjectResult.h>
#include <aws/iot1click-projects/model/DeletePlacementResult.h>
#include <aws/iot1click-projects/model/DeleteProjectResult.h>
#include <aws/iot1click-projects/model/DescribePlacementResult.h>
#include <aws/iot1click-projects/model/DescribeProjectResult.h>
#include <aws/iot1click-projects/model/DisassociateDeviceFromPlacementResult.h>
#include <aws/iot1click-projects/model/GetDevicesInPlacementResult.h>
#include <aws/iot1click-projects/model/ListPlacementsResult.h>
#include <aws/iot1click-projects/model/ListProjectsResult.h>
#include <aws/iot1click-projects/model/ListTagsForResourceResult.h>
#include <aws/iot1click-projects/model/TagResourceResult.h>
#include <aws/iot1click-projects/model/UntagResourceResult.h>
#include <aws/iot1click-projects/model/UpdatePlacementResult.h>
#include <aws/iot1click-projects/model/UpdateProjectResult.h>
#include <aws/core/client/AsyncCallerContext.h>
#include <aws/core/http/HttpTypes.h>
#include <future>
#include <functional>
namespace Aws
{
namespace Http
{
class HttpClient;
class HttpClientFactory;
} // namespace Http
namespace Utils
{
template< typename R, typename E> class Outcome;
namespace Threading
{
class Executor;
} // namespace Threading
} // namespace Utils
namespace Auth
{
class AWSCredentials;
class AWSCredentialsProvider;
} // namespace Auth
namespace Client
{
class RetryStrategy;
} // namespace Client
namespace IoT1ClickProjects
{
namespace Model
{
class AssociateDeviceWithPlacementRequest;
class CreatePlacementRequest;
class CreateProjectRequest;
class DeletePlacementRequest;
class DeleteProjectRequest;
class DescribePlacementRequest;
class DescribeProjectRequest;
class DisassociateDeviceFromPlacementRequest;
class GetDevicesInPlacementRequest;
class ListPlacementsRequest;
class ListProjectsRequest;
class ListTagsForResourceRequest;
class TagResourceRequest;
class UntagResourceRequest;
class UpdatePlacementRequest;
class UpdateProjectRequest;
typedef Aws::Utils::Outcome<AssociateDeviceWithPlacementResult, IoT1ClickProjectsError> AssociateDeviceWithPlacementOutcome;
typedef Aws::Utils::Outcome<CreatePlacementResult, IoT1ClickProjectsError> CreatePlacementOutcome;
typedef Aws::Utils::Outcome<CreateProjectResult, IoT1ClickProjectsError> CreateProjectOutcome;
typedef Aws::Utils::Outcome<DeletePlacementResult, IoT1ClickProjectsError> DeletePlacementOutcome;
typedef Aws::Utils::Outcome<DeleteProjectResult, IoT1ClickProjectsError> DeleteProjectOutcome;
typedef Aws::Utils::Outcome<DescribePlacementResult, IoT1ClickProjectsError> DescribePlacementOutcome;
typedef Aws::Utils::Outcome<DescribeProjectResult, IoT1ClickProjectsError> DescribeProjectOutcome;
typedef Aws::Utils::Outcome<DisassociateDeviceFromPlacementResult, IoT1ClickProjectsError> DisassociateDeviceFromPlacementOutcome;
typedef Aws::Utils::Outcome<GetDevicesInPlacementResult, IoT1ClickProjectsError> GetDevicesInPlacementOutcome;
typedef Aws::Utils::Outcome<ListPlacementsResult, IoT1ClickProjectsError> ListPlacementsOutcome;
typedef Aws::Utils::Outcome<ListProjectsResult, IoT1ClickProjectsError> ListProjectsOutcome;
typedef Aws::Utils::Outcome<ListTagsForResourceResult, IoT1ClickProjectsError> ListTagsForResourceOutcome;
typedef Aws::Utils::Outcome<TagResourceResult, IoT1ClickProjectsError> TagResourceOutcome;
typedef Aws::Utils::Outcome<UntagResourceResult, IoT1ClickProjectsError> UntagResourceOutcome;
typedef Aws::Utils::Outcome<UpdatePlacementResult, IoT1ClickProjectsError> UpdatePlacementOutcome;
typedef Aws::Utils::Outcome<UpdateProjectResult, IoT1ClickProjectsError> UpdateProjectOutcome;
typedef std::future<AssociateDeviceWithPlacementOutcome> AssociateDeviceWithPlacementOutcomeCallable;
typedef std::future<CreatePlacementOutcome> CreatePlacementOutcomeCallable;
typedef std::future<CreateProjectOutcome> CreateProjectOutcomeCallable;
typedef std::future<DeletePlacementOutcome> DeletePlacementOutcomeCallable;
typedef std::future<DeleteProjectOutcome> DeleteProjectOutcomeCallable;
typedef std::future<DescribePlacementOutcome> DescribePlacementOutcomeCallable;
typedef std::future<DescribeProjectOutcome> DescribeProjectOutcomeCallable;
typedef std::future<DisassociateDeviceFromPlacementOutcome> DisassociateDeviceFromPlacementOutcomeCallable;
typedef std::future<GetDevicesInPlacementOutcome> GetDevicesInPlacementOutcomeCallable;
typedef std::future<ListPlacementsOutcome> ListPlacementsOutcomeCallable;
typedef std::future<ListProjectsOutcome> ListProjectsOutcomeCallable;
typedef std::future<ListTagsForResourceOutcome> ListTagsForResourceOutcomeCallable;
typedef std::future<TagResourceOutcome> TagResourceOutcomeCallable;
typedef std::future<UntagResourceOutcome> UntagResourceOutcomeCallable;
typedef std::future<UpdatePlacementOutcome> UpdatePlacementOutcomeCallable;
typedef std::future<UpdateProjectOutcome> UpdateProjectOutcomeCallable;
} // namespace Model
class IoT1ClickProjectsClient;
typedef std::function<void(const IoT1ClickProjectsClient*, const Model::AssociateDeviceWithPlacementRequest&, const Model::AssociateDeviceWithPlacementOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > AssociateDeviceWithPlacementResponseReceivedHandler;
typedef std::function<void(const IoT1ClickProjectsClient*, const Model::CreatePlacementRequest&, const Model::CreatePlacementOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreatePlacementResponseReceivedHandler;
typedef std::function<void(const IoT1ClickProjectsClient*, const Model::CreateProjectRequest&, const Model::CreateProjectOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > CreateProjectResponseReceivedHandler;
typedef std::function<void(const IoT1ClickProjectsClient*, const Model::DeletePlacementRequest&, const Model::DeletePlacementOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeletePlacementResponseReceivedHandler;
typedef std::function<void(const IoT1ClickProjectsClient*, const Model::DeleteProjectRequest&, const Model::DeleteProjectOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DeleteProjectResponseReceivedHandler;
typedef std::function<void(const IoT1ClickProjectsClient*, const Model::DescribePlacementRequest&, const Model::DescribePlacementOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribePlacementResponseReceivedHandler;
typedef std::function<void(const IoT1ClickProjectsClient*, const Model::DescribeProjectRequest&, const Model::DescribeProjectOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeProjectResponseReceivedHandler;
typedef std::function<void(const IoT1ClickProjectsClient*, const Model::DisassociateDeviceFromPlacementRequest&, const Model::DisassociateDeviceFromPlacementOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DisassociateDeviceFromPlacementResponseReceivedHandler;
typedef std::function<void(const IoT1ClickProjectsClient*, const Model::GetDevicesInPlacementRequest&, const Model::GetDevicesInPlacementOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetDevicesInPlacementResponseReceivedHandler;
typedef std::function<void(const IoT1ClickProjectsClient*, const Model::ListPlacementsRequest&, const Model::ListPlacementsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListPlacementsResponseReceivedHandler;
typedef std::function<void(const IoT1ClickProjectsClient*, const Model::ListProjectsRequest&, const Model::ListProjectsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListProjectsResponseReceivedHandler;
typedef std::function<void(const IoT1ClickProjectsClient*, const Model::ListTagsForResourceRequest&, const Model::ListTagsForResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListTagsForResourceResponseReceivedHandler;
typedef std::function<void(const IoT1ClickProjectsClient*, const Model::TagResourceRequest&, const Model::TagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > TagResourceResponseReceivedHandler;
typedef std::function<void(const IoT1ClickProjectsClient*, const Model::UntagResourceRequest&, const Model::UntagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UntagResourceResponseReceivedHandler;
typedef std::function<void(const IoT1ClickProjectsClient*, const Model::UpdatePlacementRequest&, const Model::UpdatePlacementOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdatePlacementResponseReceivedHandler;
typedef std::function<void(const IoT1ClickProjectsClient*, const Model::UpdateProjectRequest&, const Model::UpdateProjectOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateProjectResponseReceivedHandler;
/**
* <p>The AWS IoT 1-Click Projects API Reference</p>
*/
class AWS_IOT1CLICKPROJECTS_API IoT1ClickProjectsClient : public Aws::Client::AWSJsonClient
{
public:
typedef Aws::Client::AWSJsonClient BASECLASS;
/**
* Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
IoT1ClickProjectsClient(const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
/**
* Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
IoT1ClickProjectsClient(const Aws::Auth::AWSCredentials& credentials, const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
/**
* Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied,
* the default http client factory will be used
*/
IoT1ClickProjectsClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
virtual ~IoT1ClickProjectsClient();
/**
* <p>Associates a physical device with a placement.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/AssociateDeviceWithPlacement">AWS
* API Reference</a></p>
*/
virtual Model::AssociateDeviceWithPlacementOutcome AssociateDeviceWithPlacement(const Model::AssociateDeviceWithPlacementRequest& request) const;
/**
* <p>Associates a physical device with a placement.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/AssociateDeviceWithPlacement">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::AssociateDeviceWithPlacementOutcomeCallable AssociateDeviceWithPlacementCallable(const Model::AssociateDeviceWithPlacementRequest& request) const;
/**
* <p>Associates a physical device with a placement.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/AssociateDeviceWithPlacement">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void AssociateDeviceWithPlacementAsync(const Model::AssociateDeviceWithPlacementRequest& request, const AssociateDeviceWithPlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Creates an empty placement.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/CreatePlacement">AWS
* API Reference</a></p>
*/
virtual Model::CreatePlacementOutcome CreatePlacement(const Model::CreatePlacementRequest& request) const;
/**
* <p>Creates an empty placement.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/CreatePlacement">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::CreatePlacementOutcomeCallable CreatePlacementCallable(const Model::CreatePlacementRequest& request) const;
/**
* <p>Creates an empty placement.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/CreatePlacement">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void CreatePlacementAsync(const Model::CreatePlacementRequest& request, const CreatePlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Creates an empty project with a placement template. A project contains zero
* or more placements that adhere to the placement template defined in the
* project.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/CreateProject">AWS
* API Reference</a></p>
*/
virtual Model::CreateProjectOutcome CreateProject(const Model::CreateProjectRequest& request) const;
/**
* <p>Creates an empty project with a placement template. A project contains zero
* or more placements that adhere to the placement template defined in the
* project.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/CreateProject">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::CreateProjectOutcomeCallable CreateProjectCallable(const Model::CreateProjectRequest& request) const;
/**
* <p>Creates an empty project with a placement template. A project contains zero
* or more placements that adhere to the placement template defined in the
* project.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/CreateProject">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void CreateProjectAsync(const Model::CreateProjectRequest& request, const CreateProjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Deletes a placement. To delete a placement, it must not have any devices
* associated with it.</p> <p>When you delete a placement, all associated
* data becomes irretrievable.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DeletePlacement">AWS
* API Reference</a></p>
*/
virtual Model::DeletePlacementOutcome DeletePlacement(const Model::DeletePlacementRequest& request) const;
/**
* <p>Deletes a placement. To delete a placement, it must not have any devices
* associated with it.</p> <p>When you delete a placement, all associated
* data becomes irretrievable.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DeletePlacement">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DeletePlacementOutcomeCallable DeletePlacementCallable(const Model::DeletePlacementRequest& request) const;
/**
* <p>Deletes a placement. To delete a placement, it must not have any devices
* associated with it.</p> <p>When you delete a placement, all associated
* data becomes irretrievable.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DeletePlacement">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DeletePlacementAsync(const Model::DeletePlacementRequest& request, const DeletePlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Deletes a project. To delete a project, it must not have any placements
* associated with it.</p> <p>When you delete a project, all associated data
* becomes irretrievable.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DeleteProject">AWS
* API Reference</a></p>
*/
virtual Model::DeleteProjectOutcome DeleteProject(const Model::DeleteProjectRequest& request) const;
/**
* <p>Deletes a project. To delete a project, it must not have any placements
* associated with it.</p> <p>When you delete a project, all associated data
* becomes irretrievable.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DeleteProject">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DeleteProjectOutcomeCallable DeleteProjectCallable(const Model::DeleteProjectRequest& request) const;
/**
* <p>Deletes a project. To delete a project, it must not have any placements
* associated with it.</p> <p>When you delete a project, all associated data
* becomes irretrievable.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DeleteProject">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DeleteProjectAsync(const Model::DeleteProjectRequest& request, const DeleteProjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Describes a placement in a project.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DescribePlacement">AWS
* API Reference</a></p>
*/
virtual Model::DescribePlacementOutcome DescribePlacement(const Model::DescribePlacementRequest& request) const;
/**
* <p>Describes a placement in a project.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DescribePlacement">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribePlacementOutcomeCallable DescribePlacementCallable(const Model::DescribePlacementRequest& request) const;
/**
* <p>Describes a placement in a project.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DescribePlacement">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribePlacementAsync(const Model::DescribePlacementRequest& request, const DescribePlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Returns an object describing a project.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DescribeProject">AWS
* API Reference</a></p>
*/
virtual Model::DescribeProjectOutcome DescribeProject(const Model::DescribeProjectRequest& request) const;
/**
* <p>Returns an object describing a project.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DescribeProject">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeProjectOutcomeCallable DescribeProjectCallable(const Model::DescribeProjectRequest& request) const;
/**
* <p>Returns an object describing a project.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DescribeProject">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeProjectAsync(const Model::DescribeProjectRequest& request, const DescribeProjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Removes a physical device from a placement.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DisassociateDeviceFromPlacement">AWS
* API Reference</a></p>
*/
virtual Model::DisassociateDeviceFromPlacementOutcome DisassociateDeviceFromPlacement(const Model::DisassociateDeviceFromPlacementRequest& request) const;
/**
* <p>Removes a physical device from a placement.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DisassociateDeviceFromPlacement">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DisassociateDeviceFromPlacementOutcomeCallable DisassociateDeviceFromPlacementCallable(const Model::DisassociateDeviceFromPlacementRequest& request) const;
/**
* <p>Removes a physical device from a placement.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DisassociateDeviceFromPlacement">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DisassociateDeviceFromPlacementAsync(const Model::DisassociateDeviceFromPlacementRequest& request, const DisassociateDeviceFromPlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Returns an object enumerating the devices in a placement.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/GetDevicesInPlacement">AWS
* API Reference</a></p>
*/
virtual Model::GetDevicesInPlacementOutcome GetDevicesInPlacement(const Model::GetDevicesInPlacementRequest& request) const;
/**
* <p>Returns an object enumerating the devices in a placement.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/GetDevicesInPlacement">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::GetDevicesInPlacementOutcomeCallable GetDevicesInPlacementCallable(const Model::GetDevicesInPlacementRequest& request) const;
/**
* <p>Returns an object enumerating the devices in a placement.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/GetDevicesInPlacement">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void GetDevicesInPlacementAsync(const Model::GetDevicesInPlacementRequest& request, const GetDevicesInPlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Lists the placement(s) of a project.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/ListPlacements">AWS
* API Reference</a></p>
*/
virtual Model::ListPlacementsOutcome ListPlacements(const Model::ListPlacementsRequest& request) const;
/**
* <p>Lists the placement(s) of a project.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/ListPlacements">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListPlacementsOutcomeCallable ListPlacementsCallable(const Model::ListPlacementsRequest& request) const;
/**
* <p>Lists the placement(s) of a project.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/ListPlacements">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListPlacementsAsync(const Model::ListPlacementsRequest& request, const ListPlacementsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Lists the AWS IoT 1-Click project(s) associated with your AWS account and
* region.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/ListProjects">AWS
* API Reference</a></p>
*/
virtual Model::ListProjectsOutcome ListProjects(const Model::ListProjectsRequest& request) const;
/**
* <p>Lists the AWS IoT 1-Click project(s) associated with your AWS account and
* region.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/ListProjects">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListProjectsOutcomeCallable ListProjectsCallable(const Model::ListProjectsRequest& request) const;
/**
* <p>Lists the AWS IoT 1-Click project(s) associated with your AWS account and
* region.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/ListProjects">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListProjectsAsync(const Model::ListProjectsRequest& request, const ListProjectsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Lists the tags (metadata key/value pairs) which you have assigned to the
* resource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/ListTagsForResource">AWS
* API Reference</a></p>
*/
virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest& request) const;
/**
* <p>Lists the tags (metadata key/value pairs) which you have assigned to the
* resource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/ListTagsForResource">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListTagsForResourceOutcomeCallable ListTagsForResourceCallable(const Model::ListTagsForResourceRequest& request) const;
/**
* <p>Lists the tags (metadata key/value pairs) which you have assigned to the
* resource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/ListTagsForResource">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListTagsForResourceAsync(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Creates or modifies tags for a resource. Tags are key/value pairs (metadata)
* that can be used to manage a resource. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/TagResource">AWS
* API Reference</a></p>
*/
virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest& request) const;
/**
* <p>Creates or modifies tags for a resource. Tags are key/value pairs (metadata)
* that can be used to manage a resource. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/TagResource">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::TagResourceOutcomeCallable TagResourceCallable(const Model::TagResourceRequest& request) const;
/**
* <p>Creates or modifies tags for a resource. Tags are key/value pairs (metadata)
* that can be used to manage a resource. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/TagResource">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void TagResourceAsync(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Removes one or more tags (metadata key/value pairs) from a
* resource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/UntagResource">AWS
* API Reference</a></p>
*/
virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest& request) const;
/**
* <p>Removes one or more tags (metadata key/value pairs) from a
* resource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/UntagResource">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::UntagResourceOutcomeCallable UntagResourceCallable(const Model::UntagResourceRequest& request) const;
/**
* <p>Removes one or more tags (metadata key/value pairs) from a
* resource.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/UntagResource">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void UntagResourceAsync(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Updates a placement with the given attributes. To clear an attribute, pass an
* empty value (i.e., "").</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/UpdatePlacement">AWS
* API Reference</a></p>
*/
virtual Model::UpdatePlacementOutcome UpdatePlacement(const Model::UpdatePlacementRequest& request) const;
/**
* <p>Updates a placement with the given attributes. To clear an attribute, pass an
* empty value (i.e., "").</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/UpdatePlacement">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::UpdatePlacementOutcomeCallable UpdatePlacementCallable(const Model::UpdatePlacementRequest& request) const;
/**
* <p>Updates a placement with the given attributes. To clear an attribute, pass an
* empty value (i.e., "").</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/UpdatePlacement">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void UpdatePlacementAsync(const Model::UpdatePlacementRequest& request, const UpdatePlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Updates a project associated with your AWS account and region. With the
* exception of device template names, you can pass just the values that need to be
* updated because the update request will change only the values that are
* provided. To clear a value, pass the empty string (i.e.,
* <code>""</code>).</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/UpdateProject">AWS
* API Reference</a></p>
*/
virtual Model::UpdateProjectOutcome UpdateProject(const Model::UpdateProjectRequest& request) const;
/**
* <p>Updates a project associated with your AWS account and region. With the
* exception of device template names, you can pass just the values that need to be
* updated because the update request will change only the values that are
* provided. To clear a value, pass the empty string (i.e.,
* <code>""</code>).</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/UpdateProject">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::UpdateProjectOutcomeCallable UpdateProjectCallable(const Model::UpdateProjectRequest& request) const;
/**
* <p>Updates a project associated with your AWS account and region. With the
* exception of device template names, you can pass just the values that need to be
* updated because the update request will change only the values that are
* provided. To clear a value, pass the empty string (i.e.,
* <code>""</code>).</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/UpdateProject">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void UpdateProjectAsync(const Model::UpdateProjectRequest& request, const UpdateProjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
void OverrideEndpoint(const Aws::String& endpoint);
private:
void init(const Aws::Client::ClientConfiguration& clientConfiguration);
void AssociateDeviceWithPlacementAsyncHelper(const Model::AssociateDeviceWithPlacementRequest& request, const AssociateDeviceWithPlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void CreatePlacementAsyncHelper(const Model::CreatePlacementRequest& request, const CreatePlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void CreateProjectAsyncHelper(const Model::CreateProjectRequest& request, const CreateProjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DeletePlacementAsyncHelper(const Model::DeletePlacementRequest& request, const DeletePlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DeleteProjectAsyncHelper(const Model::DeleteProjectRequest& request, const DeleteProjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribePlacementAsyncHelper(const Model::DescribePlacementRequest& request, const DescribePlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeProjectAsyncHelper(const Model::DescribeProjectRequest& request, const DescribeProjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DisassociateDeviceFromPlacementAsyncHelper(const Model::DisassociateDeviceFromPlacementRequest& request, const DisassociateDeviceFromPlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void GetDevicesInPlacementAsyncHelper(const Model::GetDevicesInPlacementRequest& request, const GetDevicesInPlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListPlacementsAsyncHelper(const Model::ListPlacementsRequest& request, const ListPlacementsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListProjectsAsyncHelper(const Model::ListProjectsRequest& request, const ListProjectsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListTagsForResourceAsyncHelper(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void TagResourceAsyncHelper(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void UntagResourceAsyncHelper(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void UpdatePlacementAsyncHelper(const Model::UpdatePlacementRequest& request, const UpdatePlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void UpdateProjectAsyncHelper(const Model::UpdateProjectRequest& request, const UpdateProjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
Aws::String m_uri;
Aws::String m_configScheme;
std::shared_ptr<Aws::Utils::Threading::Executor> m_executor;
};
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,21 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace IoT1ClickProjects
{
namespace IoT1ClickProjectsEndpoint
{
AWS_IOT1CLICKPROJECTS_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace IoT1ClickProjectsEndpoint
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,23 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_IOT1CLICKPROJECTS_API IoT1ClickProjectsErrorMarshaller : public Aws::Client::JsonErrorMarshaller
{
public:
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
};
} // namespace Client
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/core/client/AWSError.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
namespace Aws
{
namespace IoT1ClickProjects
{
enum class IoT1ClickProjectsErrors
{
//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,
///////////////////////////////////////////////////////////////////////////////////////////
INVALID_REQUEST= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
RESOURCE_CONFLICT,
TOO_MANY_REQUESTS
};
class AWS_IOT1CLICKPROJECTS_API IoT1ClickProjectsError : public Aws::Client::AWSError<IoT1ClickProjectsErrors>
{
public:
IoT1ClickProjectsError() {}
IoT1ClickProjectsError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<IoT1ClickProjectsErrors>(rhs) {}
IoT1ClickProjectsError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<IoT1ClickProjectsErrors>(rhs) {}
IoT1ClickProjectsError(const Aws::Client::AWSError<IoT1ClickProjectsErrors>& rhs) : Aws::Client::AWSError<IoT1ClickProjectsErrors>(rhs) {}
IoT1ClickProjectsError(Aws::Client::AWSError<IoT1ClickProjectsErrors>&& rhs) : Aws::Client::AWSError<IoT1ClickProjectsErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace IoT1ClickProjectsErrorMapper
{
AWS_IOT1CLICKPROJECTS_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace IoT1ClickProjects
{
class AWS_IOT1CLICKPROJECTS_API IoT1ClickProjectsRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~IoT1ClickProjectsRequest () {}
void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }
inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();
if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_1 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2018-05-14"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace IoT1ClickProjects
} // namespace Aws

View File

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

View File

@@ -0,0 +1,239 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/IoT1ClickProjectsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKPROJECTS_API AssociateDeviceWithPlacementRequest : public IoT1ClickProjectsRequest
{
public:
AssociateDeviceWithPlacementRequest();
// 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 "AssociateDeviceWithPlacement"; }
Aws::String SerializePayload() const override;
/**
* <p>The name of the project containing the placement in which to associate the
* device.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The name of the project containing the placement in which to associate the
* device.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The name of the project containing the placement in which to associate the
* device.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The name of the project containing the placement in which to associate the
* device.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The name of the project containing the placement in which to associate the
* device.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The name of the project containing the placement in which to associate the
* device.</p>
*/
inline AssociateDeviceWithPlacementRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The name of the project containing the placement in which to associate the
* device.</p>
*/
inline AssociateDeviceWithPlacementRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The name of the project containing the placement in which to associate the
* device.</p>
*/
inline AssociateDeviceWithPlacementRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
/**
* <p>The name of the placement in which to associate the device.</p>
*/
inline const Aws::String& GetPlacementName() const{ return m_placementName; }
/**
* <p>The name of the placement in which to associate the device.</p>
*/
inline bool PlacementNameHasBeenSet() const { return m_placementNameHasBeenSet; }
/**
* <p>The name of the placement in which to associate the device.</p>
*/
inline void SetPlacementName(const Aws::String& value) { m_placementNameHasBeenSet = true; m_placementName = value; }
/**
* <p>The name of the placement in which to associate the device.</p>
*/
inline void SetPlacementName(Aws::String&& value) { m_placementNameHasBeenSet = true; m_placementName = std::move(value); }
/**
* <p>The name of the placement in which to associate the device.</p>
*/
inline void SetPlacementName(const char* value) { m_placementNameHasBeenSet = true; m_placementName.assign(value); }
/**
* <p>The name of the placement in which to associate the device.</p>
*/
inline AssociateDeviceWithPlacementRequest& WithPlacementName(const Aws::String& value) { SetPlacementName(value); return *this;}
/**
* <p>The name of the placement in which to associate the device.</p>
*/
inline AssociateDeviceWithPlacementRequest& WithPlacementName(Aws::String&& value) { SetPlacementName(std::move(value)); return *this;}
/**
* <p>The name of the placement in which to associate the device.</p>
*/
inline AssociateDeviceWithPlacementRequest& WithPlacementName(const char* value) { SetPlacementName(value); return *this;}
/**
* <p>The ID of the physical device to be associated with the given placement in
* the project. Note that a mandatory 4 character prefix is required for all
* <code>deviceId</code> values.</p>
*/
inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
/**
* <p>The ID of the physical device to be associated with the given placement in
* the project. Note that a mandatory 4 character prefix is required for all
* <code>deviceId</code> values.</p>
*/
inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
/**
* <p>The ID of the physical device to be associated with the given placement in
* the project. Note that a mandatory 4 character prefix is required for all
* <code>deviceId</code> values.</p>
*/
inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
/**
* <p>The ID of the physical device to be associated with the given placement in
* the project. Note that a mandatory 4 character prefix is required for all
* <code>deviceId</code> values.</p>
*/
inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
/**
* <p>The ID of the physical device to be associated with the given placement in
* the project. Note that a mandatory 4 character prefix is required for all
* <code>deviceId</code> values.</p>
*/
inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
/**
* <p>The ID of the physical device to be associated with the given placement in
* the project. Note that a mandatory 4 character prefix is required for all
* <code>deviceId</code> values.</p>
*/
inline AssociateDeviceWithPlacementRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
/**
* <p>The ID of the physical device to be associated with the given placement in
* the project. Note that a mandatory 4 character prefix is required for all
* <code>deviceId</code> values.</p>
*/
inline AssociateDeviceWithPlacementRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
/**
* <p>The ID of the physical device to be associated with the given placement in
* the project. Note that a mandatory 4 character prefix is required for all
* <code>deviceId</code> values.</p>
*/
inline AssociateDeviceWithPlacementRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
/**
* <p>The device template name to associate with the device ID.</p>
*/
inline const Aws::String& GetDeviceTemplateName() const{ return m_deviceTemplateName; }
/**
* <p>The device template name to associate with the device ID.</p>
*/
inline bool DeviceTemplateNameHasBeenSet() const { return m_deviceTemplateNameHasBeenSet; }
/**
* <p>The device template name to associate with the device ID.</p>
*/
inline void SetDeviceTemplateName(const Aws::String& value) { m_deviceTemplateNameHasBeenSet = true; m_deviceTemplateName = value; }
/**
* <p>The device template name to associate with the device ID.</p>
*/
inline void SetDeviceTemplateName(Aws::String&& value) { m_deviceTemplateNameHasBeenSet = true; m_deviceTemplateName = std::move(value); }
/**
* <p>The device template name to associate with the device ID.</p>
*/
inline void SetDeviceTemplateName(const char* value) { m_deviceTemplateNameHasBeenSet = true; m_deviceTemplateName.assign(value); }
/**
* <p>The device template name to associate with the device ID.</p>
*/
inline AssociateDeviceWithPlacementRequest& WithDeviceTemplateName(const Aws::String& value) { SetDeviceTemplateName(value); return *this;}
/**
* <p>The device template name to associate with the device ID.</p>
*/
inline AssociateDeviceWithPlacementRequest& WithDeviceTemplateName(Aws::String&& value) { SetDeviceTemplateName(std::move(value)); return *this;}
/**
* <p>The device template name to associate with the device ID.</p>
*/
inline AssociateDeviceWithPlacementRequest& WithDeviceTemplateName(const char* value) { SetDeviceTemplateName(value); return *this;}
private:
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
Aws::String m_placementName;
bool m_placementNameHasBeenSet;
Aws::String m_deviceId;
bool m_deviceIdHasBeenSet;
Aws::String m_deviceTemplateName;
bool m_deviceTemplateNameHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
class AWS_IOT1CLICKPROJECTS_API AssociateDeviceWithPlacementResult
{
public:
AssociateDeviceWithPlacementResult();
AssociateDeviceWithPlacementResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AssociateDeviceWithPlacementResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,210 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/IoT1ClickProjectsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKPROJECTS_API CreatePlacementRequest : public IoT1ClickProjectsRequest
{
public:
CreatePlacementRequest();
// 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 "CreatePlacement"; }
Aws::String SerializePayload() const override;
/**
* <p>The name of the placement to be created.</p>
*/
inline const Aws::String& GetPlacementName() const{ return m_placementName; }
/**
* <p>The name of the placement to be created.</p>
*/
inline bool PlacementNameHasBeenSet() const { return m_placementNameHasBeenSet; }
/**
* <p>The name of the placement to be created.</p>
*/
inline void SetPlacementName(const Aws::String& value) { m_placementNameHasBeenSet = true; m_placementName = value; }
/**
* <p>The name of the placement to be created.</p>
*/
inline void SetPlacementName(Aws::String&& value) { m_placementNameHasBeenSet = true; m_placementName = std::move(value); }
/**
* <p>The name of the placement to be created.</p>
*/
inline void SetPlacementName(const char* value) { m_placementNameHasBeenSet = true; m_placementName.assign(value); }
/**
* <p>The name of the placement to be created.</p>
*/
inline CreatePlacementRequest& WithPlacementName(const Aws::String& value) { SetPlacementName(value); return *this;}
/**
* <p>The name of the placement to be created.</p>
*/
inline CreatePlacementRequest& WithPlacementName(Aws::String&& value) { SetPlacementName(std::move(value)); return *this;}
/**
* <p>The name of the placement to be created.</p>
*/
inline CreatePlacementRequest& WithPlacementName(const char* value) { SetPlacementName(value); return *this;}
/**
* <p>The name of the project in which to create the placement.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The name of the project in which to create the placement.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The name of the project in which to create the placement.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The name of the project in which to create the placement.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The name of the project in which to create the placement.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The name of the project in which to create the placement.</p>
*/
inline CreatePlacementRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The name of the project in which to create the placement.</p>
*/
inline CreatePlacementRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The name of the project in which to create the placement.</p>
*/
inline CreatePlacementRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
/**
* <p>Optional user-defined key/value pairs providing contextual data (such as
* location or function) for the placement.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
/**
* <p>Optional user-defined key/value pairs providing contextual data (such as
* location or function) for the placement.</p>
*/
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
/**
* <p>Optional user-defined key/value pairs providing contextual data (such as
* location or function) for the placement.</p>
*/
inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
/**
* <p>Optional user-defined key/value pairs providing contextual data (such as
* location or function) for the placement.</p>
*/
inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
/**
* <p>Optional user-defined key/value pairs providing contextual data (such as
* location or function) for the placement.</p>
*/
inline CreatePlacementRequest& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
/**
* <p>Optional user-defined key/value pairs providing contextual data (such as
* location or function) for the placement.</p>
*/
inline CreatePlacementRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
/**
* <p>Optional user-defined key/value pairs providing contextual data (such as
* location or function) for the placement.</p>
*/
inline CreatePlacementRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
/**
* <p>Optional user-defined key/value pairs providing contextual data (such as
* location or function) for the placement.</p>
*/
inline CreatePlacementRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
/**
* <p>Optional user-defined key/value pairs providing contextual data (such as
* location or function) for the placement.</p>
*/
inline CreatePlacementRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
/**
* <p>Optional user-defined key/value pairs providing contextual data (such as
* location or function) for the placement.</p>
*/
inline CreatePlacementRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Optional user-defined key/value pairs providing contextual data (such as
* location or function) for the placement.</p>
*/
inline CreatePlacementRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
/**
* <p>Optional user-defined key/value pairs providing contextual data (such as
* location or function) for the placement.</p>
*/
inline CreatePlacementRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
/**
* <p>Optional user-defined key/value pairs providing contextual data (such as
* location or function) for the placement.</p>
*/
inline CreatePlacementRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
private:
Aws::String m_placementName;
bool m_placementNameHasBeenSet;
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_attributes;
bool m_attributesHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
class AWS_IOT1CLICKPROJECTS_API CreatePlacementResult
{
public:
CreatePlacementResult();
CreatePlacementResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreatePlacementResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,308 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/IoT1ClickProjectsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iot1click-projects/model/PlacementTemplate.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKPROJECTS_API CreateProjectRequest : public IoT1ClickProjectsRequest
{
public:
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::String SerializePayload() const override;
/**
* <p>The name of the project to create.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The name of the project to create.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The name of the project to create.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The name of the project to create.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The name of the project to create.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The name of the project to create.</p>
*/
inline CreateProjectRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The name of the project to create.</p>
*/
inline CreateProjectRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The name of the project to create.</p>
*/
inline CreateProjectRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
/**
* <p>An optional description for the project.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>An optional description for the project.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>An optional description for the project.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>An optional description for the project.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>An optional description for the project.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>An optional description for the project.</p>
*/
inline CreateProjectRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>An optional description for the project.</p>
*/
inline CreateProjectRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>An optional description for the project.</p>
*/
inline CreateProjectRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The schema defining the placement to be created. A placement template defines
* placement default attributes and device templates. You cannot add or remove
* device templates after the project has been created. However, you can update
* <code>callbackOverrides</code> for the device templates using the
* <code>UpdateProject</code> API.</p>
*/
inline const PlacementTemplate& GetPlacementTemplate() const{ return m_placementTemplate; }
/**
* <p>The schema defining the placement to be created. A placement template defines
* placement default attributes and device templates. You cannot add or remove
* device templates after the project has been created. However, you can update
* <code>callbackOverrides</code> for the device templates using the
* <code>UpdateProject</code> API.</p>
*/
inline bool PlacementTemplateHasBeenSet() const { return m_placementTemplateHasBeenSet; }
/**
* <p>The schema defining the placement to be created. A placement template defines
* placement default attributes and device templates. You cannot add or remove
* device templates after the project has been created. However, you can update
* <code>callbackOverrides</code> for the device templates using the
* <code>UpdateProject</code> API.</p>
*/
inline void SetPlacementTemplate(const PlacementTemplate& value) { m_placementTemplateHasBeenSet = true; m_placementTemplate = value; }
/**
* <p>The schema defining the placement to be created. A placement template defines
* placement default attributes and device templates. You cannot add or remove
* device templates after the project has been created. However, you can update
* <code>callbackOverrides</code> for the device templates using the
* <code>UpdateProject</code> API.</p>
*/
inline void SetPlacementTemplate(PlacementTemplate&& value) { m_placementTemplateHasBeenSet = true; m_placementTemplate = std::move(value); }
/**
* <p>The schema defining the placement to be created. A placement template defines
* placement default attributes and device templates. You cannot add or remove
* device templates after the project has been created. However, you can update
* <code>callbackOverrides</code> for the device templates using the
* <code>UpdateProject</code> API.</p>
*/
inline CreateProjectRequest& WithPlacementTemplate(const PlacementTemplate& value) { SetPlacementTemplate(value); return *this;}
/**
* <p>The schema defining the placement to be created. A placement template defines
* placement default attributes and device templates. You cannot add or remove
* device templates after the project has been created. However, you can update
* <code>callbackOverrides</code> for the device templates using the
* <code>UpdateProject</code> API.</p>
*/
inline CreateProjectRequest& WithPlacementTemplate(PlacementTemplate&& value) { SetPlacementTemplate(std::move(value)); return *this;}
/**
* <p>Optional tags (metadata key/value pairs) to be associated with the project.
* For example, <code>{ {"key1": "value1", "key2": "value2"} }</code>. For more
* information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>Optional tags (metadata key/value pairs) to be associated with the project.
* For example, <code>{ {"key1": "value1", "key2": "value2"} }</code>. For more
* information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Optional tags (metadata key/value pairs) to be associated with the project.
* For example, <code>{ {"key1": "value1", "key2": "value2"} }</code>. For more
* information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Optional tags (metadata key/value pairs) to be associated with the project.
* For example, <code>{ {"key1": "value1", "key2": "value2"} }</code>. For more
* information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Optional tags (metadata key/value pairs) to be associated with the project.
* For example, <code>{ {"key1": "value1", "key2": "value2"} }</code>. For more
* information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p>
*/
inline CreateProjectRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>Optional tags (metadata key/value pairs) to be associated with the project.
* For example, <code>{ {"key1": "value1", "key2": "value2"} }</code>. For more
* information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p>
*/
inline CreateProjectRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Optional tags (metadata key/value pairs) to be associated with the project.
* For example, <code>{ {"key1": "value1", "key2": "value2"} }</code>. For more
* information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p>
*/
inline CreateProjectRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>Optional tags (metadata key/value pairs) to be associated with the project.
* For example, <code>{ {"key1": "value1", "key2": "value2"} }</code>. For more
* information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p>
*/
inline CreateProjectRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>Optional tags (metadata key/value pairs) to be associated with the project.
* For example, <code>{ {"key1": "value1", "key2": "value2"} }</code>. For more
* information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p>
*/
inline CreateProjectRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>Optional tags (metadata key/value pairs) to be associated with the project.
* For example, <code>{ {"key1": "value1", "key2": "value2"} }</code>. For more
* information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p>
*/
inline CreateProjectRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Optional tags (metadata key/value pairs) to be associated with the project.
* For example, <code>{ {"key1": "value1", "key2": "value2"} }</code>. For more
* information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p>
*/
inline CreateProjectRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>Optional tags (metadata key/value pairs) to be associated with the project.
* For example, <code>{ {"key1": "value1", "key2": "value2"} }</code>. For more
* information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p>
*/
inline CreateProjectRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>Optional tags (metadata key/value pairs) to be associated with the project.
* For example, <code>{ {"key1": "value1", "key2": "value2"} }</code>. For more
* information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p>
*/
inline CreateProjectRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
PlacementTemplate m_placementTemplate;
bool m_placementTemplateHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
class AWS_IOT1CLICKPROJECTS_API CreateProjectResult
{
public:
CreateProjectResult();
CreateProjectResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateProjectResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,127 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/IoT1ClickProjectsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKPROJECTS_API DeletePlacementRequest : public IoT1ClickProjectsRequest
{
public:
DeletePlacementRequest();
// 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 "DeletePlacement"; }
Aws::String SerializePayload() const override;
/**
* <p>The name of the empty placement to delete.</p>
*/
inline const Aws::String& GetPlacementName() const{ return m_placementName; }
/**
* <p>The name of the empty placement to delete.</p>
*/
inline bool PlacementNameHasBeenSet() const { return m_placementNameHasBeenSet; }
/**
* <p>The name of the empty placement to delete.</p>
*/
inline void SetPlacementName(const Aws::String& value) { m_placementNameHasBeenSet = true; m_placementName = value; }
/**
* <p>The name of the empty placement to delete.</p>
*/
inline void SetPlacementName(Aws::String&& value) { m_placementNameHasBeenSet = true; m_placementName = std::move(value); }
/**
* <p>The name of the empty placement to delete.</p>
*/
inline void SetPlacementName(const char* value) { m_placementNameHasBeenSet = true; m_placementName.assign(value); }
/**
* <p>The name of the empty placement to delete.</p>
*/
inline DeletePlacementRequest& WithPlacementName(const Aws::String& value) { SetPlacementName(value); return *this;}
/**
* <p>The name of the empty placement to delete.</p>
*/
inline DeletePlacementRequest& WithPlacementName(Aws::String&& value) { SetPlacementName(std::move(value)); return *this;}
/**
* <p>The name of the empty placement to delete.</p>
*/
inline DeletePlacementRequest& WithPlacementName(const char* value) { SetPlacementName(value); return *this;}
/**
* <p>The project containing the empty placement to delete.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The project containing the empty placement to delete.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The project containing the empty placement to delete.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The project containing the empty placement to delete.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The project containing the empty placement to delete.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The project containing the empty placement to delete.</p>
*/
inline DeletePlacementRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The project containing the empty placement to delete.</p>
*/
inline DeletePlacementRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The project containing the empty placement to delete.</p>
*/
inline DeletePlacementRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
private:
Aws::String m_placementName;
bool m_placementNameHasBeenSet;
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
class AWS_IOT1CLICKPROJECTS_API DeletePlacementResult
{
public:
DeletePlacementResult();
DeletePlacementResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeletePlacementResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/IoT1ClickProjectsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKPROJECTS_API DeleteProjectRequest : public IoT1ClickProjectsRequest
{
public:
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::String SerializePayload() const override;
/**
* <p>The name of the empty project to delete.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The name of the empty project to delete.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The name of the empty project to delete.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The name of the empty project to delete.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The name of the empty project to delete.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The name of the empty project to delete.</p>
*/
inline DeleteProjectRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The name of the empty project to delete.</p>
*/
inline DeleteProjectRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The name of the empty project to delete.</p>
*/
inline DeleteProjectRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
private:
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
class AWS_IOT1CLICKPROJECTS_API DeleteProjectResult
{
public:
DeleteProjectResult();
DeleteProjectResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteProjectResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,127 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/IoT1ClickProjectsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKPROJECTS_API DescribePlacementRequest : public IoT1ClickProjectsRequest
{
public:
DescribePlacementRequest();
// 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 "DescribePlacement"; }
Aws::String SerializePayload() const override;
/**
* <p>The name of the placement within a project.</p>
*/
inline const Aws::String& GetPlacementName() const{ return m_placementName; }
/**
* <p>The name of the placement within a project.</p>
*/
inline bool PlacementNameHasBeenSet() const { return m_placementNameHasBeenSet; }
/**
* <p>The name of the placement within a project.</p>
*/
inline void SetPlacementName(const Aws::String& value) { m_placementNameHasBeenSet = true; m_placementName = value; }
/**
* <p>The name of the placement within a project.</p>
*/
inline void SetPlacementName(Aws::String&& value) { m_placementNameHasBeenSet = true; m_placementName = std::move(value); }
/**
* <p>The name of the placement within a project.</p>
*/
inline void SetPlacementName(const char* value) { m_placementNameHasBeenSet = true; m_placementName.assign(value); }
/**
* <p>The name of the placement within a project.</p>
*/
inline DescribePlacementRequest& WithPlacementName(const Aws::String& value) { SetPlacementName(value); return *this;}
/**
* <p>The name of the placement within a project.</p>
*/
inline DescribePlacementRequest& WithPlacementName(Aws::String&& value) { SetPlacementName(std::move(value)); return *this;}
/**
* <p>The name of the placement within a project.</p>
*/
inline DescribePlacementRequest& WithPlacementName(const char* value) { SetPlacementName(value); return *this;}
/**
* <p>The project containing the placement to be described.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The project containing the placement to be described.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The project containing the placement to be described.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The project containing the placement to be described.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The project containing the placement to be described.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The project containing the placement to be described.</p>
*/
inline DescribePlacementRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The project containing the placement to be described.</p>
*/
inline DescribePlacementRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The project containing the placement to be described.</p>
*/
inline DescribePlacementRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
private:
Aws::String m_placementName;
bool m_placementNameHasBeenSet;
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/model/PlacementDescription.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
class AWS_IOT1CLICKPROJECTS_API DescribePlacementResult
{
public:
DescribePlacementResult();
DescribePlacementResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribePlacementResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An object describing the placement.</p>
*/
inline const PlacementDescription& GetPlacement() const{ return m_placement; }
/**
* <p>An object describing the placement.</p>
*/
inline void SetPlacement(const PlacementDescription& value) { m_placement = value; }
/**
* <p>An object describing the placement.</p>
*/
inline void SetPlacement(PlacementDescription&& value) { m_placement = std::move(value); }
/**
* <p>An object describing the placement.</p>
*/
inline DescribePlacementResult& WithPlacement(const PlacementDescription& value) { SetPlacement(value); return *this;}
/**
* <p>An object describing the placement.</p>
*/
inline DescribePlacementResult& WithPlacement(PlacementDescription&& value) { SetPlacement(std::move(value)); return *this;}
private:
PlacementDescription m_placement;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/IoT1ClickProjectsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKPROJECTS_API DescribeProjectRequest : public IoT1ClickProjectsRequest
{
public:
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::String SerializePayload() const override;
/**
* <p>The name of the project to be described.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The name of the project to be described.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The name of the project to be described.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The name of the project to be described.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The name of the project to be described.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The name of the project to be described.</p>
*/
inline DescribeProjectRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The name of the project to be described.</p>
*/
inline DescribeProjectRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The name of the project to be described.</p>
*/
inline DescribeProjectRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
private:
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,67 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/model/ProjectDescription.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
class AWS_IOT1CLICKPROJECTS_API DescribeProjectResult
{
public:
DescribeProjectResult();
DescribeProjectResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeProjectResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An object describing the project.</p>
*/
inline const ProjectDescription& GetProject() const{ return m_project; }
/**
* <p>An object describing the project.</p>
*/
inline void SetProject(const ProjectDescription& value) { m_project = value; }
/**
* <p>An object describing the project.</p>
*/
inline void SetProject(ProjectDescription&& value) { m_project = std::move(value); }
/**
* <p>An object describing the project.</p>
*/
inline DescribeProjectResult& WithProject(const ProjectDescription& value) { SetProject(value); return *this;}
/**
* <p>An object describing the project.</p>
*/
inline DescribeProjectResult& WithProject(ProjectDescription&& value) { SetProject(std::move(value)); return *this;}
private:
ProjectDescription m_project;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,172 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
/**
* <p>An object representing a device for a placement template (see
* <a>PlacementTemplate</a>).</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DeviceTemplate">AWS
* API Reference</a></p>
*/
class AWS_IOT1CLICKPROJECTS_API DeviceTemplate
{
public:
DeviceTemplate();
DeviceTemplate(Aws::Utils::Json::JsonView jsonValue);
DeviceTemplate& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The device type, which currently must be <code>"button"</code>.</p>
*/
inline const Aws::String& GetDeviceType() const{ return m_deviceType; }
/**
* <p>The device type, which currently must be <code>"button"</code>.</p>
*/
inline bool DeviceTypeHasBeenSet() const { return m_deviceTypeHasBeenSet; }
/**
* <p>The device type, which currently must be <code>"button"</code>.</p>
*/
inline void SetDeviceType(const Aws::String& value) { m_deviceTypeHasBeenSet = true; m_deviceType = value; }
/**
* <p>The device type, which currently must be <code>"button"</code>.</p>
*/
inline void SetDeviceType(Aws::String&& value) { m_deviceTypeHasBeenSet = true; m_deviceType = std::move(value); }
/**
* <p>The device type, which currently must be <code>"button"</code>.</p>
*/
inline void SetDeviceType(const char* value) { m_deviceTypeHasBeenSet = true; m_deviceType.assign(value); }
/**
* <p>The device type, which currently must be <code>"button"</code>.</p>
*/
inline DeviceTemplate& WithDeviceType(const Aws::String& value) { SetDeviceType(value); return *this;}
/**
* <p>The device type, which currently must be <code>"button"</code>.</p>
*/
inline DeviceTemplate& WithDeviceType(Aws::String&& value) { SetDeviceType(std::move(value)); return *this;}
/**
* <p>The device type, which currently must be <code>"button"</code>.</p>
*/
inline DeviceTemplate& WithDeviceType(const char* value) { SetDeviceType(value); return *this;}
/**
* <p>An optional Lambda function to invoke instead of the default Lambda function
* provided by the placement template.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetCallbackOverrides() const{ return m_callbackOverrides; }
/**
* <p>An optional Lambda function to invoke instead of the default Lambda function
* provided by the placement template.</p>
*/
inline bool CallbackOverridesHasBeenSet() const { return m_callbackOverridesHasBeenSet; }
/**
* <p>An optional Lambda function to invoke instead of the default Lambda function
* provided by the placement template.</p>
*/
inline void SetCallbackOverrides(const Aws::Map<Aws::String, Aws::String>& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides = value; }
/**
* <p>An optional Lambda function to invoke instead of the default Lambda function
* provided by the placement template.</p>
*/
inline void SetCallbackOverrides(Aws::Map<Aws::String, Aws::String>&& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides = std::move(value); }
/**
* <p>An optional Lambda function to invoke instead of the default Lambda function
* provided by the placement template.</p>
*/
inline DeviceTemplate& WithCallbackOverrides(const Aws::Map<Aws::String, Aws::String>& value) { SetCallbackOverrides(value); return *this;}
/**
* <p>An optional Lambda function to invoke instead of the default Lambda function
* provided by the placement template.</p>
*/
inline DeviceTemplate& WithCallbackOverrides(Aws::Map<Aws::String, Aws::String>&& value) { SetCallbackOverrides(std::move(value)); return *this;}
/**
* <p>An optional Lambda function to invoke instead of the default Lambda function
* provided by the placement template.</p>
*/
inline DeviceTemplate& AddCallbackOverrides(const Aws::String& key, const Aws::String& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(key, value); return *this; }
/**
* <p>An optional Lambda function to invoke instead of the default Lambda function
* provided by the placement template.</p>
*/
inline DeviceTemplate& AddCallbackOverrides(Aws::String&& key, const Aws::String& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(std::move(key), value); return *this; }
/**
* <p>An optional Lambda function to invoke instead of the default Lambda function
* provided by the placement template.</p>
*/
inline DeviceTemplate& AddCallbackOverrides(const Aws::String& key, Aws::String&& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(key, std::move(value)); return *this; }
/**
* <p>An optional Lambda function to invoke instead of the default Lambda function
* provided by the placement template.</p>
*/
inline DeviceTemplate& AddCallbackOverrides(Aws::String&& key, Aws::String&& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>An optional Lambda function to invoke instead of the default Lambda function
* provided by the placement template.</p>
*/
inline DeviceTemplate& AddCallbackOverrides(const char* key, Aws::String&& value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(key, std::move(value)); return *this; }
/**
* <p>An optional Lambda function to invoke instead of the default Lambda function
* provided by the placement template.</p>
*/
inline DeviceTemplate& AddCallbackOverrides(Aws::String&& key, const char* value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(std::move(key), value); return *this; }
/**
* <p>An optional Lambda function to invoke instead of the default Lambda function
* provided by the placement template.</p>
*/
inline DeviceTemplate& AddCallbackOverrides(const char* key, const char* value) { m_callbackOverridesHasBeenSet = true; m_callbackOverrides.emplace(key, value); return *this; }
private:
Aws::String m_deviceType;
bool m_deviceTypeHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_callbackOverrides;
bool m_callbackOverridesHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,171 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/IoT1ClickProjectsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKPROJECTS_API DisassociateDeviceFromPlacementRequest : public IoT1ClickProjectsRequest
{
public:
DisassociateDeviceFromPlacementRequest();
// 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 "DisassociateDeviceFromPlacement"; }
Aws::String SerializePayload() const override;
/**
* <p>The name of the project that contains the placement.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The name of the project that contains the placement.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The name of the project that contains the placement.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The name of the project that contains the placement.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The name of the project that contains the placement.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The name of the project that contains the placement.</p>
*/
inline DisassociateDeviceFromPlacementRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The name of the project that contains the placement.</p>
*/
inline DisassociateDeviceFromPlacementRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The name of the project that contains the placement.</p>
*/
inline DisassociateDeviceFromPlacementRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
/**
* <p>The name of the placement that the device should be removed from.</p>
*/
inline const Aws::String& GetPlacementName() const{ return m_placementName; }
/**
* <p>The name of the placement that the device should be removed from.</p>
*/
inline bool PlacementNameHasBeenSet() const { return m_placementNameHasBeenSet; }
/**
* <p>The name of the placement that the device should be removed from.</p>
*/
inline void SetPlacementName(const Aws::String& value) { m_placementNameHasBeenSet = true; m_placementName = value; }
/**
* <p>The name of the placement that the device should be removed from.</p>
*/
inline void SetPlacementName(Aws::String&& value) { m_placementNameHasBeenSet = true; m_placementName = std::move(value); }
/**
* <p>The name of the placement that the device should be removed from.</p>
*/
inline void SetPlacementName(const char* value) { m_placementNameHasBeenSet = true; m_placementName.assign(value); }
/**
* <p>The name of the placement that the device should be removed from.</p>
*/
inline DisassociateDeviceFromPlacementRequest& WithPlacementName(const Aws::String& value) { SetPlacementName(value); return *this;}
/**
* <p>The name of the placement that the device should be removed from.</p>
*/
inline DisassociateDeviceFromPlacementRequest& WithPlacementName(Aws::String&& value) { SetPlacementName(std::move(value)); return *this;}
/**
* <p>The name of the placement that the device should be removed from.</p>
*/
inline DisassociateDeviceFromPlacementRequest& WithPlacementName(const char* value) { SetPlacementName(value); return *this;}
/**
* <p>The device ID that should be removed from the placement.</p>
*/
inline const Aws::String& GetDeviceTemplateName() const{ return m_deviceTemplateName; }
/**
* <p>The device ID that should be removed from the placement.</p>
*/
inline bool DeviceTemplateNameHasBeenSet() const { return m_deviceTemplateNameHasBeenSet; }
/**
* <p>The device ID that should be removed from the placement.</p>
*/
inline void SetDeviceTemplateName(const Aws::String& value) { m_deviceTemplateNameHasBeenSet = true; m_deviceTemplateName = value; }
/**
* <p>The device ID that should be removed from the placement.</p>
*/
inline void SetDeviceTemplateName(Aws::String&& value) { m_deviceTemplateNameHasBeenSet = true; m_deviceTemplateName = std::move(value); }
/**
* <p>The device ID that should be removed from the placement.</p>
*/
inline void SetDeviceTemplateName(const char* value) { m_deviceTemplateNameHasBeenSet = true; m_deviceTemplateName.assign(value); }
/**
* <p>The device ID that should be removed from the placement.</p>
*/
inline DisassociateDeviceFromPlacementRequest& WithDeviceTemplateName(const Aws::String& value) { SetDeviceTemplateName(value); return *this;}
/**
* <p>The device ID that should be removed from the placement.</p>
*/
inline DisassociateDeviceFromPlacementRequest& WithDeviceTemplateName(Aws::String&& value) { SetDeviceTemplateName(std::move(value)); return *this;}
/**
* <p>The device ID that should be removed from the placement.</p>
*/
inline DisassociateDeviceFromPlacementRequest& WithDeviceTemplateName(const char* value) { SetDeviceTemplateName(value); return *this;}
private:
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
Aws::String m_placementName;
bool m_placementNameHasBeenSet;
Aws::String m_deviceTemplateName;
bool m_deviceTemplateNameHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
class AWS_IOT1CLICKPROJECTS_API DisassociateDeviceFromPlacementResult
{
public:
DisassociateDeviceFromPlacementResult();
DisassociateDeviceFromPlacementResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DisassociateDeviceFromPlacementResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,127 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/IoT1ClickProjectsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKPROJECTS_API GetDevicesInPlacementRequest : public IoT1ClickProjectsRequest
{
public:
GetDevicesInPlacementRequest();
// 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 "GetDevicesInPlacement"; }
Aws::String SerializePayload() const override;
/**
* <p>The name of the project containing the placement.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The name of the project containing the placement.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The name of the project containing the placement.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The name of the project containing the placement.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The name of the project containing the placement.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The name of the project containing the placement.</p>
*/
inline GetDevicesInPlacementRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The name of the project containing the placement.</p>
*/
inline GetDevicesInPlacementRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The name of the project containing the placement.</p>
*/
inline GetDevicesInPlacementRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
/**
* <p>The name of the placement to get the devices from.</p>
*/
inline const Aws::String& GetPlacementName() const{ return m_placementName; }
/**
* <p>The name of the placement to get the devices from.</p>
*/
inline bool PlacementNameHasBeenSet() const { return m_placementNameHasBeenSet; }
/**
* <p>The name of the placement to get the devices from.</p>
*/
inline void SetPlacementName(const Aws::String& value) { m_placementNameHasBeenSet = true; m_placementName = value; }
/**
* <p>The name of the placement to get the devices from.</p>
*/
inline void SetPlacementName(Aws::String&& value) { m_placementNameHasBeenSet = true; m_placementName = std::move(value); }
/**
* <p>The name of the placement to get the devices from.</p>
*/
inline void SetPlacementName(const char* value) { m_placementNameHasBeenSet = true; m_placementName.assign(value); }
/**
* <p>The name of the placement to get the devices from.</p>
*/
inline GetDevicesInPlacementRequest& WithPlacementName(const Aws::String& value) { SetPlacementName(value); return *this;}
/**
* <p>The name of the placement to get the devices from.</p>
*/
inline GetDevicesInPlacementRequest& WithPlacementName(Aws::String&& value) { SetPlacementName(std::move(value)); return *this;}
/**
* <p>The name of the placement to get the devices from.</p>
*/
inline GetDevicesInPlacementRequest& WithPlacementName(const char* value) { SetPlacementName(value); return *this;}
private:
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
Aws::String m_placementName;
bool m_placementNameHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,103 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
class AWS_IOT1CLICKPROJECTS_API GetDevicesInPlacementResult
{
public:
GetDevicesInPlacementResult();
GetDevicesInPlacementResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetDevicesInPlacementResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An object containing the devices (zero or more) within the placement.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetDevices() const{ return m_devices; }
/**
* <p>An object containing the devices (zero or more) within the placement.</p>
*/
inline void SetDevices(const Aws::Map<Aws::String, Aws::String>& value) { m_devices = value; }
/**
* <p>An object containing the devices (zero or more) within the placement.</p>
*/
inline void SetDevices(Aws::Map<Aws::String, Aws::String>&& value) { m_devices = std::move(value); }
/**
* <p>An object containing the devices (zero or more) within the placement.</p>
*/
inline GetDevicesInPlacementResult& WithDevices(const Aws::Map<Aws::String, Aws::String>& value) { SetDevices(value); return *this;}
/**
* <p>An object containing the devices (zero or more) within the placement.</p>
*/
inline GetDevicesInPlacementResult& WithDevices(Aws::Map<Aws::String, Aws::String>&& value) { SetDevices(std::move(value)); return *this;}
/**
* <p>An object containing the devices (zero or more) within the placement.</p>
*/
inline GetDevicesInPlacementResult& AddDevices(const Aws::String& key, const Aws::String& value) { m_devices.emplace(key, value); return *this; }
/**
* <p>An object containing the devices (zero or more) within the placement.</p>
*/
inline GetDevicesInPlacementResult& AddDevices(Aws::String&& key, const Aws::String& value) { m_devices.emplace(std::move(key), value); return *this; }
/**
* <p>An object containing the devices (zero or more) within the placement.</p>
*/
inline GetDevicesInPlacementResult& AddDevices(const Aws::String& key, Aws::String&& value) { m_devices.emplace(key, std::move(value)); return *this; }
/**
* <p>An object containing the devices (zero or more) within the placement.</p>
*/
inline GetDevicesInPlacementResult& AddDevices(Aws::String&& key, Aws::String&& value) { m_devices.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>An object containing the devices (zero or more) within the placement.</p>
*/
inline GetDevicesInPlacementResult& AddDevices(const char* key, Aws::String&& value) { m_devices.emplace(key, std::move(value)); return *this; }
/**
* <p>An object containing the devices (zero or more) within the placement.</p>
*/
inline GetDevicesInPlacementResult& AddDevices(Aws::String&& key, const char* value) { m_devices.emplace(std::move(key), value); return *this; }
/**
* <p>An object containing the devices (zero or more) within the placement.</p>
*/
inline GetDevicesInPlacementResult& AddDevices(const char* key, const char* value) { m_devices.emplace(key, value); return *this; }
private:
Aws::Map<Aws::String, Aws::String> m_devices;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,100 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
/**
* <p/><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/InternalFailureException">AWS
* API Reference</a></p>
*/
class AWS_IOT1CLICKPROJECTS_API InternalFailureException
{
public:
InternalFailureException();
InternalFailureException(Aws::Utils::Json::JsonView jsonValue);
InternalFailureException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetCode() const{ return m_code; }
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
inline InternalFailureException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
inline InternalFailureException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
inline InternalFailureException& WithCode(const char* value) { SetCode(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 InternalFailureException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
inline InternalFailureException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
inline InternalFailureException& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::String m_code;
bool m_codeHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,100 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
/**
* <p/><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/InvalidRequestException">AWS
* API Reference</a></p>
*/
class AWS_IOT1CLICKPROJECTS_API InvalidRequestException
{
public:
InvalidRequestException();
InvalidRequestException(Aws::Utils::Json::JsonView jsonValue);
InvalidRequestException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetCode() const{ return m_code; }
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
inline InvalidRequestException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
inline InvalidRequestException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
inline InvalidRequestException& WithCode(const char* value) { SetCode(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 InvalidRequestException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
inline InvalidRequestException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
inline InvalidRequestException& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::String m_code;
bool m_codeHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,161 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/IoT1ClickProjectsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace IoT1ClickProjects
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKPROJECTS_API ListPlacementsRequest : public IoT1ClickProjectsRequest
{
public:
ListPlacementsRequest();
// 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 "ListPlacements"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The project containing the placements to be listed.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The project containing the placements to be listed.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The project containing the placements to be listed.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The project containing the placements to be listed.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The project containing the placements to be listed.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The project containing the placements to be listed.</p>
*/
inline ListPlacementsRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The project containing the placements to be listed.</p>
*/
inline ListPlacementsRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The project containing the placements to be listed.</p>
*/
inline ListPlacementsRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline ListPlacementsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline ListPlacementsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline ListPlacementsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of results to return per request. If not set, a default
* value of 100 is used.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results to return per request. If not set, a default
* value of 100 is used.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results to return per request. If not set, a default
* value of 100 is used.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results to return per request. If not set, a default
* value of 100 is used.</p>
*/
inline ListPlacementsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iot1click-projects/model/PlacementSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
class AWS_IOT1CLICKPROJECTS_API ListPlacementsResult
{
public:
ListPlacementsResult();
ListPlacementsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListPlacementsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An object listing the requested placements.</p>
*/
inline const Aws::Vector<PlacementSummary>& GetPlacements() const{ return m_placements; }
/**
* <p>An object listing the requested placements.</p>
*/
inline void SetPlacements(const Aws::Vector<PlacementSummary>& value) { m_placements = value; }
/**
* <p>An object listing the requested placements.</p>
*/
inline void SetPlacements(Aws::Vector<PlacementSummary>&& value) { m_placements = std::move(value); }
/**
* <p>An object listing the requested placements.</p>
*/
inline ListPlacementsResult& WithPlacements(const Aws::Vector<PlacementSummary>& value) { SetPlacements(value); return *this;}
/**
* <p>An object listing the requested placements.</p>
*/
inline ListPlacementsResult& WithPlacements(Aws::Vector<PlacementSummary>&& value) { SetPlacements(std::move(value)); return *this;}
/**
* <p>An object listing the requested placements.</p>
*/
inline ListPlacementsResult& AddPlacements(const PlacementSummary& value) { m_placements.push_back(value); return *this; }
/**
* <p>An object listing the requested placements.</p>
*/
inline ListPlacementsResult& AddPlacements(PlacementSummary&& value) { m_placements.push_back(std::move(value)); return *this; }
/**
* <p>The token used to retrieve the next set of results - will be effectively
* empty if there are no further results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token used to retrieve the next set of results - will be effectively
* empty if there are no further results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token used to retrieve the next set of results - will be effectively
* empty if there are no further results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token used to retrieve the next set of results - will be effectively
* empty if there are no further results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token used to retrieve the next set of results - will be effectively
* empty if there are no further results.</p>
*/
inline ListPlacementsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token used to retrieve the next set of results - will be effectively
* empty if there are no further results.</p>
*/
inline ListPlacementsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token used to retrieve the next set of results - will be effectively
* empty if there are no further results.</p>
*/
inline ListPlacementsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<PlacementSummary> m_placements;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/IoT1ClickProjectsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace IoT1ClickProjects
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKPROJECTS_API ListProjectsRequest : public IoT1ClickProjectsRequest
{
public:
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::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline ListProjectsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline ListProjectsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline ListProjectsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of results to return per request. If not set, a default
* value of 100 is used.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results to return per request. If not set, a default
* value of 100 is used.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results to return per request. If not set, a default
* value of 100 is used.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results to return per request. If not set, a default
* value of 100 is used.</p>
*/
inline ListProjectsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iot1click-projects/model/ProjectSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
class AWS_IOT1CLICKPROJECTS_API ListProjectsResult
{
public:
ListProjectsResult();
ListProjectsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListProjectsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An object containing the list of projects.</p>
*/
inline const Aws::Vector<ProjectSummary>& GetProjects() const{ return m_projects; }
/**
* <p>An object containing the list of projects.</p>
*/
inline void SetProjects(const Aws::Vector<ProjectSummary>& value) { m_projects = value; }
/**
* <p>An object containing the list of projects.</p>
*/
inline void SetProjects(Aws::Vector<ProjectSummary>&& value) { m_projects = std::move(value); }
/**
* <p>An object containing the list of projects.</p>
*/
inline ListProjectsResult& WithProjects(const Aws::Vector<ProjectSummary>& value) { SetProjects(value); return *this;}
/**
* <p>An object containing the list of projects.</p>
*/
inline ListProjectsResult& WithProjects(Aws::Vector<ProjectSummary>&& value) { SetProjects(std::move(value)); return *this;}
/**
* <p>An object containing the list of projects.</p>
*/
inline ListProjectsResult& AddProjects(const ProjectSummary& value) { m_projects.push_back(value); return *this; }
/**
* <p>An object containing the list of projects.</p>
*/
inline ListProjectsResult& AddProjects(ProjectSummary&& value) { m_projects.push_back(std::move(value)); return *this; }
/**
* <p>The token used to retrieve the next set of results - will be effectively
* empty if there are no further results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token used to retrieve the next set of results - will be effectively
* empty if there are no further results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token used to retrieve the next set of results - will be effectively
* empty if there are no further results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token used to retrieve the next set of results - will be effectively
* empty if there are no further results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token used to retrieve the next set of results - will be effectively
* empty if there are no further results.</p>
*/
inline ListProjectsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token used to retrieve the next set of results - will be effectively
* empty if there are no further results.</p>
*/
inline ListProjectsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token used to retrieve the next set of results - will be effectively
* empty if there are no further results.</p>
*/
inline ListProjectsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<ProjectSummary> m_projects;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/IoT1ClickProjectsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKPROJECTS_API ListTagsForResourceRequest : public IoT1ClickProjectsRequest
{
public:
ListTagsForResourceRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListTagsForResource"; }
Aws::String SerializePayload() const override;
/**
* <p>The ARN of the resource whose tags you want to list.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The ARN of the resource whose tags you want to list.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The ARN of the resource whose tags you want to list.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The ARN of the resource whose tags you want to list.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The ARN of the resource whose tags you want to list.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The ARN of the resource whose tags you want to list.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The ARN of the resource whose tags you want to list.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The ARN of the resource whose tags you want to list.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,115 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
class AWS_IOT1CLICKPROJECTS_API ListTagsForResourceResult
{
public:
ListTagsForResourceResult();
ListTagsForResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListTagsForResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The tags (metadata key/value pairs) which you have assigned to the
* resource.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags (metadata key/value pairs) which you have assigned to the
* resource.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
/**
* <p>The tags (metadata key/value pairs) which you have assigned to the
* resource.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
/**
* <p>The tags (metadata key/value pairs) which you have assigned to the
* resource.</p>
*/
inline ListTagsForResourceResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags (metadata key/value pairs) which you have assigned to the
* resource.</p>
*/
inline ListTagsForResourceResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags (metadata key/value pairs) which you have assigned to the
* resource.</p>
*/
inline ListTagsForResourceResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
/**
* <p>The tags (metadata key/value pairs) which you have assigned to the
* resource.</p>
*/
inline ListTagsForResourceResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags (metadata key/value pairs) which you have assigned to the
* resource.</p>
*/
inline ListTagsForResourceResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags (metadata key/value pairs) which you have assigned to the
* resource.</p>
*/
inline ListTagsForResourceResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags (metadata key/value pairs) which you have assigned to the
* resource.</p>
*/
inline ListTagsForResourceResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags (metadata key/value pairs) which you have assigned to the
* resource.</p>
*/
inline ListTagsForResourceResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags (metadata key/value pairs) which you have assigned to the
* resource.</p>
*/
inline ListTagsForResourceResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
private:
Aws::Map<Aws::String, Aws::String> m_tags;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,289 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
/**
* <p>An object describing a project's placement.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/PlacementDescription">AWS
* API Reference</a></p>
*/
class AWS_IOT1CLICKPROJECTS_API PlacementDescription
{
public:
PlacementDescription();
PlacementDescription(Aws::Utils::Json::JsonView jsonValue);
PlacementDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the project containing the placement.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The name of the project containing the placement.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The name of the project containing the placement.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The name of the project containing the placement.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The name of the project containing the placement.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The name of the project containing the placement.</p>
*/
inline PlacementDescription& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The name of the project containing the placement.</p>
*/
inline PlacementDescription& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The name of the project containing the placement.</p>
*/
inline PlacementDescription& WithProjectName(const char* value) { SetProjectName(value); return *this;}
/**
* <p>The name of the placement.</p>
*/
inline const Aws::String& GetPlacementName() const{ return m_placementName; }
/**
* <p>The name of the placement.</p>
*/
inline bool PlacementNameHasBeenSet() const { return m_placementNameHasBeenSet; }
/**
* <p>The name of the placement.</p>
*/
inline void SetPlacementName(const Aws::String& value) { m_placementNameHasBeenSet = true; m_placementName = value; }
/**
* <p>The name of the placement.</p>
*/
inline void SetPlacementName(Aws::String&& value) { m_placementNameHasBeenSet = true; m_placementName = std::move(value); }
/**
* <p>The name of the placement.</p>
*/
inline void SetPlacementName(const char* value) { m_placementNameHasBeenSet = true; m_placementName.assign(value); }
/**
* <p>The name of the placement.</p>
*/
inline PlacementDescription& WithPlacementName(const Aws::String& value) { SetPlacementName(value); return *this;}
/**
* <p>The name of the placement.</p>
*/
inline PlacementDescription& WithPlacementName(Aws::String&& value) { SetPlacementName(std::move(value)); return *this;}
/**
* <p>The name of the placement.</p>
*/
inline PlacementDescription& WithPlacementName(const char* value) { SetPlacementName(value); return *this;}
/**
* <p>The user-defined attributes associated with the placement.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
/**
* <p>The user-defined attributes associated with the placement.</p>
*/
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
/**
* <p>The user-defined attributes associated with the placement.</p>
*/
inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
/**
* <p>The user-defined attributes associated with the placement.</p>
*/
inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
/**
* <p>The user-defined attributes associated with the placement.</p>
*/
inline PlacementDescription& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
/**
* <p>The user-defined attributes associated with the placement.</p>
*/
inline PlacementDescription& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
/**
* <p>The user-defined attributes associated with the placement.</p>
*/
inline PlacementDescription& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
/**
* <p>The user-defined attributes associated with the placement.</p>
*/
inline PlacementDescription& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
/**
* <p>The user-defined attributes associated with the placement.</p>
*/
inline PlacementDescription& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
/**
* <p>The user-defined attributes associated with the placement.</p>
*/
inline PlacementDescription& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The user-defined attributes associated with the placement.</p>
*/
inline PlacementDescription& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
/**
* <p>The user-defined attributes associated with the placement.</p>
*/
inline PlacementDescription& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
/**
* <p>The user-defined attributes associated with the placement.</p>
*/
inline PlacementDescription& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
/**
* <p>The date when the placement was initially created, in UNIX epoch time
* format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
/**
* <p>The date when the placement was initially created, in UNIX epoch time
* format.</p>
*/
inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
/**
* <p>The date when the placement was initially created, in UNIX epoch time
* format.</p>
*/
inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
/**
* <p>The date when the placement was initially created, in UNIX epoch time
* format.</p>
*/
inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
/**
* <p>The date when the placement was initially created, in UNIX epoch time
* format.</p>
*/
inline PlacementDescription& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
/**
* <p>The date when the placement was initially created, in UNIX epoch time
* format.</p>
*/
inline PlacementDescription& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
/**
* <p>The date when the placement was last updated, in UNIX epoch time format. If
* the placement was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline const Aws::Utils::DateTime& GetUpdatedDate() const{ return m_updatedDate; }
/**
* <p>The date when the placement was last updated, in UNIX epoch time format. If
* the placement was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline bool UpdatedDateHasBeenSet() const { return m_updatedDateHasBeenSet; }
/**
* <p>The date when the placement was last updated, in UNIX epoch time format. If
* the placement was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline void SetUpdatedDate(const Aws::Utils::DateTime& value) { m_updatedDateHasBeenSet = true; m_updatedDate = value; }
/**
* <p>The date when the placement was last updated, in UNIX epoch time format. If
* the placement was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline void SetUpdatedDate(Aws::Utils::DateTime&& value) { m_updatedDateHasBeenSet = true; m_updatedDate = std::move(value); }
/**
* <p>The date when the placement was last updated, in UNIX epoch time format. If
* the placement was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline PlacementDescription& WithUpdatedDate(const Aws::Utils::DateTime& value) { SetUpdatedDate(value); return *this;}
/**
* <p>The date when the placement was last updated, in UNIX epoch time format. If
* the placement was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline PlacementDescription& WithUpdatedDate(Aws::Utils::DateTime&& value) { SetUpdatedDate(std::move(value)); return *this;}
private:
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
Aws::String m_placementName;
bool m_placementNameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_attributes;
bool m_attributesHasBeenSet;
Aws::Utils::DateTime m_createdDate;
bool m_createdDateHasBeenSet;
Aws::Utils::DateTime m_updatedDate;
bool m_updatedDateHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,220 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
/**
* <p>An object providing summary information for a particular
* placement.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/PlacementSummary">AWS
* API Reference</a></p>
*/
class AWS_IOT1CLICKPROJECTS_API PlacementSummary
{
public:
PlacementSummary();
PlacementSummary(Aws::Utils::Json::JsonView jsonValue);
PlacementSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the project containing the placement.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The name of the project containing the placement.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The name of the project containing the placement.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The name of the project containing the placement.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The name of the project containing the placement.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The name of the project containing the placement.</p>
*/
inline PlacementSummary& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The name of the project containing the placement.</p>
*/
inline PlacementSummary& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The name of the project containing the placement.</p>
*/
inline PlacementSummary& WithProjectName(const char* value) { SetProjectName(value); return *this;}
/**
* <p>The name of the placement being summarized.</p>
*/
inline const Aws::String& GetPlacementName() const{ return m_placementName; }
/**
* <p>The name of the placement being summarized.</p>
*/
inline bool PlacementNameHasBeenSet() const { return m_placementNameHasBeenSet; }
/**
* <p>The name of the placement being summarized.</p>
*/
inline void SetPlacementName(const Aws::String& value) { m_placementNameHasBeenSet = true; m_placementName = value; }
/**
* <p>The name of the placement being summarized.</p>
*/
inline void SetPlacementName(Aws::String&& value) { m_placementNameHasBeenSet = true; m_placementName = std::move(value); }
/**
* <p>The name of the placement being summarized.</p>
*/
inline void SetPlacementName(const char* value) { m_placementNameHasBeenSet = true; m_placementName.assign(value); }
/**
* <p>The name of the placement being summarized.</p>
*/
inline PlacementSummary& WithPlacementName(const Aws::String& value) { SetPlacementName(value); return *this;}
/**
* <p>The name of the placement being summarized.</p>
*/
inline PlacementSummary& WithPlacementName(Aws::String&& value) { SetPlacementName(std::move(value)); return *this;}
/**
* <p>The name of the placement being summarized.</p>
*/
inline PlacementSummary& WithPlacementName(const char* value) { SetPlacementName(value); return *this;}
/**
* <p>The date when the placement was originally created, in UNIX epoch time
* format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
/**
* <p>The date when the placement was originally created, in UNIX epoch time
* format.</p>
*/
inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
/**
* <p>The date when the placement was originally created, in UNIX epoch time
* format.</p>
*/
inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
/**
* <p>The date when the placement was originally created, in UNIX epoch time
* format.</p>
*/
inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
/**
* <p>The date when the placement was originally created, in UNIX epoch time
* format.</p>
*/
inline PlacementSummary& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
/**
* <p>The date when the placement was originally created, in UNIX epoch time
* format.</p>
*/
inline PlacementSummary& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
/**
* <p>The date when the placement was last updated, in UNIX epoch time format. If
* the placement was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline const Aws::Utils::DateTime& GetUpdatedDate() const{ return m_updatedDate; }
/**
* <p>The date when the placement was last updated, in UNIX epoch time format. If
* the placement was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline bool UpdatedDateHasBeenSet() const { return m_updatedDateHasBeenSet; }
/**
* <p>The date when the placement was last updated, in UNIX epoch time format. If
* the placement was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline void SetUpdatedDate(const Aws::Utils::DateTime& value) { m_updatedDateHasBeenSet = true; m_updatedDate = value; }
/**
* <p>The date when the placement was last updated, in UNIX epoch time format. If
* the placement was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline void SetUpdatedDate(Aws::Utils::DateTime&& value) { m_updatedDateHasBeenSet = true; m_updatedDate = std::move(value); }
/**
* <p>The date when the placement was last updated, in UNIX epoch time format. If
* the placement was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline PlacementSummary& WithUpdatedDate(const Aws::Utils::DateTime& value) { SetUpdatedDate(value); return *this;}
/**
* <p>The date when the placement was last updated, in UNIX epoch time format. If
* the placement was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline PlacementSummary& WithUpdatedDate(Aws::Utils::DateTime&& value) { SetUpdatedDate(std::move(value)); return *this;}
private:
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
Aws::String m_placementName;
bool m_placementNameHasBeenSet;
Aws::Utils::DateTime m_createdDate;
bool m_createdDateHasBeenSet;
Aws::Utils::DateTime m_updatedDate;
bool m_updatedDateHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,205 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iot1click-projects/model/DeviceTemplate.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
/**
* <p>An object defining the template for a placement.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/PlacementTemplate">AWS
* API Reference</a></p>
*/
class AWS_IOT1CLICKPROJECTS_API PlacementTemplate
{
public:
PlacementTemplate();
PlacementTemplate(Aws::Utils::Json::JsonView jsonValue);
PlacementTemplate& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The default attributes (key/value pairs) to be applied to all placements
* using this template.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetDefaultAttributes() const{ return m_defaultAttributes; }
/**
* <p>The default attributes (key/value pairs) to be applied to all placements
* using this template.</p>
*/
inline bool DefaultAttributesHasBeenSet() const { return m_defaultAttributesHasBeenSet; }
/**
* <p>The default attributes (key/value pairs) to be applied to all placements
* using this template.</p>
*/
inline void SetDefaultAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes = value; }
/**
* <p>The default attributes (key/value pairs) to be applied to all placements
* using this template.</p>
*/
inline void SetDefaultAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes = std::move(value); }
/**
* <p>The default attributes (key/value pairs) to be applied to all placements
* using this template.</p>
*/
inline PlacementTemplate& WithDefaultAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetDefaultAttributes(value); return *this;}
/**
* <p>The default attributes (key/value pairs) to be applied to all placements
* using this template.</p>
*/
inline PlacementTemplate& WithDefaultAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetDefaultAttributes(std::move(value)); return *this;}
/**
* <p>The default attributes (key/value pairs) to be applied to all placements
* using this template.</p>
*/
inline PlacementTemplate& AddDefaultAttributes(const Aws::String& key, const Aws::String& value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes.emplace(key, value); return *this; }
/**
* <p>The default attributes (key/value pairs) to be applied to all placements
* using this template.</p>
*/
inline PlacementTemplate& AddDefaultAttributes(Aws::String&& key, const Aws::String& value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes.emplace(std::move(key), value); return *this; }
/**
* <p>The default attributes (key/value pairs) to be applied to all placements
* using this template.</p>
*/
inline PlacementTemplate& AddDefaultAttributes(const Aws::String& key, Aws::String&& value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes.emplace(key, std::move(value)); return *this; }
/**
* <p>The default attributes (key/value pairs) to be applied to all placements
* using this template.</p>
*/
inline PlacementTemplate& AddDefaultAttributes(Aws::String&& key, Aws::String&& value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The default attributes (key/value pairs) to be applied to all placements
* using this template.</p>
*/
inline PlacementTemplate& AddDefaultAttributes(const char* key, Aws::String&& value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes.emplace(key, std::move(value)); return *this; }
/**
* <p>The default attributes (key/value pairs) to be applied to all placements
* using this template.</p>
*/
inline PlacementTemplate& AddDefaultAttributes(Aws::String&& key, const char* value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes.emplace(std::move(key), value); return *this; }
/**
* <p>The default attributes (key/value pairs) to be applied to all placements
* using this template.</p>
*/
inline PlacementTemplate& AddDefaultAttributes(const char* key, const char* value) { m_defaultAttributesHasBeenSet = true; m_defaultAttributes.emplace(key, value); return *this; }
/**
* <p>An object specifying the <a>DeviceTemplate</a> for all placements using this
* (<a>PlacementTemplate</a>) template.</p>
*/
inline const Aws::Map<Aws::String, DeviceTemplate>& GetDeviceTemplates() const{ return m_deviceTemplates; }
/**
* <p>An object specifying the <a>DeviceTemplate</a> for all placements using this
* (<a>PlacementTemplate</a>) template.</p>
*/
inline bool DeviceTemplatesHasBeenSet() const { return m_deviceTemplatesHasBeenSet; }
/**
* <p>An object specifying the <a>DeviceTemplate</a> for all placements using this
* (<a>PlacementTemplate</a>) template.</p>
*/
inline void SetDeviceTemplates(const Aws::Map<Aws::String, DeviceTemplate>& value) { m_deviceTemplatesHasBeenSet = true; m_deviceTemplates = value; }
/**
* <p>An object specifying the <a>DeviceTemplate</a> for all placements using this
* (<a>PlacementTemplate</a>) template.</p>
*/
inline void SetDeviceTemplates(Aws::Map<Aws::String, DeviceTemplate>&& value) { m_deviceTemplatesHasBeenSet = true; m_deviceTemplates = std::move(value); }
/**
* <p>An object specifying the <a>DeviceTemplate</a> for all placements using this
* (<a>PlacementTemplate</a>) template.</p>
*/
inline PlacementTemplate& WithDeviceTemplates(const Aws::Map<Aws::String, DeviceTemplate>& value) { SetDeviceTemplates(value); return *this;}
/**
* <p>An object specifying the <a>DeviceTemplate</a> for all placements using this
* (<a>PlacementTemplate</a>) template.</p>
*/
inline PlacementTemplate& WithDeviceTemplates(Aws::Map<Aws::String, DeviceTemplate>&& value) { SetDeviceTemplates(std::move(value)); return *this;}
/**
* <p>An object specifying the <a>DeviceTemplate</a> for all placements using this
* (<a>PlacementTemplate</a>) template.</p>
*/
inline PlacementTemplate& AddDeviceTemplates(const Aws::String& key, const DeviceTemplate& value) { m_deviceTemplatesHasBeenSet = true; m_deviceTemplates.emplace(key, value); return *this; }
/**
* <p>An object specifying the <a>DeviceTemplate</a> for all placements using this
* (<a>PlacementTemplate</a>) template.</p>
*/
inline PlacementTemplate& AddDeviceTemplates(Aws::String&& key, const DeviceTemplate& value) { m_deviceTemplatesHasBeenSet = true; m_deviceTemplates.emplace(std::move(key), value); return *this; }
/**
* <p>An object specifying the <a>DeviceTemplate</a> for all placements using this
* (<a>PlacementTemplate</a>) template.</p>
*/
inline PlacementTemplate& AddDeviceTemplates(const Aws::String& key, DeviceTemplate&& value) { m_deviceTemplatesHasBeenSet = true; m_deviceTemplates.emplace(key, std::move(value)); return *this; }
/**
* <p>An object specifying the <a>DeviceTemplate</a> for all placements using this
* (<a>PlacementTemplate</a>) template.</p>
*/
inline PlacementTemplate& AddDeviceTemplates(Aws::String&& key, DeviceTemplate&& value) { m_deviceTemplatesHasBeenSet = true; m_deviceTemplates.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>An object specifying the <a>DeviceTemplate</a> for all placements using this
* (<a>PlacementTemplate</a>) template.</p>
*/
inline PlacementTemplate& AddDeviceTemplates(const char* key, DeviceTemplate&& value) { m_deviceTemplatesHasBeenSet = true; m_deviceTemplates.emplace(key, std::move(value)); return *this; }
/**
* <p>An object specifying the <a>DeviceTemplate</a> for all placements using this
* (<a>PlacementTemplate</a>) template.</p>
*/
inline PlacementTemplate& AddDeviceTemplates(const char* key, const DeviceTemplate& value) { m_deviceTemplatesHasBeenSet = true; m_deviceTemplates.emplace(key, value); return *this; }
private:
Aws::Map<Aws::String, Aws::String> m_defaultAttributes;
bool m_defaultAttributesHasBeenSet;
Aws::Map<Aws::String, DeviceTemplate> m_deviceTemplates;
bool m_deviceTemplatesHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,369 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/iot1click-projects/model/PlacementTemplate.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
/**
* <p>An object providing detailed information for a particular project associated
* with an AWS account and region.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/ProjectDescription">AWS
* API Reference</a></p>
*/
class AWS_IOT1CLICKPROJECTS_API ProjectDescription
{
public:
ProjectDescription();
ProjectDescription(Aws::Utils::Json::JsonView jsonValue);
ProjectDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN of the project.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN of the project.</p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p>The ARN of the project.</p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p>The ARN of the project.</p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p>The ARN of the project.</p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p>The ARN of the project.</p>
*/
inline ProjectDescription& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN of the project.</p>
*/
inline ProjectDescription& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN of the project.</p>
*/
inline ProjectDescription& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>The name of the project for which to obtain information from.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The name of the project for which to obtain information from.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The name of the project for which to obtain information from.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The name of the project for which to obtain information from.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The name of the project for which to obtain information from.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The name of the project for which to obtain information from.</p>
*/
inline ProjectDescription& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The name of the project for which to obtain information from.</p>
*/
inline ProjectDescription& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The name of the project for which to obtain information from.</p>
*/
inline ProjectDescription& WithProjectName(const char* value) { SetProjectName(value); return *this;}
/**
* <p>The description of the project.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the project.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description of the project.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description of the project.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description of the project.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description of the project.</p>
*/
inline ProjectDescription& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the project.</p>
*/
inline ProjectDescription& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the project.</p>
*/
inline ProjectDescription& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The date when the project was originally created, in UNIX epoch time
* format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
/**
* <p>The date when the project was originally created, in UNIX epoch time
* format.</p>
*/
inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
/**
* <p>The date when the project was originally created, in UNIX epoch time
* format.</p>
*/
inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
/**
* <p>The date when the project was originally created, in UNIX epoch time
* format.</p>
*/
inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
/**
* <p>The date when the project was originally created, in UNIX epoch time
* format.</p>
*/
inline ProjectDescription& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
/**
* <p>The date when the project was originally created, in UNIX epoch time
* format.</p>
*/
inline ProjectDescription& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
/**
* <p>The date when the project was last updated, in UNIX epoch time format. If the
* project was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline const Aws::Utils::DateTime& GetUpdatedDate() const{ return m_updatedDate; }
/**
* <p>The date when the project was last updated, in UNIX epoch time format. If the
* project was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline bool UpdatedDateHasBeenSet() const { return m_updatedDateHasBeenSet; }
/**
* <p>The date when the project was last updated, in UNIX epoch time format. If the
* project was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline void SetUpdatedDate(const Aws::Utils::DateTime& value) { m_updatedDateHasBeenSet = true; m_updatedDate = value; }
/**
* <p>The date when the project was last updated, in UNIX epoch time format. If the
* project was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline void SetUpdatedDate(Aws::Utils::DateTime&& value) { m_updatedDateHasBeenSet = true; m_updatedDate = std::move(value); }
/**
* <p>The date when the project was last updated, in UNIX epoch time format. If the
* project was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline ProjectDescription& WithUpdatedDate(const Aws::Utils::DateTime& value) { SetUpdatedDate(value); return *this;}
/**
* <p>The date when the project was last updated, in UNIX epoch time format. If the
* project was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline ProjectDescription& WithUpdatedDate(Aws::Utils::DateTime&& value) { SetUpdatedDate(std::move(value)); return *this;}
/**
* <p>An object describing the project's placement specifications.</p>
*/
inline const PlacementTemplate& GetPlacementTemplate() const{ return m_placementTemplate; }
/**
* <p>An object describing the project's placement specifications.</p>
*/
inline bool PlacementTemplateHasBeenSet() const { return m_placementTemplateHasBeenSet; }
/**
* <p>An object describing the project's placement specifications.</p>
*/
inline void SetPlacementTemplate(const PlacementTemplate& value) { m_placementTemplateHasBeenSet = true; m_placementTemplate = value; }
/**
* <p>An object describing the project's placement specifications.</p>
*/
inline void SetPlacementTemplate(PlacementTemplate&& value) { m_placementTemplateHasBeenSet = true; m_placementTemplate = std::move(value); }
/**
* <p>An object describing the project's placement specifications.</p>
*/
inline ProjectDescription& WithPlacementTemplate(const PlacementTemplate& value) { SetPlacementTemplate(value); return *this;}
/**
* <p>An object describing the project's placement specifications.</p>
*/
inline ProjectDescription& WithPlacementTemplate(PlacementTemplate&& value) { SetPlacementTemplate(std::move(value)); return *this;}
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline ProjectDescription& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline ProjectDescription& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline ProjectDescription& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline ProjectDescription& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline ProjectDescription& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline ProjectDescription& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline ProjectDescription& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline ProjectDescription& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline ProjectDescription& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Utils::DateTime m_createdDate;
bool m_createdDateHasBeenSet;
Aws::Utils::DateTime m_updatedDate;
bool m_updatedDateHasBeenSet;
PlacementTemplate m_placementTemplate;
bool m_placementTemplateHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,290 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
/**
* <p>An object providing summary information for a particular project for an
* associated AWS account and region.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/ProjectSummary">AWS
* API Reference</a></p>
*/
class AWS_IOT1CLICKPROJECTS_API ProjectSummary
{
public:
ProjectSummary();
ProjectSummary(Aws::Utils::Json::JsonView jsonValue);
ProjectSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN of the project.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN of the project.</p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p>The ARN of the project.</p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p>The ARN of the project.</p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p>The ARN of the project.</p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p>The ARN of the project.</p>
*/
inline ProjectSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN of the project.</p>
*/
inline ProjectSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN of the project.</p>
*/
inline ProjectSummary& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>The name of the project being summarized.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The name of the project being summarized.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The name of the project being summarized.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The name of the project being summarized.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The name of the project being summarized.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The name of the project being summarized.</p>
*/
inline ProjectSummary& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The name of the project being summarized.</p>
*/
inline ProjectSummary& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The name of the project being summarized.</p>
*/
inline ProjectSummary& WithProjectName(const char* value) { SetProjectName(value); return *this;}
/**
* <p>The date when the project was originally created, in UNIX epoch time
* format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
/**
* <p>The date when the project was originally created, in UNIX epoch time
* format.</p>
*/
inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
/**
* <p>The date when the project was originally created, in UNIX epoch time
* format.</p>
*/
inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
/**
* <p>The date when the project was originally created, in UNIX epoch time
* format.</p>
*/
inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
/**
* <p>The date when the project was originally created, in UNIX epoch time
* format.</p>
*/
inline ProjectSummary& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
/**
* <p>The date when the project was originally created, in UNIX epoch time
* format.</p>
*/
inline ProjectSummary& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
/**
* <p>The date when the project was last updated, in UNIX epoch time format. If the
* project was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline const Aws::Utils::DateTime& GetUpdatedDate() const{ return m_updatedDate; }
/**
* <p>The date when the project was last updated, in UNIX epoch time format. If the
* project was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline bool UpdatedDateHasBeenSet() const { return m_updatedDateHasBeenSet; }
/**
* <p>The date when the project was last updated, in UNIX epoch time format. If the
* project was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline void SetUpdatedDate(const Aws::Utils::DateTime& value) { m_updatedDateHasBeenSet = true; m_updatedDate = value; }
/**
* <p>The date when the project was last updated, in UNIX epoch time format. If the
* project was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline void SetUpdatedDate(Aws::Utils::DateTime&& value) { m_updatedDateHasBeenSet = true; m_updatedDate = std::move(value); }
/**
* <p>The date when the project was last updated, in UNIX epoch time format. If the
* project was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline ProjectSummary& WithUpdatedDate(const Aws::Utils::DateTime& value) { SetUpdatedDate(value); return *this;}
/**
* <p>The date when the project was last updated, in UNIX epoch time format. If the
* project was not updated, then <code>createdDate</code> and
* <code>updatedDate</code> are the same.</p>
*/
inline ProjectSummary& WithUpdatedDate(Aws::Utils::DateTime&& value) { SetUpdatedDate(std::move(value)); return *this;}
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline ProjectSummary& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline ProjectSummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline ProjectSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline ProjectSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline ProjectSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline ProjectSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline ProjectSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline ProjectSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags (metadata key/value pairs) associated with the project.</p>
*/
inline ProjectSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_arn;
bool m_arnHasBeenSet;
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
Aws::Utils::DateTime m_createdDate;
bool m_createdDateHasBeenSet;
Aws::Utils::DateTime m_updatedDate;
bool m_updatedDateHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,100 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
/**
* <p/><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/ResourceConflictException">AWS
* API Reference</a></p>
*/
class AWS_IOT1CLICKPROJECTS_API ResourceConflictException
{
public:
ResourceConflictException();
ResourceConflictException(Aws::Utils::Json::JsonView jsonValue);
ResourceConflictException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetCode() const{ return m_code; }
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
inline ResourceConflictException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
inline ResourceConflictException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
inline ResourceConflictException& WithCode(const char* value) { SetCode(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 ResourceConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
inline ResourceConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
inline ResourceConflictException& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::String m_code;
bool m_codeHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,100 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
/**
* <p/><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/ResourceNotFoundException">AWS
* API Reference</a></p>
*/
class AWS_IOT1CLICKPROJECTS_API ResourceNotFoundException
{
public:
ResourceNotFoundException();
ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue);
ResourceNotFoundException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetCode() const{ return m_code; }
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
inline ResourceNotFoundException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
inline ResourceNotFoundException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
inline ResourceNotFoundException& WithCode(const char* value) { SetCode(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 ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
inline ResourceNotFoundException& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::String m_code;
bool m_codeHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,192 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/IoT1ClickProjectsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKPROJECTS_API TagResourceRequest : public IoT1ClickProjectsRequest
{
public:
TagResourceRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "TagResource"; }
Aws::String SerializePayload() const override;
/**
* <p>The ARN of the resouce for which tag(s) should be added or modified.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The ARN of the resouce for which tag(s) should be added or modified.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The ARN of the resouce for which tag(s) should be added or modified.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The ARN of the resouce for which tag(s) should be added or modified.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The ARN of the resouce for which tag(s) should be added or modified.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The ARN of the resouce for which tag(s) should be added or modified.</p>
*/
inline TagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The ARN of the resouce for which tag(s) should be added or modified.</p>
*/
inline TagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The ARN of the resouce for which tag(s) should be added or modified.</p>
*/
inline TagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>The new or modifying tag(s) for the resource. See <a
* href="https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-appendix.html#1click-limits">AWS
* IoT 1-Click Service Limits</a> for the maximum number of tags allowed per
* resource.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The new or modifying tag(s) for the resource. See <a
* href="https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-appendix.html#1click-limits">AWS
* IoT 1-Click Service Limits</a> for the maximum number of tags allowed per
* resource.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The new or modifying tag(s) for the resource. See <a
* href="https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-appendix.html#1click-limits">AWS
* IoT 1-Click Service Limits</a> for the maximum number of tags allowed per
* resource.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The new or modifying tag(s) for the resource. See <a
* href="https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-appendix.html#1click-limits">AWS
* IoT 1-Click Service Limits</a> for the maximum number of tags allowed per
* resource.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The new or modifying tag(s) for the resource. See <a
* href="https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-appendix.html#1click-limits">AWS
* IoT 1-Click Service Limits</a> for the maximum number of tags allowed per
* resource.</p>
*/
inline TagResourceRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The new or modifying tag(s) for the resource. See <a
* href="https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-appendix.html#1click-limits">AWS
* IoT 1-Click Service Limits</a> for the maximum number of tags allowed per
* resource.</p>
*/
inline TagResourceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The new or modifying tag(s) for the resource. See <a
* href="https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-appendix.html#1click-limits">AWS
* IoT 1-Click Service Limits</a> for the maximum number of tags allowed per
* resource.</p>
*/
inline TagResourceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>The new or modifying tag(s) for the resource. See <a
* href="https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-appendix.html#1click-limits">AWS
* IoT 1-Click Service Limits</a> for the maximum number of tags allowed per
* resource.</p>
*/
inline TagResourceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The new or modifying tag(s) for the resource. See <a
* href="https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-appendix.html#1click-limits">AWS
* IoT 1-Click Service Limits</a> for the maximum number of tags allowed per
* resource.</p>
*/
inline TagResourceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The new or modifying tag(s) for the resource. See <a
* href="https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-appendix.html#1click-limits">AWS
* IoT 1-Click Service Limits</a> for the maximum number of tags allowed per
* resource.</p>
*/
inline TagResourceRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The new or modifying tag(s) for the resource. See <a
* href="https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-appendix.html#1click-limits">AWS
* IoT 1-Click Service Limits</a> for the maximum number of tags allowed per
* resource.</p>
*/
inline TagResourceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The new or modifying tag(s) for the resource. See <a
* href="https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-appendix.html#1click-limits">AWS
* IoT 1-Click Service Limits</a> for the maximum number of tags allowed per
* resource.</p>
*/
inline TagResourceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The new or modifying tag(s) for the resource. See <a
* href="https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-appendix.html#1click-limits">AWS
* IoT 1-Click Service Limits</a> for the maximum number of tags allowed per
* resource.</p>
*/
inline TagResourceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
class AWS_IOT1CLICKPROJECTS_API TagResourceResult
{
public:
TagResourceResult();
TagResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
TagResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,100 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
/**
* <p/><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/TooManyRequestsException">AWS
* API Reference</a></p>
*/
class AWS_IOT1CLICKPROJECTS_API TooManyRequestsException
{
public:
TooManyRequestsException();
TooManyRequestsException(Aws::Utils::Json::JsonView jsonValue);
TooManyRequestsException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
inline const Aws::String& GetCode() const{ return m_code; }
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
inline TooManyRequestsException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
inline TooManyRequestsException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
inline TooManyRequestsException& WithCode(const char* value) { SetCode(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_code;
bool m_codeHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,139 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/IoT1ClickProjectsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace IoT1ClickProjects
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKPROJECTS_API UntagResourceRequest : public IoT1ClickProjectsRequest
{
public:
UntagResourceRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "UntagResource"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The ARN of the resource whose tag you want to remove.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The ARN of the resource whose tag you want to remove.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The ARN of the resource whose tag you want to remove.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The ARN of the resource whose tag you want to remove.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The ARN of the resource whose tag you want to remove.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The ARN of the resource whose tag you want to remove.</p>
*/
inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The ARN of the resource whose tag you want to remove.</p>
*/
inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The ARN of the resource whose tag you want to remove.</p>
*/
inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>The keys of those tags which you want to remove.</p>
*/
inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
/**
* <p>The keys of those tags which you want to remove.</p>
*/
inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
/**
* <p>The keys of those tags which you want to remove.</p>
*/
inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
/**
* <p>The keys of those tags which you want to remove.</p>
*/
inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
/**
* <p>The keys of those tags which you want to remove.</p>
*/
inline UntagResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
/**
* <p>The keys of those tags which you want to remove.</p>
*/
inline UntagResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
/**
* <p>The keys of those tags which you want to remove.</p>
*/
inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
/**
* <p>The keys of those tags which you want to remove.</p>
*/
inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
/**
* <p>The keys of those tags which you want to remove.</p>
*/
inline UntagResourceRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
Aws::Vector<Aws::String> m_tagKeys;
bool m_tagKeysHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
class AWS_IOT1CLICKPROJECTS_API UntagResourceResult
{
public:
UntagResourceResult();
UntagResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UntagResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,210 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/IoT1ClickProjectsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKPROJECTS_API UpdatePlacementRequest : public IoT1ClickProjectsRequest
{
public:
UpdatePlacementRequest();
// 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 "UpdatePlacement"; }
Aws::String SerializePayload() const override;
/**
* <p>The name of the placement to update.</p>
*/
inline const Aws::String& GetPlacementName() const{ return m_placementName; }
/**
* <p>The name of the placement to update.</p>
*/
inline bool PlacementNameHasBeenSet() const { return m_placementNameHasBeenSet; }
/**
* <p>The name of the placement to update.</p>
*/
inline void SetPlacementName(const Aws::String& value) { m_placementNameHasBeenSet = true; m_placementName = value; }
/**
* <p>The name of the placement to update.</p>
*/
inline void SetPlacementName(Aws::String&& value) { m_placementNameHasBeenSet = true; m_placementName = std::move(value); }
/**
* <p>The name of the placement to update.</p>
*/
inline void SetPlacementName(const char* value) { m_placementNameHasBeenSet = true; m_placementName.assign(value); }
/**
* <p>The name of the placement to update.</p>
*/
inline UpdatePlacementRequest& WithPlacementName(const Aws::String& value) { SetPlacementName(value); return *this;}
/**
* <p>The name of the placement to update.</p>
*/
inline UpdatePlacementRequest& WithPlacementName(Aws::String&& value) { SetPlacementName(std::move(value)); return *this;}
/**
* <p>The name of the placement to update.</p>
*/
inline UpdatePlacementRequest& WithPlacementName(const char* value) { SetPlacementName(value); return *this;}
/**
* <p>The name of the project containing the placement to be updated.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The name of the project containing the placement to be updated.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The name of the project containing the placement to be updated.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The name of the project containing the placement to be updated.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The name of the project containing the placement to be updated.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The name of the project containing the placement to be updated.</p>
*/
inline UpdatePlacementRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The name of the project containing the placement to be updated.</p>
*/
inline UpdatePlacementRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The name of the project containing the placement to be updated.</p>
*/
inline UpdatePlacementRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
/**
* <p>The user-defined object of attributes used to update the placement. The
* maximum number of key/value pairs is 50.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
/**
* <p>The user-defined object of attributes used to update the placement. The
* maximum number of key/value pairs is 50.</p>
*/
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
/**
* <p>The user-defined object of attributes used to update the placement. The
* maximum number of key/value pairs is 50.</p>
*/
inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
/**
* <p>The user-defined object of attributes used to update the placement. The
* maximum number of key/value pairs is 50.</p>
*/
inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
/**
* <p>The user-defined object of attributes used to update the placement. The
* maximum number of key/value pairs is 50.</p>
*/
inline UpdatePlacementRequest& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
/**
* <p>The user-defined object of attributes used to update the placement. The
* maximum number of key/value pairs is 50.</p>
*/
inline UpdatePlacementRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
/**
* <p>The user-defined object of attributes used to update the placement. The
* maximum number of key/value pairs is 50.</p>
*/
inline UpdatePlacementRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
/**
* <p>The user-defined object of attributes used to update the placement. The
* maximum number of key/value pairs is 50.</p>
*/
inline UpdatePlacementRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
/**
* <p>The user-defined object of attributes used to update the placement. The
* maximum number of key/value pairs is 50.</p>
*/
inline UpdatePlacementRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
/**
* <p>The user-defined object of attributes used to update the placement. The
* maximum number of key/value pairs is 50.</p>
*/
inline UpdatePlacementRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The user-defined object of attributes used to update the placement. The
* maximum number of key/value pairs is 50.</p>
*/
inline UpdatePlacementRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
/**
* <p>The user-defined object of attributes used to update the placement. The
* maximum number of key/value pairs is 50.</p>
*/
inline UpdatePlacementRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
/**
* <p>The user-defined object of attributes used to update the placement. The
* maximum number of key/value pairs is 50.</p>
*/
inline UpdatePlacementRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
private:
Aws::String m_placementName;
bool m_placementNameHasBeenSet;
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_attributes;
bool m_attributesHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
class AWS_IOT1CLICKPROJECTS_API UpdatePlacementResult
{
public:
UpdatePlacementResult();
UpdatePlacementResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdatePlacementResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,180 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
#include <aws/iot1click-projects/IoT1ClickProjectsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iot1click-projects/model/PlacementTemplate.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKPROJECTS_API UpdateProjectRequest : public IoT1ClickProjectsRequest
{
public:
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::String SerializePayload() const override;
/**
* <p>The name of the project to be updated.</p>
*/
inline const Aws::String& GetProjectName() const{ return m_projectName; }
/**
* <p>The name of the project to be updated.</p>
*/
inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
/**
* <p>The name of the project to be updated.</p>
*/
inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
/**
* <p>The name of the project to be updated.</p>
*/
inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
/**
* <p>The name of the project to be updated.</p>
*/
inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
/**
* <p>The name of the project to be updated.</p>
*/
inline UpdateProjectRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
/**
* <p>The name of the project to be updated.</p>
*/
inline UpdateProjectRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
/**
* <p>The name of the project to be updated.</p>
*/
inline UpdateProjectRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
/**
* <p>An optional user-defined description for the project.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>An optional user-defined description for the project.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>An optional user-defined description for the project.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>An optional user-defined description for the project.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>An optional user-defined description for the project.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>An optional user-defined description for the project.</p>
*/
inline UpdateProjectRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>An optional user-defined description for the project.</p>
*/
inline UpdateProjectRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>An optional user-defined description for the project.</p>
*/
inline UpdateProjectRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>An object defining the project update. Once a project has been created, you
* cannot add device template names to the project. However, for a given
* <code>placementTemplate</code>, you can update the associated
* <code>callbackOverrides</code> for the device definition using this API.</p>
*/
inline const PlacementTemplate& GetPlacementTemplate() const{ return m_placementTemplate; }
/**
* <p>An object defining the project update. Once a project has been created, you
* cannot add device template names to the project. However, for a given
* <code>placementTemplate</code>, you can update the associated
* <code>callbackOverrides</code> for the device definition using this API.</p>
*/
inline bool PlacementTemplateHasBeenSet() const { return m_placementTemplateHasBeenSet; }
/**
* <p>An object defining the project update. Once a project has been created, you
* cannot add device template names to the project. However, for a given
* <code>placementTemplate</code>, you can update the associated
* <code>callbackOverrides</code> for the device definition using this API.</p>
*/
inline void SetPlacementTemplate(const PlacementTemplate& value) { m_placementTemplateHasBeenSet = true; m_placementTemplate = value; }
/**
* <p>An object defining the project update. Once a project has been created, you
* cannot add device template names to the project. However, for a given
* <code>placementTemplate</code>, you can update the associated
* <code>callbackOverrides</code> for the device definition using this API.</p>
*/
inline void SetPlacementTemplate(PlacementTemplate&& value) { m_placementTemplateHasBeenSet = true; m_placementTemplate = std::move(value); }
/**
* <p>An object defining the project update. Once a project has been created, you
* cannot add device template names to the project. However, for a given
* <code>placementTemplate</code>, you can update the associated
* <code>callbackOverrides</code> for the device definition using this API.</p>
*/
inline UpdateProjectRequest& WithPlacementTemplate(const PlacementTemplate& value) { SetPlacementTemplate(value); return *this;}
/**
* <p>An object defining the project update. Once a project has been created, you
* cannot add device template names to the project. However, for a given
* <code>placementTemplate</code>, you can update the associated
* <code>callbackOverrides</code> for the device definition using this API.</p>
*/
inline UpdateProjectRequest& WithPlacementTemplate(PlacementTemplate&& value) { SetPlacementTemplate(std::move(value)); return *this;}
private:
Aws::String m_projectName;
bool m_projectNameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
PlacementTemplate m_placementTemplate;
bool m_placementTemplateHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-projects/IoT1ClickProjects_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickProjects
{
namespace Model
{
class AWS_IOT1CLICKPROJECTS_API UpdateProjectResult
{
public:
UpdateProjectResult();
UpdateProjectResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateProjectResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,692 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/utils/Outcome.h>
#include <aws/core/auth/AWSAuthSigner.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/core/client/RetryStrategy.h>
#include <aws/core/http/HttpClient.h>
#include <aws/core/http/HttpResponse.h>
#include <aws/core/http/HttpClientFactory.h>
#include <aws/core/auth/AWSCredentialsProviderChain.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <aws/core/utils/threading/Executor.h>
#include <aws/core/utils/DNS.h>
#include <aws/core/utils/logging/LogMacros.h>
#include <aws/iot1click-projects/IoT1ClickProjectsClient.h>
#include <aws/iot1click-projects/IoT1ClickProjectsEndpoint.h>
#include <aws/iot1click-projects/IoT1ClickProjectsErrorMarshaller.h>
#include <aws/iot1click-projects/model/AssociateDeviceWithPlacementRequest.h>
#include <aws/iot1click-projects/model/CreatePlacementRequest.h>
#include <aws/iot1click-projects/model/CreateProjectRequest.h>
#include <aws/iot1click-projects/model/DeletePlacementRequest.h>
#include <aws/iot1click-projects/model/DeleteProjectRequest.h>
#include <aws/iot1click-projects/model/DescribePlacementRequest.h>
#include <aws/iot1click-projects/model/DescribeProjectRequest.h>
#include <aws/iot1click-projects/model/DisassociateDeviceFromPlacementRequest.h>
#include <aws/iot1click-projects/model/GetDevicesInPlacementRequest.h>
#include <aws/iot1click-projects/model/ListPlacementsRequest.h>
#include <aws/iot1click-projects/model/ListProjectsRequest.h>
#include <aws/iot1click-projects/model/ListTagsForResourceRequest.h>
#include <aws/iot1click-projects/model/TagResourceRequest.h>
#include <aws/iot1click-projects/model/UntagResourceRequest.h>
#include <aws/iot1click-projects/model/UpdatePlacementRequest.h>
#include <aws/iot1click-projects/model/UpdateProjectRequest.h>
using namespace Aws;
using namespace Aws::Auth;
using namespace Aws::Client;
using namespace Aws::IoT1ClickProjects;
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Http;
using namespace Aws::Utils::Json;
static const char* SERVICE_NAME = "iot1click";
static const char* ALLOCATION_TAG = "IoT1ClickProjectsClient";
IoT1ClickProjectsClient::IoT1ClickProjectsClient(const Client::ClientConfiguration& clientConfiguration) :
BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<DefaultAWSCredentialsProviderChain>(ALLOCATION_TAG),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<IoT1ClickProjectsErrorMarshaller>(ALLOCATION_TAG)),
m_executor(clientConfiguration.executor)
{
init(clientConfiguration);
}
IoT1ClickProjectsClient::IoT1ClickProjectsClient(const AWSCredentials& credentials, const Client::ClientConfiguration& clientConfiguration) :
BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, Aws::MakeShared<SimpleAWSCredentialsProvider>(ALLOCATION_TAG, credentials),
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<IoT1ClickProjectsErrorMarshaller>(ALLOCATION_TAG)),
m_executor(clientConfiguration.executor)
{
init(clientConfiguration);
}
IoT1ClickProjectsClient::IoT1ClickProjectsClient(const std::shared_ptr<AWSCredentialsProvider>& credentialsProvider,
const Client::ClientConfiguration& clientConfiguration) :
BASECLASS(clientConfiguration,
Aws::MakeShared<AWSAuthV4Signer>(ALLOCATION_TAG, credentialsProvider,
SERVICE_NAME, Aws::Region::ComputeSignerRegion(clientConfiguration.region)),
Aws::MakeShared<IoT1ClickProjectsErrorMarshaller>(ALLOCATION_TAG)),
m_executor(clientConfiguration.executor)
{
init(clientConfiguration);
}
IoT1ClickProjectsClient::~IoT1ClickProjectsClient()
{
}
void IoT1ClickProjectsClient::init(const ClientConfiguration& config)
{
SetServiceClientName("IoT 1Click Projects");
m_configScheme = SchemeMapper::ToString(config.scheme);
if (config.endpointOverride.empty())
{
m_uri = m_configScheme + "://" + IoT1ClickProjectsEndpoint::ForRegion(config.region, config.useDualStack);
}
else
{
OverrideEndpoint(config.endpointOverride);
}
}
void IoT1ClickProjectsClient::OverrideEndpoint(const Aws::String& endpoint)
{
if (endpoint.compare(0, 7, "http://") == 0 || endpoint.compare(0, 8, "https://") == 0)
{
m_uri = endpoint;
}
else
{
m_uri = m_configScheme + "://" + endpoint;
}
}
AssociateDeviceWithPlacementOutcome IoT1ClickProjectsClient::AssociateDeviceWithPlacement(const AssociateDeviceWithPlacementRequest& request) const
{
if (!request.ProjectNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("AssociateDeviceWithPlacement", "Required field: ProjectName, is not set");
return AssociateDeviceWithPlacementOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProjectName]", false));
}
if (!request.PlacementNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("AssociateDeviceWithPlacement", "Required field: PlacementName, is not set");
return AssociateDeviceWithPlacementOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PlacementName]", false));
}
if (!request.DeviceTemplateNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("AssociateDeviceWithPlacement", "Required field: DeviceTemplateName, is not set");
return AssociateDeviceWithPlacementOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DeviceTemplateName]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/projects/";
ss << request.GetProjectName();
ss << "/placements/";
ss << request.GetPlacementName();
ss << "/devices/";
ss << request.GetDeviceTemplateName();
uri.SetPath(uri.GetPath() + ss.str());
return AssociateDeviceWithPlacementOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER));
}
AssociateDeviceWithPlacementOutcomeCallable IoT1ClickProjectsClient::AssociateDeviceWithPlacementCallable(const AssociateDeviceWithPlacementRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< AssociateDeviceWithPlacementOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->AssociateDeviceWithPlacement(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void IoT1ClickProjectsClient::AssociateDeviceWithPlacementAsync(const AssociateDeviceWithPlacementRequest& request, const AssociateDeviceWithPlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->AssociateDeviceWithPlacementAsyncHelper( request, handler, context ); } );
}
void IoT1ClickProjectsClient::AssociateDeviceWithPlacementAsyncHelper(const AssociateDeviceWithPlacementRequest& request, const AssociateDeviceWithPlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, AssociateDeviceWithPlacement(request), context);
}
CreatePlacementOutcome IoT1ClickProjectsClient::CreatePlacement(const CreatePlacementRequest& request) const
{
if (!request.ProjectNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("CreatePlacement", "Required field: ProjectName, is not set");
return CreatePlacementOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProjectName]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/projects/";
ss << request.GetProjectName();
ss << "/placements";
uri.SetPath(uri.GetPath() + ss.str());
return CreatePlacementOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
CreatePlacementOutcomeCallable IoT1ClickProjectsClient::CreatePlacementCallable(const CreatePlacementRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< CreatePlacementOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreatePlacement(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void IoT1ClickProjectsClient::CreatePlacementAsync(const CreatePlacementRequest& request, const CreatePlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->CreatePlacementAsyncHelper( request, handler, context ); } );
}
void IoT1ClickProjectsClient::CreatePlacementAsyncHelper(const CreatePlacementRequest& request, const CreatePlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, CreatePlacement(request), context);
}
CreateProjectOutcome IoT1ClickProjectsClient::CreateProject(const CreateProjectRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/projects";
uri.SetPath(uri.GetPath() + ss.str());
return CreateProjectOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
CreateProjectOutcomeCallable IoT1ClickProjectsClient::CreateProjectCallable(const CreateProjectRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< CreateProjectOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->CreateProject(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void IoT1ClickProjectsClient::CreateProjectAsync(const CreateProjectRequest& request, const CreateProjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->CreateProjectAsyncHelper( request, handler, context ); } );
}
void IoT1ClickProjectsClient::CreateProjectAsyncHelper(const CreateProjectRequest& request, const CreateProjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, CreateProject(request), context);
}
DeletePlacementOutcome IoT1ClickProjectsClient::DeletePlacement(const DeletePlacementRequest& request) const
{
if (!request.PlacementNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DeletePlacement", "Required field: PlacementName, is not set");
return DeletePlacementOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PlacementName]", false));
}
if (!request.ProjectNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DeletePlacement", "Required field: ProjectName, is not set");
return DeletePlacementOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProjectName]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/projects/";
ss << request.GetProjectName();
ss << "/placements/";
ss << request.GetPlacementName();
uri.SetPath(uri.GetPath() + ss.str());
return DeletePlacementOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER));
}
DeletePlacementOutcomeCallable IoT1ClickProjectsClient::DeletePlacementCallable(const DeletePlacementRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DeletePlacementOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeletePlacement(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void IoT1ClickProjectsClient::DeletePlacementAsync(const DeletePlacementRequest& request, const DeletePlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DeletePlacementAsyncHelper( request, handler, context ); } );
}
void IoT1ClickProjectsClient::DeletePlacementAsyncHelper(const DeletePlacementRequest& request, const DeletePlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DeletePlacement(request), context);
}
DeleteProjectOutcome IoT1ClickProjectsClient::DeleteProject(const DeleteProjectRequest& request) const
{
if (!request.ProjectNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DeleteProject", "Required field: ProjectName, is not set");
return DeleteProjectOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProjectName]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/projects/";
ss << request.GetProjectName();
uri.SetPath(uri.GetPath() + ss.str());
return DeleteProjectOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER));
}
DeleteProjectOutcomeCallable IoT1ClickProjectsClient::DeleteProjectCallable(const DeleteProjectRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DeleteProjectOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DeleteProject(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void IoT1ClickProjectsClient::DeleteProjectAsync(const DeleteProjectRequest& request, const DeleteProjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DeleteProjectAsyncHelper( request, handler, context ); } );
}
void IoT1ClickProjectsClient::DeleteProjectAsyncHelper(const DeleteProjectRequest& request, const DeleteProjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DeleteProject(request), context);
}
DescribePlacementOutcome IoT1ClickProjectsClient::DescribePlacement(const DescribePlacementRequest& request) const
{
if (!request.PlacementNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DescribePlacement", "Required field: PlacementName, is not set");
return DescribePlacementOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PlacementName]", false));
}
if (!request.ProjectNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DescribePlacement", "Required field: ProjectName, is not set");
return DescribePlacementOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProjectName]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/projects/";
ss << request.GetProjectName();
ss << "/placements/";
ss << request.GetPlacementName();
uri.SetPath(uri.GetPath() + ss.str());
return DescribePlacementOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
DescribePlacementOutcomeCallable IoT1ClickProjectsClient::DescribePlacementCallable(const DescribePlacementRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DescribePlacementOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribePlacement(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void IoT1ClickProjectsClient::DescribePlacementAsync(const DescribePlacementRequest& request, const DescribePlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DescribePlacementAsyncHelper( request, handler, context ); } );
}
void IoT1ClickProjectsClient::DescribePlacementAsyncHelper(const DescribePlacementRequest& request, const DescribePlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DescribePlacement(request), context);
}
DescribeProjectOutcome IoT1ClickProjectsClient::DescribeProject(const DescribeProjectRequest& request) const
{
if (!request.ProjectNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DescribeProject", "Required field: ProjectName, is not set");
return DescribeProjectOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProjectName]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/projects/";
ss << request.GetProjectName();
uri.SetPath(uri.GetPath() + ss.str());
return DescribeProjectOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
DescribeProjectOutcomeCallable IoT1ClickProjectsClient::DescribeProjectCallable(const DescribeProjectRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DescribeProjectOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DescribeProject(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void IoT1ClickProjectsClient::DescribeProjectAsync(const DescribeProjectRequest& request, const DescribeProjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DescribeProjectAsyncHelper( request, handler, context ); } );
}
void IoT1ClickProjectsClient::DescribeProjectAsyncHelper(const DescribeProjectRequest& request, const DescribeProjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DescribeProject(request), context);
}
DisassociateDeviceFromPlacementOutcome IoT1ClickProjectsClient::DisassociateDeviceFromPlacement(const DisassociateDeviceFromPlacementRequest& request) const
{
if (!request.ProjectNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DisassociateDeviceFromPlacement", "Required field: ProjectName, is not set");
return DisassociateDeviceFromPlacementOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProjectName]", false));
}
if (!request.PlacementNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DisassociateDeviceFromPlacement", "Required field: PlacementName, is not set");
return DisassociateDeviceFromPlacementOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PlacementName]", false));
}
if (!request.DeviceTemplateNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("DisassociateDeviceFromPlacement", "Required field: DeviceTemplateName, is not set");
return DisassociateDeviceFromPlacementOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [DeviceTemplateName]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/projects/";
ss << request.GetProjectName();
ss << "/placements/";
ss << request.GetPlacementName();
ss << "/devices/";
ss << request.GetDeviceTemplateName();
uri.SetPath(uri.GetPath() + ss.str());
return DisassociateDeviceFromPlacementOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER));
}
DisassociateDeviceFromPlacementOutcomeCallable IoT1ClickProjectsClient::DisassociateDeviceFromPlacementCallable(const DisassociateDeviceFromPlacementRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< DisassociateDeviceFromPlacementOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->DisassociateDeviceFromPlacement(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void IoT1ClickProjectsClient::DisassociateDeviceFromPlacementAsync(const DisassociateDeviceFromPlacementRequest& request, const DisassociateDeviceFromPlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->DisassociateDeviceFromPlacementAsyncHelper( request, handler, context ); } );
}
void IoT1ClickProjectsClient::DisassociateDeviceFromPlacementAsyncHelper(const DisassociateDeviceFromPlacementRequest& request, const DisassociateDeviceFromPlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, DisassociateDeviceFromPlacement(request), context);
}
GetDevicesInPlacementOutcome IoT1ClickProjectsClient::GetDevicesInPlacement(const GetDevicesInPlacementRequest& request) const
{
if (!request.ProjectNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("GetDevicesInPlacement", "Required field: ProjectName, is not set");
return GetDevicesInPlacementOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProjectName]", false));
}
if (!request.PlacementNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("GetDevicesInPlacement", "Required field: PlacementName, is not set");
return GetDevicesInPlacementOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PlacementName]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/projects/";
ss << request.GetProjectName();
ss << "/placements/";
ss << request.GetPlacementName();
ss << "/devices";
uri.SetPath(uri.GetPath() + ss.str());
return GetDevicesInPlacementOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
GetDevicesInPlacementOutcomeCallable IoT1ClickProjectsClient::GetDevicesInPlacementCallable(const GetDevicesInPlacementRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< GetDevicesInPlacementOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->GetDevicesInPlacement(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void IoT1ClickProjectsClient::GetDevicesInPlacementAsync(const GetDevicesInPlacementRequest& request, const GetDevicesInPlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->GetDevicesInPlacementAsyncHelper( request, handler, context ); } );
}
void IoT1ClickProjectsClient::GetDevicesInPlacementAsyncHelper(const GetDevicesInPlacementRequest& request, const GetDevicesInPlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, GetDevicesInPlacement(request), context);
}
ListPlacementsOutcome IoT1ClickProjectsClient::ListPlacements(const ListPlacementsRequest& request) const
{
if (!request.ProjectNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("ListPlacements", "Required field: ProjectName, is not set");
return ListPlacementsOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProjectName]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/projects/";
ss << request.GetProjectName();
ss << "/placements";
uri.SetPath(uri.GetPath() + ss.str());
return ListPlacementsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
ListPlacementsOutcomeCallable IoT1ClickProjectsClient::ListPlacementsCallable(const ListPlacementsRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListPlacementsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListPlacements(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void IoT1ClickProjectsClient::ListPlacementsAsync(const ListPlacementsRequest& request, const ListPlacementsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListPlacementsAsyncHelper( request, handler, context ); } );
}
void IoT1ClickProjectsClient::ListPlacementsAsyncHelper(const ListPlacementsRequest& request, const ListPlacementsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListPlacements(request), context);
}
ListProjectsOutcome IoT1ClickProjectsClient::ListProjects(const ListProjectsRequest& request) const
{
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/projects";
uri.SetPath(uri.GetPath() + ss.str());
return ListProjectsOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
ListProjectsOutcomeCallable IoT1ClickProjectsClient::ListProjectsCallable(const ListProjectsRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListProjectsOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListProjects(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void IoT1ClickProjectsClient::ListProjectsAsync(const ListProjectsRequest& request, const ListProjectsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListProjectsAsyncHelper( request, handler, context ); } );
}
void IoT1ClickProjectsClient::ListProjectsAsyncHelper(const ListProjectsRequest& request, const ListProjectsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListProjects(request), context);
}
ListTagsForResourceOutcome IoT1ClickProjectsClient::ListTagsForResource(const ListTagsForResourceRequest& request) const
{
if (!request.ResourceArnHasBeenSet())
{
AWS_LOGSTREAM_ERROR("ListTagsForResource", "Required field: ResourceArn, is not set");
return ListTagsForResourceOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/tags/";
ss << request.GetResourceArn();
uri.SetPath(uri.GetPath() + ss.str());
return ListTagsForResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER));
}
ListTagsForResourceOutcomeCallable IoT1ClickProjectsClient::ListTagsForResourceCallable(const ListTagsForResourceRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< ListTagsForResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->ListTagsForResource(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void IoT1ClickProjectsClient::ListTagsForResourceAsync(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->ListTagsForResourceAsyncHelper( request, handler, context ); } );
}
void IoT1ClickProjectsClient::ListTagsForResourceAsyncHelper(const ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, ListTagsForResource(request), context);
}
TagResourceOutcome IoT1ClickProjectsClient::TagResource(const TagResourceRequest& request) const
{
if (!request.ResourceArnHasBeenSet())
{
AWS_LOGSTREAM_ERROR("TagResource", "Required field: ResourceArn, is not set");
return TagResourceOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/tags/";
ss << request.GetResourceArn();
uri.SetPath(uri.GetPath() + ss.str());
return TagResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER));
}
TagResourceOutcomeCallable IoT1ClickProjectsClient::TagResourceCallable(const TagResourceRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< TagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->TagResource(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void IoT1ClickProjectsClient::TagResourceAsync(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->TagResourceAsyncHelper( request, handler, context ); } );
}
void IoT1ClickProjectsClient::TagResourceAsyncHelper(const TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, TagResource(request), context);
}
UntagResourceOutcome IoT1ClickProjectsClient::UntagResource(const UntagResourceRequest& request) const
{
if (!request.ResourceArnHasBeenSet())
{
AWS_LOGSTREAM_ERROR("UntagResource", "Required field: ResourceArn, is not set");
return UntagResourceOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ResourceArn]", false));
}
if (!request.TagKeysHasBeenSet())
{
AWS_LOGSTREAM_ERROR("UntagResource", "Required field: TagKeys, is not set");
return UntagResourceOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [TagKeys]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/tags/";
ss << request.GetResourceArn();
uri.SetPath(uri.GetPath() + ss.str());
return UntagResourceOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER));
}
UntagResourceOutcomeCallable IoT1ClickProjectsClient::UntagResourceCallable(const UntagResourceRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< UntagResourceOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UntagResource(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void IoT1ClickProjectsClient::UntagResourceAsync(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->UntagResourceAsyncHelper( request, handler, context ); } );
}
void IoT1ClickProjectsClient::UntagResourceAsyncHelper(const UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, UntagResource(request), context);
}
UpdatePlacementOutcome IoT1ClickProjectsClient::UpdatePlacement(const UpdatePlacementRequest& request) const
{
if (!request.PlacementNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("UpdatePlacement", "Required field: PlacementName, is not set");
return UpdatePlacementOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [PlacementName]", false));
}
if (!request.ProjectNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("UpdatePlacement", "Required field: ProjectName, is not set");
return UpdatePlacementOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProjectName]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/projects/";
ss << request.GetProjectName();
ss << "/placements/";
ss << request.GetPlacementName();
uri.SetPath(uri.GetPath() + ss.str());
return UpdatePlacementOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER));
}
UpdatePlacementOutcomeCallable IoT1ClickProjectsClient::UpdatePlacementCallable(const UpdatePlacementRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< UpdatePlacementOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdatePlacement(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void IoT1ClickProjectsClient::UpdatePlacementAsync(const UpdatePlacementRequest& request, const UpdatePlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->UpdatePlacementAsyncHelper( request, handler, context ); } );
}
void IoT1ClickProjectsClient::UpdatePlacementAsyncHelper(const UpdatePlacementRequest& request, const UpdatePlacementResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, UpdatePlacement(request), context);
}
UpdateProjectOutcome IoT1ClickProjectsClient::UpdateProject(const UpdateProjectRequest& request) const
{
if (!request.ProjectNameHasBeenSet())
{
AWS_LOGSTREAM_ERROR("UpdateProject", "Required field: ProjectName, is not set");
return UpdateProjectOutcome(Aws::Client::AWSError<IoT1ClickProjectsErrors>(IoT1ClickProjectsErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [ProjectName]", false));
}
Aws::Http::URI uri = m_uri;
Aws::StringStream ss;
ss << "/projects/";
ss << request.GetProjectName();
uri.SetPath(uri.GetPath() + ss.str());
return UpdateProjectOutcome(MakeRequest(uri, request, Aws::Http::HttpMethod::HTTP_PUT, Aws::Auth::SIGV4_SIGNER));
}
UpdateProjectOutcomeCallable IoT1ClickProjectsClient::UpdateProjectCallable(const UpdateProjectRequest& request) const
{
auto task = Aws::MakeShared< std::packaged_task< UpdateProjectOutcome() > >(ALLOCATION_TAG, [this, request](){ return this->UpdateProject(request); } );
auto packagedFunction = [task]() { (*task)(); };
m_executor->Submit(packagedFunction);
return task->get_future();
}
void IoT1ClickProjectsClient::UpdateProjectAsync(const UpdateProjectRequest& request, const UpdateProjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
m_executor->Submit( [this, request, handler, context](){ this->UpdateProjectAsyncHelper( request, handler, context ); } );
}
void IoT1ClickProjectsClient::UpdateProjectAsyncHelper(const UpdateProjectRequest& request, const UpdateProjectResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const
{
handler(this, request, UpdateProject(request), context);
}

View File

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

View File

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

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/client/AWSError.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/iot1click-projects/IoT1ClickProjectsErrors.h>
#include <aws/iot1click-projects/model/ResourceNotFoundException.h>
#include <aws/iot1click-projects/model/ResourceConflictException.h>
#include <aws/iot1click-projects/model/TooManyRequestsException.h>
#include <aws/iot1click-projects/model/InternalFailureException.h>
#include <aws/iot1click-projects/model/InvalidRequestException.h>
using namespace Aws::Client;
using namespace Aws::Utils;
using namespace Aws::IoT1ClickProjects;
using namespace Aws::IoT1ClickProjects::Model;
namespace Aws
{
namespace IoT1ClickProjects
{
template<> AWS_IOT1CLICKPROJECTS_API ResourceNotFoundException IoT1ClickProjectsError::GetModeledError()
{
assert(this->GetErrorType() == IoT1ClickProjectsErrors::RESOURCE_NOT_FOUND);
return ResourceNotFoundException(this->GetJsonPayload().View());
}
template<> AWS_IOT1CLICKPROJECTS_API ResourceConflictException IoT1ClickProjectsError::GetModeledError()
{
assert(this->GetErrorType() == IoT1ClickProjectsErrors::RESOURCE_CONFLICT);
return ResourceConflictException(this->GetJsonPayload().View());
}
template<> AWS_IOT1CLICKPROJECTS_API TooManyRequestsException IoT1ClickProjectsError::GetModeledError()
{
assert(this->GetErrorType() == IoT1ClickProjectsErrors::TOO_MANY_REQUESTS);
return TooManyRequestsException(this->GetJsonPayload().View());
}
template<> AWS_IOT1CLICKPROJECTS_API InternalFailureException IoT1ClickProjectsError::GetModeledError()
{
assert(this->GetErrorType() == IoT1ClickProjectsErrors::INTERNAL_FAILURE);
return InternalFailureException(this->GetJsonPayload().View());
}
template<> AWS_IOT1CLICKPROJECTS_API InvalidRequestException IoT1ClickProjectsError::GetModeledError()
{
assert(this->GetErrorType() == IoT1ClickProjectsErrors::INVALID_REQUEST);
return InvalidRequestException(this->GetJsonPayload().View());
}
namespace IoT1ClickProjectsErrorMapper
{
static const int RESOURCE_CONFLICT_HASH = HashingUtils::HashString("ResourceConflictException");
static const int TOO_MANY_REQUESTS_HASH = HashingUtils::HashString("TooManyRequestsException");
static const int INVALID_REQUEST_HASH = HashingUtils::HashString("InvalidRequestException");
AWSError<CoreErrors> GetErrorForName(const char* errorName)
{
int hashCode = HashingUtils::HashString(errorName);
if (hashCode == RESOURCE_CONFLICT_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(IoT1ClickProjectsErrors::RESOURCE_CONFLICT), false);
}
else if (hashCode == TOO_MANY_REQUESTS_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(IoT1ClickProjectsErrors::TOO_MANY_REQUESTS), true);
}
else if (hashCode == INVALID_REQUEST_HASH)
{
return AWSError<CoreErrors>(static_cast<CoreErrors>(IoT1ClickProjectsErrors::INVALID_REQUEST), false);
}
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
}
} // namespace IoT1ClickProjectsErrorMapper
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,38 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/AssociateDeviceWithPlacementRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
AssociateDeviceWithPlacementRequest::AssociateDeviceWithPlacementRequest() :
m_projectNameHasBeenSet(false),
m_placementNameHasBeenSet(false),
m_deviceIdHasBeenSet(false),
m_deviceTemplateNameHasBeenSet(false)
{
}
Aws::String AssociateDeviceWithPlacementRequest::SerializePayload() const
{
JsonValue payload;
if(m_deviceIdHasBeenSet)
{
payload.WithString("deviceId", m_deviceId);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/AssociateDeviceWithPlacementResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
AssociateDeviceWithPlacementResult::AssociateDeviceWithPlacementResult()
{
}
AssociateDeviceWithPlacementResult::AssociateDeviceWithPlacementResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
AssociateDeviceWithPlacementResult& AssociateDeviceWithPlacementResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,48 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/CreatePlacementRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreatePlacementRequest::CreatePlacementRequest() :
m_placementNameHasBeenSet(false),
m_projectNameHasBeenSet(false),
m_attributesHasBeenSet(false)
{
}
Aws::String CreatePlacementRequest::SerializePayload() const
{
JsonValue payload;
if(m_placementNameHasBeenSet)
{
payload.WithString("placementName", m_placementName);
}
if(m_attributesHasBeenSet)
{
JsonValue attributesJsonMap;
for(auto& attributesItem : m_attributes)
{
attributesJsonMap.WithString(attributesItem.first, attributesItem.second);
}
payload.WithObject("attributes", std::move(attributesJsonMap));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/CreatePlacementResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreatePlacementResult::CreatePlacementResult()
{
}
CreatePlacementResult::CreatePlacementResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreatePlacementResult& CreatePlacementResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,61 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/CreateProjectRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateProjectRequest::CreateProjectRequest() :
m_projectNameHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_placementTemplateHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String CreateProjectRequest::SerializePayload() const
{
JsonValue payload;
if(m_projectNameHasBeenSet)
{
payload.WithString("projectName", m_projectName);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("description", m_description);
}
if(m_placementTemplateHasBeenSet)
{
payload.WithObject("placementTemplate", m_placementTemplate.Jsonize());
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/CreateProjectResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateProjectResult::CreateProjectResult()
{
}
CreateProjectResult::CreateProjectResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateProjectResult& CreateProjectResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

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

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/DeletePlacementResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeletePlacementResult::DeletePlacementResult()
{
}
DeletePlacementResult::DeletePlacementResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeletePlacementResult& DeletePlacementResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

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

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/DeleteProjectResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeleteProjectResult::DeleteProjectResult()
{
}
DeleteProjectResult::DeleteProjectResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeleteProjectResult& DeleteProjectResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

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

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/DescribePlacementResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribePlacementResult::DescribePlacementResult()
{
}
DescribePlacementResult::DescribePlacementResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribePlacementResult& DescribePlacementResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("placement"))
{
m_placement = jsonValue.GetObject("placement");
}
return *this;
}

View File

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

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/DescribeProjectResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DescribeProjectResult::DescribeProjectResult()
{
}
DescribeProjectResult::DescribeProjectResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DescribeProjectResult& DescribeProjectResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("project"))
{
m_project = jsonValue.GetObject("project");
}
return *this;
}

View File

@@ -0,0 +1,82 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/DeviceTemplate.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
DeviceTemplate::DeviceTemplate() :
m_deviceTypeHasBeenSet(false),
m_callbackOverridesHasBeenSet(false)
{
}
DeviceTemplate::DeviceTemplate(JsonView jsonValue) :
m_deviceTypeHasBeenSet(false),
m_callbackOverridesHasBeenSet(false)
{
*this = jsonValue;
}
DeviceTemplate& DeviceTemplate::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("deviceType"))
{
m_deviceType = jsonValue.GetString("deviceType");
m_deviceTypeHasBeenSet = true;
}
if(jsonValue.ValueExists("callbackOverrides"))
{
Aws::Map<Aws::String, JsonView> callbackOverridesJsonMap = jsonValue.GetObject("callbackOverrides").GetAllObjects();
for(auto& callbackOverridesItem : callbackOverridesJsonMap)
{
m_callbackOverrides[callbackOverridesItem.first] = callbackOverridesItem.second.AsString();
}
m_callbackOverridesHasBeenSet = true;
}
return *this;
}
JsonValue DeviceTemplate::Jsonize() const
{
JsonValue payload;
if(m_deviceTypeHasBeenSet)
{
payload.WithString("deviceType", m_deviceType);
}
if(m_callbackOverridesHasBeenSet)
{
JsonValue callbackOverridesJsonMap;
for(auto& callbackOverridesItem : m_callbackOverrides)
{
callbackOverridesJsonMap.WithString(callbackOverridesItem.first, callbackOverridesItem.second);
}
payload.WithObject("callbackOverrides", std::move(callbackOverridesJsonMap));
}
return payload;
}
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

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

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/DisassociateDeviceFromPlacementResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DisassociateDeviceFromPlacementResult::DisassociateDeviceFromPlacementResult()
{
}
DisassociateDeviceFromPlacementResult::DisassociateDeviceFromPlacementResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DisassociateDeviceFromPlacementResult& DisassociateDeviceFromPlacementResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

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

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/GetDevicesInPlacementResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetDevicesInPlacementResult::GetDevicesInPlacementResult()
{
}
GetDevicesInPlacementResult::GetDevicesInPlacementResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetDevicesInPlacementResult& GetDevicesInPlacementResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("devices"))
{
Aws::Map<Aws::String, JsonView> devicesJsonMap = jsonValue.GetObject("devices").GetAllObjects();
for(auto& devicesItem : devicesJsonMap)
{
m_devices[devicesItem.first] = devicesItem.second.AsString();
}
}
return *this;
}

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/InternalFailureException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
InternalFailureException::InternalFailureException() :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
}
InternalFailureException::InternalFailureException(JsonView jsonValue) :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
*this = jsonValue;
}
InternalFailureException& InternalFailureException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("code"))
{
m_code = jsonValue.GetString("code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("message"))
{
m_message = jsonValue.GetString("message");
m_messageHasBeenSet = true;
}
return *this;
}
JsonValue InternalFailureException::Jsonize() const
{
JsonValue payload;
if(m_codeHasBeenSet)
{
payload.WithString("code", m_code);
}
if(m_messageHasBeenSet)
{
payload.WithString("message", m_message);
}
return payload;
}
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/InvalidRequestException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
InvalidRequestException::InvalidRequestException() :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
}
InvalidRequestException::InvalidRequestException(JsonView jsonValue) :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
*this = jsonValue;
}
InvalidRequestException& InvalidRequestException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("code"))
{
m_code = jsonValue.GetString("code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("message"))
{
m_message = jsonValue.GetString("message");
m_messageHasBeenSet = true;
}
return *this;
}
JsonValue InvalidRequestException::Jsonize() const
{
JsonValue payload;
if(m_codeHasBeenSet)
{
payload.WithString("code", m_code);
}
if(m_messageHasBeenSet)
{
payload.WithString("message", m_message);
}
return payload;
}
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,51 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/ListPlacementsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
ListPlacementsRequest::ListPlacementsRequest() :
m_projectNameHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false)
{
}
Aws::String ListPlacementsRequest::SerializePayload() const
{
return {};
}
void ListPlacementsRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_nextTokenHasBeenSet)
{
ss << m_nextToken;
uri.AddQueryStringParameter("nextToken", ss.str());
ss.str("");
}
if(m_maxResultsHasBeenSet)
{
ss << m_maxResults;
uri.AddQueryStringParameter("maxResults", ss.str());
ss.str("");
}
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/ListPlacementsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListPlacementsResult::ListPlacementsResult()
{
}
ListPlacementsResult::ListPlacementsResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListPlacementsResult& ListPlacementsResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("placements"))
{
Array<JsonView> placementsJsonList = jsonValue.GetArray("placements");
for(unsigned placementsIndex = 0; placementsIndex < placementsJsonList.GetLength(); ++placementsIndex)
{
m_placements.push_back(placementsJsonList[placementsIndex].AsObject());
}
}
if(jsonValue.ValueExists("nextToken"))
{
m_nextToken = jsonValue.GetString("nextToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/ListProjectsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
ListProjectsRequest::ListProjectsRequest() :
m_nextTokenHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false)
{
}
Aws::String ListProjectsRequest::SerializePayload() const
{
return {};
}
void ListProjectsRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_nextTokenHasBeenSet)
{
ss << m_nextToken;
uri.AddQueryStringParameter("nextToken", ss.str());
ss.str("");
}
if(m_maxResultsHasBeenSet)
{
ss << m_maxResults;
uri.AddQueryStringParameter("maxResults", ss.str());
ss.str("");
}
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/ListProjectsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListProjectsResult::ListProjectsResult()
{
}
ListProjectsResult::ListProjectsResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListProjectsResult& ListProjectsResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("projects"))
{
Array<JsonView> 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");
}
return *this;
}

View File

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

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/ListTagsForResourceResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListTagsForResourceResult::ListTagsForResourceResult()
{
}
ListTagsForResourceResult::ListTagsForResourceResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListTagsForResourceResult& ListTagsForResourceResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
return *this;
}

View File

@@ -0,0 +1,125 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/PlacementDescription.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
PlacementDescription::PlacementDescription() :
m_projectNameHasBeenSet(false),
m_placementNameHasBeenSet(false),
m_attributesHasBeenSet(false),
m_createdDateHasBeenSet(false),
m_updatedDateHasBeenSet(false)
{
}
PlacementDescription::PlacementDescription(JsonView jsonValue) :
m_projectNameHasBeenSet(false),
m_placementNameHasBeenSet(false),
m_attributesHasBeenSet(false),
m_createdDateHasBeenSet(false),
m_updatedDateHasBeenSet(false)
{
*this = jsonValue;
}
PlacementDescription& PlacementDescription::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("projectName"))
{
m_projectName = jsonValue.GetString("projectName");
m_projectNameHasBeenSet = true;
}
if(jsonValue.ValueExists("placementName"))
{
m_placementName = jsonValue.GetString("placementName");
m_placementNameHasBeenSet = true;
}
if(jsonValue.ValueExists("attributes"))
{
Aws::Map<Aws::String, JsonView> attributesJsonMap = jsonValue.GetObject("attributes").GetAllObjects();
for(auto& attributesItem : attributesJsonMap)
{
m_attributes[attributesItem.first] = attributesItem.second.AsString();
}
m_attributesHasBeenSet = true;
}
if(jsonValue.ValueExists("createdDate"))
{
m_createdDate = jsonValue.GetDouble("createdDate");
m_createdDateHasBeenSet = true;
}
if(jsonValue.ValueExists("updatedDate"))
{
m_updatedDate = jsonValue.GetDouble("updatedDate");
m_updatedDateHasBeenSet = true;
}
return *this;
}
JsonValue PlacementDescription::Jsonize() const
{
JsonValue payload;
if(m_projectNameHasBeenSet)
{
payload.WithString("projectName", m_projectName);
}
if(m_placementNameHasBeenSet)
{
payload.WithString("placementName", m_placementName);
}
if(m_attributesHasBeenSet)
{
JsonValue attributesJsonMap;
for(auto& attributesItem : m_attributes)
{
attributesJsonMap.WithString(attributesItem.first, attributesItem.second);
}
payload.WithObject("attributes", std::move(attributesJsonMap));
}
if(m_createdDateHasBeenSet)
{
payload.WithDouble("createdDate", m_createdDate.SecondsWithMSPrecision());
}
if(m_updatedDateHasBeenSet)
{
payload.WithDouble("updatedDate", m_updatedDate.SecondsWithMSPrecision());
}
return payload;
}
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,102 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/PlacementSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
PlacementSummary::PlacementSummary() :
m_projectNameHasBeenSet(false),
m_placementNameHasBeenSet(false),
m_createdDateHasBeenSet(false),
m_updatedDateHasBeenSet(false)
{
}
PlacementSummary::PlacementSummary(JsonView jsonValue) :
m_projectNameHasBeenSet(false),
m_placementNameHasBeenSet(false),
m_createdDateHasBeenSet(false),
m_updatedDateHasBeenSet(false)
{
*this = jsonValue;
}
PlacementSummary& PlacementSummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("projectName"))
{
m_projectName = jsonValue.GetString("projectName");
m_projectNameHasBeenSet = true;
}
if(jsonValue.ValueExists("placementName"))
{
m_placementName = jsonValue.GetString("placementName");
m_placementNameHasBeenSet = true;
}
if(jsonValue.ValueExists("createdDate"))
{
m_createdDate = jsonValue.GetDouble("createdDate");
m_createdDateHasBeenSet = true;
}
if(jsonValue.ValueExists("updatedDate"))
{
m_updatedDate = jsonValue.GetDouble("updatedDate");
m_updatedDateHasBeenSet = true;
}
return *this;
}
JsonValue PlacementSummary::Jsonize() const
{
JsonValue payload;
if(m_projectNameHasBeenSet)
{
payload.WithString("projectName", m_projectName);
}
if(m_placementNameHasBeenSet)
{
payload.WithString("placementName", m_placementName);
}
if(m_createdDateHasBeenSet)
{
payload.WithDouble("createdDate", m_createdDate.SecondsWithMSPrecision());
}
if(m_updatedDateHasBeenSet)
{
payload.WithDouble("updatedDate", m_updatedDate.SecondsWithMSPrecision());
}
return payload;
}
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,90 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/PlacementTemplate.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
PlacementTemplate::PlacementTemplate() :
m_defaultAttributesHasBeenSet(false),
m_deviceTemplatesHasBeenSet(false)
{
}
PlacementTemplate::PlacementTemplate(JsonView jsonValue) :
m_defaultAttributesHasBeenSet(false),
m_deviceTemplatesHasBeenSet(false)
{
*this = jsonValue;
}
PlacementTemplate& PlacementTemplate::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("defaultAttributes"))
{
Aws::Map<Aws::String, JsonView> defaultAttributesJsonMap = jsonValue.GetObject("defaultAttributes").GetAllObjects();
for(auto& defaultAttributesItem : defaultAttributesJsonMap)
{
m_defaultAttributes[defaultAttributesItem.first] = defaultAttributesItem.second.AsString();
}
m_defaultAttributesHasBeenSet = true;
}
if(jsonValue.ValueExists("deviceTemplates"))
{
Aws::Map<Aws::String, JsonView> deviceTemplatesJsonMap = jsonValue.GetObject("deviceTemplates").GetAllObjects();
for(auto& deviceTemplatesItem : deviceTemplatesJsonMap)
{
m_deviceTemplates[deviceTemplatesItem.first] = deviceTemplatesItem.second.AsObject();
}
m_deviceTemplatesHasBeenSet = true;
}
return *this;
}
JsonValue PlacementTemplate::Jsonize() const
{
JsonValue payload;
if(m_defaultAttributesHasBeenSet)
{
JsonValue defaultAttributesJsonMap;
for(auto& defaultAttributesItem : m_defaultAttributes)
{
defaultAttributesJsonMap.WithString(defaultAttributesItem.first, defaultAttributesItem.second);
}
payload.WithObject("defaultAttributes", std::move(defaultAttributesJsonMap));
}
if(m_deviceTemplatesHasBeenSet)
{
JsonValue deviceTemplatesJsonMap;
for(auto& deviceTemplatesItem : m_deviceTemplates)
{
deviceTemplatesJsonMap.WithObject(deviceTemplatesItem.first, deviceTemplatesItem.second.Jsonize());
}
payload.WithObject("deviceTemplates", std::move(deviceTemplatesJsonMap));
}
return payload;
}
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,155 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/ProjectDescription.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
ProjectDescription::ProjectDescription() :
m_arnHasBeenSet(false),
m_projectNameHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_createdDateHasBeenSet(false),
m_updatedDateHasBeenSet(false),
m_placementTemplateHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
ProjectDescription::ProjectDescription(JsonView jsonValue) :
m_arnHasBeenSet(false),
m_projectNameHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_createdDateHasBeenSet(false),
m_updatedDateHasBeenSet(false),
m_placementTemplateHasBeenSet(false),
m_tagsHasBeenSet(false)
{
*this = jsonValue;
}
ProjectDescription& ProjectDescription::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("arn"))
{
m_arn = jsonValue.GetString("arn");
m_arnHasBeenSet = true;
}
if(jsonValue.ValueExists("projectName"))
{
m_projectName = jsonValue.GetString("projectName");
m_projectNameHasBeenSet = true;
}
if(jsonValue.ValueExists("description"))
{
m_description = jsonValue.GetString("description");
m_descriptionHasBeenSet = true;
}
if(jsonValue.ValueExists("createdDate"))
{
m_createdDate = jsonValue.GetDouble("createdDate");
m_createdDateHasBeenSet = true;
}
if(jsonValue.ValueExists("updatedDate"))
{
m_updatedDate = jsonValue.GetDouble("updatedDate");
m_updatedDateHasBeenSet = true;
}
if(jsonValue.ValueExists("placementTemplate"))
{
m_placementTemplate = jsonValue.GetObject("placementTemplate");
m_placementTemplateHasBeenSet = true;
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
m_tagsHasBeenSet = true;
}
return *this;
}
JsonValue ProjectDescription::Jsonize() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
if(m_projectNameHasBeenSet)
{
payload.WithString("projectName", m_projectName);
}
if(m_descriptionHasBeenSet)
{
payload.WithString("description", m_description);
}
if(m_createdDateHasBeenSet)
{
payload.WithDouble("createdDate", m_createdDate.SecondsWithMSPrecision());
}
if(m_updatedDateHasBeenSet)
{
payload.WithDouble("updatedDate", m_updatedDate.SecondsWithMSPrecision());
}
if(m_placementTemplateHasBeenSet)
{
payload.WithObject("placementTemplate", m_placementTemplate.Jsonize());
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload;
}
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,125 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/ProjectSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
ProjectSummary::ProjectSummary() :
m_arnHasBeenSet(false),
m_projectNameHasBeenSet(false),
m_createdDateHasBeenSet(false),
m_updatedDateHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
ProjectSummary::ProjectSummary(JsonView jsonValue) :
m_arnHasBeenSet(false),
m_projectNameHasBeenSet(false),
m_createdDateHasBeenSet(false),
m_updatedDateHasBeenSet(false),
m_tagsHasBeenSet(false)
{
*this = jsonValue;
}
ProjectSummary& ProjectSummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("arn"))
{
m_arn = jsonValue.GetString("arn");
m_arnHasBeenSet = true;
}
if(jsonValue.ValueExists("projectName"))
{
m_projectName = jsonValue.GetString("projectName");
m_projectNameHasBeenSet = true;
}
if(jsonValue.ValueExists("createdDate"))
{
m_createdDate = jsonValue.GetDouble("createdDate");
m_createdDateHasBeenSet = true;
}
if(jsonValue.ValueExists("updatedDate"))
{
m_updatedDate = jsonValue.GetDouble("updatedDate");
m_updatedDateHasBeenSet = true;
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
m_tagsHasBeenSet = true;
}
return *this;
}
JsonValue ProjectSummary::Jsonize() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
if(m_projectNameHasBeenSet)
{
payload.WithString("projectName", m_projectName);
}
if(m_createdDateHasBeenSet)
{
payload.WithDouble("createdDate", m_createdDate.SecondsWithMSPrecision());
}
if(m_updatedDateHasBeenSet)
{
payload.WithDouble("updatedDate", m_updatedDate.SecondsWithMSPrecision());
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload;
}
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/ResourceConflictException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
ResourceConflictException::ResourceConflictException() :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
}
ResourceConflictException::ResourceConflictException(JsonView jsonValue) :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
*this = jsonValue;
}
ResourceConflictException& ResourceConflictException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("code"))
{
m_code = jsonValue.GetString("code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("message"))
{
m_message = jsonValue.GetString("message");
m_messageHasBeenSet = true;
}
return *this;
}
JsonValue ResourceConflictException::Jsonize() const
{
JsonValue payload;
if(m_codeHasBeenSet)
{
payload.WithString("code", m_code);
}
if(m_messageHasBeenSet)
{
payload.WithString("message", m_message);
}
return payload;
}
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/ResourceNotFoundException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
ResourceNotFoundException::ResourceNotFoundException() :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
}
ResourceNotFoundException::ResourceNotFoundException(JsonView jsonValue) :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
*this = jsonValue;
}
ResourceNotFoundException& ResourceNotFoundException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("code"))
{
m_code = jsonValue.GetString("code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("message"))
{
m_message = jsonValue.GetString("message");
m_messageHasBeenSet = true;
}
return *this;
}
JsonValue ResourceNotFoundException::Jsonize() const
{
JsonValue payload;
if(m_codeHasBeenSet)
{
payload.WithString("code", m_code);
}
if(m_messageHasBeenSet)
{
payload.WithString("message", m_message);
}
return payload;
}
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

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

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/TagResourceResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
TagResourceResult::TagResourceResult()
{
}
TagResourceResult::TagResourceResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
TagResourceResult& TagResourceResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,74 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/TooManyRequestsException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IoT1ClickProjects
{
namespace Model
{
TooManyRequestsException::TooManyRequestsException() :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
}
TooManyRequestsException::TooManyRequestsException(JsonView jsonValue) :
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
*this = jsonValue;
}
TooManyRequestsException& TooManyRequestsException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("code"))
{
m_code = jsonValue.GetString("code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("message"))
{
m_message = jsonValue.GetString("message");
m_messageHasBeenSet = true;
}
return *this;
}
JsonValue TooManyRequestsException::Jsonize() const
{
JsonValue payload;
if(m_codeHasBeenSet)
{
payload.WithString("code", m_code);
}
if(m_messageHasBeenSet)
{
payload.WithString("message", m_message);
}
return payload;
}
} // namespace Model
} // namespace IoT1ClickProjects
} // namespace Aws

View File

@@ -0,0 +1,45 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/UntagResourceRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
UntagResourceRequest::UntagResourceRequest() :
m_resourceArnHasBeenSet(false),
m_tagKeysHasBeenSet(false)
{
}
Aws::String UntagResourceRequest::SerializePayload() const
{
return {};
}
void UntagResourceRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_tagKeysHasBeenSet)
{
for(const auto& item : m_tagKeys)
{
ss << item;
uri.AddQueryStringParameter("tagKeys", ss.str());
ss.str("");
}
}
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/UntagResourceResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
UntagResourceResult::UntagResourceResult()
{
}
UntagResourceResult::UntagResourceResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
UntagResourceResult& UntagResourceResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/UpdatePlacementRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UpdatePlacementRequest::UpdatePlacementRequest() :
m_placementNameHasBeenSet(false),
m_projectNameHasBeenSet(false),
m_attributesHasBeenSet(false)
{
}
Aws::String UpdatePlacementRequest::SerializePayload() const
{
JsonValue payload;
if(m_attributesHasBeenSet)
{
JsonValue attributesJsonMap;
for(auto& attributesItem : m_attributes)
{
attributesJsonMap.WithString(attributesItem.first, attributesItem.second);
}
payload.WithObject("attributes", std::move(attributesJsonMap));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/UpdatePlacementResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
UpdatePlacementResult::UpdatePlacementResult()
{
}
UpdatePlacementResult::UpdatePlacementResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
UpdatePlacementResult& UpdatePlacementResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/UpdateProjectRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UpdateProjectRequest::UpdateProjectRequest() :
m_projectNameHasBeenSet(false),
m_descriptionHasBeenSet(false),
m_placementTemplateHasBeenSet(false)
{
}
Aws::String UpdateProjectRequest::SerializePayload() const
{
JsonValue payload;
if(m_descriptionHasBeenSet)
{
payload.WithString("description", m_description);
}
if(m_placementTemplateHasBeenSet)
{
payload.WithObject("placementTemplate", m_placementTemplate.Jsonize());
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot1click-projects/model/UpdateProjectResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IoT1ClickProjects::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
UpdateProjectResult::UpdateProjectResult()
{
}
UpdateProjectResult::UpdateProjectResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
UpdateProjectResult& UpdateProjectResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}