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,255 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/iotevents-data/IoTEventsDataErrors.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/iotevents-data/model/BatchPutMessageResult.h>
#include <aws/iotevents-data/model/BatchUpdateDetectorResult.h>
#include <aws/iotevents-data/model/DescribeDetectorResult.h>
#include <aws/iotevents-data/model/ListDetectorsResult.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 IoTEventsData
{
namespace Model
{
class BatchPutMessageRequest;
class BatchUpdateDetectorRequest;
class DescribeDetectorRequest;
class ListDetectorsRequest;
typedef Aws::Utils::Outcome<BatchPutMessageResult, IoTEventsDataError> BatchPutMessageOutcome;
typedef Aws::Utils::Outcome<BatchUpdateDetectorResult, IoTEventsDataError> BatchUpdateDetectorOutcome;
typedef Aws::Utils::Outcome<DescribeDetectorResult, IoTEventsDataError> DescribeDetectorOutcome;
typedef Aws::Utils::Outcome<ListDetectorsResult, IoTEventsDataError> ListDetectorsOutcome;
typedef std::future<BatchPutMessageOutcome> BatchPutMessageOutcomeCallable;
typedef std::future<BatchUpdateDetectorOutcome> BatchUpdateDetectorOutcomeCallable;
typedef std::future<DescribeDetectorOutcome> DescribeDetectorOutcomeCallable;
typedef std::future<ListDetectorsOutcome> ListDetectorsOutcomeCallable;
} // namespace Model
class IoTEventsDataClient;
typedef std::function<void(const IoTEventsDataClient*, const Model::BatchPutMessageRequest&, const Model::BatchPutMessageOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > BatchPutMessageResponseReceivedHandler;
typedef std::function<void(const IoTEventsDataClient*, const Model::BatchUpdateDetectorRequest&, const Model::BatchUpdateDetectorOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > BatchUpdateDetectorResponseReceivedHandler;
typedef std::function<void(const IoTEventsDataClient*, const Model::DescribeDetectorRequest&, const Model::DescribeDetectorOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > DescribeDetectorResponseReceivedHandler;
typedef std::function<void(const IoTEventsDataClient*, const Model::ListDetectorsRequest&, const Model::ListDetectorsOutcome&, const std::shared_ptr<const Aws::Client::AsyncCallerContext>&) > ListDetectorsResponseReceivedHandler;
/**
* <p>AWS IoT Events monitors your equipment or device fleets for failures or
* changes in operation, and triggers actions when such events occur. AWS IoT
* Events Data API commands enable you to send inputs to detectors, list detectors,
* and view or update a detector's status.</p>
*/
class AWS_IOTEVENTSDATA_API IoTEventsDataClient : 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.
*/
IoTEventsDataClient(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.
*/
IoTEventsDataClient(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
*/
IoTEventsDataClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
const Aws::Client::ClientConfiguration& clientConfiguration = Aws::Client::ClientConfiguration());
virtual ~IoTEventsDataClient();
/**
* <p>Sends a set of messages to the AWS IoT Events system. Each message payload is
* transformed into the input you specify (<code>"inputName"</code>) and ingested
* into any detectors that monitor that input. If multiple messages are sent, the
* order in which the messages are processed isn't guaranteed. To guarantee
* ordering, you must send messages one at a time and wait for a successful
* response.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/BatchPutMessage">AWS
* API Reference</a></p>
*/
virtual Model::BatchPutMessageOutcome BatchPutMessage(const Model::BatchPutMessageRequest& request) const;
/**
* <p>Sends a set of messages to the AWS IoT Events system. Each message payload is
* transformed into the input you specify (<code>"inputName"</code>) and ingested
* into any detectors that monitor that input. If multiple messages are sent, the
* order in which the messages are processed isn't guaranteed. To guarantee
* ordering, you must send messages one at a time and wait for a successful
* response.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/BatchPutMessage">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::BatchPutMessageOutcomeCallable BatchPutMessageCallable(const Model::BatchPutMessageRequest& request) const;
/**
* <p>Sends a set of messages to the AWS IoT Events system. Each message payload is
* transformed into the input you specify (<code>"inputName"</code>) and ingested
* into any detectors that monitor that input. If multiple messages are sent, the
* order in which the messages are processed isn't guaranteed. To guarantee
* ordering, you must send messages one at a time and wait for a successful
* response.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/BatchPutMessage">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void BatchPutMessageAsync(const Model::BatchPutMessageRequest& request, const BatchPutMessageResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Updates the state, variable values, and timer settings of one or more
* detectors (instances) of a specified detector model.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/BatchUpdateDetector">AWS
* API Reference</a></p>
*/
virtual Model::BatchUpdateDetectorOutcome BatchUpdateDetector(const Model::BatchUpdateDetectorRequest& request) const;
/**
* <p>Updates the state, variable values, and timer settings of one or more
* detectors (instances) of a specified detector model.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/BatchUpdateDetector">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::BatchUpdateDetectorOutcomeCallable BatchUpdateDetectorCallable(const Model::BatchUpdateDetectorRequest& request) const;
/**
* <p>Updates the state, variable values, and timer settings of one or more
* detectors (instances) of a specified detector model.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/BatchUpdateDetector">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void BatchUpdateDetectorAsync(const Model::BatchUpdateDetectorRequest& request, const BatchUpdateDetectorResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Returns information about the specified detector (instance).</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/DescribeDetector">AWS
* API Reference</a></p>
*/
virtual Model::DescribeDetectorOutcome DescribeDetector(const Model::DescribeDetectorRequest& request) const;
/**
* <p>Returns information about the specified detector (instance).</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/DescribeDetector">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::DescribeDetectorOutcomeCallable DescribeDetectorCallable(const Model::DescribeDetectorRequest& request) const;
/**
* <p>Returns information about the specified detector (instance).</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/DescribeDetector">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void DescribeDetectorAsync(const Model::DescribeDetectorRequest& request, const DescribeDetectorResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context = nullptr) const;
/**
* <p>Lists detectors (the instances of a detector model).</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/ListDetectors">AWS
* API Reference</a></p>
*/
virtual Model::ListDetectorsOutcome ListDetectors(const Model::ListDetectorsRequest& request) const;
/**
* <p>Lists detectors (the instances of a detector model).</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/ListDetectors">AWS
* API Reference</a></p>
*
* returns a future to the operation so that it can be executed in parallel to other requests.
*/
virtual Model::ListDetectorsOutcomeCallable ListDetectorsCallable(const Model::ListDetectorsRequest& request) const;
/**
* <p>Lists detectors (the instances of a detector model).</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/ListDetectors">AWS
* API Reference</a></p>
*
* Queues the request into a thread executor and triggers associated callback when operation has finished.
*/
virtual void ListDetectorsAsync(const Model::ListDetectorsRequest& request, const ListDetectorsResponseReceivedHandler& 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 BatchPutMessageAsyncHelper(const Model::BatchPutMessageRequest& request, const BatchPutMessageResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void BatchUpdateDetectorAsyncHelper(const Model::BatchUpdateDetectorRequest& request, const BatchUpdateDetectorResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void DescribeDetectorAsyncHelper(const Model::DescribeDetectorRequest& request, const DescribeDetectorResponseReceivedHandler& handler, const std::shared_ptr<const Aws::Client::AsyncCallerContext>& context) const;
void ListDetectorsAsyncHelper(const Model::ListDetectorsRequest& request, const ListDetectorsResponseReceivedHandler& 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 IoTEventsData
} // 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/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/core/Region.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace IoTEventsData
{
namespace IoTEventsDataEndpoint
{
AWS_IOTEVENTSDATA_API Aws::String ForRegion(const Aws::String& regionName, bool useDualStack = false);
} // namespace IoTEventsDataEndpoint
} // namespace IoTEventsData
} // 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/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>
namespace Aws
{
namespace Client
{
class AWS_IOTEVENTSDATA_API IoTEventsDataErrorMarshaller : 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,72 @@
/**
* 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/iotevents-data/IoTEventsData_EXPORTS.h>
namespace Aws
{
namespace IoTEventsData
{
enum class IoTEventsDataErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,
UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////
INVALID_REQUEST= static_cast<int>(Aws::Client::CoreErrors::SERVICE_EXTENSION_START_RANGE) + 1
};
class AWS_IOTEVENTSDATA_API IoTEventsDataError : public Aws::Client::AWSError<IoTEventsDataErrors>
{
public:
IoTEventsDataError() {}
IoTEventsDataError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<IoTEventsDataErrors>(rhs) {}
IoTEventsDataError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<IoTEventsDataErrors>(rhs) {}
IoTEventsDataError(const Aws::Client::AWSError<IoTEventsDataErrors>& rhs) : Aws::Client::AWSError<IoTEventsDataErrors>(rhs) {}
IoTEventsDataError(Aws::Client::AWSError<IoTEventsDataErrors>&& rhs) : Aws::Client::AWSError<IoTEventsDataErrors>(rhs) {}
template <typename T>
T GetModeledError();
};
namespace IoTEventsDataErrorMapper
{
AWS_IOTEVENTSDATA_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}
} // namespace IoTEventsData
} // 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/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>
namespace Aws
{
namespace IoTEventsData
{
class AWS_IOTEVENTSDATA_API IoTEventsDataRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
virtual ~IoTEventsDataRequest () {}
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-10-23"));
return headers;
}
protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }
};
} // namespace IoTEventsData
} // 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_IOTEVENTSDATA_EXPORTS
#define AWS_IOTEVENTSDATA_API __declspec(dllexport)
#else
#define AWS_IOTEVENTSDATA_API __declspec(dllimport)
#endif /* AWS_IOTEVENTSDATA_EXPORTS */
#else
#define AWS_IOTEVENTSDATA_API
#endif // USE_IMPORT_EXPORT
#else // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)
#define AWS_IOTEVENTSDATA_API
#endif // defined (USE_WINDOWS_DLL_SEMANTICS) || defined (WIN32)

View File

@@ -0,0 +1,176 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents-data/model/ErrorCode.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEventsData
{
namespace Model
{
/**
* <p>Contains information about the errors encountered.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/BatchPutMessageErrorEntry">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTSDATA_API BatchPutMessageErrorEntry
{
public:
BatchPutMessageErrorEntry();
BatchPutMessageErrorEntry(Aws::Utils::Json::JsonView jsonValue);
BatchPutMessageErrorEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the message that caused the error. (See the value corresponding to
* the <code>"messageId"</code> key in the <code>"message"</code> object.)</p>
*/
inline const Aws::String& GetMessageId() const{ return m_messageId; }
/**
* <p>The ID of the message that caused the error. (See the value corresponding to
* the <code>"messageId"</code> key in the <code>"message"</code> object.)</p>
*/
inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
/**
* <p>The ID of the message that caused the error. (See the value corresponding to
* the <code>"messageId"</code> key in the <code>"message"</code> object.)</p>
*/
inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
/**
* <p>The ID of the message that caused the error. (See the value corresponding to
* the <code>"messageId"</code> key in the <code>"message"</code> object.)</p>
*/
inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); }
/**
* <p>The ID of the message that caused the error. (See the value corresponding to
* the <code>"messageId"</code> key in the <code>"message"</code> object.)</p>
*/
inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); }
/**
* <p>The ID of the message that caused the error. (See the value corresponding to
* the <code>"messageId"</code> key in the <code>"message"</code> object.)</p>
*/
inline BatchPutMessageErrorEntry& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
/**
* <p>The ID of the message that caused the error. (See the value corresponding to
* the <code>"messageId"</code> key in the <code>"message"</code> object.)</p>
*/
inline BatchPutMessageErrorEntry& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
/**
* <p>The ID of the message that caused the error. (See the value corresponding to
* the <code>"messageId"</code> key in the <code>"message"</code> object.)</p>
*/
inline BatchPutMessageErrorEntry& WithMessageId(const char* value) { SetMessageId(value); return *this;}
/**
* <p>The code associated with the error.</p>
*/
inline const ErrorCode& GetErrorCode() const{ return m_errorCode; }
/**
* <p>The code associated with the error.</p>
*/
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
/**
* <p>The code associated with the error.</p>
*/
inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
/**
* <p>The code associated with the error.</p>
*/
inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
/**
* <p>The code associated with the error.</p>
*/
inline BatchPutMessageErrorEntry& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;}
/**
* <p>The code associated with the error.</p>
*/
inline BatchPutMessageErrorEntry& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
/**
* <p>More information about the error.</p>
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* <p>More information about the error.</p>
*/
inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
/**
* <p>More information about the error.</p>
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
/**
* <p>More information about the error.</p>
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
/**
* <p>More information about the error.</p>
*/
inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
/**
* <p>More information about the error.</p>
*/
inline BatchPutMessageErrorEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* <p>More information about the error.</p>
*/
inline BatchPutMessageErrorEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* <p>More information about the error.</p>
*/
inline BatchPutMessageErrorEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
private:
Aws::String m_messageId;
bool m_messageIdHasBeenSet;
ErrorCode m_errorCode;
bool m_errorCodeHasBeenSet;
Aws::String m_errorMessage;
bool m_errorMessageHasBeenSet;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,92 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/iotevents-data/IoTEventsDataRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotevents-data/model/Message.h>
#include <utility>
namespace Aws
{
namespace IoTEventsData
{
namespace Model
{
/**
*/
class AWS_IOTEVENTSDATA_API BatchPutMessageRequest : public IoTEventsDataRequest
{
public:
BatchPutMessageRequest();
// 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 "BatchPutMessage"; }
Aws::String SerializePayload() const override;
/**
* <p>The list of messages to send. Each message has the following format: <code>'{
* "messageId": "string", "inputName": "string", "payload": "string"}'</code> </p>
*/
inline const Aws::Vector<Message>& GetMessages() const{ return m_messages; }
/**
* <p>The list of messages to send. Each message has the following format: <code>'{
* "messageId": "string", "inputName": "string", "payload": "string"}'</code> </p>
*/
inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
/**
* <p>The list of messages to send. Each message has the following format: <code>'{
* "messageId": "string", "inputName": "string", "payload": "string"}'</code> </p>
*/
inline void SetMessages(const Aws::Vector<Message>& value) { m_messagesHasBeenSet = true; m_messages = value; }
/**
* <p>The list of messages to send. Each message has the following format: <code>'{
* "messageId": "string", "inputName": "string", "payload": "string"}'</code> </p>
*/
inline void SetMessages(Aws::Vector<Message>&& value) { m_messagesHasBeenSet = true; m_messages = std::move(value); }
/**
* <p>The list of messages to send. Each message has the following format: <code>'{
* "messageId": "string", "inputName": "string", "payload": "string"}'</code> </p>
*/
inline BatchPutMessageRequest& WithMessages(const Aws::Vector<Message>& value) { SetMessages(value); return *this;}
/**
* <p>The list of messages to send. Each message has the following format: <code>'{
* "messageId": "string", "inputName": "string", "payload": "string"}'</code> </p>
*/
inline BatchPutMessageRequest& WithMessages(Aws::Vector<Message>&& value) { SetMessages(std::move(value)); return *this;}
/**
* <p>The list of messages to send. Each message has the following format: <code>'{
* "messageId": "string", "inputName": "string", "payload": "string"}'</code> </p>
*/
inline BatchPutMessageRequest& AddMessages(const Message& value) { m_messagesHasBeenSet = true; m_messages.push_back(value); return *this; }
/**
* <p>The list of messages to send. Each message has the following format: <code>'{
* "messageId": "string", "inputName": "string", "payload": "string"}'</code> </p>
*/
inline BatchPutMessageRequest& AddMessages(Message&& value) { m_messagesHasBeenSet = true; m_messages.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Message> m_messages;
bool m_messagesHasBeenSet;
};
} // namespace Model
} // namespace IoTEventsData
} // 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/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotevents-data/model/BatchPutMessageErrorEntry.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoTEventsData
{
namespace Model
{
class AWS_IOTEVENTSDATA_API BatchPutMessageResult
{
public:
BatchPutMessageResult();
BatchPutMessageResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchPutMessageResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of any errors encountered when sending the messages.</p>
*/
inline const Aws::Vector<BatchPutMessageErrorEntry>& GetBatchPutMessageErrorEntries() const{ return m_batchPutMessageErrorEntries; }
/**
* <p>A list of any errors encountered when sending the messages.</p>
*/
inline void SetBatchPutMessageErrorEntries(const Aws::Vector<BatchPutMessageErrorEntry>& value) { m_batchPutMessageErrorEntries = value; }
/**
* <p>A list of any errors encountered when sending the messages.</p>
*/
inline void SetBatchPutMessageErrorEntries(Aws::Vector<BatchPutMessageErrorEntry>&& value) { m_batchPutMessageErrorEntries = std::move(value); }
/**
* <p>A list of any errors encountered when sending the messages.</p>
*/
inline BatchPutMessageResult& WithBatchPutMessageErrorEntries(const Aws::Vector<BatchPutMessageErrorEntry>& value) { SetBatchPutMessageErrorEntries(value); return *this;}
/**
* <p>A list of any errors encountered when sending the messages.</p>
*/
inline BatchPutMessageResult& WithBatchPutMessageErrorEntries(Aws::Vector<BatchPutMessageErrorEntry>&& value) { SetBatchPutMessageErrorEntries(std::move(value)); return *this;}
/**
* <p>A list of any errors encountered when sending the messages.</p>
*/
inline BatchPutMessageResult& AddBatchPutMessageErrorEntries(const BatchPutMessageErrorEntry& value) { m_batchPutMessageErrorEntries.push_back(value); return *this; }
/**
* <p>A list of any errors encountered when sending the messages.</p>
*/
inline BatchPutMessageResult& AddBatchPutMessageErrorEntries(BatchPutMessageErrorEntry&& value) { m_batchPutMessageErrorEntries.push_back(std::move(value)); return *this; }
private:
Aws::Vector<BatchPutMessageErrorEntry> m_batchPutMessageErrorEntries;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,184 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents-data/model/ErrorCode.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEventsData
{
namespace Model
{
/**
* <p>Information about the error that occured when attempting to update a
* detector.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/BatchUpdateDetectorErrorEntry">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTSDATA_API BatchUpdateDetectorErrorEntry
{
public:
BatchUpdateDetectorErrorEntry();
BatchUpdateDetectorErrorEntry(Aws::Utils::Json::JsonView jsonValue);
BatchUpdateDetectorErrorEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The <code>"messageId"</code> of the update request that caused the error.
* (The value of the <code>"messageId"</code> in the update request
* <code>"Detector"</code> object.)</p>
*/
inline const Aws::String& GetMessageId() const{ return m_messageId; }
/**
* <p>The <code>"messageId"</code> of the update request that caused the error.
* (The value of the <code>"messageId"</code> in the update request
* <code>"Detector"</code> object.)</p>
*/
inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
/**
* <p>The <code>"messageId"</code> of the update request that caused the error.
* (The value of the <code>"messageId"</code> in the update request
* <code>"Detector"</code> object.)</p>
*/
inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
/**
* <p>The <code>"messageId"</code> of the update request that caused the error.
* (The value of the <code>"messageId"</code> in the update request
* <code>"Detector"</code> object.)</p>
*/
inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); }
/**
* <p>The <code>"messageId"</code> of the update request that caused the error.
* (The value of the <code>"messageId"</code> in the update request
* <code>"Detector"</code> object.)</p>
*/
inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); }
/**
* <p>The <code>"messageId"</code> of the update request that caused the error.
* (The value of the <code>"messageId"</code> in the update request
* <code>"Detector"</code> object.)</p>
*/
inline BatchUpdateDetectorErrorEntry& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
/**
* <p>The <code>"messageId"</code> of the update request that caused the error.
* (The value of the <code>"messageId"</code> in the update request
* <code>"Detector"</code> object.)</p>
*/
inline BatchUpdateDetectorErrorEntry& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
/**
* <p>The <code>"messageId"</code> of the update request that caused the error.
* (The value of the <code>"messageId"</code> in the update request
* <code>"Detector"</code> object.)</p>
*/
inline BatchUpdateDetectorErrorEntry& WithMessageId(const char* value) { SetMessageId(value); return *this;}
/**
* <p>The code of the error.</p>
*/
inline const ErrorCode& GetErrorCode() const{ return m_errorCode; }
/**
* <p>The code of the error.</p>
*/
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
/**
* <p>The code of the error.</p>
*/
inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
/**
* <p>The code of the error.</p>
*/
inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
/**
* <p>The code of the error.</p>
*/
inline BatchUpdateDetectorErrorEntry& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;}
/**
* <p>The code of the error.</p>
*/
inline BatchUpdateDetectorErrorEntry& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
/**
* <p>A message describing the error.</p>
*/
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
/**
* <p>A message describing the error.</p>
*/
inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
/**
* <p>A message describing the error.</p>
*/
inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
/**
* <p>A message describing the error.</p>
*/
inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
/**
* <p>A message describing the error.</p>
*/
inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
/**
* <p>A message describing the error.</p>
*/
inline BatchUpdateDetectorErrorEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
/**
* <p>A message describing the error.</p>
*/
inline BatchUpdateDetectorErrorEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
/**
* <p>A message describing the error.</p>
*/
inline BatchUpdateDetectorErrorEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
private:
Aws::String m_messageId;
bool m_messageIdHasBeenSet;
ErrorCode m_errorCode;
bool m_errorCodeHasBeenSet;
Aws::String m_errorMessage;
bool m_errorMessageHasBeenSet;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,92 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/iotevents-data/IoTEventsDataRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotevents-data/model/UpdateDetectorRequest.h>
#include <utility>
namespace Aws
{
namespace IoTEventsData
{
namespace Model
{
/**
*/
class AWS_IOTEVENTSDATA_API BatchUpdateDetectorRequest : public IoTEventsDataRequest
{
public:
BatchUpdateDetectorRequest();
// 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 "BatchUpdateDetector"; }
Aws::String SerializePayload() const override;
/**
* <p>The list of detectors (instances) to update, along with the values to
* update.</p>
*/
inline const Aws::Vector<UpdateDetectorRequest>& GetDetectors() const{ return m_detectors; }
/**
* <p>The list of detectors (instances) to update, along with the values to
* update.</p>
*/
inline bool DetectorsHasBeenSet() const { return m_detectorsHasBeenSet; }
/**
* <p>The list of detectors (instances) to update, along with the values to
* update.</p>
*/
inline void SetDetectors(const Aws::Vector<UpdateDetectorRequest>& value) { m_detectorsHasBeenSet = true; m_detectors = value; }
/**
* <p>The list of detectors (instances) to update, along with the values to
* update.</p>
*/
inline void SetDetectors(Aws::Vector<UpdateDetectorRequest>&& value) { m_detectorsHasBeenSet = true; m_detectors = std::move(value); }
/**
* <p>The list of detectors (instances) to update, along with the values to
* update.</p>
*/
inline BatchUpdateDetectorRequest& WithDetectors(const Aws::Vector<UpdateDetectorRequest>& value) { SetDetectors(value); return *this;}
/**
* <p>The list of detectors (instances) to update, along with the values to
* update.</p>
*/
inline BatchUpdateDetectorRequest& WithDetectors(Aws::Vector<UpdateDetectorRequest>&& value) { SetDetectors(std::move(value)); return *this;}
/**
* <p>The list of detectors (instances) to update, along with the values to
* update.</p>
*/
inline BatchUpdateDetectorRequest& AddDetectors(const UpdateDetectorRequest& value) { m_detectorsHasBeenSet = true; m_detectors.push_back(value); return *this; }
/**
* <p>The list of detectors (instances) to update, along with the values to
* update.</p>
*/
inline BatchUpdateDetectorRequest& AddDetectors(UpdateDetectorRequest&& value) { m_detectorsHasBeenSet = true; m_detectors.push_back(std::move(value)); return *this; }
private:
Aws::Vector<UpdateDetectorRequest> m_detectors;
bool m_detectorsHasBeenSet;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotevents-data/model/BatchUpdateDetectorErrorEntry.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoTEventsData
{
namespace Model
{
class AWS_IOTEVENTSDATA_API BatchUpdateDetectorResult
{
public:
BatchUpdateDetectorResult();
BatchUpdateDetectorResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchUpdateDetectorResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of those detector updates that resulted in errors. (If an error is
* listed here, the specific update did not occur.)</p>
*/
inline const Aws::Vector<BatchUpdateDetectorErrorEntry>& GetBatchUpdateDetectorErrorEntries() const{ return m_batchUpdateDetectorErrorEntries; }
/**
* <p>A list of those detector updates that resulted in errors. (If an error is
* listed here, the specific update did not occur.)</p>
*/
inline void SetBatchUpdateDetectorErrorEntries(const Aws::Vector<BatchUpdateDetectorErrorEntry>& value) { m_batchUpdateDetectorErrorEntries = value; }
/**
* <p>A list of those detector updates that resulted in errors. (If an error is
* listed here, the specific update did not occur.)</p>
*/
inline void SetBatchUpdateDetectorErrorEntries(Aws::Vector<BatchUpdateDetectorErrorEntry>&& value) { m_batchUpdateDetectorErrorEntries = std::move(value); }
/**
* <p>A list of those detector updates that resulted in errors. (If an error is
* listed here, the specific update did not occur.)</p>
*/
inline BatchUpdateDetectorResult& WithBatchUpdateDetectorErrorEntries(const Aws::Vector<BatchUpdateDetectorErrorEntry>& value) { SetBatchUpdateDetectorErrorEntries(value); return *this;}
/**
* <p>A list of those detector updates that resulted in errors. (If an error is
* listed here, the specific update did not occur.)</p>
*/
inline BatchUpdateDetectorResult& WithBatchUpdateDetectorErrorEntries(Aws::Vector<BatchUpdateDetectorErrorEntry>&& value) { SetBatchUpdateDetectorErrorEntries(std::move(value)); return *this;}
/**
* <p>A list of those detector updates that resulted in errors. (If an error is
* listed here, the specific update did not occur.)</p>
*/
inline BatchUpdateDetectorResult& AddBatchUpdateDetectorErrorEntries(const BatchUpdateDetectorErrorEntry& value) { m_batchUpdateDetectorErrorEntries.push_back(value); return *this; }
/**
* <p>A list of those detector updates that resulted in errors. (If an error is
* listed here, the specific update did not occur.)</p>
*/
inline BatchUpdateDetectorResult& AddBatchUpdateDetectorErrorEntries(BatchUpdateDetectorErrorEntry&& value) { m_batchUpdateDetectorErrorEntries.push_back(std::move(value)); return *this; }
private:
Aws::Vector<BatchUpdateDetectorErrorEntry> m_batchUpdateDetectorErrorEntries;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,149 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/iotevents-data/IoTEventsDataRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace IoTEventsData
{
namespace Model
{
/**
*/
class AWS_IOTEVENTSDATA_API DescribeDetectorRequest : public IoTEventsDataRequest
{
public:
DescribeDetectorRequest();
// 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 "DescribeDetector"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The name of the detector model whose detectors (instances) you want
* information about.</p>
*/
inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
/**
* <p>The name of the detector model whose detectors (instances) you want
* information about.</p>
*/
inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
/**
* <p>The name of the detector model whose detectors (instances) you want
* information about.</p>
*/
inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
/**
* <p>The name of the detector model whose detectors (instances) you want
* information about.</p>
*/
inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
/**
* <p>The name of the detector model whose detectors (instances) you want
* information about.</p>
*/
inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
/**
* <p>The name of the detector model whose detectors (instances) you want
* information about.</p>
*/
inline DescribeDetectorRequest& WithDetectorModelName(const Aws::String& value) { SetDetectorModelName(value); return *this;}
/**
* <p>The name of the detector model whose detectors (instances) you want
* information about.</p>
*/
inline DescribeDetectorRequest& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
/**
* <p>The name of the detector model whose detectors (instances) you want
* information about.</p>
*/
inline DescribeDetectorRequest& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;}
/**
* <p>A filter used to limit results to detectors (instances) created because of
* the given key ID.</p>
*/
inline const Aws::String& GetKeyValue() const{ return m_keyValue; }
/**
* <p>A filter used to limit results to detectors (instances) created because of
* the given key ID.</p>
*/
inline bool KeyValueHasBeenSet() const { return m_keyValueHasBeenSet; }
/**
* <p>A filter used to limit results to detectors (instances) created because of
* the given key ID.</p>
*/
inline void SetKeyValue(const Aws::String& value) { m_keyValueHasBeenSet = true; m_keyValue = value; }
/**
* <p>A filter used to limit results to detectors (instances) created because of
* the given key ID.</p>
*/
inline void SetKeyValue(Aws::String&& value) { m_keyValueHasBeenSet = true; m_keyValue = std::move(value); }
/**
* <p>A filter used to limit results to detectors (instances) created because of
* the given key ID.</p>
*/
inline void SetKeyValue(const char* value) { m_keyValueHasBeenSet = true; m_keyValue.assign(value); }
/**
* <p>A filter used to limit results to detectors (instances) created because of
* the given key ID.</p>
*/
inline DescribeDetectorRequest& WithKeyValue(const Aws::String& value) { SetKeyValue(value); return *this;}
/**
* <p>A filter used to limit results to detectors (instances) created because of
* the given key ID.</p>
*/
inline DescribeDetectorRequest& WithKeyValue(Aws::String&& value) { SetKeyValue(std::move(value)); return *this;}
/**
* <p>A filter used to limit results to detectors (instances) created because of
* the given key ID.</p>
*/
inline DescribeDetectorRequest& WithKeyValue(const char* value) { SetKeyValue(value); return *this;}
private:
Aws::String m_detectorModelName;
bool m_detectorModelNameHasBeenSet;
Aws::String m_keyValue;
bool m_keyValueHasBeenSet;
};
} // namespace Model
} // namespace IoTEventsData
} // 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/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/iotevents-data/model/Detector.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoTEventsData
{
namespace Model
{
class AWS_IOTEVENTSDATA_API DescribeDetectorResult
{
public:
DescribeDetectorResult();
DescribeDetectorResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeDetectorResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the detector (instance).</p>
*/
inline const Detector& GetDetector() const{ return m_detector; }
/**
* <p>Information about the detector (instance).</p>
*/
inline void SetDetector(const Detector& value) { m_detector = value; }
/**
* <p>Information about the detector (instance).</p>
*/
inline void SetDetector(Detector&& value) { m_detector = std::move(value); }
/**
* <p>Information about the detector (instance).</p>
*/
inline DescribeDetectorResult& WithDetector(const Detector& value) { SetDetector(value); return *this;}
/**
* <p>Information about the detector (instance).</p>
*/
inline DescribeDetectorResult& WithDetector(Detector&& value) { SetDetector(std::move(value)); return *this;}
private:
Detector m_detector;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,288 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents-data/model/DetectorState.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEventsData
{
namespace Model
{
/**
* <p>Information about the detector (instance).</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/Detector">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTSDATA_API Detector
{
public:
Detector();
Detector(Aws::Utils::Json::JsonView jsonValue);
Detector& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the detector model that created this detector (instance).</p>
*/
inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
/**
* <p>The name of the detector model that created this detector (instance).</p>
*/
inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
/**
* <p>The name of the detector model that created this detector (instance).</p>
*/
inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
/**
* <p>The name of the detector model that created this detector (instance).</p>
*/
inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
/**
* <p>The name of the detector model that created this detector (instance).</p>
*/
inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
/**
* <p>The name of the detector model that created this detector (instance).</p>
*/
inline Detector& WithDetectorModelName(const Aws::String& value) { SetDetectorModelName(value); return *this;}
/**
* <p>The name of the detector model that created this detector (instance).</p>
*/
inline Detector& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
/**
* <p>The name of the detector model that created this detector (instance).</p>
*/
inline Detector& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;}
/**
* <p>The value of the key (identifying the device or system) that caused the
* creation of this detector (instance).</p>
*/
inline const Aws::String& GetKeyValue() const{ return m_keyValue; }
/**
* <p>The value of the key (identifying the device or system) that caused the
* creation of this detector (instance).</p>
*/
inline bool KeyValueHasBeenSet() const { return m_keyValueHasBeenSet; }
/**
* <p>The value of the key (identifying the device or system) that caused the
* creation of this detector (instance).</p>
*/
inline void SetKeyValue(const Aws::String& value) { m_keyValueHasBeenSet = true; m_keyValue = value; }
/**
* <p>The value of the key (identifying the device or system) that caused the
* creation of this detector (instance).</p>
*/
inline void SetKeyValue(Aws::String&& value) { m_keyValueHasBeenSet = true; m_keyValue = std::move(value); }
/**
* <p>The value of the key (identifying the device or system) that caused the
* creation of this detector (instance).</p>
*/
inline void SetKeyValue(const char* value) { m_keyValueHasBeenSet = true; m_keyValue.assign(value); }
/**
* <p>The value of the key (identifying the device or system) that caused the
* creation of this detector (instance).</p>
*/
inline Detector& WithKeyValue(const Aws::String& value) { SetKeyValue(value); return *this;}
/**
* <p>The value of the key (identifying the device or system) that caused the
* creation of this detector (instance).</p>
*/
inline Detector& WithKeyValue(Aws::String&& value) { SetKeyValue(std::move(value)); return *this;}
/**
* <p>The value of the key (identifying the device or system) that caused the
* creation of this detector (instance).</p>
*/
inline Detector& WithKeyValue(const char* value) { SetKeyValue(value); return *this;}
/**
* <p>The version of the detector model that created this detector (instance).</p>
*/
inline const Aws::String& GetDetectorModelVersion() const{ return m_detectorModelVersion; }
/**
* <p>The version of the detector model that created this detector (instance).</p>
*/
inline bool DetectorModelVersionHasBeenSet() const { return m_detectorModelVersionHasBeenSet; }
/**
* <p>The version of the detector model that created this detector (instance).</p>
*/
inline void SetDetectorModelVersion(const Aws::String& value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion = value; }
/**
* <p>The version of the detector model that created this detector (instance).</p>
*/
inline void SetDetectorModelVersion(Aws::String&& value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion = std::move(value); }
/**
* <p>The version of the detector model that created this detector (instance).</p>
*/
inline void SetDetectorModelVersion(const char* value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion.assign(value); }
/**
* <p>The version of the detector model that created this detector (instance).</p>
*/
inline Detector& WithDetectorModelVersion(const Aws::String& value) { SetDetectorModelVersion(value); return *this;}
/**
* <p>The version of the detector model that created this detector (instance).</p>
*/
inline Detector& WithDetectorModelVersion(Aws::String&& value) { SetDetectorModelVersion(std::move(value)); return *this;}
/**
* <p>The version of the detector model that created this detector (instance).</p>
*/
inline Detector& WithDetectorModelVersion(const char* value) { SetDetectorModelVersion(value); return *this;}
/**
* <p>The current state of the detector (instance).</p>
*/
inline const DetectorState& GetState() const{ return m_state; }
/**
* <p>The current state of the detector (instance).</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The current state of the detector (instance).</p>
*/
inline void SetState(const DetectorState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The current state of the detector (instance).</p>
*/
inline void SetState(DetectorState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The current state of the detector (instance).</p>
*/
inline Detector& WithState(const DetectorState& value) { SetState(value); return *this;}
/**
* <p>The current state of the detector (instance).</p>
*/
inline Detector& WithState(DetectorState&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The time the detector (instance) was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The time the detector (instance) was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>The time the detector (instance) was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>The time the detector (instance) was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>The time the detector (instance) was created.</p>
*/
inline Detector& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The time the detector (instance) was created.</p>
*/
inline Detector& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>The time the detector (instance) was last updated.</p>
*/
inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
/**
* <p>The time the detector (instance) was last updated.</p>
*/
inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
/**
* <p>The time the detector (instance) was last updated.</p>
*/
inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
/**
* <p>The time the detector (instance) was last updated.</p>
*/
inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); }
/**
* <p>The time the detector (instance) was last updated.</p>
*/
inline Detector& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;}
/**
* <p>The time the detector (instance) was last updated.</p>
*/
inline Detector& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;}
private:
Aws::String m_detectorModelName;
bool m_detectorModelNameHasBeenSet;
Aws::String m_keyValue;
bool m_keyValueHasBeenSet;
Aws::String m_detectorModelVersion;
bool m_detectorModelVersionHasBeenSet;
DetectorState m_state;
bool m_stateHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Utils::DateTime m_lastUpdateTime;
bool m_lastUpdateTimeHasBeenSet;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,180 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotevents-data/model/Variable.h>
#include <aws/iotevents-data/model/Timer.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEventsData
{
namespace Model
{
/**
* <p>Information about the current state of the detector instance.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/DetectorState">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTSDATA_API DetectorState
{
public:
DetectorState();
DetectorState(Aws::Utils::Json::JsonView jsonValue);
DetectorState& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the state.</p>
*/
inline const Aws::String& GetStateName() const{ return m_stateName; }
/**
* <p>The name of the state.</p>
*/
inline bool StateNameHasBeenSet() const { return m_stateNameHasBeenSet; }
/**
* <p>The name of the state.</p>
*/
inline void SetStateName(const Aws::String& value) { m_stateNameHasBeenSet = true; m_stateName = value; }
/**
* <p>The name of the state.</p>
*/
inline void SetStateName(Aws::String&& value) { m_stateNameHasBeenSet = true; m_stateName = std::move(value); }
/**
* <p>The name of the state.</p>
*/
inline void SetStateName(const char* value) { m_stateNameHasBeenSet = true; m_stateName.assign(value); }
/**
* <p>The name of the state.</p>
*/
inline DetectorState& WithStateName(const Aws::String& value) { SetStateName(value); return *this;}
/**
* <p>The name of the state.</p>
*/
inline DetectorState& WithStateName(Aws::String&& value) { SetStateName(std::move(value)); return *this;}
/**
* <p>The name of the state.</p>
*/
inline DetectorState& WithStateName(const char* value) { SetStateName(value); return *this;}
/**
* <p>The current values of the detector's variables.</p>
*/
inline const Aws::Vector<Variable>& GetVariables() const{ return m_variables; }
/**
* <p>The current values of the detector's variables.</p>
*/
inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
/**
* <p>The current values of the detector's variables.</p>
*/
inline void SetVariables(const Aws::Vector<Variable>& value) { m_variablesHasBeenSet = true; m_variables = value; }
/**
* <p>The current values of the detector's variables.</p>
*/
inline void SetVariables(Aws::Vector<Variable>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
/**
* <p>The current values of the detector's variables.</p>
*/
inline DetectorState& WithVariables(const Aws::Vector<Variable>& value) { SetVariables(value); return *this;}
/**
* <p>The current values of the detector's variables.</p>
*/
inline DetectorState& WithVariables(Aws::Vector<Variable>&& value) { SetVariables(std::move(value)); return *this;}
/**
* <p>The current values of the detector's variables.</p>
*/
inline DetectorState& AddVariables(const Variable& value) { m_variablesHasBeenSet = true; m_variables.push_back(value); return *this; }
/**
* <p>The current values of the detector's variables.</p>
*/
inline DetectorState& AddVariables(Variable&& value) { m_variablesHasBeenSet = true; m_variables.push_back(std::move(value)); return *this; }
/**
* <p>The current state of the detector's timers.</p>
*/
inline const Aws::Vector<Timer>& GetTimers() const{ return m_timers; }
/**
* <p>The current state of the detector's timers.</p>
*/
inline bool TimersHasBeenSet() const { return m_timersHasBeenSet; }
/**
* <p>The current state of the detector's timers.</p>
*/
inline void SetTimers(const Aws::Vector<Timer>& value) { m_timersHasBeenSet = true; m_timers = value; }
/**
* <p>The current state of the detector's timers.</p>
*/
inline void SetTimers(Aws::Vector<Timer>&& value) { m_timersHasBeenSet = true; m_timers = std::move(value); }
/**
* <p>The current state of the detector's timers.</p>
*/
inline DetectorState& WithTimers(const Aws::Vector<Timer>& value) { SetTimers(value); return *this;}
/**
* <p>The current state of the detector's timers.</p>
*/
inline DetectorState& WithTimers(Aws::Vector<Timer>&& value) { SetTimers(std::move(value)); return *this;}
/**
* <p>The current state of the detector's timers.</p>
*/
inline DetectorState& AddTimers(const Timer& value) { m_timersHasBeenSet = true; m_timers.push_back(value); return *this; }
/**
* <p>The current state of the detector's timers.</p>
*/
inline DetectorState& AddTimers(Timer&& value) { m_timersHasBeenSet = true; m_timers.push_back(std::move(value)); return *this; }
private:
Aws::String m_stateName;
bool m_stateNameHasBeenSet;
Aws::Vector<Variable> m_variables;
bool m_variablesHasBeenSet;
Aws::Vector<Timer> m_timers;
bool m_timersHasBeenSet;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,196 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotevents-data/model/VariableDefinition.h>
#include <aws/iotevents-data/model/TimerDefinition.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEventsData
{
namespace Model
{
/**
* <p>The new state, variable values, and timer settings of the detector
* (instance).</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/DetectorStateDefinition">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTSDATA_API DetectorStateDefinition
{
public:
DetectorStateDefinition();
DetectorStateDefinition(Aws::Utils::Json::JsonView jsonValue);
DetectorStateDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the new state of the detector (instance).</p>
*/
inline const Aws::String& GetStateName() const{ return m_stateName; }
/**
* <p>The name of the new state of the detector (instance).</p>
*/
inline bool StateNameHasBeenSet() const { return m_stateNameHasBeenSet; }
/**
* <p>The name of the new state of the detector (instance).</p>
*/
inline void SetStateName(const Aws::String& value) { m_stateNameHasBeenSet = true; m_stateName = value; }
/**
* <p>The name of the new state of the detector (instance).</p>
*/
inline void SetStateName(Aws::String&& value) { m_stateNameHasBeenSet = true; m_stateName = std::move(value); }
/**
* <p>The name of the new state of the detector (instance).</p>
*/
inline void SetStateName(const char* value) { m_stateNameHasBeenSet = true; m_stateName.assign(value); }
/**
* <p>The name of the new state of the detector (instance).</p>
*/
inline DetectorStateDefinition& WithStateName(const Aws::String& value) { SetStateName(value); return *this;}
/**
* <p>The name of the new state of the detector (instance).</p>
*/
inline DetectorStateDefinition& WithStateName(Aws::String&& value) { SetStateName(std::move(value)); return *this;}
/**
* <p>The name of the new state of the detector (instance).</p>
*/
inline DetectorStateDefinition& WithStateName(const char* value) { SetStateName(value); return *this;}
/**
* <p>The new values of the detector's variables. Any variable whose value isn't
* specified is cleared.</p>
*/
inline const Aws::Vector<VariableDefinition>& GetVariables() const{ return m_variables; }
/**
* <p>The new values of the detector's variables. Any variable whose value isn't
* specified is cleared.</p>
*/
inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
/**
* <p>The new values of the detector's variables. Any variable whose value isn't
* specified is cleared.</p>
*/
inline void SetVariables(const Aws::Vector<VariableDefinition>& value) { m_variablesHasBeenSet = true; m_variables = value; }
/**
* <p>The new values of the detector's variables. Any variable whose value isn't
* specified is cleared.</p>
*/
inline void SetVariables(Aws::Vector<VariableDefinition>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
/**
* <p>The new values of the detector's variables. Any variable whose value isn't
* specified is cleared.</p>
*/
inline DetectorStateDefinition& WithVariables(const Aws::Vector<VariableDefinition>& value) { SetVariables(value); return *this;}
/**
* <p>The new values of the detector's variables. Any variable whose value isn't
* specified is cleared.</p>
*/
inline DetectorStateDefinition& WithVariables(Aws::Vector<VariableDefinition>&& value) { SetVariables(std::move(value)); return *this;}
/**
* <p>The new values of the detector's variables. Any variable whose value isn't
* specified is cleared.</p>
*/
inline DetectorStateDefinition& AddVariables(const VariableDefinition& value) { m_variablesHasBeenSet = true; m_variables.push_back(value); return *this; }
/**
* <p>The new values of the detector's variables. Any variable whose value isn't
* specified is cleared.</p>
*/
inline DetectorStateDefinition& AddVariables(VariableDefinition&& value) { m_variablesHasBeenSet = true; m_variables.push_back(std::move(value)); return *this; }
/**
* <p>The new values of the detector's timers. Any timer whose value isn't
* specified is cleared, and its timeout event won't occur.</p>
*/
inline const Aws::Vector<TimerDefinition>& GetTimers() const{ return m_timers; }
/**
* <p>The new values of the detector's timers. Any timer whose value isn't
* specified is cleared, and its timeout event won't occur.</p>
*/
inline bool TimersHasBeenSet() const { return m_timersHasBeenSet; }
/**
* <p>The new values of the detector's timers. Any timer whose value isn't
* specified is cleared, and its timeout event won't occur.</p>
*/
inline void SetTimers(const Aws::Vector<TimerDefinition>& value) { m_timersHasBeenSet = true; m_timers = value; }
/**
* <p>The new values of the detector's timers. Any timer whose value isn't
* specified is cleared, and its timeout event won't occur.</p>
*/
inline void SetTimers(Aws::Vector<TimerDefinition>&& value) { m_timersHasBeenSet = true; m_timers = std::move(value); }
/**
* <p>The new values of the detector's timers. Any timer whose value isn't
* specified is cleared, and its timeout event won't occur.</p>
*/
inline DetectorStateDefinition& WithTimers(const Aws::Vector<TimerDefinition>& value) { SetTimers(value); return *this;}
/**
* <p>The new values of the detector's timers. Any timer whose value isn't
* specified is cleared, and its timeout event won't occur.</p>
*/
inline DetectorStateDefinition& WithTimers(Aws::Vector<TimerDefinition>&& value) { SetTimers(std::move(value)); return *this;}
/**
* <p>The new values of the detector's timers. Any timer whose value isn't
* specified is cleared, and its timeout event won't occur.</p>
*/
inline DetectorStateDefinition& AddTimers(const TimerDefinition& value) { m_timersHasBeenSet = true; m_timers.push_back(value); return *this; }
/**
* <p>The new values of the detector's timers. Any timer whose value isn't
* specified is cleared, and its timeout event won't occur.</p>
*/
inline DetectorStateDefinition& AddTimers(TimerDefinition&& value) { m_timersHasBeenSet = true; m_timers.push_back(std::move(value)); return *this; }
private:
Aws::String m_stateName;
bool m_stateNameHasBeenSet;
Aws::Vector<VariableDefinition> m_variables;
bool m_variablesHasBeenSet;
Aws::Vector<TimerDefinition> m_timers;
bool m_timersHasBeenSet;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,88 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_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 IoTEventsData
{
namespace Model
{
/**
* <p>Information about the detector state.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/DetectorStateSummary">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTSDATA_API DetectorStateSummary
{
public:
DetectorStateSummary();
DetectorStateSummary(Aws::Utils::Json::JsonView jsonValue);
DetectorStateSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the state.</p>
*/
inline const Aws::String& GetStateName() const{ return m_stateName; }
/**
* <p>The name of the state.</p>
*/
inline bool StateNameHasBeenSet() const { return m_stateNameHasBeenSet; }
/**
* <p>The name of the state.</p>
*/
inline void SetStateName(const Aws::String& value) { m_stateNameHasBeenSet = true; m_stateName = value; }
/**
* <p>The name of the state.</p>
*/
inline void SetStateName(Aws::String&& value) { m_stateNameHasBeenSet = true; m_stateName = std::move(value); }
/**
* <p>The name of the state.</p>
*/
inline void SetStateName(const char* value) { m_stateNameHasBeenSet = true; m_stateName.assign(value); }
/**
* <p>The name of the state.</p>
*/
inline DetectorStateSummary& WithStateName(const Aws::String& value) { SetStateName(value); return *this;}
/**
* <p>The name of the state.</p>
*/
inline DetectorStateSummary& WithStateName(Aws::String&& value) { SetStateName(std::move(value)); return *this;}
/**
* <p>The name of the state.</p>
*/
inline DetectorStateSummary& WithStateName(const char* value) { SetStateName(value); return *this;}
private:
Aws::String m_stateName;
bool m_stateNameHasBeenSet;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,288 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents-data/model/DetectorStateSummary.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEventsData
{
namespace Model
{
/**
* <p>Information about the detector (instance).</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/DetectorSummary">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTSDATA_API DetectorSummary
{
public:
DetectorSummary();
DetectorSummary(Aws::Utils::Json::JsonView jsonValue);
DetectorSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the detector model that created this detector (instance).</p>
*/
inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
/**
* <p>The name of the detector model that created this detector (instance).</p>
*/
inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
/**
* <p>The name of the detector model that created this detector (instance).</p>
*/
inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
/**
* <p>The name of the detector model that created this detector (instance).</p>
*/
inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
/**
* <p>The name of the detector model that created this detector (instance).</p>
*/
inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
/**
* <p>The name of the detector model that created this detector (instance).</p>
*/
inline DetectorSummary& WithDetectorModelName(const Aws::String& value) { SetDetectorModelName(value); return *this;}
/**
* <p>The name of the detector model that created this detector (instance).</p>
*/
inline DetectorSummary& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
/**
* <p>The name of the detector model that created this detector (instance).</p>
*/
inline DetectorSummary& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;}
/**
* <p>The value of the key (identifying the device or system) that caused the
* creation of this detector (instance).</p>
*/
inline const Aws::String& GetKeyValue() const{ return m_keyValue; }
/**
* <p>The value of the key (identifying the device or system) that caused the
* creation of this detector (instance).</p>
*/
inline bool KeyValueHasBeenSet() const { return m_keyValueHasBeenSet; }
/**
* <p>The value of the key (identifying the device or system) that caused the
* creation of this detector (instance).</p>
*/
inline void SetKeyValue(const Aws::String& value) { m_keyValueHasBeenSet = true; m_keyValue = value; }
/**
* <p>The value of the key (identifying the device or system) that caused the
* creation of this detector (instance).</p>
*/
inline void SetKeyValue(Aws::String&& value) { m_keyValueHasBeenSet = true; m_keyValue = std::move(value); }
/**
* <p>The value of the key (identifying the device or system) that caused the
* creation of this detector (instance).</p>
*/
inline void SetKeyValue(const char* value) { m_keyValueHasBeenSet = true; m_keyValue.assign(value); }
/**
* <p>The value of the key (identifying the device or system) that caused the
* creation of this detector (instance).</p>
*/
inline DetectorSummary& WithKeyValue(const Aws::String& value) { SetKeyValue(value); return *this;}
/**
* <p>The value of the key (identifying the device or system) that caused the
* creation of this detector (instance).</p>
*/
inline DetectorSummary& WithKeyValue(Aws::String&& value) { SetKeyValue(std::move(value)); return *this;}
/**
* <p>The value of the key (identifying the device or system) that caused the
* creation of this detector (instance).</p>
*/
inline DetectorSummary& WithKeyValue(const char* value) { SetKeyValue(value); return *this;}
/**
* <p>The version of the detector model that created this detector (instance).</p>
*/
inline const Aws::String& GetDetectorModelVersion() const{ return m_detectorModelVersion; }
/**
* <p>The version of the detector model that created this detector (instance).</p>
*/
inline bool DetectorModelVersionHasBeenSet() const { return m_detectorModelVersionHasBeenSet; }
/**
* <p>The version of the detector model that created this detector (instance).</p>
*/
inline void SetDetectorModelVersion(const Aws::String& value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion = value; }
/**
* <p>The version of the detector model that created this detector (instance).</p>
*/
inline void SetDetectorModelVersion(Aws::String&& value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion = std::move(value); }
/**
* <p>The version of the detector model that created this detector (instance).</p>
*/
inline void SetDetectorModelVersion(const char* value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion.assign(value); }
/**
* <p>The version of the detector model that created this detector (instance).</p>
*/
inline DetectorSummary& WithDetectorModelVersion(const Aws::String& value) { SetDetectorModelVersion(value); return *this;}
/**
* <p>The version of the detector model that created this detector (instance).</p>
*/
inline DetectorSummary& WithDetectorModelVersion(Aws::String&& value) { SetDetectorModelVersion(std::move(value)); return *this;}
/**
* <p>The version of the detector model that created this detector (instance).</p>
*/
inline DetectorSummary& WithDetectorModelVersion(const char* value) { SetDetectorModelVersion(value); return *this;}
/**
* <p>The current state of the detector (instance).</p>
*/
inline const DetectorStateSummary& GetState() const{ return m_state; }
/**
* <p>The current state of the detector (instance).</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The current state of the detector (instance).</p>
*/
inline void SetState(const DetectorStateSummary& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The current state of the detector (instance).</p>
*/
inline void SetState(DetectorStateSummary&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The current state of the detector (instance).</p>
*/
inline DetectorSummary& WithState(const DetectorStateSummary& value) { SetState(value); return *this;}
/**
* <p>The current state of the detector (instance).</p>
*/
inline DetectorSummary& WithState(DetectorStateSummary&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The time the detector (instance) was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The time the detector (instance) was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>The time the detector (instance) was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>The time the detector (instance) was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>The time the detector (instance) was created.</p>
*/
inline DetectorSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The time the detector (instance) was created.</p>
*/
inline DetectorSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>The time the detector (instance) was last updated.</p>
*/
inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
/**
* <p>The time the detector (instance) was last updated.</p>
*/
inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
/**
* <p>The time the detector (instance) was last updated.</p>
*/
inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
/**
* <p>The time the detector (instance) was last updated.</p>
*/
inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); }
/**
* <p>The time the detector (instance) was last updated.</p>
*/
inline DetectorSummary& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;}
/**
* <p>The time the detector (instance) was last updated.</p>
*/
inline DetectorSummary& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;}
private:
Aws::String m_detectorModelName;
bool m_detectorModelNameHasBeenSet;
Aws::String m_keyValue;
bool m_keyValueHasBeenSet;
Aws::String m_detectorModelVersion;
bool m_detectorModelVersionHasBeenSet;
DetectorStateSummary m_state;
bool m_stateHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Utils::DateTime m_lastUpdateTime;
bool m_lastUpdateTimeHasBeenSet;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace IoTEventsData
{
namespace Model
{
enum class ErrorCode
{
NOT_SET,
ResourceNotFoundException,
InvalidRequestException,
InternalFailureException,
ServiceUnavailableException,
ThrottlingException
};
namespace ErrorCodeMapper
{
AWS_IOTEVENTSDATA_API ErrorCode GetErrorCodeForName(const Aws::String& name);
AWS_IOTEVENTSDATA_API Aws::String GetNameForErrorCode(ErrorCode value);
} // namespace ErrorCodeMapper
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,209 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/iotevents-data/IoTEventsDataRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace IoTEventsData
{
namespace Model
{
/**
*/
class AWS_IOTEVENTSDATA_API ListDetectorsRequest : public IoTEventsDataRequest
{
public:
ListDetectorsRequest();
// 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 "ListDetectors"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The name of the detector model whose detectors (instances) are listed.</p>
*/
inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
/**
* <p>The name of the detector model whose detectors (instances) are listed.</p>
*/
inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
/**
* <p>The name of the detector model whose detectors (instances) are listed.</p>
*/
inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
/**
* <p>The name of the detector model whose detectors (instances) are listed.</p>
*/
inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
/**
* <p>The name of the detector model whose detectors (instances) are listed.</p>
*/
inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
/**
* <p>The name of the detector model whose detectors (instances) are listed.</p>
*/
inline ListDetectorsRequest& WithDetectorModelName(const Aws::String& value) { SetDetectorModelName(value); return *this;}
/**
* <p>The name of the detector model whose detectors (instances) are listed.</p>
*/
inline ListDetectorsRequest& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
/**
* <p>The name of the detector model whose detectors (instances) are listed.</p>
*/
inline ListDetectorsRequest& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;}
/**
* <p>A filter that limits results to those detectors (instances) in the given
* state.</p>
*/
inline const Aws::String& GetStateName() const{ return m_stateName; }
/**
* <p>A filter that limits results to those detectors (instances) in the given
* state.</p>
*/
inline bool StateNameHasBeenSet() const { return m_stateNameHasBeenSet; }
/**
* <p>A filter that limits results to those detectors (instances) in the given
* state.</p>
*/
inline void SetStateName(const Aws::String& value) { m_stateNameHasBeenSet = true; m_stateName = value; }
/**
* <p>A filter that limits results to those detectors (instances) in the given
* state.</p>
*/
inline void SetStateName(Aws::String&& value) { m_stateNameHasBeenSet = true; m_stateName = std::move(value); }
/**
* <p>A filter that limits results to those detectors (instances) in the given
* state.</p>
*/
inline void SetStateName(const char* value) { m_stateNameHasBeenSet = true; m_stateName.assign(value); }
/**
* <p>A filter that limits results to those detectors (instances) in the given
* state.</p>
*/
inline ListDetectorsRequest& WithStateName(const Aws::String& value) { SetStateName(value); return *this;}
/**
* <p>A filter that limits results to those detectors (instances) in the given
* state.</p>
*/
inline ListDetectorsRequest& WithStateName(Aws::String&& value) { SetStateName(std::move(value)); return *this;}
/**
* <p>A filter that limits results to those detectors (instances) in the given
* state.</p>
*/
inline ListDetectorsRequest& WithStateName(const char* value) { SetStateName(value); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The token for the next set of results.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The token for the next set of results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The token for the next set of results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The token for the next set of results.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The token for the next set of results.</p>
*/
inline ListDetectorsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline ListDetectorsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline ListDetectorsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of results to return at one time.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results to return at one time.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results to return at one time.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results to return at one time.</p>
*/
inline ListDetectorsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_detectorModelName;
bool m_detectorModelNameHasBeenSet;
Aws::String m_stateName;
bool m_stateNameHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents-data/model/DetectorSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoTEventsData
{
namespace Model
{
class AWS_IOTEVENTSDATA_API ListDetectorsResult
{
public:
ListDetectorsResult();
ListDetectorsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListDetectorsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of summary information about the detectors (instances).</p>
*/
inline const Aws::Vector<DetectorSummary>& GetDetectorSummaries() const{ return m_detectorSummaries; }
/**
* <p>A list of summary information about the detectors (instances).</p>
*/
inline void SetDetectorSummaries(const Aws::Vector<DetectorSummary>& value) { m_detectorSummaries = value; }
/**
* <p>A list of summary information about the detectors (instances).</p>
*/
inline void SetDetectorSummaries(Aws::Vector<DetectorSummary>&& value) { m_detectorSummaries = std::move(value); }
/**
* <p>A list of summary information about the detectors (instances).</p>
*/
inline ListDetectorsResult& WithDetectorSummaries(const Aws::Vector<DetectorSummary>& value) { SetDetectorSummaries(value); return *this;}
/**
* <p>A list of summary information about the detectors (instances).</p>
*/
inline ListDetectorsResult& WithDetectorSummaries(Aws::Vector<DetectorSummary>&& value) { SetDetectorSummaries(std::move(value)); return *this;}
/**
* <p>A list of summary information about the detectors (instances).</p>
*/
inline ListDetectorsResult& AddDetectorSummaries(const DetectorSummary& value) { m_detectorSummaries.push_back(value); return *this; }
/**
* <p>A list of summary information about the detectors (instances).</p>
*/
inline ListDetectorsResult& AddDetectorSummaries(DetectorSummary&& value) { m_detectorSummaries.push_back(std::move(value)); return *this; }
/**
* <p>A token to retrieve the next set of results, or <code>null</code> if there
* are no additional results.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>A token to retrieve the next set of results, or <code>null</code> if there
* are no additional results.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>A token to retrieve the next set of results, or <code>null</code> if there
* are no additional results.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>A token to retrieve the next set of results, or <code>null</code> if there
* are no additional results.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>A token to retrieve the next set of results, or <code>null</code> if there
* are no additional results.</p>
*/
inline ListDetectorsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>A token to retrieve the next set of results, or <code>null</code> if there
* are no additional results.</p>
*/
inline ListDetectorsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>A token to retrieve the next set of results, or <code>null</code> if there
* are no additional results.</p>
*/
inline ListDetectorsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<DetectorSummary> m_detectorSummaries;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,181 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/Array.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEventsData
{
namespace Model
{
/**
* <p>Information about a message.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/Message">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTSDATA_API Message
{
public:
Message();
Message(Aws::Utils::Json::JsonView jsonValue);
Message& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID to assign to the message. Within each batch sent, each
* <code>"messageId"</code> must be unique.</p>
*/
inline const Aws::String& GetMessageId() const{ return m_messageId; }
/**
* <p>The ID to assign to the message. Within each batch sent, each
* <code>"messageId"</code> must be unique.</p>
*/
inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
/**
* <p>The ID to assign to the message. Within each batch sent, each
* <code>"messageId"</code> must be unique.</p>
*/
inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
/**
* <p>The ID to assign to the message. Within each batch sent, each
* <code>"messageId"</code> must be unique.</p>
*/
inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); }
/**
* <p>The ID to assign to the message. Within each batch sent, each
* <code>"messageId"</code> must be unique.</p>
*/
inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); }
/**
* <p>The ID to assign to the message. Within each batch sent, each
* <code>"messageId"</code> must be unique.</p>
*/
inline Message& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
/**
* <p>The ID to assign to the message. Within each batch sent, each
* <code>"messageId"</code> must be unique.</p>
*/
inline Message& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
/**
* <p>The ID to assign to the message. Within each batch sent, each
* <code>"messageId"</code> must be unique.</p>
*/
inline Message& WithMessageId(const char* value) { SetMessageId(value); return *this;}
/**
* <p>The name of the input into which the message payload is transformed.</p>
*/
inline const Aws::String& GetInputName() const{ return m_inputName; }
/**
* <p>The name of the input into which the message payload is transformed.</p>
*/
inline bool InputNameHasBeenSet() const { return m_inputNameHasBeenSet; }
/**
* <p>The name of the input into which the message payload is transformed.</p>
*/
inline void SetInputName(const Aws::String& value) { m_inputNameHasBeenSet = true; m_inputName = value; }
/**
* <p>The name of the input into which the message payload is transformed.</p>
*/
inline void SetInputName(Aws::String&& value) { m_inputNameHasBeenSet = true; m_inputName = std::move(value); }
/**
* <p>The name of the input into which the message payload is transformed.</p>
*/
inline void SetInputName(const char* value) { m_inputNameHasBeenSet = true; m_inputName.assign(value); }
/**
* <p>The name of the input into which the message payload is transformed.</p>
*/
inline Message& WithInputName(const Aws::String& value) { SetInputName(value); return *this;}
/**
* <p>The name of the input into which the message payload is transformed.</p>
*/
inline Message& WithInputName(Aws::String&& value) { SetInputName(std::move(value)); return *this;}
/**
* <p>The name of the input into which the message payload is transformed.</p>
*/
inline Message& WithInputName(const char* value) { SetInputName(value); return *this;}
/**
* <p>The payload of the message. This can be a JSON string or a Base-64-encoded
* string representing binary data (in which case you must decode it).</p>
*/
inline const Aws::Utils::ByteBuffer& GetPayload() const{ return m_payload; }
/**
* <p>The payload of the message. This can be a JSON string or a Base-64-encoded
* string representing binary data (in which case you must decode it).</p>
*/
inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
/**
* <p>The payload of the message. This can be a JSON string or a Base-64-encoded
* string representing binary data (in which case you must decode it).</p>
*/
inline void SetPayload(const Aws::Utils::ByteBuffer& value) { m_payloadHasBeenSet = true; m_payload = value; }
/**
* <p>The payload of the message. This can be a JSON string or a Base-64-encoded
* string representing binary data (in which case you must decode it).</p>
*/
inline void SetPayload(Aws::Utils::ByteBuffer&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
/**
* <p>The payload of the message. This can be a JSON string or a Base-64-encoded
* string representing binary data (in which case you must decode it).</p>
*/
inline Message& WithPayload(const Aws::Utils::ByteBuffer& value) { SetPayload(value); return *this;}
/**
* <p>The payload of the message. This can be a JSON string or a Base-64-encoded
* string representing binary data (in which case you must decode it).</p>
*/
inline Message& WithPayload(Aws::Utils::ByteBuffer&& value) { SetPayload(std::move(value)); return *this;}
private:
Aws::String m_messageId;
bool m_messageIdHasBeenSet;
Aws::String m_inputName;
bool m_inputNameHasBeenSet;
Aws::Utils::ByteBuffer m_payload;
bool m_payloadHasBeenSet;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,123 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEventsData
{
namespace Model
{
/**
* <p>The current state of a timer.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/Timer">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTSDATA_API Timer
{
public:
Timer();
Timer(Aws::Utils::Json::JsonView jsonValue);
Timer& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the timer.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the timer.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the timer.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the timer.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the timer.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the timer.</p>
*/
inline Timer& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the timer.</p>
*/
inline Timer& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the timer.</p>
*/
inline Timer& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The number of seconds which have elapsed on the timer.</p>
*/
inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
/**
* <p>The number of seconds which have elapsed on the timer.</p>
*/
inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
/**
* <p>The number of seconds which have elapsed on the timer.</p>
*/
inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
/**
* <p>The number of seconds which have elapsed on the timer.</p>
*/
inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
/**
* <p>The number of seconds which have elapsed on the timer.</p>
*/
inline Timer& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
/**
* <p>The number of seconds which have elapsed on the timer.</p>
*/
inline Timer& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::Utils::DateTime m_timestamp;
bool m_timestampHasBeenSet;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,116 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_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 IoTEventsData
{
namespace Model
{
/**
* <p>The new setting of a timer.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/TimerDefinition">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTSDATA_API TimerDefinition
{
public:
TimerDefinition();
TimerDefinition(Aws::Utils::Json::JsonView jsonValue);
TimerDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the timer.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the timer.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the timer.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the timer.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the timer.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the timer.</p>
*/
inline TimerDefinition& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the timer.</p>
*/
inline TimerDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the timer.</p>
*/
inline TimerDefinition& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The new setting of the timer (the number of seconds before the timer
* elapses).</p>
*/
inline int GetSeconds() const{ return m_seconds; }
/**
* <p>The new setting of the timer (the number of seconds before the timer
* elapses).</p>
*/
inline bool SecondsHasBeenSet() const { return m_secondsHasBeenSet; }
/**
* <p>The new setting of the timer (the number of seconds before the timer
* elapses).</p>
*/
inline void SetSeconds(int value) { m_secondsHasBeenSet = true; m_seconds = value; }
/**
* <p>The new setting of the timer (the number of seconds before the timer
* elapses).</p>
*/
inline TimerDefinition& WithSeconds(int value) { SetSeconds(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
int m_seconds;
bool m_secondsHasBeenSet;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,234 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents-data/model/DetectorStateDefinition.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEventsData
{
namespace Model
{
/**
* <p>Information used to update the detector (instance).</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/UpdateDetectorRequest">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTSDATA_API UpdateDetectorRequest
{
public:
UpdateDetectorRequest();
UpdateDetectorRequest(Aws::Utils::Json::JsonView jsonValue);
UpdateDetectorRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID to assign to the detector update <code>"message"</code>. Each
* <code>"messageId"</code> must be unique within each batch sent.</p>
*/
inline const Aws::String& GetMessageId() const{ return m_messageId; }
/**
* <p>The ID to assign to the detector update <code>"message"</code>. Each
* <code>"messageId"</code> must be unique within each batch sent.</p>
*/
inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
/**
* <p>The ID to assign to the detector update <code>"message"</code>. Each
* <code>"messageId"</code> must be unique within each batch sent.</p>
*/
inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
/**
* <p>The ID to assign to the detector update <code>"message"</code>. Each
* <code>"messageId"</code> must be unique within each batch sent.</p>
*/
inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); }
/**
* <p>The ID to assign to the detector update <code>"message"</code>. Each
* <code>"messageId"</code> must be unique within each batch sent.</p>
*/
inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); }
/**
* <p>The ID to assign to the detector update <code>"message"</code>. Each
* <code>"messageId"</code> must be unique within each batch sent.</p>
*/
inline UpdateDetectorRequest& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
/**
* <p>The ID to assign to the detector update <code>"message"</code>. Each
* <code>"messageId"</code> must be unique within each batch sent.</p>
*/
inline UpdateDetectorRequest& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
/**
* <p>The ID to assign to the detector update <code>"message"</code>. Each
* <code>"messageId"</code> must be unique within each batch sent.</p>
*/
inline UpdateDetectorRequest& WithMessageId(const char* value) { SetMessageId(value); return *this;}
/**
* <p>The name of the detector model that created the detectors (instances).</p>
*/
inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
/**
* <p>The name of the detector model that created the detectors (instances).</p>
*/
inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
/**
* <p>The name of the detector model that created the detectors (instances).</p>
*/
inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
/**
* <p>The name of the detector model that created the detectors (instances).</p>
*/
inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
/**
* <p>The name of the detector model that created the detectors (instances).</p>
*/
inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
/**
* <p>The name of the detector model that created the detectors (instances).</p>
*/
inline UpdateDetectorRequest& WithDetectorModelName(const Aws::String& value) { SetDetectorModelName(value); return *this;}
/**
* <p>The name of the detector model that created the detectors (instances).</p>
*/
inline UpdateDetectorRequest& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
/**
* <p>The name of the detector model that created the detectors (instances).</p>
*/
inline UpdateDetectorRequest& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;}
/**
* <p>The value of the input key attribute (identifying the device or system) that
* caused the creation of this detector (instance).</p>
*/
inline const Aws::String& GetKeyValue() const{ return m_keyValue; }
/**
* <p>The value of the input key attribute (identifying the device or system) that
* caused the creation of this detector (instance).</p>
*/
inline bool KeyValueHasBeenSet() const { return m_keyValueHasBeenSet; }
/**
* <p>The value of the input key attribute (identifying the device or system) that
* caused the creation of this detector (instance).</p>
*/
inline void SetKeyValue(const Aws::String& value) { m_keyValueHasBeenSet = true; m_keyValue = value; }
/**
* <p>The value of the input key attribute (identifying the device or system) that
* caused the creation of this detector (instance).</p>
*/
inline void SetKeyValue(Aws::String&& value) { m_keyValueHasBeenSet = true; m_keyValue = std::move(value); }
/**
* <p>The value of the input key attribute (identifying the device or system) that
* caused the creation of this detector (instance).</p>
*/
inline void SetKeyValue(const char* value) { m_keyValueHasBeenSet = true; m_keyValue.assign(value); }
/**
* <p>The value of the input key attribute (identifying the device or system) that
* caused the creation of this detector (instance).</p>
*/
inline UpdateDetectorRequest& WithKeyValue(const Aws::String& value) { SetKeyValue(value); return *this;}
/**
* <p>The value of the input key attribute (identifying the device or system) that
* caused the creation of this detector (instance).</p>
*/
inline UpdateDetectorRequest& WithKeyValue(Aws::String&& value) { SetKeyValue(std::move(value)); return *this;}
/**
* <p>The value of the input key attribute (identifying the device or system) that
* caused the creation of this detector (instance).</p>
*/
inline UpdateDetectorRequest& WithKeyValue(const char* value) { SetKeyValue(value); return *this;}
/**
* <p>The new state, variable values, and timer settings of the detector
* (instance).</p>
*/
inline const DetectorStateDefinition& GetState() const{ return m_state; }
/**
* <p>The new state, variable values, and timer settings of the detector
* (instance).</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The new state, variable values, and timer settings of the detector
* (instance).</p>
*/
inline void SetState(const DetectorStateDefinition& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The new state, variable values, and timer settings of the detector
* (instance).</p>
*/
inline void SetState(DetectorStateDefinition&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The new state, variable values, and timer settings of the detector
* (instance).</p>
*/
inline UpdateDetectorRequest& WithState(const DetectorStateDefinition& value) { SetState(value); return *this;}
/**
* <p>The new state, variable values, and timer settings of the detector
* (instance).</p>
*/
inline UpdateDetectorRequest& WithState(DetectorStateDefinition&& value) { SetState(std::move(value)); return *this;}
private:
Aws::String m_messageId;
bool m_messageIdHasBeenSet;
Aws::String m_detectorModelName;
bool m_detectorModelNameHasBeenSet;
Aws::String m_keyValue;
bool m_keyValueHasBeenSet;
DetectorStateDefinition m_state;
bool m_stateHasBeenSet;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_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 IoTEventsData
{
namespace Model
{
/**
* <p>The current state of the variable.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/Variable">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTSDATA_API Variable
{
public:
Variable();
Variable(Aws::Utils::Json::JsonView jsonValue);
Variable& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the variable.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the variable.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the variable.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the variable.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the variable.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the variable.</p>
*/
inline Variable& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the variable.</p>
*/
inline Variable& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the variable.</p>
*/
inline Variable& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The current value of the variable.</p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>The current value of the variable.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The current value of the variable.</p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The current value of the variable.</p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The current value of the variable.</p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>The current value of the variable.</p>
*/
inline Variable& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The current value of the variable.</p>
*/
inline Variable& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The current value of the variable.</p>
*/
inline Variable& WithValue(const char* value) { SetValue(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents-data/IoTEventsData_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 IoTEventsData
{
namespace Model
{
/**
* <p>The new value of the variable.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/VariableDefinition">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTSDATA_API VariableDefinition
{
public:
VariableDefinition();
VariableDefinition(Aws::Utils::Json::JsonView jsonValue);
VariableDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the variable.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the variable.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the variable.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the variable.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the variable.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the variable.</p>
*/
inline VariableDefinition& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the variable.</p>
*/
inline VariableDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the variable.</p>
*/
inline VariableDefinition& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The new value of the variable.</p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>The new value of the variable.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The new value of the variable.</p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The new value of the variable.</p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The new value of the variable.</p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>The new value of the variable.</p>
*/
inline VariableDefinition& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The new value of the variable.</p>
*/
inline VariableDefinition& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The new value of the variable.</p>
*/
inline VariableDefinition& WithValue(const char* value) { SetValue(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace IoTEventsData
} // namespace Aws