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,618 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/iot1click-devices/IoT1ClickDevicesServiceErrors.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-devices/model/ClaimDevicesByClaimCodeResult.h>
#include <aws/iot1click-devices/model/DescribeDeviceResult.h>
#include <aws/iot1click-devices/model/FinalizeDeviceClaimResult.h>
#include <aws/iot1click-devices/model/GetDeviceMethodsResult.h>
#include <aws/iot1click-devices/model/InitiateDeviceClaimResult.h>
#include <aws/iot1click-devices/model/InvokeDeviceMethodResult.h>
#include <aws/iot1click-devices/model/ListDeviceEventsResult.h>
#include <aws/iot1click-devices/model/ListDevicesResult.h>
#include <aws/iot1click-devices/model/ListTagsForResourceResult.h>
#include <aws/iot1click-devices/model/UnclaimDeviceResult.h>
#include <aws/iot1click-devices/model/UpdateDeviceStateResult.h>
#include <aws/core/NoResult.h>
#include <aws/core/client/AsyncCallerContext.h>
#include <aws/core/http/HttpTypes.h>
#include <future>
#include <functional>
namespace Aws
{
namespace Http
{
class HttpClient;
class HttpClientFactory;
} // namespace Http
namespace Utils
{
template< typename R, typename E> class Outcome;
namespace Threading
{
class Executor;
} // namespace Threading
} // namespace Utils
namespace Auth
{
class AWSCredentials;
class AWSCredentialsProvider;
} // namespace Auth
namespace Client
{
class RetryStrategy;
} // namespace Client
namespace IoT1ClickDevicesService
{
namespace Model
{
class ClaimDevicesByClaimCodeRequest;
class DescribeDeviceRequest;
class FinalizeDeviceClaimRequest;
class GetDeviceMethodsRequest;
class InitiateDeviceClaimRequest;
class InvokeDeviceMethodRequest;
class ListDeviceEventsRequest;
class ListDevicesRequest;
class ListTagsForResourceRequest;
class TagResourceRequest;
class UnclaimDeviceRequest;
class UntagResourceRequest;
class UpdateDeviceStateRequest;
typedef Aws::Utils::Outcome<ClaimDevicesByClaimCodeResult, IoT1ClickDevicesServiceError> ClaimDevicesByClaimCodeOutcome;
typedef Aws::Utils::Outcome<DescribeDeviceResult, IoT1ClickDevicesServiceError> DescribeDeviceOutcome;
typedef Aws::Utils::Outcome<FinalizeDeviceClaimResult, IoT1ClickDevicesServiceError> FinalizeDeviceClaimOutcome;
typedef Aws::Utils::Outcome<GetDeviceMethodsResult, IoT1ClickDevicesServiceError> GetDeviceMethodsOutcome;
typedef Aws::Utils::Outcome<InitiateDeviceClaimResult, IoT1ClickDevicesServiceError> InitiateDeviceClaimOutcome;
typedef Aws::Utils::Outcome<InvokeDeviceMethodResult, IoT1ClickDevicesServiceError> InvokeDeviceMethodOutcome;
typedef Aws::Utils::Outcome<ListDeviceEventsResult, IoT1ClickDevicesServiceError> ListDeviceEventsOutcome;
typedef Aws::Utils::Outcome<ListDevicesResult, IoT1ClickDevicesServiceError> ListDevicesOutcome;
typedef Aws::Utils::Outcome<ListTagsForResourceResult, IoT1ClickDevicesServiceError> ListTagsForResourceOutcome;
typedef Aws::Utils::Outcome<Aws::NoResult, IoT1ClickDevicesServiceError> TagResourceOutcome;
typedef Aws::Utils::Outcome<UnclaimDeviceResult, IoT1ClickDevicesServiceError> UnclaimDeviceOutcome;
typedef Aws::Utils::Outcome<Aws::NoResult, IoT1ClickDevicesServiceError> UntagResourceOutcome;
typedef Aws::Utils::Outcome<UpdateDeviceStateResult, IoT1ClickDevicesServiceError> UpdateDeviceStateOutcome;
typedef std::future<ClaimDevicesByClaimCodeOutcome> ClaimDevicesByClaimCodeOutcomeCallable;
typedef std::future<DescribeDeviceOutcome> DescribeDeviceOutcomeCallable;
typedef std::future<FinalizeDeviceClaimOutcome> FinalizeDeviceClaimOutcomeCallable;
typedef std::future<GetDeviceMethodsOutcome> GetDeviceMethodsOutcomeCallable;
typedef std::future<InitiateDeviceClaimOutcome> InitiateDeviceClaimOutcomeCallable;
typedef std::future<InvokeDeviceMethodOutcome> InvokeDeviceMethodOutcomeCallable;
typedef std::future<ListDeviceEventsOutcome> ListDeviceEventsOutcomeCallable;
typedef std::future<ListDevicesOutcome> ListDevicesOutcomeCallable;
typedef std::future<ListTagsForResourceOutcome> ListTagsForResourceOutcomeCallable;
typedef std::future<TagResourceOutcome> TagResourceOutcomeCallable;
typedef std::future<UnclaimDeviceOutcome> UnclaimDeviceOutcomeCallable;
typedef std::future<UntagResourceOutcome> UntagResourceOutcomeCallable;
typedef std::future<UpdateDeviceStateOutcome> UpdateDeviceStateOutcomeCallable;
} // namespace Model
class IoT1ClickDevicesServiceClient;
typedef std::function<void(const IoT1ClickDevicesServiceClient*, const Model::ClaimDevicesByClaimCodeRequest&, const Model::ClaimDevicesByClaimCodeOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ClaimDevicesByClaimCodeResponseReceivedHandler;
typedef std::function<void(const IoT1ClickDevicesServiceClient*, const Model::DescribeDeviceRequest&, const Model::DescribeDeviceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeDeviceResponseReceivedHandler;
typedef std::function<void(const IoT1ClickDevicesServiceClient*, const Model::FinalizeDeviceClaimRequest&, const Model::FinalizeDeviceClaimOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > FinalizeDeviceClaimResponseReceivedHandler;
typedef std::function<void(const IoT1ClickDevicesServiceClient*, const Model::GetDeviceMethodsRequest&, const Model::GetDeviceMethodsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > GetDeviceMethodsResponseReceivedHandler;
typedef std::function<void(const IoT1ClickDevicesServiceClient*, const Model::InitiateDeviceClaimRequest&, const Model::InitiateDeviceClaimOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > InitiateDeviceClaimResponseReceivedHandler;
typedef std::function<void(const IoT1ClickDevicesServiceClient*, const Model::InvokeDeviceMethodRequest&, const Model::InvokeDeviceMethodOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > InvokeDeviceMethodResponseReceivedHandler;
typedef std::function<void(const IoT1ClickDevicesServiceClient*, const Model::ListDeviceEventsRequest&, const Model::ListDeviceEventsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListDeviceEventsResponseReceivedHandler;
typedef std::function<void(const IoT1ClickDevicesServiceClient*, const Model::ListDevicesRequest&, const Model::ListDevicesOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListDevicesResponseReceivedHandler;
typedef std::function<void(const IoT1ClickDevicesServiceClient*, const Model::ListTagsForResourceRequest&, const Model::ListTagsForResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListTagsForResourceResponseReceivedHandler;
typedef std::function<void(const IoT1ClickDevicesServiceClient*, const Model::TagResourceRequest&, const Model::TagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > TagResourceResponseReceivedHandler;
typedef std::function<void(const IoT1ClickDevicesServiceClient*, const Model::UnclaimDeviceRequest&, const Model::UnclaimDeviceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UnclaimDeviceResponseReceivedHandler;
typedef std::function<void(const IoT1ClickDevicesServiceClient*, const Model::UntagResourceRequest&, const Model::UntagResourceOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UntagResourceResponseReceivedHandler;
typedef std::function<void(const IoT1ClickDevicesServiceClient*, const Model::UpdateDeviceStateRequest&, const Model::UpdateDeviceStateOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > UpdateDeviceStateResponseReceivedHandler;
/**
* <p>Describes all of the AWS IoT 1-Click device-related API operations for the
* service.
Also provides sample requests, responses, and errors for the supported
* web services
protocols.</p>
*/
class AWS_IOT1CLICKDEVICESSERVICE_API IoT1ClickDevicesServiceClient : 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.
*/
IoT1ClickDevicesServiceClient(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.
*/
IoT1ClickDevicesServiceClient(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
*/
IoT1ClickDevicesServiceClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
virtual ~IoT1ClickDevicesServiceClient();
/**
* <p>Adds device(s) to your account (i.e., claim one or more devices) if and only
* if you
received a claim code with the device(s).</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ClaimDevicesByClaimCode">AWS
* API Reference</a></p>
*/
virtual Model::ClaimDevicesByClaimCodeOutcome ClaimDevicesByClaimCode(const Model::ClaimDevicesByClaimCodeRequest& request) const;
/**
* <p>Adds device(s) to your account (i.e., claim one or more devices) if and only
* if you
received a claim code with the device(s).</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ClaimDevicesByClaimCode">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ClaimDevicesByClaimCodeOutcomeCallable ClaimDevicesByClaimCodeCallable(const Model::ClaimDevicesByClaimCodeRequest& request) const;
/**
* <p>Adds device(s) to your account (i.e., claim one or more devices) if and only
* if you
received a claim code with the device(s).</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ClaimDevicesByClaimCode">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ClaimDevicesByClaimCodeAsync(const Model::ClaimDevicesByClaimCodeRequest& request, const ClaimDevicesByClaimCodeResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Given a device ID, returns a DescribeDeviceResponse object describing the
* details of the device.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/DescribeDevice">AWS
* API Reference</a></p>
*/
virtual Model::DescribeDeviceOutcome DescribeDevice(const Model::DescribeDeviceRequest& request) const;
/**
* <p>Given a device ID, returns a DescribeDeviceResponse object describing the
* details of the device.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/DescribeDevice">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeDeviceOutcomeCallable DescribeDeviceCallable(const Model::DescribeDeviceRequest& request) const;
/**
* <p>Given a device ID, returns a DescribeDeviceResponse object describing the
* details of the device.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/DescribeDevice">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeDeviceAsync(const Model::DescribeDeviceRequest& request, const DescribeDeviceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Given a device ID, finalizes the claim request for the associated
* device.</p>
<p>Claiming a device consists of initiating a claim, then
* publishing a device event,
and finalizing the claim. For a device of type
* button, a device event can
be published by simply clicking the device.</p>
* <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/FinalizeDeviceClaim">AWS
* API Reference</a></p>
*/
virtual Model::FinalizeDeviceClaimOutcome FinalizeDeviceClaim(const Model::FinalizeDeviceClaimRequest& request) const;
/**
* <p>Given a device ID, finalizes the claim request for the associated
* device.</p>
<p>Claiming a device consists of initiating a claim, then
* publishing a device event,
and finalizing the claim. For a device of type
* button, a device event can
be published by simply clicking the device.</p>
* <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/FinalizeDeviceClaim">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::FinalizeDeviceClaimOutcomeCallable FinalizeDeviceClaimCallable(const Model::FinalizeDeviceClaimRequest& request) const;
/**
* <p>Given a device ID, finalizes the claim request for the associated
* device.</p>
<p>Claiming a device consists of initiating a claim, then
* publishing a device event,
and finalizing the claim. For a device of type
* button, a device event can
be published by simply clicking the device.</p>
* <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/FinalizeDeviceClaim">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void FinalizeDeviceClaimAsync(const Model::FinalizeDeviceClaimRequest& request, const FinalizeDeviceClaimResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Given a device ID, returns the invokable methods associated with the
* device.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/GetDeviceMethods">AWS
* API Reference</a></p>
*/
virtual Model::GetDeviceMethodsOutcome GetDeviceMethods(const Model::GetDeviceMethodsRequest& request) const;
/**
* <p>Given a device ID, returns the invokable methods associated with the
* device.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/GetDeviceMethods">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::GetDeviceMethodsOutcomeCallable GetDeviceMethodsCallable(const Model::GetDeviceMethodsRequest& request) const;
/**
* <p>Given a device ID, returns the invokable methods associated with the
* device.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/GetDeviceMethods">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void GetDeviceMethodsAsync(const Model::GetDeviceMethodsRequest& request, const GetDeviceMethodsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Given a device ID, initiates a claim request for the associated
* device.</p>
<p>Claiming a device consists of initiating a claim, then
* publishing a device event,
and finalizing the claim. For a device of type
* button, a device event can
be published by simply clicking the device.</p>
* <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InitiateDeviceClaim">AWS
* API Reference</a></p>
*/
virtual Model::InitiateDeviceClaimOutcome InitiateDeviceClaim(const Model::InitiateDeviceClaimRequest& request) const;
/**
* <p>Given a device ID, initiates a claim request for the associated
* device.</p>
<p>Claiming a device consists of initiating a claim, then
* publishing a device event,
and finalizing the claim. For a device of type
* button, a device event can
be published by simply clicking the device.</p>
* <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InitiateDeviceClaim">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::InitiateDeviceClaimOutcomeCallable InitiateDeviceClaimCallable(const Model::InitiateDeviceClaimRequest& request) const;
/**
* <p>Given a device ID, initiates a claim request for the associated
* device.</p>
<p>Claiming a device consists of initiating a claim, then
* publishing a device event,
and finalizing the claim. For a device of type
* button, a device event can
be published by simply clicking the device.</p>
* <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InitiateDeviceClaim">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void InitiateDeviceClaimAsync(const Model::InitiateDeviceClaimRequest& request, const InitiateDeviceClaimResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Given a device ID, issues a request to invoke a named device method (with
* possible
parameters). See the "Example POST" code snippet below.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InvokeDeviceMethod">AWS
* API Reference</a></p>
*/
virtual Model::InvokeDeviceMethodOutcome InvokeDeviceMethod(const Model::InvokeDeviceMethodRequest& request) const;
/**
* <p>Given a device ID, issues a request to invoke a named device method (with
* possible
parameters). See the "Example POST" code snippet below.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InvokeDeviceMethod">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::InvokeDeviceMethodOutcomeCallable InvokeDeviceMethodCallable(const Model::InvokeDeviceMethodRequest& request) const;
/**
* <p>Given a device ID, issues a request to invoke a named device method (with
* possible
parameters). See the "Example POST" code snippet below.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InvokeDeviceMethod">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void InvokeDeviceMethodAsync(const Model::InvokeDeviceMethodRequest& request, const InvokeDeviceMethodResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Using a device ID, returns a DeviceEventsResponse object containing an
array
* of events for the device.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListDeviceEvents">AWS
* API Reference</a></p>
*/
virtual Model::ListDeviceEventsOutcome ListDeviceEvents(const Model::ListDeviceEventsRequest& request) const;
/**
* <p>Using a device ID, returns a DeviceEventsResponse object containing an
array
* of events for the device.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListDeviceEvents">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListDeviceEventsOutcomeCallable ListDeviceEventsCallable(const Model::ListDeviceEventsRequest& request) const;
/**
* <p>Using a device ID, returns a DeviceEventsResponse object containing an
array
* of events for the device.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListDeviceEvents">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListDeviceEventsAsync(const Model::ListDeviceEventsRequest& request, const ListDeviceEventsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Lists the 1-Click compatible devices associated with your AWS
* account.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListDevices">AWS
* API Reference</a></p>
*/
virtual Model::ListDevicesOutcome ListDevices(const Model::ListDevicesRequest& request) const;
/**
* <p>Lists the 1-Click compatible devices associated with your AWS
* account.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListDevices">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListDevicesOutcomeCallable ListDevicesCallable(const Model::ListDevicesRequest& request) const;
/**
* <p>Lists the 1-Click compatible devices associated with your AWS
* account.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListDevices">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListDevicesAsync(const Model::ListDevicesRequest& request, const ListDevicesResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Lists the tags associated with the specified resource ARN.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListTagsForResource">AWS
* API Reference</a></p>
*/
virtual Model::ListTagsForResourceOutcome ListTagsForResource(const Model::ListTagsForResourceRequest& request) const;
/**
* <p>Lists the tags associated with the specified resource ARN.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-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 associated with the specified resource ARN.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-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>Adds or updates the tags associated with the resource ARN. 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><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/TagResource">AWS
* API Reference</a></p>
*/
virtual Model::TagResourceOutcome TagResource(const Model::TagResourceRequest& request) const;
/**
* <p>Adds or updates the tags associated with the resource ARN. 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><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-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>Adds or updates the tags associated with the resource ARN. 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><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-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>Disassociates a device from your AWS account using its device
* ID.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UnclaimDevice">AWS
* API Reference</a></p>
*/
virtual Model::UnclaimDeviceOutcome UnclaimDevice(const Model::UnclaimDeviceRequest& request) const;
/**
* <p>Disassociates a device from your AWS account using its device
* ID.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UnclaimDevice">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::UnclaimDeviceOutcomeCallable UnclaimDeviceCallable(const Model::UnclaimDeviceRequest& request) const;
/**
* <p>Disassociates a device from your AWS account using its device
* ID.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UnclaimDevice">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void UnclaimDeviceAsync(const Model::UnclaimDeviceRequest& request, const UnclaimDeviceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Using tag keys, deletes the tags (key/value pairs) associated with the
* specified
resource ARN.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UntagResource">AWS
* API Reference</a></p>
*/
virtual Model::UntagResourceOutcome UntagResource(const Model::UntagResourceRequest& request) const;
/**
* <p>Using tag keys, deletes the tags (key/value pairs) associated with the
* specified
resource ARN.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-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>Using tag keys, deletes the tags (key/value pairs) associated with the
* specified
resource ARN.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-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>Using a Boolean value (true or false), this operation
enables or disables
* the device given a device ID.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UpdateDeviceState">AWS
* API Reference</a></p>
*/
virtual Model::UpdateDeviceStateOutcome UpdateDeviceState(const Model::UpdateDeviceStateRequest& request) const;
/**
* <p>Using a Boolean value (true or false), this operation
enables or disables
* the device given a device ID.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UpdateDeviceState">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::UpdateDeviceStateOutcomeCallable UpdateDeviceStateCallable(const Model::UpdateDeviceStateRequest& request) const;
/**
* <p>Using a Boolean value (true or false), this operation
enables or disables
* the device given a device ID.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UpdateDeviceState">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void UpdateDeviceStateAsync(const Model::UpdateDeviceStateRequest& request, const UpdateDeviceStateResponseReceivedHandler& 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 ClaimDevicesByClaimCodeAsyncHelper(const Model::ClaimDevicesByClaimCodeRequest& request, const ClaimDevicesByClaimCodeResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeDeviceAsyncHelper(const Model::DescribeDeviceRequest& request, const DescribeDeviceResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void FinalizeDeviceClaimAsyncHelper(const Model::FinalizeDeviceClaimRequest& request, const FinalizeDeviceClaimResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void GetDeviceMethodsAsyncHelper(const Model::GetDeviceMethodsRequest& request, const GetDeviceMethodsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void InitiateDeviceClaimAsyncHelper(const Model::InitiateDeviceClaimRequest& request, const InitiateDeviceClaimResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void InvokeDeviceMethodAsyncHelper(const Model::InvokeDeviceMethodRequest& request, const InvokeDeviceMethodResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListDeviceEventsAsyncHelper(const Model::ListDeviceEventsRequest& request, const ListDeviceEventsResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListDevicesAsyncHelper(const Model::ListDevicesRequest& request, const ListDevicesResponseReceivedHandler& 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 UnclaimDeviceAsyncHelper(const Model::UnclaimDeviceRequest& request, const UnclaimDeviceResponseReceivedHandler& 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 UpdateDeviceStateAsyncHelper(const Model::UpdateDeviceStateRequest& request, const UpdateDeviceStateResponseReceivedHandler& 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 IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace IoT1ClickDevicesService
{
namespace IoT1ClickDevicesServiceEndpoint
{
AWS_IOT1CLICKDEVICESSERVICE_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace IoT1ClickDevicesServiceEndpoint
} // namespace IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_IOT1CLICKDEVICESSERVICE_API IoT1ClickDevicesServiceErrorMarshaller : 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,76 @@
/**
* 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-devices/IoT1ClickDevicesService_EXPORTS.h>
namespace Aws
{
namespace IoT1ClickDevicesService
{
enum class IoT1ClickDevicesServiceErrors
{
//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,
///////////////////////////////////////////////////////////////////////////////////////////
FORBIDDEN= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1,
INVALID_REQUEST,
PRECONDITION_FAILED,
RANGE_NOT_SATISFIABLE,
RESOURCE_CONFLICT
};
class AWS_IOT1CLICKDEVICESSERVICE_API IoT1ClickDevicesServiceError : public Aws::Client::AWSError<IoT1ClickDevicesServiceErrors>
{
public:
IoT1ClickDevicesServiceError() {}
IoT1ClickDevicesServiceError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<IoT1ClickDevicesServiceErrors>(rhs) {}
IoT1ClickDevicesServiceError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<IoT1ClickDevicesServiceErrors>(rhs) {}
IoT1ClickDevicesServiceError(const Aws::Client::AWSError<IoT1ClickDevicesServiceErrors>& rhs) : Aws::Client::AWSError<IoT1ClickDevicesServiceErrors>(rhs) {}
IoT1ClickDevicesServiceError(Aws::Client::AWSError<IoT1ClickDevicesServiceErrors>&& rhs) : Aws::Client::AWSError<IoT1ClickDevicesServiceErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace IoT1ClickDevicesServiceErrorMapper
{
AWS_IOT1CLICKDEVICESSERVICE_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace IoT1ClickDevicesService
{
class AWS_IOT1CLICKDEVICESSERVICE_API IoT1ClickDevicesServiceRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~IoT1ClickDevicesServiceRequest () {}
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 IoT1ClickDevicesService
} // 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_IOT1CLICKDEVICESSERVICE_EXPORTS
#define AWS_IOT1CLICKDEVICESSERVICE_API __declspec(dllexport)
#else
#define AWS_IOT1CLICKDEVICESSERVICE_API __declspec(dllimport)
#endif /* AWS_IOT1CLICKDEVICESSERVICE_EXPORTS */
#else
#define AWS_IOT1CLICKDEVICESSERVICE_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_IOT1CLICKDEVICESSERVICE_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

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-devices/IoT1ClickDevicesService_EXPORTS.h>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API Attributes
{
public:
Attributes();
Attributes(Aws::Utils::Json::JsonView jsonValue);
Attributes& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,91 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/iot1click-devices/IoT1ClickDevicesServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickDevicesService
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKDEVICESSERVICE_API ClaimDevicesByClaimCodeRequest : public IoT1ClickDevicesServiceRequest
{
public:
ClaimDevicesByClaimCodeRequest();
// 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 "ClaimDevicesByClaimCode"; }
Aws::String SerializePayload() const override;
/**
* <p>The claim code, starting with "C-", as provided by the device
* manufacturer.</p>
*/
inline const Aws::String& GetClaimCode() const{ return m_claimCode; }
/**
* <p>The claim code, starting with "C-", as provided by the device
* manufacturer.</p>
*/
inline bool ClaimCodeHasBeenSet() const { return m_claimCodeHasBeenSet; }
/**
* <p>The claim code, starting with "C-", as provided by the device
* manufacturer.</p>
*/
inline void SetClaimCode(const Aws::String& value) { m_claimCodeHasBeenSet = true; m_claimCode = value; }
/**
* <p>The claim code, starting with "C-", as provided by the device
* manufacturer.</p>
*/
inline void SetClaimCode(Aws::String&& value) { m_claimCodeHasBeenSet = true; m_claimCode = std::move(value); }
/**
* <p>The claim code, starting with "C-", as provided by the device
* manufacturer.</p>
*/
inline void SetClaimCode(const char* value) { m_claimCodeHasBeenSet = true; m_claimCode.assign(value); }
/**
* <p>The claim code, starting with "C-", as provided by the device
* manufacturer.</p>
*/
inline ClaimDevicesByClaimCodeRequest& WithClaimCode(const Aws::String& value) { SetClaimCode(value); return *this;}
/**
* <p>The claim code, starting with "C-", as provided by the device
* manufacturer.</p>
*/
inline ClaimDevicesByClaimCodeRequest& WithClaimCode(Aws::String&& value) { SetClaimCode(std::move(value)); return *this;}
/**
* <p>The claim code, starting with "C-", as provided by the device
* manufacturer.</p>
*/
inline ClaimDevicesByClaimCodeRequest& WithClaimCode(const char* value) { SetClaimCode(value); return *this;}
private:
Aws::String m_claimCode;
bool m_claimCodeHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,101 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_EXPORTS.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 IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API ClaimDevicesByClaimCodeResult
{
public:
ClaimDevicesByClaimCodeResult();
ClaimDevicesByClaimCodeResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ClaimDevicesByClaimCodeResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The claim code provided by the device manufacturer.</p>
*/
inline const Aws::String& GetClaimCode() const{ return m_claimCode; }
/**
* <p>The claim code provided by the device manufacturer.</p>
*/
inline void SetClaimCode(const Aws::String& value) { m_claimCode = value; }
/**
* <p>The claim code provided by the device manufacturer.</p>
*/
inline void SetClaimCode(Aws::String&& value) { m_claimCode = std::move(value); }
/**
* <p>The claim code provided by the device manufacturer.</p>
*/
inline void SetClaimCode(const char* value) { m_claimCode.assign(value); }
/**
* <p>The claim code provided by the device manufacturer.</p>
*/
inline ClaimDevicesByClaimCodeResult& WithClaimCode(const Aws::String& value) { SetClaimCode(value); return *this;}
/**
* <p>The claim code provided by the device manufacturer.</p>
*/
inline ClaimDevicesByClaimCodeResult& WithClaimCode(Aws::String&& value) { SetClaimCode(std::move(value)); return *this;}
/**
* <p>The claim code provided by the device manufacturer.</p>
*/
inline ClaimDevicesByClaimCodeResult& WithClaimCode(const char* value) { SetClaimCode(value); return *this;}
/**
* <p>The total number of devices associated with the claim code that has been
* processed in
the claim request.</p>
*/
inline int GetTotal() const{ return m_total; }
/**
* <p>The total number of devices associated with the claim code that has been
* processed in
the claim request.</p>
*/
inline void SetTotal(int value) { m_total = value; }
/**
* <p>The total number of devices associated with the claim code that has been
* processed in
the claim request.</p>
*/
inline ClaimDevicesByClaimCodeResult& WithTotal(int value) { SetTotal(value); return *this;}
private:
Aws::String m_claimCode;
int m_total;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/iot1click-devices/IoT1ClickDevicesServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickDevicesService
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKDEVICESSERVICE_API DescribeDeviceRequest : public IoT1ClickDevicesServiceRequest
{
public:
DescribeDeviceRequest();
// 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 "DescribeDevice"; }
Aws::String SerializePayload() const override;
/**
* <p>The unique identifier of the device.</p>
*/
inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
/**
* <p>The unique identifier of the device.</p>
*/
inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline DescribeDeviceRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline DescribeDeviceRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline DescribeDeviceRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
private:
Aws::String m_deviceId;
bool m_deviceIdHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/iot1click-devices/model/DeviceDescription.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API DescribeDeviceResult
{
public:
DescribeDeviceResult();
DescribeDeviceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeDeviceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Device details.</p>
*/
inline const DeviceDescription& GetDeviceDescription() const{ return m_deviceDescription; }
/**
* <p>Device details.</p>
*/
inline void SetDeviceDescription(const DeviceDescription& value) { m_deviceDescription = value; }
/**
* <p>Device details.</p>
*/
inline void SetDeviceDescription(DeviceDescription&& value) { m_deviceDescription = std::move(value); }
/**
* <p>Device details.</p>
*/
inline DescribeDeviceResult& WithDeviceDescription(const DeviceDescription& value) { SetDeviceDescription(value); return *this;}
/**
* <p>Device details.</p>
*/
inline DescribeDeviceResult& WithDeviceDescription(DeviceDescription&& value) { SetDeviceDescription(std::move(value)); return *this;}
private:
DeviceDescription m_deviceDescription;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,162 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/iot1click-devices/model/Attributes.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 IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API Device
{
public:
Device();
Device(Aws::Utils::Json::JsonView jsonValue);
Device& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The user specified attributes associated with the device for an event.</p>
*/
inline const Attributes& GetAttributes() const{ return m_attributes; }
/**
* <p>The user specified attributes associated with the device for an event.</p>
*/
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
/**
* <p>The user specified attributes associated with the device for an event.</p>
*/
inline void SetAttributes(const Attributes& value) { m_attributesHasBeenSet = true; m_attributes = value; }
/**
* <p>The user specified attributes associated with the device for an event.</p>
*/
inline void SetAttributes(Attributes&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
/**
* <p>The user specified attributes associated with the device for an event.</p>
*/
inline Device& WithAttributes(const Attributes& value) { SetAttributes(value); return *this;}
/**
* <p>The user specified attributes associated with the device for an event.</p>
*/
inline Device& WithAttributes(Attributes&& value) { SetAttributes(std::move(value)); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
/**
* <p>The unique identifier of the device.</p>
*/
inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline Device& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline Device& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline Device& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
/**
* <p>The device type, such as "button".</p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>The device type, such as "button".</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The device type, such as "button".</p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The device type, such as "button".</p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The device type, such as "button".</p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>The device type, such as "button".</p>
*/
inline Device& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>The device type, such as "button".</p>
*/
inline Device& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The device type, such as "button".</p>
*/
inline Device& WithType(const char* value) { SetType(value); return *this;}
private:
Attributes m_attributes;
bool m_attributesHasBeenSet;
Aws::String m_deviceId;
bool m_deviceIdHasBeenSet;
Aws::String m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,392 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_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 IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API DeviceDescription
{
public:
DeviceDescription();
DeviceDescription(Aws::Utils::Json::JsonView jsonValue);
DeviceDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN of the device.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The ARN of the device.</p>
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* <p>The ARN of the device.</p>
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* <p>The ARN of the device.</p>
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* <p>The ARN of the device.</p>
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* <p>The ARN of the device.</p>
*/
inline DeviceDescription& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The ARN of the device.</p>
*/
inline DeviceDescription& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The ARN of the device.</p>
*/
inline DeviceDescription& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>An array of zero or more elements of DeviceAttribute objects providing
user
* specified device attributes.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
/**
* <p>An array of zero or more elements of DeviceAttribute objects providing
user
* specified device attributes.</p>
*/
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
/**
* <p>An array of zero or more elements of DeviceAttribute objects providing
user
* specified device attributes.</p>
*/
inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
/**
* <p>An array of zero or more elements of DeviceAttribute objects providing
user
* specified device attributes.</p>
*/
inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
/**
* <p>An array of zero or more elements of DeviceAttribute objects providing
user
* specified device attributes.</p>
*/
inline DeviceDescription& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
/**
* <p>An array of zero or more elements of DeviceAttribute objects providing
user
* specified device attributes.</p>
*/
inline DeviceDescription& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
/**
* <p>An array of zero or more elements of DeviceAttribute objects providing
user
* specified device attributes.</p>
*/
inline DeviceDescription& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
/**
* <p>An array of zero or more elements of DeviceAttribute objects providing
user
* specified device attributes.</p>
*/
inline DeviceDescription& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
/**
* <p>An array of zero or more elements of DeviceAttribute objects providing
user
* specified device attributes.</p>
*/
inline DeviceDescription& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
/**
* <p>An array of zero or more elements of DeviceAttribute objects providing
user
* specified device attributes.</p>
*/
inline DeviceDescription& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>An array of zero or more elements of DeviceAttribute objects providing
user
* specified device attributes.</p>
*/
inline DeviceDescription& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
/**
* <p>An array of zero or more elements of DeviceAttribute objects providing
user
* specified device attributes.</p>
*/
inline DeviceDescription& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
/**
* <p>An array of zero or more elements of DeviceAttribute objects providing
user
* specified device attributes.</p>
*/
inline DeviceDescription& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
/**
* <p>The unique identifier of the device.</p>
*/
inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
/**
* <p>The unique identifier of the device.</p>
*/
inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline DeviceDescription& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline DeviceDescription& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline DeviceDescription& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
/**
* <p>A Boolean value indicating whether or not the device is enabled.</p>
*/
inline bool GetEnabled() const{ return m_enabled; }
/**
* <p>A Boolean value indicating whether or not the device is enabled.</p>
*/
inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
/**
* <p>A Boolean value indicating whether or not the device is enabled.</p>
*/
inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
/**
* <p>A Boolean value indicating whether or not the device is enabled.</p>
*/
inline DeviceDescription& WithEnabled(bool value) { SetEnabled(value); return *this;}
/**
* <p>A value between 0 and 1 inclusive, representing the fraction of life
* remaining for the
device.</p>
*/
inline double GetRemainingLife() const{ return m_remainingLife; }
/**
* <p>A value between 0 and 1 inclusive, representing the fraction of life
* remaining for the
device.</p>
*/
inline bool RemainingLifeHasBeenSet() const { return m_remainingLifeHasBeenSet; }
/**
* <p>A value between 0 and 1 inclusive, representing the fraction of life
* remaining for the
device.</p>
*/
inline void SetRemainingLife(double value) { m_remainingLifeHasBeenSet = true; m_remainingLife = value; }
/**
* <p>A value between 0 and 1 inclusive, representing the fraction of life
* remaining for the
device.</p>
*/
inline DeviceDescription& WithRemainingLife(double value) { SetRemainingLife(value); return *this;}
/**
* <p>The type of the device, such as "button".</p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>The type of the device, such as "button".</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of the device, such as "button".</p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of the device, such as "button".</p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of the device, such as "button".</p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>The type of the device, such as "button".</p>
*/
inline DeviceDescription& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>The type of the device, such as "button".</p>
*/
inline DeviceDescription& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The type of the device, such as "button".</p>
*/
inline DeviceDescription& WithType(const char* value) { SetType(value); return *this;}
/**
* <p>The tags currently associated with the AWS IoT 1-Click device.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags currently associated with the AWS IoT 1-Click device.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags currently associated with the AWS IoT 1-Click device.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags currently associated with the AWS IoT 1-Click device.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags currently associated with the AWS IoT 1-Click device.</p>
*/
inline DeviceDescription& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags currently associated with the AWS IoT 1-Click device.</p>
*/
inline DeviceDescription& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags currently associated with the AWS IoT 1-Click device.</p>
*/
inline DeviceDescription& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>The tags currently associated with the AWS IoT 1-Click device.</p>
*/
inline DeviceDescription& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags currently associated with the AWS IoT 1-Click device.</p>
*/
inline DeviceDescription& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags currently associated with the AWS IoT 1-Click device.</p>
*/
inline DeviceDescription& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags currently associated with the AWS IoT 1-Click device.</p>
*/
inline DeviceDescription& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags currently associated with the AWS IoT 1-Click device.</p>
*/
inline DeviceDescription& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags currently associated with the AWS IoT 1-Click device.</p>
*/
inline DeviceDescription& 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::Map<Aws::String, Aws::String> m_attributes;
bool m_attributesHasBeenSet;
Aws::String m_deviceId;
bool m_deviceIdHasBeenSet;
bool m_enabled;
bool m_enabledHasBeenSet;
double m_remainingLife;
bool m_remainingLifeHasBeenSet;
Aws::String m_type;
bool m_typeHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,118 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/iot1click-devices/model/Device.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 IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API DeviceEvent
{
public:
DeviceEvent();
DeviceEvent(Aws::Utils::Json::JsonView jsonValue);
DeviceEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>An object representing the device associated with the event.</p>
*/
inline const Device& GetDevice() const{ return m_device; }
/**
* <p>An object representing the device associated with the event.</p>
*/
inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
/**
* <p>An object representing the device associated with the event.</p>
*/
inline void SetDevice(const Device& value) { m_deviceHasBeenSet = true; m_device = value; }
/**
* <p>An object representing the device associated with the event.</p>
*/
inline void SetDevice(Device&& value) { m_deviceHasBeenSet = true; m_device = std::move(value); }
/**
* <p>An object representing the device associated with the event.</p>
*/
inline DeviceEvent& WithDevice(const Device& value) { SetDevice(value); return *this;}
/**
* <p>An object representing the device associated with the event.</p>
*/
inline DeviceEvent& WithDevice(Device&& value) { SetDevice(std::move(value)); return *this;}
/**
* <p>A serialized JSON object representing the device-type specific event.</p>
*/
inline const Aws::String& GetStdEvent() const{ return m_stdEvent; }
/**
* <p>A serialized JSON object representing the device-type specific event.</p>
*/
inline bool StdEventHasBeenSet() const { return m_stdEventHasBeenSet; }
/**
* <p>A serialized JSON object representing the device-type specific event.</p>
*/
inline void SetStdEvent(const Aws::String& value) { m_stdEventHasBeenSet = true; m_stdEvent = value; }
/**
* <p>A serialized JSON object representing the device-type specific event.</p>
*/
inline void SetStdEvent(Aws::String&& value) { m_stdEventHasBeenSet = true; m_stdEvent = std::move(value); }
/**
* <p>A serialized JSON object representing the device-type specific event.</p>
*/
inline void SetStdEvent(const char* value) { m_stdEventHasBeenSet = true; m_stdEvent.assign(value); }
/**
* <p>A serialized JSON object representing the device-type specific event.</p>
*/
inline DeviceEvent& WithStdEvent(const Aws::String& value) { SetStdEvent(value); return *this;}
/**
* <p>A serialized JSON object representing the device-type specific event.</p>
*/
inline DeviceEvent& WithStdEvent(Aws::String&& value) { SetStdEvent(std::move(value)); return *this;}
/**
* <p>A serialized JSON object representing the device-type specific event.</p>
*/
inline DeviceEvent& WithStdEvent(const char* value) { SetStdEvent(value); return *this;}
private:
Device m_device;
bool m_deviceHasBeenSet;
Aws::String m_stdEvent;
bool m_stdEventHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_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 IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API DeviceMethod
{
public:
DeviceMethod();
DeviceMethod(Aws::Utils::Json::JsonView jsonValue);
DeviceMethod& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The type of the device, such as "button".</p>
*/
inline const Aws::String& GetDeviceType() const{ return m_deviceType; }
/**
* <p>The type of the device, such as "button".</p>
*/
inline bool DeviceTypeHasBeenSet() const { return m_deviceTypeHasBeenSet; }
/**
* <p>The type of the device, such as "button".</p>
*/
inline void SetDeviceType(const Aws::String& value) { m_deviceTypeHasBeenSet = true; m_deviceType = value; }
/**
* <p>The type of the device, such as "button".</p>
*/
inline void SetDeviceType(Aws::String&& value) { m_deviceTypeHasBeenSet = true; m_deviceType = std::move(value); }
/**
* <p>The type of the device, such as "button".</p>
*/
inline void SetDeviceType(const char* value) { m_deviceTypeHasBeenSet = true; m_deviceType.assign(value); }
/**
* <p>The type of the device, such as "button".</p>
*/
inline DeviceMethod& WithDeviceType(const Aws::String& value) { SetDeviceType(value); return *this;}
/**
* <p>The type of the device, such as "button".</p>
*/
inline DeviceMethod& WithDeviceType(Aws::String&& value) { SetDeviceType(std::move(value)); return *this;}
/**
* <p>The type of the device, such as "button".</p>
*/
inline DeviceMethod& WithDeviceType(const char* value) { SetDeviceType(value); return *this;}
/**
* <p>The name of the method applicable to the deviceType.</p>
*/
inline const Aws::String& GetMethodName() const{ return m_methodName; }
/**
* <p>The name of the method applicable to the deviceType.</p>
*/
inline bool MethodNameHasBeenSet() const { return m_methodNameHasBeenSet; }
/**
* <p>The name of the method applicable to the deviceType.</p>
*/
inline void SetMethodName(const Aws::String& value) { m_methodNameHasBeenSet = true; m_methodName = value; }
/**
* <p>The name of the method applicable to the deviceType.</p>
*/
inline void SetMethodName(Aws::String&& value) { m_methodNameHasBeenSet = true; m_methodName = std::move(value); }
/**
* <p>The name of the method applicable to the deviceType.</p>
*/
inline void SetMethodName(const char* value) { m_methodNameHasBeenSet = true; m_methodName.assign(value); }
/**
* <p>The name of the method applicable to the deviceType.</p>
*/
inline DeviceMethod& WithMethodName(const Aws::String& value) { SetMethodName(value); return *this;}
/**
* <p>The name of the method applicable to the deviceType.</p>
*/
inline DeviceMethod& WithMethodName(Aws::String&& value) { SetMethodName(std::move(value)); return *this;}
/**
* <p>The name of the method applicable to the deviceType.</p>
*/
inline DeviceMethod& WithMethodName(const char* value) { SetMethodName(value); return *this;}
private:
Aws::String m_deviceType;
bool m_deviceTypeHasBeenSet;
Aws::String m_methodName;
bool m_methodNameHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,244 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/iot1click-devices/IoT1ClickDevicesServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickDevicesService
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKDEVICESSERVICE_API FinalizeDeviceClaimRequest : public IoT1ClickDevicesServiceRequest
{
public:
FinalizeDeviceClaimRequest();
// 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 "FinalizeDeviceClaim"; }
Aws::String SerializePayload() const override;
/**
* <p>The unique identifier of the device.</p>
*/
inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
/**
* <p>The unique identifier of the device.</p>
*/
inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline FinalizeDeviceClaimRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline FinalizeDeviceClaimRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline FinalizeDeviceClaimRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline FinalizeDeviceClaimRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline FinalizeDeviceClaimRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline FinalizeDeviceClaimRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline FinalizeDeviceClaimRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline FinalizeDeviceClaimRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline FinalizeDeviceClaimRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline FinalizeDeviceClaimRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline FinalizeDeviceClaimRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline FinalizeDeviceClaimRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_deviceId;
bool m_deviceIdHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_EXPORTS.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 IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API FinalizeDeviceClaimResult
{
public:
FinalizeDeviceClaimResult();
FinalizeDeviceClaimResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
FinalizeDeviceClaimResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The device's final claim state.</p>
*/
inline const Aws::String& GetState() const{ return m_state; }
/**
* <p>The device's final claim state.</p>
*/
inline void SetState(const Aws::String& value) { m_state = value; }
/**
* <p>The device's final claim state.</p>
*/
inline void SetState(Aws::String&& value) { m_state = std::move(value); }
/**
* <p>The device's final claim state.</p>
*/
inline void SetState(const char* value) { m_state.assign(value); }
/**
* <p>The device's final claim state.</p>
*/
inline FinalizeDeviceClaimResult& WithState(const Aws::String& value) { SetState(value); return *this;}
/**
* <p>The device's final claim state.</p>
*/
inline FinalizeDeviceClaimResult& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The device's final claim state.</p>
*/
inline FinalizeDeviceClaimResult& WithState(const char* value) { SetState(value); return *this;}
private:
Aws::String m_state;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_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 IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API ForbiddenException
{
public:
ForbiddenException();
ForbiddenException(Aws::Utils::Json::JsonView jsonValue);
ForbiddenException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>403</p>
*/
inline const Aws::String& GetCode() const{ return m_code; }
/**
* <p>403</p>
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* <p>403</p>
*/
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* <p>403</p>
*/
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* <p>403</p>
*/
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
/**
* <p>403</p>
*/
inline ForbiddenException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
/**
* <p>403</p>
*/
inline ForbiddenException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
/**
* <p>403</p>
*/
inline ForbiddenException& WithCode(const char* value) { SetCode(value); return *this;}
/**
* <p>The 403 error message returned by the web server.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>The 403 error message returned by the web server.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>The 403 error message returned by the web server.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>The 403 error message returned by the web server.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>The 403 error message returned by the web server.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>The 403 error message returned by the web server.</p>
*/
inline ForbiddenException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>The 403 error message returned by the web server.</p>
*/
inline ForbiddenException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>The 403 error message returned by the web server.</p>
*/
inline ForbiddenException& 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 IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/iot1click-devices/IoT1ClickDevicesServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickDevicesService
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKDEVICESSERVICE_API GetDeviceMethodsRequest : public IoT1ClickDevicesServiceRequest
{
public:
GetDeviceMethodsRequest();
// 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 "GetDeviceMethods"; }
Aws::String SerializePayload() const override;
/**
* <p>The unique identifier of the device.</p>
*/
inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
/**
* <p>The unique identifier of the device.</p>
*/
inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline GetDeviceMethodsRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline GetDeviceMethodsRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline GetDeviceMethodsRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
private:
Aws::String m_deviceId;
bool m_deviceIdHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,78 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iot1click-devices/model/DeviceMethod.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API GetDeviceMethodsResult
{
public:
GetDeviceMethodsResult();
GetDeviceMethodsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetDeviceMethodsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>List of available device APIs.</p>
*/
inline const Aws::Vector<DeviceMethod>& GetDeviceMethods() const{ return m_deviceMethods; }
/**
* <p>List of available device APIs.</p>
*/
inline void SetDeviceMethods(const Aws::Vector<DeviceMethod>& value) { m_deviceMethods = value; }
/**
* <p>List of available device APIs.</p>
*/
inline void SetDeviceMethods(Aws::Vector<DeviceMethod>&& value) { m_deviceMethods = std::move(value); }
/**
* <p>List of available device APIs.</p>
*/
inline GetDeviceMethodsResult& WithDeviceMethods(const Aws::Vector<DeviceMethod>& value) { SetDeviceMethods(value); return *this;}
/**
* <p>List of available device APIs.</p>
*/
inline GetDeviceMethodsResult& WithDeviceMethods(Aws::Vector<DeviceMethod>&& value) { SetDeviceMethods(std::move(value)); return *this;}
/**
* <p>List of available device APIs.</p>
*/
inline GetDeviceMethodsResult& AddDeviceMethods(const DeviceMethod& value) { m_deviceMethods.push_back(value); return *this; }
/**
* <p>List of available device APIs.</p>
*/
inline GetDeviceMethodsResult& AddDeviceMethods(DeviceMethod&& value) { m_deviceMethods.push_back(std::move(value)); return *this; }
private:
Aws::Vector<DeviceMethod> m_deviceMethods;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/iot1click-devices/IoT1ClickDevicesServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickDevicesService
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKDEVICESSERVICE_API InitiateDeviceClaimRequest : public IoT1ClickDevicesServiceRequest
{
public:
InitiateDeviceClaimRequest();
// 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 "InitiateDeviceClaim"; }
Aws::String SerializePayload() const override;
/**
* <p>The unique identifier of the device.</p>
*/
inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
/**
* <p>The unique identifier of the device.</p>
*/
inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline InitiateDeviceClaimRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline InitiateDeviceClaimRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline InitiateDeviceClaimRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
private:
Aws::String m_deviceId;
bool m_deviceIdHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_EXPORTS.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 IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API InitiateDeviceClaimResult
{
public:
InitiateDeviceClaimResult();
InitiateDeviceClaimResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
InitiateDeviceClaimResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The device's final claim state.</p>
*/
inline const Aws::String& GetState() const{ return m_state; }
/**
* <p>The device's final claim state.</p>
*/
inline void SetState(const Aws::String& value) { m_state = value; }
/**
* <p>The device's final claim state.</p>
*/
inline void SetState(Aws::String&& value) { m_state = std::move(value); }
/**
* <p>The device's final claim state.</p>
*/
inline void SetState(const char* value) { m_state.assign(value); }
/**
* <p>The device's final claim state.</p>
*/
inline InitiateDeviceClaimResult& WithState(const Aws::String& value) { SetState(value); return *this;}
/**
* <p>The device's final claim state.</p>
*/
inline InitiateDeviceClaimResult& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The device's final claim state.</p>
*/
inline InitiateDeviceClaimResult& WithState(const char* value) { SetState(value); return *this;}
private:
Aws::String m_state;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_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 IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API InternalFailureException
{
public:
InternalFailureException();
InternalFailureException(Aws::Utils::Json::JsonView jsonValue);
InternalFailureException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>500</p>
*/
inline const Aws::String& GetCode() const{ return m_code; }
/**
* <p>500</p>
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* <p>500</p>
*/
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* <p>500</p>
*/
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* <p>500</p>
*/
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
/**
* <p>500</p>
*/
inline InternalFailureException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
/**
* <p>500</p>
*/
inline InternalFailureException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
/**
* <p>500</p>
*/
inline InternalFailureException& WithCode(const char* value) { SetCode(value); return *this;}
/**
* <p>The 500 error message returned by the web server.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>The 500 error message returned by the web server.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>The 500 error message returned by the web server.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>The 500 error message returned by the web server.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>The 500 error message returned by the web server.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>The 500 error message returned by the web server.</p>
*/
inline InternalFailureException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>The 500 error message returned by the web server.</p>
*/
inline InternalFailureException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>The 500 error message returned by the web server.</p>
*/
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 IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_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 IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API InvalidRequestException
{
public:
InvalidRequestException();
InvalidRequestException(Aws::Utils::Json::JsonView jsonValue);
InvalidRequestException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>400</p>
*/
inline const Aws::String& GetCode() const{ return m_code; }
/**
* <p>400</p>
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* <p>400</p>
*/
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* <p>400</p>
*/
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* <p>400</p>
*/
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
/**
* <p>400</p>
*/
inline InvalidRequestException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
/**
* <p>400</p>
*/
inline InvalidRequestException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
/**
* <p>400</p>
*/
inline InvalidRequestException& WithCode(const char* value) { SetCode(value); return *this;}
/**
* <p>The 400 error message returned by the web server.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>The 400 error message returned by the web server.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>The 400 error message returned by the web server.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>The 400 error message returned by the web server.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>The 400 error message returned by the web server.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>The 400 error message returned by the web server.</p>
*/
inline InvalidRequestException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>The 400 error message returned by the web server.</p>
*/
inline InvalidRequestException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>The 400 error message returned by the web server.</p>
*/
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 IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,162 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/iot1click-devices/IoT1ClickDevicesServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iot1click-devices/model/DeviceMethod.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickDevicesService
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKDEVICESSERVICE_API InvokeDeviceMethodRequest : public IoT1ClickDevicesServiceRequest
{
public:
InvokeDeviceMethodRequest();
// 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 "InvokeDeviceMethod"; }
Aws::String SerializePayload() const override;
/**
* <p>The unique identifier of the device.</p>
*/
inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
/**
* <p>The unique identifier of the device.</p>
*/
inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline InvokeDeviceMethodRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline InvokeDeviceMethodRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline InvokeDeviceMethodRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
/**
* <p>The device method to invoke.</p>
*/
inline const DeviceMethod& GetDeviceMethod() const{ return m_deviceMethod; }
/**
* <p>The device method to invoke.</p>
*/
inline bool DeviceMethodHasBeenSet() const { return m_deviceMethodHasBeenSet; }
/**
* <p>The device method to invoke.</p>
*/
inline void SetDeviceMethod(const DeviceMethod& value) { m_deviceMethodHasBeenSet = true; m_deviceMethod = value; }
/**
* <p>The device method to invoke.</p>
*/
inline void SetDeviceMethod(DeviceMethod&& value) { m_deviceMethodHasBeenSet = true; m_deviceMethod = std::move(value); }
/**
* <p>The device method to invoke.</p>
*/
inline InvokeDeviceMethodRequest& WithDeviceMethod(const DeviceMethod& value) { SetDeviceMethod(value); return *this;}
/**
* <p>The device method to invoke.</p>
*/
inline InvokeDeviceMethodRequest& WithDeviceMethod(DeviceMethod&& value) { SetDeviceMethod(std::move(value)); return *this;}
/**
* <p>A JSON encoded string containing the device method request parameters.</p>
*/
inline const Aws::String& GetDeviceMethodParameters() const{ return m_deviceMethodParameters; }
/**
* <p>A JSON encoded string containing the device method request parameters.</p>
*/
inline bool DeviceMethodParametersHasBeenSet() const { return m_deviceMethodParametersHasBeenSet; }
/**
* <p>A JSON encoded string containing the device method request parameters.</p>
*/
inline void SetDeviceMethodParameters(const Aws::String& value) { m_deviceMethodParametersHasBeenSet = true; m_deviceMethodParameters = value; }
/**
* <p>A JSON encoded string containing the device method request parameters.</p>
*/
inline void SetDeviceMethodParameters(Aws::String&& value) { m_deviceMethodParametersHasBeenSet = true; m_deviceMethodParameters = std::move(value); }
/**
* <p>A JSON encoded string containing the device method request parameters.</p>
*/
inline void SetDeviceMethodParameters(const char* value) { m_deviceMethodParametersHasBeenSet = true; m_deviceMethodParameters.assign(value); }
/**
* <p>A JSON encoded string containing the device method request parameters.</p>
*/
inline InvokeDeviceMethodRequest& WithDeviceMethodParameters(const Aws::String& value) { SetDeviceMethodParameters(value); return *this;}
/**
* <p>A JSON encoded string containing the device method request parameters.</p>
*/
inline InvokeDeviceMethodRequest& WithDeviceMethodParameters(Aws::String&& value) { SetDeviceMethodParameters(std::move(value)); return *this;}
/**
* <p>A JSON encoded string containing the device method request parameters.</p>
*/
inline InvokeDeviceMethodRequest& WithDeviceMethodParameters(const char* value) { SetDeviceMethodParameters(value); return *this;}
private:
Aws::String m_deviceId;
bool m_deviceIdHasBeenSet;
DeviceMethod m_deviceMethod;
bool m_deviceMethodHasBeenSet;
Aws::String m_deviceMethodParameters;
bool m_deviceMethodParametersHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_EXPORTS.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 IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API InvokeDeviceMethodResult
{
public:
InvokeDeviceMethodResult();
InvokeDeviceMethodResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
InvokeDeviceMethodResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A JSON encoded string containing the device method response.</p>
*/
inline const Aws::String& GetDeviceMethodResponse() const{ return m_deviceMethodResponse; }
/**
* <p>A JSON encoded string containing the device method response.</p>
*/
inline void SetDeviceMethodResponse(const Aws::String& value) { m_deviceMethodResponse = value; }
/**
* <p>A JSON encoded string containing the device method response.</p>
*/
inline void SetDeviceMethodResponse(Aws::String&& value) { m_deviceMethodResponse = std::move(value); }
/**
* <p>A JSON encoded string containing the device method response.</p>
*/
inline void SetDeviceMethodResponse(const char* value) { m_deviceMethodResponse.assign(value); }
/**
* <p>A JSON encoded string containing the device method response.</p>
*/
inline InvokeDeviceMethodResult& WithDeviceMethodResponse(const Aws::String& value) { SetDeviceMethodResponse(value); return *this;}
/**
* <p>A JSON encoded string containing the device method response.</p>
*/
inline InvokeDeviceMethodResult& WithDeviceMethodResponse(Aws::String&& value) { SetDeviceMethodResponse(std::move(value)); return *this;}
/**
* <p>A JSON encoded string containing the device method response.</p>
*/
inline InvokeDeviceMethodResult& WithDeviceMethodResponse(const char* value) { SetDeviceMethodResponse(value); return *this;}
private:
Aws::String m_deviceMethodResponse;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,270 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/iot1click-devices/IoT1ClickDevicesServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace IoT1ClickDevicesService
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKDEVICESSERVICE_API ListDeviceEventsRequest : public IoT1ClickDevicesServiceRequest
{
public:
ListDeviceEventsRequest();
// 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 "ListDeviceEvents"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The unique identifier of the device.</p>
*/
inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
/**
* <p>The unique identifier of the device.</p>
*/
inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline ListDeviceEventsRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline ListDeviceEventsRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline ListDeviceEventsRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
/**
* <p>The start date for the device event query, in ISO8061 format. For example,
* 2018-03-28T15:45:12.880Z
</p>
*/
inline const Aws::Utils::DateTime& GetFromTimeStamp() const{ return m_fromTimeStamp; }
/**
* <p>The start date for the device event query, in ISO8061 format. For example,
* 2018-03-28T15:45:12.880Z
</p>
*/
inline bool FromTimeStampHasBeenSet() const { return m_fromTimeStampHasBeenSet; }
/**
* <p>The start date for the device event query, in ISO8061 format. For example,
* 2018-03-28T15:45:12.880Z
</p>
*/
inline void SetFromTimeStamp(const Aws::Utils::DateTime& value) { m_fromTimeStampHasBeenSet = true; m_fromTimeStamp = value; }
/**
* <p>The start date for the device event query, in ISO8061 format. For example,
* 2018-03-28T15:45:12.880Z
</p>
*/
inline void SetFromTimeStamp(Aws::Utils::DateTime&& value) { m_fromTimeStampHasBeenSet = true; m_fromTimeStamp = std::move(value); }
/**
* <p>The start date for the device event query, in ISO8061 format. For example,
* 2018-03-28T15:45:12.880Z
</p>
*/
inline ListDeviceEventsRequest& WithFromTimeStamp(const Aws::Utils::DateTime& value) { SetFromTimeStamp(value); return *this;}
/**
* <p>The start date for the device event query, in ISO8061 format. For example,
* 2018-03-28T15:45:12.880Z
</p>
*/
inline ListDeviceEventsRequest& WithFromTimeStamp(Aws::Utils::DateTime&& value) { SetFromTimeStamp(std::move(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 ListDeviceEventsRequest& WithMaxResults(int value) { SetMaxResults(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 ListDeviceEventsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline ListDeviceEventsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline ListDeviceEventsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The end date for the device event query, in ISO8061 format. For example,
* 2018-03-28T15:45:12.880Z
</p>
*/
inline const Aws::Utils::DateTime& GetToTimeStamp() const{ return m_toTimeStamp; }
/**
* <p>The end date for the device event query, in ISO8061 format. For example,
* 2018-03-28T15:45:12.880Z
</p>
*/
inline bool ToTimeStampHasBeenSet() const { return m_toTimeStampHasBeenSet; }
/**
* <p>The end date for the device event query, in ISO8061 format. For example,
* 2018-03-28T15:45:12.880Z
</p>
*/
inline void SetToTimeStamp(const Aws::Utils::DateTime& value) { m_toTimeStampHasBeenSet = true; m_toTimeStamp = value; }
/**
* <p>The end date for the device event query, in ISO8061 format. For example,
* 2018-03-28T15:45:12.880Z
</p>
*/
inline void SetToTimeStamp(Aws::Utils::DateTime&& value) { m_toTimeStampHasBeenSet = true; m_toTimeStamp = std::move(value); }
/**
* <p>The end date for the device event query, in ISO8061 format. For example,
* 2018-03-28T15:45:12.880Z
</p>
*/
inline ListDeviceEventsRequest& WithToTimeStamp(const Aws::Utils::DateTime& value) { SetToTimeStamp(value); return *this;}
/**
* <p>The end date for the device event query, in ISO8061 format. For example,
* 2018-03-28T15:45:12.880Z
</p>
*/
inline ListDeviceEventsRequest& WithToTimeStamp(Aws::Utils::DateTime&& value) { SetToTimeStamp(std::move(value)); return *this;}
private:
Aws::String m_deviceId;
bool m_deviceIdHasBeenSet;
Aws::Utils::DateTime m_fromTimeStamp;
bool m_fromTimeStampHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
Aws::Utils::DateTime m_toTimeStamp;
bool m_toTimeStampHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,131 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iot1click-devices/model/DeviceEvent.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API ListDeviceEventsResult
{
public:
ListDeviceEventsResult();
ListDeviceEventsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListDeviceEventsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An array of zero or more elements describing the event(s) associated with
* the
device.</p>
*/
inline const Aws::Vector<DeviceEvent>& GetEvents() const{ return m_events; }
/**
* <p>An array of zero or more elements describing the event(s) associated with
* the
device.</p>
*/
inline void SetEvents(const Aws::Vector<DeviceEvent>& value) { m_events = value; }
/**
* <p>An array of zero or more elements describing the event(s) associated with
* the
device.</p>
*/
inline void SetEvents(Aws::Vector<DeviceEvent>&& value) { m_events = std::move(value); }
/**
* <p>An array of zero or more elements describing the event(s) associated with
* the
device.</p>
*/
inline ListDeviceEventsResult& WithEvents(const Aws::Vector<DeviceEvent>& value) { SetEvents(value); return *this;}
/**
* <p>An array of zero or more elements describing the event(s) associated with
* the
device.</p>
*/
inline ListDeviceEventsResult& WithEvents(Aws::Vector<DeviceEvent>&& value) { SetEvents(std::move(value)); return *this;}
/**
* <p>An array of zero or more elements describing the event(s) associated with
* the
device.</p>
*/
inline ListDeviceEventsResult& AddEvents(const DeviceEvent& value) { m_events.push_back(value); return *this; }
/**
* <p>An array of zero or more elements describing the event(s) associated with
* the
device.</p>
*/
inline ListDeviceEventsResult& AddEvents(DeviceEvent&& value) { m_events.push_back(std::move(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 void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline ListDeviceEventsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline ListDeviceEventsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline ListDeviceEventsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<DeviceEvent> m_events;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,165 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/iot1click-devices/IoT1ClickDevicesServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace IoT1ClickDevicesService
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKDEVICESSERVICE_API ListDevicesRequest : public IoT1ClickDevicesServiceRequest
{
public:
ListDevicesRequest();
// 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 "ListDevices"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The type of the device, such as "button".</p>
*/
inline const Aws::String& GetDeviceType() const{ return m_deviceType; }
/**
* <p>The type of the device, such as "button".</p>
*/
inline bool DeviceTypeHasBeenSet() const { return m_deviceTypeHasBeenSet; }
/**
* <p>The type of the device, such as "button".</p>
*/
inline void SetDeviceType(const Aws::String& value) { m_deviceTypeHasBeenSet = true; m_deviceType = value; }
/**
* <p>The type of the device, such as "button".</p>
*/
inline void SetDeviceType(Aws::String&& value) { m_deviceTypeHasBeenSet = true; m_deviceType = std::move(value); }
/**
* <p>The type of the device, such as "button".</p>
*/
inline void SetDeviceType(const char* value) { m_deviceTypeHasBeenSet = true; m_deviceType.assign(value); }
/**
* <p>The type of the device, such as "button".</p>
*/
inline ListDevicesRequest& WithDeviceType(const Aws::String& value) { SetDeviceType(value); return *this;}
/**
* <p>The type of the device, such as "button".</p>
*/
inline ListDevicesRequest& WithDeviceType(Aws::String&& value) { SetDeviceType(std::move(value)); return *this;}
/**
* <p>The type of the device, such as "button".</p>
*/
inline ListDevicesRequest& WithDeviceType(const char* value) { SetDeviceType(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 ListDevicesRequest& WithMaxResults(int value) { SetMaxResults(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 ListDevicesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline ListDevicesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline ListDevicesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::String m_deviceType;
bool m_deviceTypeHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iot1click-devices/model/DeviceDescription.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API ListDevicesResult
{
public:
ListDevicesResult();
ListDevicesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListDevicesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of devices.</p>
*/
inline const Aws::Vector<DeviceDescription>& GetDevices() const{ return m_devices; }
/**
* <p>A list of devices.</p>
*/
inline void SetDevices(const Aws::Vector<DeviceDescription>& value) { m_devices = value; }
/**
* <p>A list of devices.</p>
*/
inline void SetDevices(Aws::Vector<DeviceDescription>&& value) { m_devices = std::move(value); }
/**
* <p>A list of devices.</p>
*/
inline ListDevicesResult& WithDevices(const Aws::Vector<DeviceDescription>& value) { SetDevices(value); return *this;}
/**
* <p>A list of devices.</p>
*/
inline ListDevicesResult& WithDevices(Aws::Vector<DeviceDescription>&& value) { SetDevices(std::move(value)); return *this;}
/**
* <p>A list of devices.</p>
*/
inline ListDevicesResult& AddDevices(const DeviceDescription& value) { m_devices.push_back(value); return *this; }
/**
* <p>A list of devices.</p>
*/
inline ListDevicesResult& AddDevices(DeviceDescription&& value) { m_devices.push_back(std::move(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 void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline ListDevicesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline ListDevicesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token to retrieve the next set of results.</p>
*/
inline ListDevicesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<DeviceDescription> m_devices;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/iot1click-devices/IoT1ClickDevicesServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickDevicesService
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKDEVICESSERVICE_API ListTagsForResourceRequest : public IoT1ClickDevicesServiceRequest
{
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.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The ARN of the resource.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The ARN of the resource.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The ARN of the resource.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The ARN of the resource.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The ARN of the resource.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The ARN of the resource.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The ARN of the resource.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,187 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_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 IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API ListTagsForResourceResult
{
public:
ListTagsForResourceResult();
ListTagsForResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListTagsForResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline ListTagsForResourceResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline ListTagsForResourceResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline ListTagsForResourceResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline ListTagsForResourceResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline ListTagsForResourceResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline ListTagsForResourceResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline ListTagsForResourceResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline ListTagsForResourceResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</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 IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_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 IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API PreconditionFailedException
{
public:
PreconditionFailedException();
PreconditionFailedException(Aws::Utils::Json::JsonView jsonValue);
PreconditionFailedException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>412</p>
*/
inline const Aws::String& GetCode() const{ return m_code; }
/**
* <p>412</p>
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* <p>412</p>
*/
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* <p>412</p>
*/
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* <p>412</p>
*/
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
/**
* <p>412</p>
*/
inline PreconditionFailedException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
/**
* <p>412</p>
*/
inline PreconditionFailedException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
/**
* <p>412</p>
*/
inline PreconditionFailedException& WithCode(const char* value) { SetCode(value); return *this;}
/**
* <p>An error message explaining the error or its remedy.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>An error message explaining the error or its remedy.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>An error message explaining the error or its remedy.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>An error message explaining the error or its remedy.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>An error message explaining the error or its remedy.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>An error message explaining the error or its remedy.</p>
*/
inline PreconditionFailedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>An error message explaining the error or its remedy.</p>
*/
inline PreconditionFailedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>An error message explaining the error or its remedy.</p>
*/
inline PreconditionFailedException& 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 IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,143 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_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 IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API RangeNotSatisfiableException
{
public:
RangeNotSatisfiableException();
RangeNotSatisfiableException(Aws::Utils::Json::JsonView jsonValue);
RangeNotSatisfiableException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>416</p>
*/
inline const Aws::String& GetCode() const{ return m_code; }
/**
* <p>416</p>
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* <p>416</p>
*/
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* <p>416</p>
*/
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* <p>416</p>
*/
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
/**
* <p>416</p>
*/
inline RangeNotSatisfiableException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
/**
* <p>416</p>
*/
inline RangeNotSatisfiableException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
/**
* <p>416</p>
*/
inline RangeNotSatisfiableException& WithCode(const char* value) { SetCode(value); return *this;}
/**
* <p>The requested number of results specified by nextToken cannot be
* satisfied.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>The requested number of results specified by nextToken cannot be
* satisfied.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>The requested number of results specified by nextToken cannot be
* satisfied.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>The requested number of results specified by nextToken cannot be
* satisfied.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>The requested number of results specified by nextToken cannot be
* satisfied.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>The requested number of results specified by nextToken cannot be
* satisfied.</p>
*/
inline RangeNotSatisfiableException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>The requested number of results specified by nextToken cannot be
* satisfied.</p>
*/
inline RangeNotSatisfiableException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>The requested number of results specified by nextToken cannot be
* satisfied.</p>
*/
inline RangeNotSatisfiableException& 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 IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_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 IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API ResourceConflictException
{
public:
ResourceConflictException();
ResourceConflictException(Aws::Utils::Json::JsonView jsonValue);
ResourceConflictException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>409</p>
*/
inline const Aws::String& GetCode() const{ return m_code; }
/**
* <p>409</p>
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* <p>409</p>
*/
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* <p>409</p>
*/
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* <p>409</p>
*/
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
/**
* <p>409</p>
*/
inline ResourceConflictException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
/**
* <p>409</p>
*/
inline ResourceConflictException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
/**
* <p>409</p>
*/
inline ResourceConflictException& WithCode(const char* value) { SetCode(value); return *this;}
/**
* <p>An error message explaining the error or its remedy.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>An error message explaining the error or its remedy.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>An error message explaining the error or its remedy.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>An error message explaining the error or its remedy.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>An error message explaining the error or its remedy.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>An error message explaining the error or its remedy.</p>
*/
inline ResourceConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>An error message explaining the error or its remedy.</p>
*/
inline ResourceConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>An error message explaining the error or its remedy.</p>
*/
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 IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_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 IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API ResourceNotFoundException
{
public:
ResourceNotFoundException();
ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue);
ResourceNotFoundException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>404</p>
*/
inline const Aws::String& GetCode() const{ return m_code; }
/**
* <p>404</p>
*/
inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
/**
* <p>404</p>
*/
inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
/**
* <p>404</p>
*/
inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
/**
* <p>404</p>
*/
inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
/**
* <p>404</p>
*/
inline ResourceNotFoundException& WithCode(const Aws::String& value) { SetCode(value); return *this;}
/**
* <p>404</p>
*/
inline ResourceNotFoundException& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
/**
* <p>404</p>
*/
inline ResourceNotFoundException& WithCode(const char* value) { SetCode(value); return *this;}
/**
* <p>The requested device could not be found.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>The requested device could not be found.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>The requested device could not be found.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>The requested device could not be found.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>The requested device could not be found.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>The requested device could not be found.</p>
*/
inline ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>The requested device could not be found.</p>
*/
inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>The requested device could not be found.</p>
*/
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 IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,244 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/iot1click-devices/IoT1ClickDevicesServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickDevicesService
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKDEVICESSERVICE_API TagResourceRequest : public IoT1ClickDevicesServiceRequest
{
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 resource.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The ARN of the resource.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The ARN of the resource.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The ARN of the resource.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The ARN of the resource.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The ARN of the resource.</p>
*/
inline TagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The ARN of the resource.</p>
*/
inline TagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The ARN of the resource.</p>
*/
inline TagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline TagResourceRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline TagResourceRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline TagResourceRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline TagResourceRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline TagResourceRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</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>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline TagResourceRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</p>
*/
inline TagResourceRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>A collection of key/value pairs defining the resource tags. For example, {
* "tags": {"key1": "value1", "key2": "value2"} }. For more information, see <a
* href="https://aws.amazon.com/answers/account-management/aws-tagging-strategies/">AWS
* Tagging Strategies</a>.</p><p>
</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 IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/iot1click-devices/IoT1ClickDevicesServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickDevicesService
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKDEVICESSERVICE_API UnclaimDeviceRequest : public IoT1ClickDevicesServiceRequest
{
public:
UnclaimDeviceRequest();
// 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 "UnclaimDevice"; }
Aws::String SerializePayload() const override;
/**
* <p>The unique identifier of the device.</p>
*/
inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
/**
* <p>The unique identifier of the device.</p>
*/
inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline UnclaimDeviceRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline UnclaimDeviceRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline UnclaimDeviceRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
private:
Aws::String m_deviceId;
bool m_deviceIdHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_EXPORTS.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 IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API UnclaimDeviceResult
{
public:
UnclaimDeviceResult();
UnclaimDeviceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UnclaimDeviceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The device's final claim state.</p>
*/
inline const Aws::String& GetState() const{ return m_state; }
/**
* <p>The device's final claim state.</p>
*/
inline void SetState(const Aws::String& value) { m_state = value; }
/**
* <p>The device's final claim state.</p>
*/
inline void SetState(Aws::String&& value) { m_state = std::move(value); }
/**
* <p>The device's final claim state.</p>
*/
inline void SetState(const char* value) { m_state.assign(value); }
/**
* <p>The device's final claim state.</p>
*/
inline UnclaimDeviceResult& WithState(const Aws::String& value) { SetState(value); return *this;}
/**
* <p>The device's final claim state.</p>
*/
inline UnclaimDeviceResult& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The device's final claim state.</p>
*/
inline UnclaimDeviceResult& WithState(const char* value) { SetState(value); return *this;}
private:
Aws::String m_state;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/iot1click-devices/IoT1ClickDevicesServiceRequest.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 IoT1ClickDevicesService
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKDEVICESSERVICE_API UntagResourceRequest : public IoT1ClickDevicesServiceRequest
{
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.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The ARN of the resource.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The ARN of the resource.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The ARN of the resource.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The ARN of the resource.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The ARN of the resource.</p>
*/
inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The ARN of the resource.</p>
*/
inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The ARN of the resource.</p>
*/
inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>A collections of tag keys. For example, {"key1","key2"}</p>
*/
inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
/**
* <p>A collections of tag keys. For example, {"key1","key2"}</p>
*/
inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
/**
* <p>A collections of tag keys. For example, {"key1","key2"}</p>
*/
inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
/**
* <p>A collections of tag keys. For example, {"key1","key2"}</p>
*/
inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
/**
* <p>A collections of tag keys. For example, {"key1","key2"}</p>
*/
inline UntagResourceRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
/**
* <p>A collections of tag keys. For example, {"key1","key2"}</p>
*/
inline UntagResourceRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
/**
* <p>A collections of tag keys. For example, {"key1","key2"}</p>
*/
inline UntagResourceRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
/**
* <p>A collections of tag keys. For example, {"key1","key2"}</p>
*/
inline UntagResourceRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
/**
* <p>A collections of tag keys. For example, {"key1","key2"}</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 IoT1ClickDevicesService
} // namespace Aws

View File

@@ -0,0 +1,111 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot1click-devices/IoT1ClickDevicesService_EXPORTS.h>
#include <aws/iot1click-devices/IoT1ClickDevicesServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoT1ClickDevicesService
{
namespace Model
{
/**
*/
class AWS_IOT1CLICKDEVICESSERVICE_API UpdateDeviceStateRequest : public IoT1ClickDevicesServiceRequest
{
public:
UpdateDeviceStateRequest();
// 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 "UpdateDeviceState"; }
Aws::String SerializePayload() const override;
/**
* <p>The unique identifier of the device.</p>
*/
inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
/**
* <p>The unique identifier of the device.</p>
*/
inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
/**
* <p>The unique identifier of the device.</p>
*/
inline UpdateDeviceStateRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline UpdateDeviceStateRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
/**
* <p>The unique identifier of the device.</p>
*/
inline UpdateDeviceStateRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
/**
* <p>If true, the device is enabled. If false, the device is
disabled.</p>
*/
inline bool GetEnabled() const{ return m_enabled; }
/**
* <p>If true, the device is enabled. If false, the device is
disabled.</p>
*/
inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
/**
* <p>If true, the device is enabled. If false, the device is
disabled.</p>
*/
inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
/**
* <p>If true, the device is enabled. If false, the device is
disabled.</p>
*/
inline UpdateDeviceStateRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
private:
Aws::String m_deviceId;
bool m_deviceIdHasBeenSet;
bool m_enabled;
bool m_enabledHasBeenSet;
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // 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-devices/IoT1ClickDevicesService_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoT1ClickDevicesService
{
namespace Model
{
class AWS_IOT1CLICKDEVICESSERVICE_API UpdateDeviceStateResult
{
public:
UpdateDeviceStateResult();
UpdateDeviceStateResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateDeviceStateResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace IoT1ClickDevicesService
} // namespace Aws