/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include 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 AssociateDeviceWithPlacementOutcome; typedef Aws::Utils::Outcome CreatePlacementOutcome; typedef Aws::Utils::Outcome CreateProjectOutcome; typedef Aws::Utils::Outcome DeletePlacementOutcome; typedef Aws::Utils::Outcome DeleteProjectOutcome; typedef Aws::Utils::Outcome DescribePlacementOutcome; typedef Aws::Utils::Outcome DescribeProjectOutcome; typedef Aws::Utils::Outcome DisassociateDeviceFromPlacementOutcome; typedef Aws::Utils::Outcome GetDevicesInPlacementOutcome; typedef Aws::Utils::Outcome ListPlacementsOutcome; typedef Aws::Utils::Outcome ListProjectsOutcome; typedef Aws::Utils::Outcome ListTagsForResourceOutcome; typedef Aws::Utils::Outcome TagResourceOutcome; typedef Aws::Utils::Outcome UntagResourceOutcome; typedef Aws::Utils::Outcome UpdatePlacementOutcome; typedef Aws::Utils::Outcome UpdateProjectOutcome; typedef std::future AssociateDeviceWithPlacementOutcomeCallable; typedef std::future CreatePlacementOutcomeCallable; typedef std::future CreateProjectOutcomeCallable; typedef std::future DeletePlacementOutcomeCallable; typedef std::future DeleteProjectOutcomeCallable; typedef std::future DescribePlacementOutcomeCallable; typedef std::future DescribeProjectOutcomeCallable; typedef std::future DisassociateDeviceFromPlacementOutcomeCallable; typedef std::future GetDevicesInPlacementOutcomeCallable; typedef std::future ListPlacementsOutcomeCallable; typedef std::future ListProjectsOutcomeCallable; typedef std::future ListTagsForResourceOutcomeCallable; typedef std::future TagResourceOutcomeCallable; typedef std::future UntagResourceOutcomeCallable; typedef std::future UpdatePlacementOutcomeCallable; typedef std::future UpdateProjectOutcomeCallable; } // namespace Model class IoT1ClickProjectsClient; typedef std::function&) > AssociateDeviceWithPlacementResponseReceivedHandler; typedef std::function&) > CreatePlacementResponseReceivedHandler; typedef std::function&) > CreateProjectResponseReceivedHandler; typedef std::function&) > DeletePlacementResponseReceivedHandler; typedef std::function&) > DeleteProjectResponseReceivedHandler; typedef std::function&) > DescribePlacementResponseReceivedHandler; typedef std::function&) > DescribeProjectResponseReceivedHandler; typedef std::function&) > DisassociateDeviceFromPlacementResponseReceivedHandler; typedef std::function&) > GetDevicesInPlacementResponseReceivedHandler; typedef std::function&) > ListPlacementsResponseReceivedHandler; typedef std::function&) > ListProjectsResponseReceivedHandler; typedef std::function&) > ListTagsForResourceResponseReceivedHandler; typedef std::function&) > TagResourceResponseReceivedHandler; typedef std::function&) > UntagResourceResponseReceivedHandler; typedef std::function&) > UpdatePlacementResponseReceivedHandler; typedef std::function&) > UpdateProjectResponseReceivedHandler; /** *

The AWS IoT 1-Click Projects API Reference

*/ 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& credentialsProvider, const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration()); virtual ~IoT1ClickProjectsClient(); /** *

Associates a physical device with a placement.

See Also:

AWS * API Reference

*/ virtual Model::AssociateDeviceWithPlacementOutcome AssociateDeviceWithPlacement(const Model::AssociateDeviceWithPlacementRequest& request) const; /** *

Associates a physical device with a placement.

See Also:

AWS * API Reference

* * 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; /** *

Associates a physical device with a placement.

See Also:

AWS * API Reference

* * 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& context = nullptr) const; /** *

Creates an empty placement.

See Also:

AWS * API Reference

*/ virtual Model::CreatePlacementOutcome CreatePlacement(const Model::CreatePlacementRequest& request) const; /** *

Creates an empty placement.

See Also:

AWS * API Reference

* * 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; /** *

Creates an empty placement.

See Also:

AWS * API Reference

* * 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& context = nullptr) const; /** *

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.

See Also:

AWS * API Reference

*/ virtual Model::CreateProjectOutcome CreateProject(const Model::CreateProjectRequest& request) const; /** *

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.

See Also:

AWS * API Reference

* * 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; /** *

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.

See Also:

AWS * API Reference

* * 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& context = nullptr) const; /** *

Deletes a placement. To delete a placement, it must not have any devices * associated with it.

When you delete a placement, all associated * data becomes irretrievable.

See Also:

AWS * API Reference

*/ virtual Model::DeletePlacementOutcome DeletePlacement(const Model::DeletePlacementRequest& request) const; /** *

Deletes a placement. To delete a placement, it must not have any devices * associated with it.

When you delete a placement, all associated * data becomes irretrievable.

See Also:

AWS * API Reference

* * 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; /** *

Deletes a placement. To delete a placement, it must not have any devices * associated with it.

When you delete a placement, all associated * data becomes irretrievable.

See Also:

AWS * API Reference

* * 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& context = nullptr) const; /** *

Deletes a project. To delete a project, it must not have any placements * associated with it.

When you delete a project, all associated data * becomes irretrievable.

See Also:

AWS * API Reference

*/ virtual Model::DeleteProjectOutcome DeleteProject(const Model::DeleteProjectRequest& request) const; /** *

Deletes a project. To delete a project, it must not have any placements * associated with it.

When you delete a project, all associated data * becomes irretrievable.

See Also:

AWS * API Reference

* * 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; /** *

Deletes a project. To delete a project, it must not have any placements * associated with it.

When you delete a project, all associated data * becomes irretrievable.

See Also:

AWS * API Reference

* * 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& context = nullptr) const; /** *

Describes a placement in a project.

See Also:

AWS * API Reference

*/ virtual Model::DescribePlacementOutcome DescribePlacement(const Model::DescribePlacementRequest& request) const; /** *

Describes a placement in a project.

See Also:

AWS * API Reference

* * 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; /** *

Describes a placement in a project.

See Also:

AWS * API Reference

* * 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& context = nullptr) const; /** *

Returns an object describing a project.

See Also:

AWS * API Reference

*/ virtual Model::DescribeProjectOutcome DescribeProject(const Model::DescribeProjectRequest& request) const; /** *

Returns an object describing a project.

See Also:

AWS * API Reference

* * 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; /** *

Returns an object describing a project.

See Also:

AWS * API Reference

* * 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& context = nullptr) const; /** *

Removes a physical device from a placement.

See Also:

AWS * API Reference

*/ virtual Model::DisassociateDeviceFromPlacementOutcome DisassociateDeviceFromPlacement(const Model::DisassociateDeviceFromPlacementRequest& request) const; /** *

Removes a physical device from a placement.

See Also:

AWS * API Reference

* * 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; /** *

Removes a physical device from a placement.

See Also:

AWS * API Reference

* * 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& context = nullptr) const; /** *

Returns an object enumerating the devices in a placement.

See * Also:

AWS * API Reference

*/ virtual Model::GetDevicesInPlacementOutcome GetDevicesInPlacement(const Model::GetDevicesInPlacementRequest& request) const; /** *

Returns an object enumerating the devices in a placement.

See * Also:

AWS * API Reference

* * 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; /** *

Returns an object enumerating the devices in a placement.

See * Also:

AWS * API Reference

* * 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& context = nullptr) const; /** *

Lists the placement(s) of a project.

See Also:

AWS * API Reference

*/ virtual Model::ListPlacementsOutcome ListPlacements(const Model::ListPlacementsRequest& request) const; /** *

Lists the placement(s) of a project.

See Also:

AWS * API Reference

* * 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; /** *

Lists the placement(s) of a project.

See Also:

AWS * API Reference

* * 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& context = nullptr) const; /** *

Lists the AWS IoT 1-Click project(s) associated with your AWS account and * region.

See Also:

AWS * API Reference

*/ virtual Model::ListProjectsOutcome ListProjects(const Model::ListProjectsRequest& request) const; /** *

Lists the AWS IoT 1-Click project(s) associated with your AWS account and * region.

See Also:

AWS * API Reference

* * 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; /** *

Lists the AWS IoT 1-Click project(s) associated with your AWS account and * region.

See Also:

AWS * API Reference

* * 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& context = nullptr) const; /** *

Lists the tags (metadata key/value pairs) which you have assigned to the * resource.

See Also:

AWS * API Reference

*/ virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest& request) const; /** *

Lists the tags (metadata key/value pairs) which you have assigned to the * resource.

See Also:

AWS * API Reference

* * 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; /** *

Lists the tags (metadata key/value pairs) which you have assigned to the * resource.

See Also:

AWS * API Reference

* * 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& context = nullptr) const; /** *

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 AWS * Tagging Strategies.

See Also:

AWS * API Reference

*/ virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest& request) const; /** *

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 AWS * Tagging Strategies.

See Also:

AWS * API Reference

* * 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; /** *

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 AWS * Tagging Strategies.

See Also:

AWS * API Reference

* * 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& context = nullptr) const; /** *

Removes one or more tags (metadata key/value pairs) from a * resource.

See Also:

AWS * API Reference

*/ virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest& request) const; /** *

Removes one or more tags (metadata key/value pairs) from a * resource.

See Also:

AWS * API Reference

* * 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; /** *

Removes one or more tags (metadata key/value pairs) from a * resource.

See Also:

AWS * API Reference

* * 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& context = nullptr) const; /** *

Updates a placement with the given attributes. To clear an attribute, pass an * empty value (i.e., "").

See Also:

AWS * API Reference

*/ virtual Model::UpdatePlacementOutcome UpdatePlacement(const Model::UpdatePlacementRequest& request) const; /** *

Updates a placement with the given attributes. To clear an attribute, pass an * empty value (i.e., "").

See Also:

AWS * API Reference

* * 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; /** *

Updates a placement with the given attributes. To clear an attribute, pass an * empty value (i.e., "").

See Also:

AWS * API Reference

* * 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& context = nullptr) const; /** *

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., * "").

See Also:

AWS * API Reference

*/ virtual Model::UpdateProjectOutcome UpdateProject(const Model::UpdateProjectRequest& request) const; /** *

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., * "").

See Also:

AWS * API Reference

* * 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; /** *

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., * "").

See Also:

AWS * API Reference

* * 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& 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& context) const; void CreatePlacementAsyncHelper(const Model::CreatePlacementRequest& request, const CreatePlacementResponseReceivedHandler& handler, const std::shared_ptr& context) const; void CreateProjectAsyncHelper(const Model::CreateProjectRequest& request, const CreateProjectResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DeletePlacementAsyncHelper(const Model::DeletePlacementRequest& request, const DeletePlacementResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DeleteProjectAsyncHelper(const Model::DeleteProjectRequest& request, const DeleteProjectResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DescribePlacementAsyncHelper(const Model::DescribePlacementRequest& request, const DescribePlacementResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DescribeProjectAsyncHelper(const Model::DescribeProjectRequest& request, const DescribeProjectResponseReceivedHandler& handler, const std::shared_ptr& context) const; void DisassociateDeviceFromPlacementAsyncHelper(const Model::DisassociateDeviceFromPlacementRequest& request, const DisassociateDeviceFromPlacementResponseReceivedHandler& handler, const std::shared_ptr& context) const; void GetDevicesInPlacementAsyncHelper(const Model::GetDevicesInPlacementRequest& request, const GetDevicesInPlacementResponseReceivedHandler& handler, const std::shared_ptr& context) const; void ListPlacementsAsyncHelper(const Model::ListPlacementsRequest& request, const ListPlacementsResponseReceivedHandler& handler, const std::shared_ptr& context) const; void ListProjectsAsyncHelper(const Model::ListProjectsRequest& request, const ListProjectsResponseReceivedHandler& handler, const std::shared_ptr& context) const; void ListTagsForResourceAsyncHelper(const Model::ListTagsForResourceRequest& request, const ListTagsForResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const; void TagResourceAsyncHelper(const Model::TagResourceRequest& request, const TagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const; void UntagResourceAsyncHelper(const Model::UntagResourceRequest& request, const UntagResourceResponseReceivedHandler& handler, const std::shared_ptr& context) const; void UpdatePlacementAsyncHelper(const Model::UpdatePlacementRequest& request, const UpdatePlacementResponseReceivedHandler& handler, const std::shared_ptr& context) const; void UpdateProjectAsyncHelper(const Model::UpdateProjectRequest& request, const UpdateProjectResponseReceivedHandler& handler, const std::shared_ptr& context) const; Aws::String m_uri; Aws::String m_configScheme; std::shared_ptr m_executor; }; } // namespace IoT1ClickProjects } // namespace Aws