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,631 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/model/SetVariableAction.h>
#include <aws/iotevents/model/SNSTopicPublishAction.h>
#include <aws/iotevents/model/IotTopicPublishAction.h>
#include <aws/iotevents/model/SetTimerAction.h>
#include <aws/iotevents/model/ClearTimerAction.h>
#include <aws/iotevents/model/ResetTimerAction.h>
#include <aws/iotevents/model/LambdaAction.h>
#include <aws/iotevents/model/IotEventsAction.h>
#include <aws/iotevents/model/SqsAction.h>
#include <aws/iotevents/model/FirehoseAction.h>
#include <aws/iotevents/model/DynamoDBAction.h>
#include <aws/iotevents/model/DynamoDBv2Action.h>
#include <aws/iotevents/model/IotSiteWiseAction.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>An action to be performed when the <code>condition</code> is
* TRUE.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/Action">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API Action
{
public:
Action();
Action(Aws::Utils::Json::JsonView jsonValue);
Action& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Sets a variable to a specified value.</p>
*/
inline const SetVariableAction& GetSetVariable() const{ return m_setVariable; }
/**
* <p>Sets a variable to a specified value.</p>
*/
inline bool SetVariableHasBeenSet() const { return m_setVariableHasBeenSet; }
/**
* <p>Sets a variable to a specified value.</p>
*/
inline void SetSetVariable(const SetVariableAction& value) { m_setVariableHasBeenSet = true; m_setVariable = value; }
/**
* <p>Sets a variable to a specified value.</p>
*/
inline void SetSetVariable(SetVariableAction&& value) { m_setVariableHasBeenSet = true; m_setVariable = std::move(value); }
/**
* <p>Sets a variable to a specified value.</p>
*/
inline Action& WithSetVariable(const SetVariableAction& value) { SetSetVariable(value); return *this;}
/**
* <p>Sets a variable to a specified value.</p>
*/
inline Action& WithSetVariable(SetVariableAction&& value) { SetSetVariable(std::move(value)); return *this;}
/**
* <p>Sends an Amazon SNS message.</p>
*/
inline const SNSTopicPublishAction& GetSns() const{ return m_sns; }
/**
* <p>Sends an Amazon SNS message.</p>
*/
inline bool SnsHasBeenSet() const { return m_snsHasBeenSet; }
/**
* <p>Sends an Amazon SNS message.</p>
*/
inline void SetSns(const SNSTopicPublishAction& value) { m_snsHasBeenSet = true; m_sns = value; }
/**
* <p>Sends an Amazon SNS message.</p>
*/
inline void SetSns(SNSTopicPublishAction&& value) { m_snsHasBeenSet = true; m_sns = std::move(value); }
/**
* <p>Sends an Amazon SNS message.</p>
*/
inline Action& WithSns(const SNSTopicPublishAction& value) { SetSns(value); return *this;}
/**
* <p>Sends an Amazon SNS message.</p>
*/
inline Action& WithSns(SNSTopicPublishAction&& value) { SetSns(std::move(value)); return *this;}
/**
* <p>Publishes an MQTT message with the given topic to the AWS IoT message
* broker.</p>
*/
inline const IotTopicPublishAction& GetIotTopicPublish() const{ return m_iotTopicPublish; }
/**
* <p>Publishes an MQTT message with the given topic to the AWS IoT message
* broker.</p>
*/
inline bool IotTopicPublishHasBeenSet() const { return m_iotTopicPublishHasBeenSet; }
/**
* <p>Publishes an MQTT message with the given topic to the AWS IoT message
* broker.</p>
*/
inline void SetIotTopicPublish(const IotTopicPublishAction& value) { m_iotTopicPublishHasBeenSet = true; m_iotTopicPublish = value; }
/**
* <p>Publishes an MQTT message with the given topic to the AWS IoT message
* broker.</p>
*/
inline void SetIotTopicPublish(IotTopicPublishAction&& value) { m_iotTopicPublishHasBeenSet = true; m_iotTopicPublish = std::move(value); }
/**
* <p>Publishes an MQTT message with the given topic to the AWS IoT message
* broker.</p>
*/
inline Action& WithIotTopicPublish(const IotTopicPublishAction& value) { SetIotTopicPublish(value); return *this;}
/**
* <p>Publishes an MQTT message with the given topic to the AWS IoT message
* broker.</p>
*/
inline Action& WithIotTopicPublish(IotTopicPublishAction&& value) { SetIotTopicPublish(std::move(value)); return *this;}
/**
* <p>Information needed to set the timer.</p>
*/
inline const SetTimerAction& GetSetTimer() const{ return m_setTimer; }
/**
* <p>Information needed to set the timer.</p>
*/
inline bool SetTimerHasBeenSet() const { return m_setTimerHasBeenSet; }
/**
* <p>Information needed to set the timer.</p>
*/
inline void SetSetTimer(const SetTimerAction& value) { m_setTimerHasBeenSet = true; m_setTimer = value; }
/**
* <p>Information needed to set the timer.</p>
*/
inline void SetSetTimer(SetTimerAction&& value) { m_setTimerHasBeenSet = true; m_setTimer = std::move(value); }
/**
* <p>Information needed to set the timer.</p>
*/
inline Action& WithSetTimer(const SetTimerAction& value) { SetSetTimer(value); return *this;}
/**
* <p>Information needed to set the timer.</p>
*/
inline Action& WithSetTimer(SetTimerAction&& value) { SetSetTimer(std::move(value)); return *this;}
/**
* <p>Information needed to clear the timer.</p>
*/
inline const ClearTimerAction& GetClearTimer() const{ return m_clearTimer; }
/**
* <p>Information needed to clear the timer.</p>
*/
inline bool ClearTimerHasBeenSet() const { return m_clearTimerHasBeenSet; }
/**
* <p>Information needed to clear the timer.</p>
*/
inline void SetClearTimer(const ClearTimerAction& value) { m_clearTimerHasBeenSet = true; m_clearTimer = value; }
/**
* <p>Information needed to clear the timer.</p>
*/
inline void SetClearTimer(ClearTimerAction&& value) { m_clearTimerHasBeenSet = true; m_clearTimer = std::move(value); }
/**
* <p>Information needed to clear the timer.</p>
*/
inline Action& WithClearTimer(const ClearTimerAction& value) { SetClearTimer(value); return *this;}
/**
* <p>Information needed to clear the timer.</p>
*/
inline Action& WithClearTimer(ClearTimerAction&& value) { SetClearTimer(std::move(value)); return *this;}
/**
* <p>Information needed to reset the timer.</p>
*/
inline const ResetTimerAction& GetResetTimer() const{ return m_resetTimer; }
/**
* <p>Information needed to reset the timer.</p>
*/
inline bool ResetTimerHasBeenSet() const { return m_resetTimerHasBeenSet; }
/**
* <p>Information needed to reset the timer.</p>
*/
inline void SetResetTimer(const ResetTimerAction& value) { m_resetTimerHasBeenSet = true; m_resetTimer = value; }
/**
* <p>Information needed to reset the timer.</p>
*/
inline void SetResetTimer(ResetTimerAction&& value) { m_resetTimerHasBeenSet = true; m_resetTimer = std::move(value); }
/**
* <p>Information needed to reset the timer.</p>
*/
inline Action& WithResetTimer(const ResetTimerAction& value) { SetResetTimer(value); return *this;}
/**
* <p>Information needed to reset the timer.</p>
*/
inline Action& WithResetTimer(ResetTimerAction&& value) { SetResetTimer(std::move(value)); return *this;}
/**
* <p>Calls a Lambda function, passing in information about the detector model
* instance and the event that triggered the action.</p>
*/
inline const LambdaAction& GetLambda() const{ return m_lambda; }
/**
* <p>Calls a Lambda function, passing in information about the detector model
* instance and the event that triggered the action.</p>
*/
inline bool LambdaHasBeenSet() const { return m_lambdaHasBeenSet; }
/**
* <p>Calls a Lambda function, passing in information about the detector model
* instance and the event that triggered the action.</p>
*/
inline void SetLambda(const LambdaAction& value) { m_lambdaHasBeenSet = true; m_lambda = value; }
/**
* <p>Calls a Lambda function, passing in information about the detector model
* instance and the event that triggered the action.</p>
*/
inline void SetLambda(LambdaAction&& value) { m_lambdaHasBeenSet = true; m_lambda = std::move(value); }
/**
* <p>Calls a Lambda function, passing in information about the detector model
* instance and the event that triggered the action.</p>
*/
inline Action& WithLambda(const LambdaAction& value) { SetLambda(value); return *this;}
/**
* <p>Calls a Lambda function, passing in information about the detector model
* instance and the event that triggered the action.</p>
*/
inline Action& WithLambda(LambdaAction&& value) { SetLambda(std::move(value)); return *this;}
/**
* <p>Sends AWS IoT Events input, which passes information about the detector model
* instance and the event that triggered the action.</p>
*/
inline const IotEventsAction& GetIotEvents() const{ return m_iotEvents; }
/**
* <p>Sends AWS IoT Events input, which passes information about the detector model
* instance and the event that triggered the action.</p>
*/
inline bool IotEventsHasBeenSet() const { return m_iotEventsHasBeenSet; }
/**
* <p>Sends AWS IoT Events input, which passes information about the detector model
* instance and the event that triggered the action.</p>
*/
inline void SetIotEvents(const IotEventsAction& value) { m_iotEventsHasBeenSet = true; m_iotEvents = value; }
/**
* <p>Sends AWS IoT Events input, which passes information about the detector model
* instance and the event that triggered the action.</p>
*/
inline void SetIotEvents(IotEventsAction&& value) { m_iotEventsHasBeenSet = true; m_iotEvents = std::move(value); }
/**
* <p>Sends AWS IoT Events input, which passes information about the detector model
* instance and the event that triggered the action.</p>
*/
inline Action& WithIotEvents(const IotEventsAction& value) { SetIotEvents(value); return *this;}
/**
* <p>Sends AWS IoT Events input, which passes information about the detector model
* instance and the event that triggered the action.</p>
*/
inline Action& WithIotEvents(IotEventsAction&& value) { SetIotEvents(std::move(value)); return *this;}
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an Amazon SQS queue.</p>
*/
inline const SqsAction& GetSqs() const{ return m_sqs; }
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an Amazon SQS queue.</p>
*/
inline bool SqsHasBeenSet() const { return m_sqsHasBeenSet; }
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an Amazon SQS queue.</p>
*/
inline void SetSqs(const SqsAction& value) { m_sqsHasBeenSet = true; m_sqs = value; }
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an Amazon SQS queue.</p>
*/
inline void SetSqs(SqsAction&& value) { m_sqsHasBeenSet = true; m_sqs = std::move(value); }
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an Amazon SQS queue.</p>
*/
inline Action& WithSqs(const SqsAction& value) { SetSqs(value); return *this;}
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an Amazon SQS queue.</p>
*/
inline Action& WithSqs(SqsAction&& value) { SetSqs(std::move(value)); return *this;}
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an Amazon Kinesis Data Firehose delivery stream.</p>
*/
inline const FirehoseAction& GetFirehose() const{ return m_firehose; }
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an Amazon Kinesis Data Firehose delivery stream.</p>
*/
inline bool FirehoseHasBeenSet() const { return m_firehoseHasBeenSet; }
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an Amazon Kinesis Data Firehose delivery stream.</p>
*/
inline void SetFirehose(const FirehoseAction& value) { m_firehoseHasBeenSet = true; m_firehose = value; }
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an Amazon Kinesis Data Firehose delivery stream.</p>
*/
inline void SetFirehose(FirehoseAction&& value) { m_firehoseHasBeenSet = true; m_firehose = std::move(value); }
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an Amazon Kinesis Data Firehose delivery stream.</p>
*/
inline Action& WithFirehose(const FirehoseAction& value) { SetFirehose(value); return *this;}
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an Amazon Kinesis Data Firehose delivery stream.</p>
*/
inline Action& WithFirehose(FirehoseAction&& value) { SetFirehose(std::move(value)); return *this;}
/**
* <p>Writes to the DynamoDB table that you created. The default action payload
* contains all attribute-value pairs that have the information about the detector
* model instance and the event that triggered the action. You can also customize
* the <a
* href="https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html">payload</a>.
* One column of the DynamoDB table receives all attribute-value pairs in the
* payload that you specify. For more information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html">Actions</a>
* in <i>AWS IoT Events Developer Guide</i>.</p>
*/
inline const DynamoDBAction& GetDynamoDB() const{ return m_dynamoDB; }
/**
* <p>Writes to the DynamoDB table that you created. The default action payload
* contains all attribute-value pairs that have the information about the detector
* model instance and the event that triggered the action. You can also customize
* the <a
* href="https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html">payload</a>.
* One column of the DynamoDB table receives all attribute-value pairs in the
* payload that you specify. For more information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html">Actions</a>
* in <i>AWS IoT Events Developer Guide</i>.</p>
*/
inline bool DynamoDBHasBeenSet() const { return m_dynamoDBHasBeenSet; }
/**
* <p>Writes to the DynamoDB table that you created. The default action payload
* contains all attribute-value pairs that have the information about the detector
* model instance and the event that triggered the action. You can also customize
* the <a
* href="https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html">payload</a>.
* One column of the DynamoDB table receives all attribute-value pairs in the
* payload that you specify. For more information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html">Actions</a>
* in <i>AWS IoT Events Developer Guide</i>.</p>
*/
inline void SetDynamoDB(const DynamoDBAction& value) { m_dynamoDBHasBeenSet = true; m_dynamoDB = value; }
/**
* <p>Writes to the DynamoDB table that you created. The default action payload
* contains all attribute-value pairs that have the information about the detector
* model instance and the event that triggered the action. You can also customize
* the <a
* href="https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html">payload</a>.
* One column of the DynamoDB table receives all attribute-value pairs in the
* payload that you specify. For more information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html">Actions</a>
* in <i>AWS IoT Events Developer Guide</i>.</p>
*/
inline void SetDynamoDB(DynamoDBAction&& value) { m_dynamoDBHasBeenSet = true; m_dynamoDB = std::move(value); }
/**
* <p>Writes to the DynamoDB table that you created. The default action payload
* contains all attribute-value pairs that have the information about the detector
* model instance and the event that triggered the action. You can also customize
* the <a
* href="https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html">payload</a>.
* One column of the DynamoDB table receives all attribute-value pairs in the
* payload that you specify. For more information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html">Actions</a>
* in <i>AWS IoT Events Developer Guide</i>.</p>
*/
inline Action& WithDynamoDB(const DynamoDBAction& value) { SetDynamoDB(value); return *this;}
/**
* <p>Writes to the DynamoDB table that you created. The default action payload
* contains all attribute-value pairs that have the information about the detector
* model instance and the event that triggered the action. You can also customize
* the <a
* href="https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html">payload</a>.
* One column of the DynamoDB table receives all attribute-value pairs in the
* payload that you specify. For more information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html">Actions</a>
* in <i>AWS IoT Events Developer Guide</i>.</p>
*/
inline Action& WithDynamoDB(DynamoDBAction&& value) { SetDynamoDB(std::move(value)); return *this;}
/**
* <p>Writes to the DynamoDB table that you created. The default action payload
* contains all attribute-value pairs that have the information about the detector
* model instance and the event that triggered the action. You can also customize
* the <a
* href="https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html">payload</a>.
* A separate column of the DynamoDB table receives one attribute-value pair in the
* payload that you specify. For more information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html">Actions</a>
* in <i>AWS IoT Events Developer Guide</i>.</p>
*/
inline const DynamoDBv2Action& GetDynamoDBv2() const{ return m_dynamoDBv2; }
/**
* <p>Writes to the DynamoDB table that you created. The default action payload
* contains all attribute-value pairs that have the information about the detector
* model instance and the event that triggered the action. You can also customize
* the <a
* href="https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html">payload</a>.
* A separate column of the DynamoDB table receives one attribute-value pair in the
* payload that you specify. For more information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html">Actions</a>
* in <i>AWS IoT Events Developer Guide</i>.</p>
*/
inline bool DynamoDBv2HasBeenSet() const { return m_dynamoDBv2HasBeenSet; }
/**
* <p>Writes to the DynamoDB table that you created. The default action payload
* contains all attribute-value pairs that have the information about the detector
* model instance and the event that triggered the action. You can also customize
* the <a
* href="https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html">payload</a>.
* A separate column of the DynamoDB table receives one attribute-value pair in the
* payload that you specify. For more information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html">Actions</a>
* in <i>AWS IoT Events Developer Guide</i>.</p>
*/
inline void SetDynamoDBv2(const DynamoDBv2Action& value) { m_dynamoDBv2HasBeenSet = true; m_dynamoDBv2 = value; }
/**
* <p>Writes to the DynamoDB table that you created. The default action payload
* contains all attribute-value pairs that have the information about the detector
* model instance and the event that triggered the action. You can also customize
* the <a
* href="https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html">payload</a>.
* A separate column of the DynamoDB table receives one attribute-value pair in the
* payload that you specify. For more information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html">Actions</a>
* in <i>AWS IoT Events Developer Guide</i>.</p>
*/
inline void SetDynamoDBv2(DynamoDBv2Action&& value) { m_dynamoDBv2HasBeenSet = true; m_dynamoDBv2 = std::move(value); }
/**
* <p>Writes to the DynamoDB table that you created. The default action payload
* contains all attribute-value pairs that have the information about the detector
* model instance and the event that triggered the action. You can also customize
* the <a
* href="https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html">payload</a>.
* A separate column of the DynamoDB table receives one attribute-value pair in the
* payload that you specify. For more information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html">Actions</a>
* in <i>AWS IoT Events Developer Guide</i>.</p>
*/
inline Action& WithDynamoDBv2(const DynamoDBv2Action& value) { SetDynamoDBv2(value); return *this;}
/**
* <p>Writes to the DynamoDB table that you created. The default action payload
* contains all attribute-value pairs that have the information about the detector
* model instance and the event that triggered the action. You can also customize
* the <a
* href="https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html">payload</a>.
* A separate column of the DynamoDB table receives one attribute-value pair in the
* payload that you specify. For more information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-event-actions.html">Actions</a>
* in <i>AWS IoT Events Developer Guide</i>.</p>
*/
inline Action& WithDynamoDBv2(DynamoDBv2Action&& value) { SetDynamoDBv2(std::move(value)); return *this;}
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an asset property in AWS IoT SiteWise .</p>
*/
inline const IotSiteWiseAction& GetIotSiteWise() const{ return m_iotSiteWise; }
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an asset property in AWS IoT SiteWise .</p>
*/
inline bool IotSiteWiseHasBeenSet() const { return m_iotSiteWiseHasBeenSet; }
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an asset property in AWS IoT SiteWise .</p>
*/
inline void SetIotSiteWise(const IotSiteWiseAction& value) { m_iotSiteWiseHasBeenSet = true; m_iotSiteWise = value; }
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an asset property in AWS IoT SiteWise .</p>
*/
inline void SetIotSiteWise(IotSiteWiseAction&& value) { m_iotSiteWiseHasBeenSet = true; m_iotSiteWise = std::move(value); }
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an asset property in AWS IoT SiteWise .</p>
*/
inline Action& WithIotSiteWise(const IotSiteWiseAction& value) { SetIotSiteWise(value); return *this;}
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an asset property in AWS IoT SiteWise .</p>
*/
inline Action& WithIotSiteWise(IotSiteWiseAction&& value) { SetIotSiteWise(std::move(value)); return *this;}
private:
SetVariableAction m_setVariable;
bool m_setVariableHasBeenSet;
SNSTopicPublishAction m_sns;
bool m_snsHasBeenSet;
IotTopicPublishAction m_iotTopicPublish;
bool m_iotTopicPublishHasBeenSet;
SetTimerAction m_setTimer;
bool m_setTimerHasBeenSet;
ClearTimerAction m_clearTimer;
bool m_clearTimerHasBeenSet;
ResetTimerAction m_resetTimer;
bool m_resetTimerHasBeenSet;
LambdaAction m_lambda;
bool m_lambdaHasBeenSet;
IotEventsAction m_iotEvents;
bool m_iotEventsHasBeenSet;
SqsAction m_sqs;
bool m_sqsHasBeenSet;
FirehoseAction m_firehose;
bool m_firehoseHasBeenSet;
DynamoDBAction m_dynamoDB;
bool m_dynamoDBHasBeenSet;
DynamoDBv2Action m_dynamoDBv2;
bool m_dynamoDBv2HasBeenSet;
IotSiteWiseAction m_iotSiteWise;
bool m_iotSiteWiseHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,159 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_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 IoTEvents
{
namespace Model
{
/**
* <p>A structure that contains timestamp information. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html">TimeInNanos</a>
* in the <i>AWS IoT SiteWise API Reference</i>.</p> <p>For parameters that are
* string data type, you can specify the following options:</p> <ul> <li> <p>Use a
* string. For example, the <code>timeInSeconds</code> value can be
* <code>'1586400675'</code>.</p> </li> <li> <p>Use an expression. For example, the
* <code>timeInSeconds</code> value can be
* <code>'${$input.TemperatureInput.sensorData.timestamp/1000}'</code>.</p> <p>For
* more information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html">Expressions</a>
* in the <i>AWS IoT Events Developer Guide</i>.</p> </li> </ul><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/AssetPropertyTimestamp">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API AssetPropertyTimestamp
{
public:
AssetPropertyTimestamp();
AssetPropertyTimestamp(Aws::Utils::Json::JsonView jsonValue);
AssetPropertyTimestamp& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The timestamp, in seconds, in the Unix epoch format. The valid range is
* between 1-31556889864403199. You can also specify an expression.</p>
*/
inline const Aws::String& GetTimeInSeconds() const{ return m_timeInSeconds; }
/**
* <p>The timestamp, in seconds, in the Unix epoch format. The valid range is
* between 1-31556889864403199. You can also specify an expression.</p>
*/
inline bool TimeInSecondsHasBeenSet() const { return m_timeInSecondsHasBeenSet; }
/**
* <p>The timestamp, in seconds, in the Unix epoch format. The valid range is
* between 1-31556889864403199. You can also specify an expression.</p>
*/
inline void SetTimeInSeconds(const Aws::String& value) { m_timeInSecondsHasBeenSet = true; m_timeInSeconds = value; }
/**
* <p>The timestamp, in seconds, in the Unix epoch format. The valid range is
* between 1-31556889864403199. You can also specify an expression.</p>
*/
inline void SetTimeInSeconds(Aws::String&& value) { m_timeInSecondsHasBeenSet = true; m_timeInSeconds = std::move(value); }
/**
* <p>The timestamp, in seconds, in the Unix epoch format. The valid range is
* between 1-31556889864403199. You can also specify an expression.</p>
*/
inline void SetTimeInSeconds(const char* value) { m_timeInSecondsHasBeenSet = true; m_timeInSeconds.assign(value); }
/**
* <p>The timestamp, in seconds, in the Unix epoch format. The valid range is
* between 1-31556889864403199. You can also specify an expression.</p>
*/
inline AssetPropertyTimestamp& WithTimeInSeconds(const Aws::String& value) { SetTimeInSeconds(value); return *this;}
/**
* <p>The timestamp, in seconds, in the Unix epoch format. The valid range is
* between 1-31556889864403199. You can also specify an expression.</p>
*/
inline AssetPropertyTimestamp& WithTimeInSeconds(Aws::String&& value) { SetTimeInSeconds(std::move(value)); return *this;}
/**
* <p>The timestamp, in seconds, in the Unix epoch format. The valid range is
* between 1-31556889864403199. You can also specify an expression.</p>
*/
inline AssetPropertyTimestamp& WithTimeInSeconds(const char* value) { SetTimeInSeconds(value); return *this;}
/**
* <p>The nanosecond offset converted from <code>timeInSeconds</code>. The valid
* range is between 0-999999999. You can also specify an expression.</p>
*/
inline const Aws::String& GetOffsetInNanos() const{ return m_offsetInNanos; }
/**
* <p>The nanosecond offset converted from <code>timeInSeconds</code>. The valid
* range is between 0-999999999. You can also specify an expression.</p>
*/
inline bool OffsetInNanosHasBeenSet() const { return m_offsetInNanosHasBeenSet; }
/**
* <p>The nanosecond offset converted from <code>timeInSeconds</code>. The valid
* range is between 0-999999999. You can also specify an expression.</p>
*/
inline void SetOffsetInNanos(const Aws::String& value) { m_offsetInNanosHasBeenSet = true; m_offsetInNanos = value; }
/**
* <p>The nanosecond offset converted from <code>timeInSeconds</code>. The valid
* range is between 0-999999999. You can also specify an expression.</p>
*/
inline void SetOffsetInNanos(Aws::String&& value) { m_offsetInNanosHasBeenSet = true; m_offsetInNanos = std::move(value); }
/**
* <p>The nanosecond offset converted from <code>timeInSeconds</code>. The valid
* range is between 0-999999999. You can also specify an expression.</p>
*/
inline void SetOffsetInNanos(const char* value) { m_offsetInNanosHasBeenSet = true; m_offsetInNanos.assign(value); }
/**
* <p>The nanosecond offset converted from <code>timeInSeconds</code>. The valid
* range is between 0-999999999. You can also specify an expression.</p>
*/
inline AssetPropertyTimestamp& WithOffsetInNanos(const Aws::String& value) { SetOffsetInNanos(value); return *this;}
/**
* <p>The nanosecond offset converted from <code>timeInSeconds</code>. The valid
* range is between 0-999999999. You can also specify an expression.</p>
*/
inline AssetPropertyTimestamp& WithOffsetInNanos(Aws::String&& value) { SetOffsetInNanos(std::move(value)); return *this;}
/**
* <p>The nanosecond offset converted from <code>timeInSeconds</code>. The valid
* range is between 0-999999999. You can also specify an expression.</p>
*/
inline AssetPropertyTimestamp& WithOffsetInNanos(const char* value) { SetOffsetInNanos(value); return *this;}
private:
Aws::String m_timeInSeconds;
bool m_timeInSecondsHasBeenSet;
Aws::String m_offsetInNanos;
bool m_offsetInNanosHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,191 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/model/AssetPropertyVariant.h>
#include <aws/iotevents/model/AssetPropertyTimestamp.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 IoTEvents
{
namespace Model
{
/**
* <p>A structure that contains value information. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetPropertyValue.html">AssetPropertyValue</a>
* in the <i>AWS IoT SiteWise API Reference</i>.</p> <p>For parameters that are
* string data type, you can specify the following options: </p> <ul> <li> <p>Use a
* string. For example, the <code>quality</code> value can be
* <code>'GOOD'</code>.</p> </li> <li> <p>Use an expression. For example, the
* <code>quality</code> value can be
* <code>$input.TemperatureInput.sensorData.quality</code> .</p> <p>For more
* information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html">Expressions</a>
* in the <i>AWS IoT Events Developer Guide</i>.</p> </li> </ul><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/AssetPropertyValue">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API AssetPropertyValue
{
public:
AssetPropertyValue();
AssetPropertyValue(Aws::Utils::Json::JsonView jsonValue);
AssetPropertyValue& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The value to send to an asset property.</p>
*/
inline const AssetPropertyVariant& GetValue() const{ return m_value; }
/**
* <p>The value to send to an asset property.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The value to send to an asset property.</p>
*/
inline void SetValue(const AssetPropertyVariant& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The value to send to an asset property.</p>
*/
inline void SetValue(AssetPropertyVariant&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The value to send to an asset property.</p>
*/
inline AssetPropertyValue& WithValue(const AssetPropertyVariant& value) { SetValue(value); return *this;}
/**
* <p>The value to send to an asset property.</p>
*/
inline AssetPropertyValue& WithValue(AssetPropertyVariant&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The timestamp associated with the asset property value. The default is the
* current event time.</p>
*/
inline const AssetPropertyTimestamp& GetTimestamp() const{ return m_timestamp; }
/**
* <p>The timestamp associated with the asset property value. The default is the
* current event time.</p>
*/
inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
/**
* <p>The timestamp associated with the asset property value. The default is the
* current event time.</p>
*/
inline void SetTimestamp(const AssetPropertyTimestamp& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
/**
* <p>The timestamp associated with the asset property value. The default is the
* current event time.</p>
*/
inline void SetTimestamp(AssetPropertyTimestamp&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
/**
* <p>The timestamp associated with the asset property value. The default is the
* current event time.</p>
*/
inline AssetPropertyValue& WithTimestamp(const AssetPropertyTimestamp& value) { SetTimestamp(value); return *this;}
/**
* <p>The timestamp associated with the asset property value. The default is the
* current event time.</p>
*/
inline AssetPropertyValue& WithTimestamp(AssetPropertyTimestamp&& value) { SetTimestamp(std::move(value)); return *this;}
/**
* <p>The quality of the asset property value. The value must be <code>GOOD</code>,
* <code>BAD</code>, or <code>UNCERTAIN</code>. You can also specify an
* expression.</p>
*/
inline const Aws::String& GetQuality() const{ return m_quality; }
/**
* <p>The quality of the asset property value. The value must be <code>GOOD</code>,
* <code>BAD</code>, or <code>UNCERTAIN</code>. You can also specify an
* expression.</p>
*/
inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; }
/**
* <p>The quality of the asset property value. The value must be <code>GOOD</code>,
* <code>BAD</code>, or <code>UNCERTAIN</code>. You can also specify an
* expression.</p>
*/
inline void SetQuality(const Aws::String& value) { m_qualityHasBeenSet = true; m_quality = value; }
/**
* <p>The quality of the asset property value. The value must be <code>GOOD</code>,
* <code>BAD</code>, or <code>UNCERTAIN</code>. You can also specify an
* expression.</p>
*/
inline void SetQuality(Aws::String&& value) { m_qualityHasBeenSet = true; m_quality = std::move(value); }
/**
* <p>The quality of the asset property value. The value must be <code>GOOD</code>,
* <code>BAD</code>, or <code>UNCERTAIN</code>. You can also specify an
* expression.</p>
*/
inline void SetQuality(const char* value) { m_qualityHasBeenSet = true; m_quality.assign(value); }
/**
* <p>The quality of the asset property value. The value must be <code>GOOD</code>,
* <code>BAD</code>, or <code>UNCERTAIN</code>. You can also specify an
* expression.</p>
*/
inline AssetPropertyValue& WithQuality(const Aws::String& value) { SetQuality(value); return *this;}
/**
* <p>The quality of the asset property value. The value must be <code>GOOD</code>,
* <code>BAD</code>, or <code>UNCERTAIN</code>. You can also specify an
* expression.</p>
*/
inline AssetPropertyValue& WithQuality(Aws::String&& value) { SetQuality(std::move(value)); return *this;}
/**
* <p>The quality of the asset property value. The value must be <code>GOOD</code>,
* <code>BAD</code>, or <code>UNCERTAIN</code>. You can also specify an
* expression.</p>
*/
inline AssetPropertyValue& WithQuality(const char* value) { SetQuality(value); return *this;}
private:
AssetPropertyVariant m_value;
bool m_valueHasBeenSet;
AssetPropertyTimestamp m_timestamp;
bool m_timestampHasBeenSet;
Aws::String m_quality;
bool m_qualityHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,276 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_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 IoTEvents
{
namespace Model
{
/**
* <p>A structure that contains an asset property value. For more information, see
* <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_Variant.html">Variant</a>
* in the <i>AWS IoT SiteWise API Reference</i>.</p> <p>You must
* specify one of the following value types, depending on the <code>dataType</code>
* of the specified asset property. For more information, see <a
* href="https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_AssetProperty.html">AssetProperty</a>
* in the <i>AWS IoT SiteWise API Reference</i>.</p> <p>For parameters
* that are string data type, you can specify the following options:</p> <ul> <li>
* <p>Use a string. For example, the <code>doubleValue</code> value can be
* <code>'47.9'</code>.</p> </li> <li> <p>Use an expression. For example, the
* <code>doubleValue</code> value can be
* <code>$input.TemperatureInput.sensorData.temperature</code>.</p> <p>For more
* information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html">Expressions</a>
* in the <i>AWS IoT Events Developer Guide</i>.</p> </li> </ul><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/AssetPropertyVariant">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API AssetPropertyVariant
{
public:
AssetPropertyVariant();
AssetPropertyVariant(Aws::Utils::Json::JsonView jsonValue);
AssetPropertyVariant& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The asset property value is a string. You can also specify an expression. If
* you use an expression, the evaluated result should be a string.</p>
*/
inline const Aws::String& GetStringValue() const{ return m_stringValue; }
/**
* <p>The asset property value is a string. You can also specify an expression. If
* you use an expression, the evaluated result should be a string.</p>
*/
inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
/**
* <p>The asset property value is a string. You can also specify an expression. If
* you use an expression, the evaluated result should be a string.</p>
*/
inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
/**
* <p>The asset property value is a string. You can also specify an expression. If
* you use an expression, the evaluated result should be a string.</p>
*/
inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
/**
* <p>The asset property value is a string. You can also specify an expression. If
* you use an expression, the evaluated result should be a string.</p>
*/
inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
/**
* <p>The asset property value is a string. You can also specify an expression. If
* you use an expression, the evaluated result should be a string.</p>
*/
inline AssetPropertyVariant& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
/**
* <p>The asset property value is a string. You can also specify an expression. If
* you use an expression, the evaluated result should be a string.</p>
*/
inline AssetPropertyVariant& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
/**
* <p>The asset property value is a string. You can also specify an expression. If
* you use an expression, the evaluated result should be a string.</p>
*/
inline AssetPropertyVariant& WithStringValue(const char* value) { SetStringValue(value); return *this;}
/**
* <p>The asset property value is an integer. You can also specify an expression.
* If you use an expression, the evaluated result should be an integer.</p>
*/
inline const Aws::String& GetIntegerValue() const{ return m_integerValue; }
/**
* <p>The asset property value is an integer. You can also specify an expression.
* If you use an expression, the evaluated result should be an integer.</p>
*/
inline bool IntegerValueHasBeenSet() const { return m_integerValueHasBeenSet; }
/**
* <p>The asset property value is an integer. You can also specify an expression.
* If you use an expression, the evaluated result should be an integer.</p>
*/
inline void SetIntegerValue(const Aws::String& value) { m_integerValueHasBeenSet = true; m_integerValue = value; }
/**
* <p>The asset property value is an integer. You can also specify an expression.
* If you use an expression, the evaluated result should be an integer.</p>
*/
inline void SetIntegerValue(Aws::String&& value) { m_integerValueHasBeenSet = true; m_integerValue = std::move(value); }
/**
* <p>The asset property value is an integer. You can also specify an expression.
* If you use an expression, the evaluated result should be an integer.</p>
*/
inline void SetIntegerValue(const char* value) { m_integerValueHasBeenSet = true; m_integerValue.assign(value); }
/**
* <p>The asset property value is an integer. You can also specify an expression.
* If you use an expression, the evaluated result should be an integer.</p>
*/
inline AssetPropertyVariant& WithIntegerValue(const Aws::String& value) { SetIntegerValue(value); return *this;}
/**
* <p>The asset property value is an integer. You can also specify an expression.
* If you use an expression, the evaluated result should be an integer.</p>
*/
inline AssetPropertyVariant& WithIntegerValue(Aws::String&& value) { SetIntegerValue(std::move(value)); return *this;}
/**
* <p>The asset property value is an integer. You can also specify an expression.
* If you use an expression, the evaluated result should be an integer.</p>
*/
inline AssetPropertyVariant& WithIntegerValue(const char* value) { SetIntegerValue(value); return *this;}
/**
* <p>The asset property value is a double. You can also specify an expression. If
* you use an expression, the evaluated result should be a double.</p>
*/
inline const Aws::String& GetDoubleValue() const{ return m_doubleValue; }
/**
* <p>The asset property value is a double. You can also specify an expression. If
* you use an expression, the evaluated result should be a double.</p>
*/
inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; }
/**
* <p>The asset property value is a double. You can also specify an expression. If
* you use an expression, the evaluated result should be a double.</p>
*/
inline void SetDoubleValue(const Aws::String& value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; }
/**
* <p>The asset property value is a double. You can also specify an expression. If
* you use an expression, the evaluated result should be a double.</p>
*/
inline void SetDoubleValue(Aws::String&& value) { m_doubleValueHasBeenSet = true; m_doubleValue = std::move(value); }
/**
* <p>The asset property value is a double. You can also specify an expression. If
* you use an expression, the evaluated result should be a double.</p>
*/
inline void SetDoubleValue(const char* value) { m_doubleValueHasBeenSet = true; m_doubleValue.assign(value); }
/**
* <p>The asset property value is a double. You can also specify an expression. If
* you use an expression, the evaluated result should be a double.</p>
*/
inline AssetPropertyVariant& WithDoubleValue(const Aws::String& value) { SetDoubleValue(value); return *this;}
/**
* <p>The asset property value is a double. You can also specify an expression. If
* you use an expression, the evaluated result should be a double.</p>
*/
inline AssetPropertyVariant& WithDoubleValue(Aws::String&& value) { SetDoubleValue(std::move(value)); return *this;}
/**
* <p>The asset property value is a double. You can also specify an expression. If
* you use an expression, the evaluated result should be a double.</p>
*/
inline AssetPropertyVariant& WithDoubleValue(const char* value) { SetDoubleValue(value); return *this;}
/**
* <p>The asset property value is a Boolean value that must be <code>TRUE</code> or
* <code>FALSE</code>. You can also specify an expression. If you use an
* expression, the evaluated result should be a Boolean value.</p>
*/
inline const Aws::String& GetBooleanValue() const{ return m_booleanValue; }
/**
* <p>The asset property value is a Boolean value that must be <code>TRUE</code> or
* <code>FALSE</code>. You can also specify an expression. If you use an
* expression, the evaluated result should be a Boolean value.</p>
*/
inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; }
/**
* <p>The asset property value is a Boolean value that must be <code>TRUE</code> or
* <code>FALSE</code>. You can also specify an expression. If you use an
* expression, the evaluated result should be a Boolean value.</p>
*/
inline void SetBooleanValue(const Aws::String& value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; }
/**
* <p>The asset property value is a Boolean value that must be <code>TRUE</code> or
* <code>FALSE</code>. You can also specify an expression. If you use an
* expression, the evaluated result should be a Boolean value.</p>
*/
inline void SetBooleanValue(Aws::String&& value) { m_booleanValueHasBeenSet = true; m_booleanValue = std::move(value); }
/**
* <p>The asset property value is a Boolean value that must be <code>TRUE</code> or
* <code>FALSE</code>. You can also specify an expression. If you use an
* expression, the evaluated result should be a Boolean value.</p>
*/
inline void SetBooleanValue(const char* value) { m_booleanValueHasBeenSet = true; m_booleanValue.assign(value); }
/**
* <p>The asset property value is a Boolean value that must be <code>TRUE</code> or
* <code>FALSE</code>. You can also specify an expression. If you use an
* expression, the evaluated result should be a Boolean value.</p>
*/
inline AssetPropertyVariant& WithBooleanValue(const Aws::String& value) { SetBooleanValue(value); return *this;}
/**
* <p>The asset property value is a Boolean value that must be <code>TRUE</code> or
* <code>FALSE</code>. You can also specify an expression. If you use an
* expression, the evaluated result should be a Boolean value.</p>
*/
inline AssetPropertyVariant& WithBooleanValue(Aws::String&& value) { SetBooleanValue(std::move(value)); return *this;}
/**
* <p>The asset property value is a Boolean value that must be <code>TRUE</code> or
* <code>FALSE</code>. You can also specify an expression. If you use an
* expression, the evaluated result should be a Boolean value.</p>
*/
inline AssetPropertyVariant& WithBooleanValue(const char* value) { SetBooleanValue(value); return *this;}
private:
Aws::String m_stringValue;
bool m_stringValueHasBeenSet;
Aws::String m_integerValue;
bool m_integerValueHasBeenSet;
Aws::String m_doubleValue;
bool m_doubleValueHasBeenSet;
Aws::String m_booleanValue;
bool m_booleanValueHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,141 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_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 IoTEvents
{
namespace Model
{
/**
* <p>The attributes from the JSON payload that are made available by the input.
* Inputs are derived from messages sent to the AWS IoT Events system using
* <code>BatchPutMessage</code>. Each such message contains a JSON payload. Those
* attributes (and their paired values) specified here are available for use in the
* <code>condition</code> expressions used by detectors. </p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/Attribute">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API Attribute
{
public:
Attribute();
Attribute(Aws::Utils::Json::JsonView jsonValue);
Attribute& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>An expression that specifies an attribute-value pair in a JSON structure. Use
* this to specify an attribute from the JSON payload that is made available by the
* input. Inputs are derived from messages sent to AWS IoT Events
* (<code>BatchPutMessage</code>). Each such message contains a JSON payload. The
* attribute (and its paired value) specified here are available for use in the
* <code>condition</code> expressions used by detectors. </p> <p>Syntax:
* <code>&lt;field-name&gt;.&lt;field-name&gt;...</code> </p>
*/
inline const Aws::String& GetJsonPath() const{ return m_jsonPath; }
/**
* <p>An expression that specifies an attribute-value pair in a JSON structure. Use
* this to specify an attribute from the JSON payload that is made available by the
* input. Inputs are derived from messages sent to AWS IoT Events
* (<code>BatchPutMessage</code>). Each such message contains a JSON payload. The
* attribute (and its paired value) specified here are available for use in the
* <code>condition</code> expressions used by detectors. </p> <p>Syntax:
* <code>&lt;field-name&gt;.&lt;field-name&gt;...</code> </p>
*/
inline bool JsonPathHasBeenSet() const { return m_jsonPathHasBeenSet; }
/**
* <p>An expression that specifies an attribute-value pair in a JSON structure. Use
* this to specify an attribute from the JSON payload that is made available by the
* input. Inputs are derived from messages sent to AWS IoT Events
* (<code>BatchPutMessage</code>). Each such message contains a JSON payload. The
* attribute (and its paired value) specified here are available for use in the
* <code>condition</code> expressions used by detectors. </p> <p>Syntax:
* <code>&lt;field-name&gt;.&lt;field-name&gt;...</code> </p>
*/
inline void SetJsonPath(const Aws::String& value) { m_jsonPathHasBeenSet = true; m_jsonPath = value; }
/**
* <p>An expression that specifies an attribute-value pair in a JSON structure. Use
* this to specify an attribute from the JSON payload that is made available by the
* input. Inputs are derived from messages sent to AWS IoT Events
* (<code>BatchPutMessage</code>). Each such message contains a JSON payload. The
* attribute (and its paired value) specified here are available for use in the
* <code>condition</code> expressions used by detectors. </p> <p>Syntax:
* <code>&lt;field-name&gt;.&lt;field-name&gt;...</code> </p>
*/
inline void SetJsonPath(Aws::String&& value) { m_jsonPathHasBeenSet = true; m_jsonPath = std::move(value); }
/**
* <p>An expression that specifies an attribute-value pair in a JSON structure. Use
* this to specify an attribute from the JSON payload that is made available by the
* input. Inputs are derived from messages sent to AWS IoT Events
* (<code>BatchPutMessage</code>). Each such message contains a JSON payload. The
* attribute (and its paired value) specified here are available for use in the
* <code>condition</code> expressions used by detectors. </p> <p>Syntax:
* <code>&lt;field-name&gt;.&lt;field-name&gt;...</code> </p>
*/
inline void SetJsonPath(const char* value) { m_jsonPathHasBeenSet = true; m_jsonPath.assign(value); }
/**
* <p>An expression that specifies an attribute-value pair in a JSON structure. Use
* this to specify an attribute from the JSON payload that is made available by the
* input. Inputs are derived from messages sent to AWS IoT Events
* (<code>BatchPutMessage</code>). Each such message contains a JSON payload. The
* attribute (and its paired value) specified here are available for use in the
* <code>condition</code> expressions used by detectors. </p> <p>Syntax:
* <code>&lt;field-name&gt;.&lt;field-name&gt;...</code> </p>
*/
inline Attribute& WithJsonPath(const Aws::String& value) { SetJsonPath(value); return *this;}
/**
* <p>An expression that specifies an attribute-value pair in a JSON structure. Use
* this to specify an attribute from the JSON payload that is made available by the
* input. Inputs are derived from messages sent to AWS IoT Events
* (<code>BatchPutMessage</code>). Each such message contains a JSON payload. The
* attribute (and its paired value) specified here are available for use in the
* <code>condition</code> expressions used by detectors. </p> <p>Syntax:
* <code>&lt;field-name&gt;.&lt;field-name&gt;...</code> </p>
*/
inline Attribute& WithJsonPath(Aws::String&& value) { SetJsonPath(std::move(value)); return *this;}
/**
* <p>An expression that specifies an attribute-value pair in a JSON structure. Use
* this to specify an attribute from the JSON payload that is made available by the
* input. Inputs are derived from messages sent to AWS IoT Events
* (<code>BatchPutMessage</code>). Each such message contains a JSON payload. The
* attribute (and its paired value) specified here are available for use in the
* <code>condition</code> expressions used by detectors. </p> <p>Syntax:
* <code>&lt;field-name&gt;.&lt;field-name&gt;...</code> </p>
*/
inline Attribute& WithJsonPath(const char* value) { SetJsonPath(value); return *this;}
private:
Aws::String m_jsonPath;
bool m_jsonPathHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // 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/IoTEvents_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 IoTEvents
{
namespace Model
{
/**
* <p>Information needed to clear the timer.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/ClearTimerAction">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API ClearTimerAction
{
public:
ClearTimerAction();
ClearTimerAction(Aws::Utils::Json::JsonView jsonValue);
ClearTimerAction& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the timer to clear.</p>
*/
inline const Aws::String& GetTimerName() const{ return m_timerName; }
/**
* <p>The name of the timer to clear.</p>
*/
inline bool TimerNameHasBeenSet() const { return m_timerNameHasBeenSet; }
/**
* <p>The name of the timer to clear.</p>
*/
inline void SetTimerName(const Aws::String& value) { m_timerNameHasBeenSet = true; m_timerName = value; }
/**
* <p>The name of the timer to clear.</p>
*/
inline void SetTimerName(Aws::String&& value) { m_timerNameHasBeenSet = true; m_timerName = std::move(value); }
/**
* <p>The name of the timer to clear.</p>
*/
inline void SetTimerName(const char* value) { m_timerNameHasBeenSet = true; m_timerName.assign(value); }
/**
* <p>The name of the timer to clear.</p>
*/
inline ClearTimerAction& WithTimerName(const Aws::String& value) { SetTimerName(value); return *this;}
/**
* <p>The name of the timer to clear.</p>
*/
inline ClearTimerAction& WithTimerName(Aws::String&& value) { SetTimerName(std::move(value)); return *this;}
/**
* <p>The name of the timer to clear.</p>
*/
inline ClearTimerAction& WithTimerName(const char* value) { SetTimerName(value); return *this;}
private:
Aws::String m_timerName;
bool m_timerNameHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,377 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/IoTEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/DetectorModelDefinition.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotevents/model/EvaluationMethod.h>
#include <aws/iotevents/model/Tag.h>
#include <utility>
namespace Aws
{
namespace IoTEvents
{
namespace Model
{
/**
*/
class AWS_IOTEVENTS_API CreateDetectorModelRequest : public IoTEventsRequest
{
public:
CreateDetectorModelRequest();
// 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 "CreateDetectorModel"; }
Aws::String SerializePayload() const override;
/**
* <p>The name of the detector model.</p>
*/
inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
/**
* <p>The name of the detector model.</p>
*/
inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
/**
* <p>The name of the detector model.</p>
*/
inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
/**
* <p>The name of the detector model.</p>
*/
inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
/**
* <p>The name of the detector model.</p>
*/
inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
/**
* <p>The name of the detector model.</p>
*/
inline CreateDetectorModelRequest& WithDetectorModelName(const Aws::String& value) { SetDetectorModelName(value); return *this;}
/**
* <p>The name of the detector model.</p>
*/
inline CreateDetectorModelRequest& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
/**
* <p>The name of the detector model.</p>
*/
inline CreateDetectorModelRequest& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;}
/**
* <p>Information that defines how the detectors operate.</p>
*/
inline const DetectorModelDefinition& GetDetectorModelDefinition() const{ return m_detectorModelDefinition; }
/**
* <p>Information that defines how the detectors operate.</p>
*/
inline bool DetectorModelDefinitionHasBeenSet() const { return m_detectorModelDefinitionHasBeenSet; }
/**
* <p>Information that defines how the detectors operate.</p>
*/
inline void SetDetectorModelDefinition(const DetectorModelDefinition& value) { m_detectorModelDefinitionHasBeenSet = true; m_detectorModelDefinition = value; }
/**
* <p>Information that defines how the detectors operate.</p>
*/
inline void SetDetectorModelDefinition(DetectorModelDefinition&& value) { m_detectorModelDefinitionHasBeenSet = true; m_detectorModelDefinition = std::move(value); }
/**
* <p>Information that defines how the detectors operate.</p>
*/
inline CreateDetectorModelRequest& WithDetectorModelDefinition(const DetectorModelDefinition& value) { SetDetectorModelDefinition(value); return *this;}
/**
* <p>Information that defines how the detectors operate.</p>
*/
inline CreateDetectorModelRequest& WithDetectorModelDefinition(DetectorModelDefinition&& value) { SetDetectorModelDefinition(std::move(value)); return *this;}
/**
* <p>A brief description of the detector model.</p>
*/
inline const Aws::String& GetDetectorModelDescription() const{ return m_detectorModelDescription; }
/**
* <p>A brief description of the detector model.</p>
*/
inline bool DetectorModelDescriptionHasBeenSet() const { return m_detectorModelDescriptionHasBeenSet; }
/**
* <p>A brief description of the detector model.</p>
*/
inline void SetDetectorModelDescription(const Aws::String& value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription = value; }
/**
* <p>A brief description of the detector model.</p>
*/
inline void SetDetectorModelDescription(Aws::String&& value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription = std::move(value); }
/**
* <p>A brief description of the detector model.</p>
*/
inline void SetDetectorModelDescription(const char* value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription.assign(value); }
/**
* <p>A brief description of the detector model.</p>
*/
inline CreateDetectorModelRequest& WithDetectorModelDescription(const Aws::String& value) { SetDetectorModelDescription(value); return *this;}
/**
* <p>A brief description of the detector model.</p>
*/
inline CreateDetectorModelRequest& WithDetectorModelDescription(Aws::String&& value) { SetDetectorModelDescription(std::move(value)); return *this;}
/**
* <p>A brief description of the detector model.</p>
*/
inline CreateDetectorModelRequest& WithDetectorModelDescription(const char* value) { SetDetectorModelDescription(value); return *this;}
/**
* <p>The input attribute key used to identify a device or system to create a
* detector (an instance of the detector model) and then to route each input
* received to the appropriate detector (instance). This parameter uses a JSON-path
* expression in the message payload of each input to specify the attribute-value
* pair that is used to identify the device associated with the input.</p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p>The input attribute key used to identify a device or system to create a
* detector (an instance of the detector model) and then to route each input
* received to the appropriate detector (instance). This parameter uses a JSON-path
* expression in the message payload of each input to specify the attribute-value
* pair that is used to identify the device associated with the input.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>The input attribute key used to identify a device or system to create a
* detector (an instance of the detector model) and then to route each input
* received to the appropriate detector (instance). This parameter uses a JSON-path
* expression in the message payload of each input to specify the attribute-value
* pair that is used to identify the device associated with the input.</p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>The input attribute key used to identify a device or system to create a
* detector (an instance of the detector model) and then to route each input
* received to the appropriate detector (instance). This parameter uses a JSON-path
* expression in the message payload of each input to specify the attribute-value
* pair that is used to identify the device associated with the input.</p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>The input attribute key used to identify a device or system to create a
* detector (an instance of the detector model) and then to route each input
* received to the appropriate detector (instance). This parameter uses a JSON-path
* expression in the message payload of each input to specify the attribute-value
* pair that is used to identify the device associated with the input.</p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p>The input attribute key used to identify a device or system to create a
* detector (an instance of the detector model) and then to route each input
* received to the appropriate detector (instance). This parameter uses a JSON-path
* expression in the message payload of each input to specify the attribute-value
* pair that is used to identify the device associated with the input.</p>
*/
inline CreateDetectorModelRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p>The input attribute key used to identify a device or system to create a
* detector (an instance of the detector model) and then to route each input
* received to the appropriate detector (instance). This parameter uses a JSON-path
* expression in the message payload of each input to specify the attribute-value
* pair that is used to identify the device associated with the input.</p>
*/
inline CreateDetectorModelRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>The input attribute key used to identify a device or system to create a
* detector (an instance of the detector model) and then to route each input
* received to the appropriate detector (instance). This parameter uses a JSON-path
* expression in the message payload of each input to specify the attribute-value
* pair that is used to identify the device associated with the input.</p>
*/
inline CreateDetectorModelRequest& WithKey(const char* value) { SetKey(value); return *this;}
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline CreateDetectorModelRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline CreateDetectorModelRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline CreateDetectorModelRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* <p>Metadata that can be used to manage the detector model.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>Metadata that can be used to manage the detector model.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Metadata that can be used to manage the detector model.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Metadata that can be used to manage the detector model.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Metadata that can be used to manage the detector model.</p>
*/
inline CreateDetectorModelRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>Metadata that can be used to manage the detector model.</p>
*/
inline CreateDetectorModelRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Metadata that can be used to manage the detector model.</p>
*/
inline CreateDetectorModelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>Metadata that can be used to manage the detector model.</p>
*/
inline CreateDetectorModelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline const EvaluationMethod& GetEvaluationMethod() const{ return m_evaluationMethod; }
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline bool EvaluationMethodHasBeenSet() const { return m_evaluationMethodHasBeenSet; }
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline void SetEvaluationMethod(const EvaluationMethod& value) { m_evaluationMethodHasBeenSet = true; m_evaluationMethod = value; }
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline void SetEvaluationMethod(EvaluationMethod&& value) { m_evaluationMethodHasBeenSet = true; m_evaluationMethod = std::move(value); }
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline CreateDetectorModelRequest& WithEvaluationMethod(const EvaluationMethod& value) { SetEvaluationMethod(value); return *this;}
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline CreateDetectorModelRequest& WithEvaluationMethod(EvaluationMethod&& value) { SetEvaluationMethod(std::move(value)); return *this;}
private:
Aws::String m_detectorModelName;
bool m_detectorModelNameHasBeenSet;
DetectorModelDefinition m_detectorModelDefinition;
bool m_detectorModelDefinitionHasBeenSet;
Aws::String m_detectorModelDescription;
bool m_detectorModelDescriptionHasBeenSet;
Aws::String m_key;
bool m_keyHasBeenSet;
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
EvaluationMethod m_evaluationMethod;
bool m_evaluationMethodHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // 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/IoTEvents_EXPORTS.h>
#include <aws/iotevents/model/DetectorModelConfiguration.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
class AWS_IOTEVENTS_API CreateDetectorModelResult
{
public:
CreateDetectorModelResult();
CreateDetectorModelResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateDetectorModelResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about how the detector model is configured.</p>
*/
inline const DetectorModelConfiguration& GetDetectorModelConfiguration() const{ return m_detectorModelConfiguration; }
/**
* <p>Information about how the detector model is configured.</p>
*/
inline void SetDetectorModelConfiguration(const DetectorModelConfiguration& value) { m_detectorModelConfiguration = value; }
/**
* <p>Information about how the detector model is configured.</p>
*/
inline void SetDetectorModelConfiguration(DetectorModelConfiguration&& value) { m_detectorModelConfiguration = std::move(value); }
/**
* <p>Information about how the detector model is configured.</p>
*/
inline CreateDetectorModelResult& WithDetectorModelConfiguration(const DetectorModelConfiguration& value) { SetDetectorModelConfiguration(value); return *this;}
/**
* <p>Information about how the detector model is configured.</p>
*/
inline CreateDetectorModelResult& WithDetectorModelConfiguration(DetectorModelConfiguration&& value) { SetDetectorModelConfiguration(std::move(value)); return *this;}
private:
DetectorModelConfiguration m_detectorModelConfiguration;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,208 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/IoTEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/InputDefinition.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotevents/model/Tag.h>
#include <utility>
namespace Aws
{
namespace IoTEvents
{
namespace Model
{
/**
*/
class AWS_IOTEVENTS_API CreateInputRequest : public IoTEventsRequest
{
public:
CreateInputRequest();
// 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 "CreateInput"; }
Aws::String SerializePayload() const override;
/**
* <p>The name you want to give to the input.</p>
*/
inline const Aws::String& GetInputName() const{ return m_inputName; }
/**
* <p>The name you want to give to the input.</p>
*/
inline bool InputNameHasBeenSet() const { return m_inputNameHasBeenSet; }
/**
* <p>The name you want to give to the input.</p>
*/
inline void SetInputName(const Aws::String& value) { m_inputNameHasBeenSet = true; m_inputName = value; }
/**
* <p>The name you want to give to the input.</p>
*/
inline void SetInputName(Aws::String&& value) { m_inputNameHasBeenSet = true; m_inputName = std::move(value); }
/**
* <p>The name you want to give to the input.</p>
*/
inline void SetInputName(const char* value) { m_inputNameHasBeenSet = true; m_inputName.assign(value); }
/**
* <p>The name you want to give to the input.</p>
*/
inline CreateInputRequest& WithInputName(const Aws::String& value) { SetInputName(value); return *this;}
/**
* <p>The name you want to give to the input.</p>
*/
inline CreateInputRequest& WithInputName(Aws::String&& value) { SetInputName(std::move(value)); return *this;}
/**
* <p>The name you want to give to the input.</p>
*/
inline CreateInputRequest& WithInputName(const char* value) { SetInputName(value); return *this;}
/**
* <p>A brief description of the input.</p>
*/
inline const Aws::String& GetInputDescription() const{ return m_inputDescription; }
/**
* <p>A brief description of the input.</p>
*/
inline bool InputDescriptionHasBeenSet() const { return m_inputDescriptionHasBeenSet; }
/**
* <p>A brief description of the input.</p>
*/
inline void SetInputDescription(const Aws::String& value) { m_inputDescriptionHasBeenSet = true; m_inputDescription = value; }
/**
* <p>A brief description of the input.</p>
*/
inline void SetInputDescription(Aws::String&& value) { m_inputDescriptionHasBeenSet = true; m_inputDescription = std::move(value); }
/**
* <p>A brief description of the input.</p>
*/
inline void SetInputDescription(const char* value) { m_inputDescriptionHasBeenSet = true; m_inputDescription.assign(value); }
/**
* <p>A brief description of the input.</p>
*/
inline CreateInputRequest& WithInputDescription(const Aws::String& value) { SetInputDescription(value); return *this;}
/**
* <p>A brief description of the input.</p>
*/
inline CreateInputRequest& WithInputDescription(Aws::String&& value) { SetInputDescription(std::move(value)); return *this;}
/**
* <p>A brief description of the input.</p>
*/
inline CreateInputRequest& WithInputDescription(const char* value) { SetInputDescription(value); return *this;}
/**
* <p>The definition of the input.</p>
*/
inline const InputDefinition& GetInputDefinition() const{ return m_inputDefinition; }
/**
* <p>The definition of the input.</p>
*/
inline bool InputDefinitionHasBeenSet() const { return m_inputDefinitionHasBeenSet; }
/**
* <p>The definition of the input.</p>
*/
inline void SetInputDefinition(const InputDefinition& value) { m_inputDefinitionHasBeenSet = true; m_inputDefinition = value; }
/**
* <p>The definition of the input.</p>
*/
inline void SetInputDefinition(InputDefinition&& value) { m_inputDefinitionHasBeenSet = true; m_inputDefinition = std::move(value); }
/**
* <p>The definition of the input.</p>
*/
inline CreateInputRequest& WithInputDefinition(const InputDefinition& value) { SetInputDefinition(value); return *this;}
/**
* <p>The definition of the input.</p>
*/
inline CreateInputRequest& WithInputDefinition(InputDefinition&& value) { SetInputDefinition(std::move(value)); return *this;}
/**
* <p>Metadata that can be used to manage the input.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>Metadata that can be used to manage the input.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>Metadata that can be used to manage the input.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>Metadata that can be used to manage the input.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>Metadata that can be used to manage the input.</p>
*/
inline CreateInputRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>Metadata that can be used to manage the input.</p>
*/
inline CreateInputRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>Metadata that can be used to manage the input.</p>
*/
inline CreateInputRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>Metadata that can be used to manage the input.</p>
*/
inline CreateInputRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_inputName;
bool m_inputNameHasBeenSet;
Aws::String m_inputDescription;
bool m_inputDescriptionHasBeenSet;
InputDefinition m_inputDefinition;
bool m_inputDefinitionHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // 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/IoTEvents_EXPORTS.h>
#include <aws/iotevents/model/InputConfiguration.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
class AWS_IOTEVENTS_API CreateInputResult
{
public:
CreateInputResult();
CreateInputResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateInputResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the configuration of the input.</p>
*/
inline const InputConfiguration& GetInputConfiguration() const{ return m_inputConfiguration; }
/**
* <p>Information about the configuration of the input.</p>
*/
inline void SetInputConfiguration(const InputConfiguration& value) { m_inputConfiguration = value; }
/**
* <p>Information about the configuration of the input.</p>
*/
inline void SetInputConfiguration(InputConfiguration&& value) { m_inputConfiguration = std::move(value); }
/**
* <p>Information about the configuration of the input.</p>
*/
inline CreateInputResult& WithInputConfiguration(const InputConfiguration& value) { SetInputConfiguration(value); return *this;}
/**
* <p>Information about the configuration of the input.</p>
*/
inline CreateInputResult& WithInputConfiguration(InputConfiguration&& value) { SetInputConfiguration(std::move(value)); return *this;}
private:
InputConfiguration m_inputConfiguration;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/IoTEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoTEvents
{
namespace Model
{
/**
*/
class AWS_IOTEVENTS_API DeleteDetectorModelRequest : public IoTEventsRequest
{
public:
DeleteDetectorModelRequest();
// 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 "DeleteDetectorModel"; }
Aws::String SerializePayload() const override;
/**
* <p>The name of the detector model to be deleted.</p>
*/
inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
/**
* <p>The name of the detector model to be deleted.</p>
*/
inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
/**
* <p>The name of the detector model to be deleted.</p>
*/
inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
/**
* <p>The name of the detector model to be deleted.</p>
*/
inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
/**
* <p>The name of the detector model to be deleted.</p>
*/
inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
/**
* <p>The name of the detector model to be deleted.</p>
*/
inline DeleteDetectorModelRequest& WithDetectorModelName(const Aws::String& value) { SetDetectorModelName(value); return *this;}
/**
* <p>The name of the detector model to be deleted.</p>
*/
inline DeleteDetectorModelRequest& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
/**
* <p>The name of the detector model to be deleted.</p>
*/
inline DeleteDetectorModelRequest& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;}
private:
Aws::String m_detectorModelName;
bool m_detectorModelNameHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

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

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/IoTEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoTEvents
{
namespace Model
{
/**
*/
class AWS_IOTEVENTS_API DeleteInputRequest : public IoTEventsRequest
{
public:
DeleteInputRequest();
// 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 "DeleteInput"; }
Aws::String SerializePayload() const override;
/**
* <p>The name of the input to delete.</p>
*/
inline const Aws::String& GetInputName() const{ return m_inputName; }
/**
* <p>The name of the input to delete.</p>
*/
inline bool InputNameHasBeenSet() const { return m_inputNameHasBeenSet; }
/**
* <p>The name of the input to delete.</p>
*/
inline void SetInputName(const Aws::String& value) { m_inputNameHasBeenSet = true; m_inputName = value; }
/**
* <p>The name of the input to delete.</p>
*/
inline void SetInputName(Aws::String&& value) { m_inputNameHasBeenSet = true; m_inputName = std::move(value); }
/**
* <p>The name of the input to delete.</p>
*/
inline void SetInputName(const char* value) { m_inputNameHasBeenSet = true; m_inputName.assign(value); }
/**
* <p>The name of the input to delete.</p>
*/
inline DeleteInputRequest& WithInputName(const Aws::String& value) { SetInputName(value); return *this;}
/**
* <p>The name of the input to delete.</p>
*/
inline DeleteInputRequest& WithInputName(Aws::String&& value) { SetInputName(std::move(value)); return *this;}
/**
* <p>The name of the input to delete.</p>
*/
inline DeleteInputRequest& WithInputName(const char* value) { SetInputName(value); return *this;}
private:
Aws::String m_inputName;
bool m_inputNameHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

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

View File

@@ -0,0 +1,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/IoTEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace IoTEvents
{
namespace Model
{
/**
*/
class AWS_IOTEVENTS_API DescribeDetectorModelRequest : public IoTEventsRequest
{
public:
DescribeDetectorModelRequest();
// 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 "DescribeDetectorModel"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The name of the detector model.</p>
*/
inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
/**
* <p>The name of the detector model.</p>
*/
inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
/**
* <p>The name of the detector model.</p>
*/
inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
/**
* <p>The name of the detector model.</p>
*/
inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
/**
* <p>The name of the detector model.</p>
*/
inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
/**
* <p>The name of the detector model.</p>
*/
inline DescribeDetectorModelRequest& WithDetectorModelName(const Aws::String& value) { SetDetectorModelName(value); return *this;}
/**
* <p>The name of the detector model.</p>
*/
inline DescribeDetectorModelRequest& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
/**
* <p>The name of the detector model.</p>
*/
inline DescribeDetectorModelRequest& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;}
/**
* <p>The version of the detector model.</p>
*/
inline const Aws::String& GetDetectorModelVersion() const{ return m_detectorModelVersion; }
/**
* <p>The version of the detector model.</p>
*/
inline bool DetectorModelVersionHasBeenSet() const { return m_detectorModelVersionHasBeenSet; }
/**
* <p>The version of the detector model.</p>
*/
inline void SetDetectorModelVersion(const Aws::String& value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion = value; }
/**
* <p>The version of the detector model.</p>
*/
inline void SetDetectorModelVersion(Aws::String&& value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion = std::move(value); }
/**
* <p>The version of the detector model.</p>
*/
inline void SetDetectorModelVersion(const char* value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion.assign(value); }
/**
* <p>The version of the detector model.</p>
*/
inline DescribeDetectorModelRequest& WithDetectorModelVersion(const Aws::String& value) { SetDetectorModelVersion(value); return *this;}
/**
* <p>The version of the detector model.</p>
*/
inline DescribeDetectorModelRequest& WithDetectorModelVersion(Aws::String&& value) { SetDetectorModelVersion(std::move(value)); return *this;}
/**
* <p>The version of the detector model.</p>
*/
inline DescribeDetectorModelRequest& WithDetectorModelVersion(const char* value) { SetDetectorModelVersion(value); return *this;}
private:
Aws::String m_detectorModelName;
bool m_detectorModelNameHasBeenSet;
Aws::String m_detectorModelVersion;
bool m_detectorModelVersionHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // 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/IoTEvents_EXPORTS.h>
#include <aws/iotevents/model/DetectorModel.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
class AWS_IOTEVENTS_API DescribeDetectorModelResult
{
public:
DescribeDetectorModelResult();
DescribeDetectorModelResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeDetectorModelResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the detector model.</p>
*/
inline const DetectorModel& GetDetectorModel() const{ return m_detectorModel; }
/**
* <p>Information about the detector model.</p>
*/
inline void SetDetectorModel(const DetectorModel& value) { m_detectorModel = value; }
/**
* <p>Information about the detector model.</p>
*/
inline void SetDetectorModel(DetectorModel&& value) { m_detectorModel = std::move(value); }
/**
* <p>Information about the detector model.</p>
*/
inline DescribeDetectorModelResult& WithDetectorModel(const DetectorModel& value) { SetDetectorModel(value); return *this;}
/**
* <p>Information about the detector model.</p>
*/
inline DescribeDetectorModelResult& WithDetectorModel(DetectorModel&& value) { SetDetectorModel(std::move(value)); return *this;}
private:
DetectorModel m_detectorModel;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/IoTEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace IoTEvents
{
namespace Model
{
/**
*/
class AWS_IOTEVENTS_API DescribeInputRequest : public IoTEventsRequest
{
public:
DescribeInputRequest();
// 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 "DescribeInput"; }
Aws::String SerializePayload() const override;
/**
* <p>The name of the input.</p>
*/
inline const Aws::String& GetInputName() const{ return m_inputName; }
/**
* <p>The name of the input.</p>
*/
inline bool InputNameHasBeenSet() const { return m_inputNameHasBeenSet; }
/**
* <p>The name of the input.</p>
*/
inline void SetInputName(const Aws::String& value) { m_inputNameHasBeenSet = true; m_inputName = value; }
/**
* <p>The name of the input.</p>
*/
inline void SetInputName(Aws::String&& value) { m_inputNameHasBeenSet = true; m_inputName = std::move(value); }
/**
* <p>The name of the input.</p>
*/
inline void SetInputName(const char* value) { m_inputNameHasBeenSet = true; m_inputName.assign(value); }
/**
* <p>The name of the input.</p>
*/
inline DescribeInputRequest& WithInputName(const Aws::String& value) { SetInputName(value); return *this;}
/**
* <p>The name of the input.</p>
*/
inline DescribeInputRequest& WithInputName(Aws::String&& value) { SetInputName(std::move(value)); return *this;}
/**
* <p>The name of the input.</p>
*/
inline DescribeInputRequest& WithInputName(const char* value) { SetInputName(value); return *this;}
private:
Aws::String m_inputName;
bool m_inputNameHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // 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/IoTEvents_EXPORTS.h>
#include <aws/iotevents/model/Input.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
class AWS_IOTEVENTS_API DescribeInputResult
{
public:
DescribeInputResult();
DescribeInputResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeInputResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the input.</p>
*/
inline const Input& GetInput() const{ return m_input; }
/**
* <p>Information about the input.</p>
*/
inline void SetInput(const Input& value) { m_input = value; }
/**
* <p>Information about the input.</p>
*/
inline void SetInput(Input&& value) { m_input = std::move(value); }
/**
* <p>Information about the input.</p>
*/
inline DescribeInputResult& WithInput(const Input& value) { SetInput(value); return *this;}
/**
* <p>Information about the input.</p>
*/
inline DescribeInputResult& WithInput(Input&& value) { SetInput(std::move(value)); return *this;}
private:
Input m_input;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/IoTEventsRequest.h>
namespace Aws
{
namespace IoTEvents
{
namespace Model
{
/**
*/
class AWS_IOTEVENTS_API DescribeLoggingOptionsRequest : public IoTEventsRequest
{
public:
DescribeLoggingOptionsRequest();
// 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 "DescribeLoggingOptions"; }
Aws::String SerializePayload() const override;
};
} // namespace Model
} // namespace IoTEvents
} // 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/IoTEvents_EXPORTS.h>
#include <aws/iotevents/model/LoggingOptions.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
class AWS_IOTEVENTS_API DescribeLoggingOptionsResult
{
public:
DescribeLoggingOptionsResult();
DescribeLoggingOptionsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeLoggingOptionsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The current settings of the AWS IoT Events logging options.</p>
*/
inline const LoggingOptions& GetLoggingOptions() const{ return m_loggingOptions; }
/**
* <p>The current settings of the AWS IoT Events logging options.</p>
*/
inline void SetLoggingOptions(const LoggingOptions& value) { m_loggingOptions = value; }
/**
* <p>The current settings of the AWS IoT Events logging options.</p>
*/
inline void SetLoggingOptions(LoggingOptions&& value) { m_loggingOptions = std::move(value); }
/**
* <p>The current settings of the AWS IoT Events logging options.</p>
*/
inline DescribeLoggingOptionsResult& WithLoggingOptions(const LoggingOptions& value) { SetLoggingOptions(value); return *this;}
/**
* <p>The current settings of the AWS IoT Events logging options.</p>
*/
inline DescribeLoggingOptionsResult& WithLoggingOptions(LoggingOptions&& value) { SetLoggingOptions(std::move(value)); return *this;}
private:
LoggingOptions m_loggingOptions;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,141 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_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 IoTEvents
{
namespace Model
{
/**
* <p>The detector model and the specific detectors (instances) for which the
* logging level is given.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/DetectorDebugOption">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API DetectorDebugOption
{
public:
DetectorDebugOption();
DetectorDebugOption(Aws::Utils::Json::JsonView jsonValue);
DetectorDebugOption& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the detector model.</p>
*/
inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
/**
* <p>The name of the detector model.</p>
*/
inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
/**
* <p>The name of the detector model.</p>
*/
inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
/**
* <p>The name of the detector model.</p>
*/
inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
/**
* <p>The name of the detector model.</p>
*/
inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
/**
* <p>The name of the detector model.</p>
*/
inline DetectorDebugOption& WithDetectorModelName(const Aws::String& value) { SetDetectorModelName(value); return *this;}
/**
* <p>The name of the detector model.</p>
*/
inline DetectorDebugOption& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
/**
* <p>The name of the detector model.</p>
*/
inline DetectorDebugOption& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;}
/**
* <p>The value of the input attribute key used to create the detector (the
* instance of the detector model).</p>
*/
inline const Aws::String& GetKeyValue() const{ return m_keyValue; }
/**
* <p>The value of the input attribute key used to create the detector (the
* instance of the detector model).</p>
*/
inline bool KeyValueHasBeenSet() const { return m_keyValueHasBeenSet; }
/**
* <p>The value of the input attribute key used to create the detector (the
* instance of the detector model).</p>
*/
inline void SetKeyValue(const Aws::String& value) { m_keyValueHasBeenSet = true; m_keyValue = value; }
/**
* <p>The value of the input attribute key used to create the detector (the
* instance of the detector model).</p>
*/
inline void SetKeyValue(Aws::String&& value) { m_keyValueHasBeenSet = true; m_keyValue = std::move(value); }
/**
* <p>The value of the input attribute key used to create the detector (the
* instance of the detector model).</p>
*/
inline void SetKeyValue(const char* value) { m_keyValueHasBeenSet = true; m_keyValue.assign(value); }
/**
* <p>The value of the input attribute key used to create the detector (the
* instance of the detector model).</p>
*/
inline DetectorDebugOption& WithKeyValue(const Aws::String& value) { SetKeyValue(value); return *this;}
/**
* <p>The value of the input attribute key used to create the detector (the
* instance of the detector model).</p>
*/
inline DetectorDebugOption& WithKeyValue(Aws::String&& value) { SetKeyValue(std::move(value)); return *this;}
/**
* <p>The value of the input attribute key used to create the detector (the
* instance of the detector model).</p>
*/
inline DetectorDebugOption& 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 IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,113 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/model/DetectorModelDefinition.h>
#include <aws/iotevents/model/DetectorModelConfiguration.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Information about the detector model.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/DetectorModel">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API DetectorModel
{
public:
DetectorModel();
DetectorModel(Aws::Utils::Json::JsonView jsonValue);
DetectorModel& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Information that defines how a detector operates.</p>
*/
inline const DetectorModelDefinition& GetDetectorModelDefinition() const{ return m_detectorModelDefinition; }
/**
* <p>Information that defines how a detector operates.</p>
*/
inline bool DetectorModelDefinitionHasBeenSet() const { return m_detectorModelDefinitionHasBeenSet; }
/**
* <p>Information that defines how a detector operates.</p>
*/
inline void SetDetectorModelDefinition(const DetectorModelDefinition& value) { m_detectorModelDefinitionHasBeenSet = true; m_detectorModelDefinition = value; }
/**
* <p>Information that defines how a detector operates.</p>
*/
inline void SetDetectorModelDefinition(DetectorModelDefinition&& value) { m_detectorModelDefinitionHasBeenSet = true; m_detectorModelDefinition = std::move(value); }
/**
* <p>Information that defines how a detector operates.</p>
*/
inline DetectorModel& WithDetectorModelDefinition(const DetectorModelDefinition& value) { SetDetectorModelDefinition(value); return *this;}
/**
* <p>Information that defines how a detector operates.</p>
*/
inline DetectorModel& WithDetectorModelDefinition(DetectorModelDefinition&& value) { SetDetectorModelDefinition(std::move(value)); return *this;}
/**
* <p>Information about how the detector is configured.</p>
*/
inline const DetectorModelConfiguration& GetDetectorModelConfiguration() const{ return m_detectorModelConfiguration; }
/**
* <p>Information about how the detector is configured.</p>
*/
inline bool DetectorModelConfigurationHasBeenSet() const { return m_detectorModelConfigurationHasBeenSet; }
/**
* <p>Information about how the detector is configured.</p>
*/
inline void SetDetectorModelConfiguration(const DetectorModelConfiguration& value) { m_detectorModelConfigurationHasBeenSet = true; m_detectorModelConfiguration = value; }
/**
* <p>Information about how the detector is configured.</p>
*/
inline void SetDetectorModelConfiguration(DetectorModelConfiguration&& value) { m_detectorModelConfigurationHasBeenSet = true; m_detectorModelConfiguration = std::move(value); }
/**
* <p>Information about how the detector is configured.</p>
*/
inline DetectorModel& WithDetectorModelConfiguration(const DetectorModelConfiguration& value) { SetDetectorModelConfiguration(value); return *this;}
/**
* <p>Information about how the detector is configured.</p>
*/
inline DetectorModel& WithDetectorModelConfiguration(DetectorModelConfiguration&& value) { SetDetectorModelConfiguration(std::move(value)); return *this;}
private:
DetectorModelDefinition m_detectorModelDefinition;
bool m_detectorModelDefinitionHasBeenSet;
DetectorModelConfiguration m_detectorModelConfiguration;
bool m_detectorModelConfigurationHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,518 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/iotevents/model/DetectorModelVersionStatus.h>
#include <aws/iotevents/model/EvaluationMethod.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Information about how the detector model is configured.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/DetectorModelConfiguration">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API DetectorModelConfiguration
{
public:
DetectorModelConfiguration();
DetectorModelConfiguration(Aws::Utils::Json::JsonView jsonValue);
DetectorModelConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the detector model.</p>
*/
inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
/**
* <p>The name of the detector model.</p>
*/
inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
/**
* <p>The name of the detector model.</p>
*/
inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
/**
* <p>The name of the detector model.</p>
*/
inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
/**
* <p>The name of the detector model.</p>
*/
inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
/**
* <p>The name of the detector model.</p>
*/
inline DetectorModelConfiguration& WithDetectorModelName(const Aws::String& value) { SetDetectorModelName(value); return *this;}
/**
* <p>The name of the detector model.</p>
*/
inline DetectorModelConfiguration& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
/**
* <p>The name of the detector model.</p>
*/
inline DetectorModelConfiguration& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;}
/**
* <p>The version of the detector model.</p>
*/
inline const Aws::String& GetDetectorModelVersion() const{ return m_detectorModelVersion; }
/**
* <p>The version of the detector model.</p>
*/
inline bool DetectorModelVersionHasBeenSet() const { return m_detectorModelVersionHasBeenSet; }
/**
* <p>The version of the detector model.</p>
*/
inline void SetDetectorModelVersion(const Aws::String& value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion = value; }
/**
* <p>The version of the detector model.</p>
*/
inline void SetDetectorModelVersion(Aws::String&& value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion = std::move(value); }
/**
* <p>The version of the detector model.</p>
*/
inline void SetDetectorModelVersion(const char* value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion.assign(value); }
/**
* <p>The version of the detector model.</p>
*/
inline DetectorModelConfiguration& WithDetectorModelVersion(const Aws::String& value) { SetDetectorModelVersion(value); return *this;}
/**
* <p>The version of the detector model.</p>
*/
inline DetectorModelConfiguration& WithDetectorModelVersion(Aws::String&& value) { SetDetectorModelVersion(std::move(value)); return *this;}
/**
* <p>The version of the detector model.</p>
*/
inline DetectorModelConfiguration& WithDetectorModelVersion(const char* value) { SetDetectorModelVersion(value); return *this;}
/**
* <p>A brief description of the detector model.</p>
*/
inline const Aws::String& GetDetectorModelDescription() const{ return m_detectorModelDescription; }
/**
* <p>A brief description of the detector model.</p>
*/
inline bool DetectorModelDescriptionHasBeenSet() const { return m_detectorModelDescriptionHasBeenSet; }
/**
* <p>A brief description of the detector model.</p>
*/
inline void SetDetectorModelDescription(const Aws::String& value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription = value; }
/**
* <p>A brief description of the detector model.</p>
*/
inline void SetDetectorModelDescription(Aws::String&& value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription = std::move(value); }
/**
* <p>A brief description of the detector model.</p>
*/
inline void SetDetectorModelDescription(const char* value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription.assign(value); }
/**
* <p>A brief description of the detector model.</p>
*/
inline DetectorModelConfiguration& WithDetectorModelDescription(const Aws::String& value) { SetDetectorModelDescription(value); return *this;}
/**
* <p>A brief description of the detector model.</p>
*/
inline DetectorModelConfiguration& WithDetectorModelDescription(Aws::String&& value) { SetDetectorModelDescription(std::move(value)); return *this;}
/**
* <p>A brief description of the detector model.</p>
*/
inline DetectorModelConfiguration& WithDetectorModelDescription(const char* value) { SetDetectorModelDescription(value); return *this;}
/**
* <p>The ARN of the detector model.</p>
*/
inline const Aws::String& GetDetectorModelArn() const{ return m_detectorModelArn; }
/**
* <p>The ARN of the detector model.</p>
*/
inline bool DetectorModelArnHasBeenSet() const { return m_detectorModelArnHasBeenSet; }
/**
* <p>The ARN of the detector model.</p>
*/
inline void SetDetectorModelArn(const Aws::String& value) { m_detectorModelArnHasBeenSet = true; m_detectorModelArn = value; }
/**
* <p>The ARN of the detector model.</p>
*/
inline void SetDetectorModelArn(Aws::String&& value) { m_detectorModelArnHasBeenSet = true; m_detectorModelArn = std::move(value); }
/**
* <p>The ARN of the detector model.</p>
*/
inline void SetDetectorModelArn(const char* value) { m_detectorModelArnHasBeenSet = true; m_detectorModelArn.assign(value); }
/**
* <p>The ARN of the detector model.</p>
*/
inline DetectorModelConfiguration& WithDetectorModelArn(const Aws::String& value) { SetDetectorModelArn(value); return *this;}
/**
* <p>The ARN of the detector model.</p>
*/
inline DetectorModelConfiguration& WithDetectorModelArn(Aws::String&& value) { SetDetectorModelArn(std::move(value)); return *this;}
/**
* <p>The ARN of the detector model.</p>
*/
inline DetectorModelConfiguration& WithDetectorModelArn(const char* value) { SetDetectorModelArn(value); return *this;}
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline DetectorModelConfiguration& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline DetectorModelConfiguration& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline DetectorModelConfiguration& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* <p>The time the detector model was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The time the detector model was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>The time the detector model was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>The time the detector model was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>The time the detector model was created.</p>
*/
inline DetectorModelConfiguration& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The time the detector model was created.</p>
*/
inline DetectorModelConfiguration& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>The time the detector model was last updated.</p>
*/
inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
/**
* <p>The time the detector model was last updated.</p>
*/
inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
/**
* <p>The time the detector model was last updated.</p>
*/
inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
/**
* <p>The time the detector model was last updated.</p>
*/
inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); }
/**
* <p>The time the detector model was last updated.</p>
*/
inline DetectorModelConfiguration& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;}
/**
* <p>The time the detector model was last updated.</p>
*/
inline DetectorModelConfiguration& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;}
/**
* <p>The status of the detector model.</p>
*/
inline const DetectorModelVersionStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the detector model.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the detector model.</p>
*/
inline void SetStatus(const DetectorModelVersionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the detector model.</p>
*/
inline void SetStatus(DetectorModelVersionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the detector model.</p>
*/
inline DetectorModelConfiguration& WithStatus(const DetectorModelVersionStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the detector model.</p>
*/
inline DetectorModelConfiguration& WithStatus(DetectorModelVersionStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The value used to identify a detector instance. When a device or system sends
* input, a new detector instance with a unique key value is created. AWS IoT
* Events can continue to route input to its corresponding detector instance based
* on this identifying information. </p> <p>This parameter uses a JSON-path
* expression to select the attribute-value pair in the message payload that is
* used for identification. To route the message to the correct detector instance,
* the device must send a message payload that contains the same
* attribute-value.</p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p>The value used to identify a detector instance. When a device or system sends
* input, a new detector instance with a unique key value is created. AWS IoT
* Events can continue to route input to its corresponding detector instance based
* on this identifying information. </p> <p>This parameter uses a JSON-path
* expression to select the attribute-value pair in the message payload that is
* used for identification. To route the message to the correct detector instance,
* the device must send a message payload that contains the same
* attribute-value.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>The value used to identify a detector instance. When a device or system sends
* input, a new detector instance with a unique key value is created. AWS IoT
* Events can continue to route input to its corresponding detector instance based
* on this identifying information. </p> <p>This parameter uses a JSON-path
* expression to select the attribute-value pair in the message payload that is
* used for identification. To route the message to the correct detector instance,
* the device must send a message payload that contains the same
* attribute-value.</p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>The value used to identify a detector instance. When a device or system sends
* input, a new detector instance with a unique key value is created. AWS IoT
* Events can continue to route input to its corresponding detector instance based
* on this identifying information. </p> <p>This parameter uses a JSON-path
* expression to select the attribute-value pair in the message payload that is
* used for identification. To route the message to the correct detector instance,
* the device must send a message payload that contains the same
* attribute-value.</p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>The value used to identify a detector instance. When a device or system sends
* input, a new detector instance with a unique key value is created. AWS IoT
* Events can continue to route input to its corresponding detector instance based
* on this identifying information. </p> <p>This parameter uses a JSON-path
* expression to select the attribute-value pair in the message payload that is
* used for identification. To route the message to the correct detector instance,
* the device must send a message payload that contains the same
* attribute-value.</p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p>The value used to identify a detector instance. When a device or system sends
* input, a new detector instance with a unique key value is created. AWS IoT
* Events can continue to route input to its corresponding detector instance based
* on this identifying information. </p> <p>This parameter uses a JSON-path
* expression to select the attribute-value pair in the message payload that is
* used for identification. To route the message to the correct detector instance,
* the device must send a message payload that contains the same
* attribute-value.</p>
*/
inline DetectorModelConfiguration& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p>The value used to identify a detector instance. When a device or system sends
* input, a new detector instance with a unique key value is created. AWS IoT
* Events can continue to route input to its corresponding detector instance based
* on this identifying information. </p> <p>This parameter uses a JSON-path
* expression to select the attribute-value pair in the message payload that is
* used for identification. To route the message to the correct detector instance,
* the device must send a message payload that contains the same
* attribute-value.</p>
*/
inline DetectorModelConfiguration& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>The value used to identify a detector instance. When a device or system sends
* input, a new detector instance with a unique key value is created. AWS IoT
* Events can continue to route input to its corresponding detector instance based
* on this identifying information. </p> <p>This parameter uses a JSON-path
* expression to select the attribute-value pair in the message payload that is
* used for identification. To route the message to the correct detector instance,
* the device must send a message payload that contains the same
* attribute-value.</p>
*/
inline DetectorModelConfiguration& WithKey(const char* value) { SetKey(value); return *this;}
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline const EvaluationMethod& GetEvaluationMethod() const{ return m_evaluationMethod; }
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline bool EvaluationMethodHasBeenSet() const { return m_evaluationMethodHasBeenSet; }
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline void SetEvaluationMethod(const EvaluationMethod& value) { m_evaluationMethodHasBeenSet = true; m_evaluationMethod = value; }
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline void SetEvaluationMethod(EvaluationMethod&& value) { m_evaluationMethodHasBeenSet = true; m_evaluationMethod = std::move(value); }
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline DetectorModelConfiguration& WithEvaluationMethod(const EvaluationMethod& value) { SetEvaluationMethod(value); return *this;}
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline DetectorModelConfiguration& WithEvaluationMethod(EvaluationMethod&& value) { SetEvaluationMethod(std::move(value)); return *this;}
private:
Aws::String m_detectorModelName;
bool m_detectorModelNameHasBeenSet;
Aws::String m_detectorModelVersion;
bool m_detectorModelVersionHasBeenSet;
Aws::String m_detectorModelDescription;
bool m_detectorModelDescriptionHasBeenSet;
Aws::String m_detectorModelArn;
bool m_detectorModelArnHasBeenSet;
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Utils::DateTime m_lastUpdateTime;
bool m_lastUpdateTimeHasBeenSet;
DetectorModelVersionStatus m_status;
bool m_statusHasBeenSet;
Aws::String m_key;
bool m_keyHasBeenSet;
EvaluationMethod m_evaluationMethod;
bool m_evaluationMethodHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,135 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/State.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Information that defines how a detector operates.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/DetectorModelDefinition">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API DetectorModelDefinition
{
public:
DetectorModelDefinition();
DetectorModelDefinition(Aws::Utils::Json::JsonView jsonValue);
DetectorModelDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Information about the states of the detector.</p>
*/
inline const Aws::Vector<State>& GetStates() const{ return m_states; }
/**
* <p>Information about the states of the detector.</p>
*/
inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
/**
* <p>Information about the states of the detector.</p>
*/
inline void SetStates(const Aws::Vector<State>& value) { m_statesHasBeenSet = true; m_states = value; }
/**
* <p>Information about the states of the detector.</p>
*/
inline void SetStates(Aws::Vector<State>&& value) { m_statesHasBeenSet = true; m_states = std::move(value); }
/**
* <p>Information about the states of the detector.</p>
*/
inline DetectorModelDefinition& WithStates(const Aws::Vector<State>& value) { SetStates(value); return *this;}
/**
* <p>Information about the states of the detector.</p>
*/
inline DetectorModelDefinition& WithStates(Aws::Vector<State>&& value) { SetStates(std::move(value)); return *this;}
/**
* <p>Information about the states of the detector.</p>
*/
inline DetectorModelDefinition& AddStates(const State& value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
/**
* <p>Information about the states of the detector.</p>
*/
inline DetectorModelDefinition& AddStates(State&& value) { m_statesHasBeenSet = true; m_states.push_back(std::move(value)); return *this; }
/**
* <p>The state that is entered at the creation of each detector (instance).</p>
*/
inline const Aws::String& GetInitialStateName() const{ return m_initialStateName; }
/**
* <p>The state that is entered at the creation of each detector (instance).</p>
*/
inline bool InitialStateNameHasBeenSet() const { return m_initialStateNameHasBeenSet; }
/**
* <p>The state that is entered at the creation of each detector (instance).</p>
*/
inline void SetInitialStateName(const Aws::String& value) { m_initialStateNameHasBeenSet = true; m_initialStateName = value; }
/**
* <p>The state that is entered at the creation of each detector (instance).</p>
*/
inline void SetInitialStateName(Aws::String&& value) { m_initialStateNameHasBeenSet = true; m_initialStateName = std::move(value); }
/**
* <p>The state that is entered at the creation of each detector (instance).</p>
*/
inline void SetInitialStateName(const char* value) { m_initialStateNameHasBeenSet = true; m_initialStateName.assign(value); }
/**
* <p>The state that is entered at the creation of each detector (instance).</p>
*/
inline DetectorModelDefinition& WithInitialStateName(const Aws::String& value) { SetInitialStateName(value); return *this;}
/**
* <p>The state that is entered at the creation of each detector (instance).</p>
*/
inline DetectorModelDefinition& WithInitialStateName(Aws::String&& value) { SetInitialStateName(std::move(value)); return *this;}
/**
* <p>The state that is entered at the creation of each detector (instance).</p>
*/
inline DetectorModelDefinition& WithInitialStateName(const char* value) { SetInitialStateName(value); return *this;}
private:
Aws::Vector<State> m_states;
bool m_statesHasBeenSet;
Aws::String m_initialStateName;
bool m_initialStateNameHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,167 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_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 IoTEvents
{
namespace Model
{
/**
* <p>Information about the detector model.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/DetectorModelSummary">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API DetectorModelSummary
{
public:
DetectorModelSummary();
DetectorModelSummary(Aws::Utils::Json::JsonView jsonValue);
DetectorModelSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the detector model.</p>
*/
inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
/**
* <p>The name of the detector model.</p>
*/
inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
/**
* <p>The name of the detector model.</p>
*/
inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
/**
* <p>The name of the detector model.</p>
*/
inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
/**
* <p>The name of the detector model.</p>
*/
inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
/**
* <p>The name of the detector model.</p>
*/
inline DetectorModelSummary& WithDetectorModelName(const Aws::String& value) { SetDetectorModelName(value); return *this;}
/**
* <p>The name of the detector model.</p>
*/
inline DetectorModelSummary& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
/**
* <p>The name of the detector model.</p>
*/
inline DetectorModelSummary& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;}
/**
* <p>A brief description of the detector model.</p>
*/
inline const Aws::String& GetDetectorModelDescription() const{ return m_detectorModelDescription; }
/**
* <p>A brief description of the detector model.</p>
*/
inline bool DetectorModelDescriptionHasBeenSet() const { return m_detectorModelDescriptionHasBeenSet; }
/**
* <p>A brief description of the detector model.</p>
*/
inline void SetDetectorModelDescription(const Aws::String& value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription = value; }
/**
* <p>A brief description of the detector model.</p>
*/
inline void SetDetectorModelDescription(Aws::String&& value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription = std::move(value); }
/**
* <p>A brief description of the detector model.</p>
*/
inline void SetDetectorModelDescription(const char* value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription.assign(value); }
/**
* <p>A brief description of the detector model.</p>
*/
inline DetectorModelSummary& WithDetectorModelDescription(const Aws::String& value) { SetDetectorModelDescription(value); return *this;}
/**
* <p>A brief description of the detector model.</p>
*/
inline DetectorModelSummary& WithDetectorModelDescription(Aws::String&& value) { SetDetectorModelDescription(std::move(value)); return *this;}
/**
* <p>A brief description of the detector model.</p>
*/
inline DetectorModelSummary& WithDetectorModelDescription(const char* value) { SetDetectorModelDescription(value); return *this;}
/**
* <p>The time the detector model was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The time the detector model was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>The time the detector model was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>The time the detector model was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>The time the detector model was created.</p>
*/
inline DetectorModelSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The time the detector model was created.</p>
*/
inline DetectorModelSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
private:
Aws::String m_detectorModelName;
bool m_detectorModelNameHasBeenSet;
Aws::String m_detectorModelDescription;
bool m_detectorModelDescriptionHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace IoTEvents
{
namespace Model
{
enum class DetectorModelVersionStatus
{
NOT_SET,
ACTIVE,
ACTIVATING,
INACTIVE,
DEPRECATED,
DRAFT,
PAUSED,
FAILED
};
namespace DetectorModelVersionStatusMapper
{
AWS_IOTEVENTS_API DetectorModelVersionStatus GetDetectorModelVersionStatusForName(const Aws::String& name);
AWS_IOTEVENTS_API Aws::String GetNameForDetectorModelVersionStatus(DetectorModelVersionStatus value);
} // namespace DetectorModelVersionStatusMapper
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,373 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/iotevents/model/DetectorModelVersionStatus.h>
#include <aws/iotevents/model/EvaluationMethod.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Information about the detector model version.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/DetectorModelVersionSummary">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API DetectorModelVersionSummary
{
public:
DetectorModelVersionSummary();
DetectorModelVersionSummary(Aws::Utils::Json::JsonView jsonValue);
DetectorModelVersionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the detector model.</p>
*/
inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
/**
* <p>The name of the detector model.</p>
*/
inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
/**
* <p>The name of the detector model.</p>
*/
inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
/**
* <p>The name of the detector model.</p>
*/
inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
/**
* <p>The name of the detector model.</p>
*/
inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
/**
* <p>The name of the detector model.</p>
*/
inline DetectorModelVersionSummary& WithDetectorModelName(const Aws::String& value) { SetDetectorModelName(value); return *this;}
/**
* <p>The name of the detector model.</p>
*/
inline DetectorModelVersionSummary& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
/**
* <p>The name of the detector model.</p>
*/
inline DetectorModelVersionSummary& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;}
/**
* <p>The ID of the detector model version.</p>
*/
inline const Aws::String& GetDetectorModelVersion() const{ return m_detectorModelVersion; }
/**
* <p>The ID of the detector model version.</p>
*/
inline bool DetectorModelVersionHasBeenSet() const { return m_detectorModelVersionHasBeenSet; }
/**
* <p>The ID of the detector model version.</p>
*/
inline void SetDetectorModelVersion(const Aws::String& value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion = value; }
/**
* <p>The ID of the detector model version.</p>
*/
inline void SetDetectorModelVersion(Aws::String&& value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion = std::move(value); }
/**
* <p>The ID of the detector model version.</p>
*/
inline void SetDetectorModelVersion(const char* value) { m_detectorModelVersionHasBeenSet = true; m_detectorModelVersion.assign(value); }
/**
* <p>The ID of the detector model version.</p>
*/
inline DetectorModelVersionSummary& WithDetectorModelVersion(const Aws::String& value) { SetDetectorModelVersion(value); return *this;}
/**
* <p>The ID of the detector model version.</p>
*/
inline DetectorModelVersionSummary& WithDetectorModelVersion(Aws::String&& value) { SetDetectorModelVersion(std::move(value)); return *this;}
/**
* <p>The ID of the detector model version.</p>
*/
inline DetectorModelVersionSummary& WithDetectorModelVersion(const char* value) { SetDetectorModelVersion(value); return *this;}
/**
* <p>The ARN of the detector model version.</p>
*/
inline const Aws::String& GetDetectorModelArn() const{ return m_detectorModelArn; }
/**
* <p>The ARN of the detector model version.</p>
*/
inline bool DetectorModelArnHasBeenSet() const { return m_detectorModelArnHasBeenSet; }
/**
* <p>The ARN of the detector model version.</p>
*/
inline void SetDetectorModelArn(const Aws::String& value) { m_detectorModelArnHasBeenSet = true; m_detectorModelArn = value; }
/**
* <p>The ARN of the detector model version.</p>
*/
inline void SetDetectorModelArn(Aws::String&& value) { m_detectorModelArnHasBeenSet = true; m_detectorModelArn = std::move(value); }
/**
* <p>The ARN of the detector model version.</p>
*/
inline void SetDetectorModelArn(const char* value) { m_detectorModelArnHasBeenSet = true; m_detectorModelArn.assign(value); }
/**
* <p>The ARN of the detector model version.</p>
*/
inline DetectorModelVersionSummary& WithDetectorModelArn(const Aws::String& value) { SetDetectorModelArn(value); return *this;}
/**
* <p>The ARN of the detector model version.</p>
*/
inline DetectorModelVersionSummary& WithDetectorModelArn(Aws::String&& value) { SetDetectorModelArn(std::move(value)); return *this;}
/**
* <p>The ARN of the detector model version.</p>
*/
inline DetectorModelVersionSummary& WithDetectorModelArn(const char* value) { SetDetectorModelArn(value); return *this;}
/**
* <p>The ARN of the role that grants the detector model permission to perform its
* tasks.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p>The ARN of the role that grants the detector model permission to perform its
* tasks.</p>
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* <p>The ARN of the role that grants the detector model permission to perform its
* tasks.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* <p>The ARN of the role that grants the detector model permission to perform its
* tasks.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* <p>The ARN of the role that grants the detector model permission to perform its
* tasks.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* <p>The ARN of the role that grants the detector model permission to perform its
* tasks.</p>
*/
inline DetectorModelVersionSummary& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p>The ARN of the role that grants the detector model permission to perform its
* tasks.</p>
*/
inline DetectorModelVersionSummary& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p>The ARN of the role that grants the detector model permission to perform its
* tasks.</p>
*/
inline DetectorModelVersionSummary& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* <p>The time the detector model version was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The time the detector model version was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>The time the detector model version was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>The time the detector model version was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>The time the detector model version was created.</p>
*/
inline DetectorModelVersionSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The time the detector model version was created.</p>
*/
inline DetectorModelVersionSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>The last time the detector model version was updated.</p>
*/
inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
/**
* <p>The last time the detector model version was updated.</p>
*/
inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
/**
* <p>The last time the detector model version was updated.</p>
*/
inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
/**
* <p>The last time the detector model version was updated.</p>
*/
inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); }
/**
* <p>The last time the detector model version was updated.</p>
*/
inline DetectorModelVersionSummary& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;}
/**
* <p>The last time the detector model version was updated.</p>
*/
inline DetectorModelVersionSummary& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;}
/**
* <p>The status of the detector model version.</p>
*/
inline const DetectorModelVersionStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the detector model version.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the detector model version.</p>
*/
inline void SetStatus(const DetectorModelVersionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the detector model version.</p>
*/
inline void SetStatus(DetectorModelVersionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the detector model version.</p>
*/
inline DetectorModelVersionSummary& WithStatus(const DetectorModelVersionStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the detector model version.</p>
*/
inline DetectorModelVersionSummary& WithStatus(DetectorModelVersionStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline const EvaluationMethod& GetEvaluationMethod() const{ return m_evaluationMethod; }
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline bool EvaluationMethodHasBeenSet() const { return m_evaluationMethodHasBeenSet; }
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline void SetEvaluationMethod(const EvaluationMethod& value) { m_evaluationMethodHasBeenSet = true; m_evaluationMethod = value; }
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline void SetEvaluationMethod(EvaluationMethod&& value) { m_evaluationMethodHasBeenSet = true; m_evaluationMethod = std::move(value); }
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline DetectorModelVersionSummary& WithEvaluationMethod(const EvaluationMethod& value) { SetEvaluationMethod(value); return *this;}
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline DetectorModelVersionSummary& WithEvaluationMethod(EvaluationMethod&& value) { SetEvaluationMethod(std::move(value)); return *this;}
private:
Aws::String m_detectorModelName;
bool m_detectorModelNameHasBeenSet;
Aws::String m_detectorModelVersion;
bool m_detectorModelVersionHasBeenSet;
Aws::String m_detectorModelArn;
bool m_detectorModelArnHasBeenSet;
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Utils::DateTime m_lastUpdateTime;
bool m_lastUpdateTimeHasBeenSet;
DetectorModelVersionStatus m_status;
bool m_statusHasBeenSet;
EvaluationMethod m_evaluationMethod;
bool m_evaluationMethodHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,651 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/Payload.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Defines an action to write to the Amazon DynamoDB table that you created. The
* standard action payload contains all attribute-value pairs that have the
* information about the detector model instance and the event that triggered the
* action. You can also customize the <a
* href="https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html">payload</a>.
* One column of the DynamoDB table receives all attribute-value pairs in the
* payload that you specify.</p> <p>The <code>tableName</code> and
* <code>hashKeyField</code> values must match the table name and the partition key
* of the DynamoDB table. </p> <p>If the DynamoDB table also has a sort key,
* you must specify <code>rangeKeyField</code>. The <code>rangeKeyField</code>
* value must match the sort key.</p> <p/> <p>The <code>hashKeyValue</code>
* and <code>rangeKeyValue</code> use substitution templates. These templates
* provide data at runtime. The syntax is <code>${sql-expression}</code>.</p>
* <p>You can use expressions for parameters that are string data type. For more
* information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html">Expressions</a>
* in the <i>AWS IoT Events Developer Guide</i>.</p> <p>If the defined
* payload type is a string, <code>DynamoDBAction</code> writes non-JSON data to
* the DynamoDB table as binary data. The DynamoDB console displays the data as
* Base64-encoded text. The <code>payloadField</code> is
* <code>&lt;payload-field&gt;_raw</code>.</p> <p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/DynamoDBAction">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API DynamoDBAction
{
public:
DynamoDBAction();
DynamoDBAction(Aws::Utils::Json::JsonView jsonValue);
DynamoDBAction& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The data type for the hash key (also called the partition key). You can
* specify the following values:</p> <ul> <li> <p> <code>STRING</code> - The hash
* key is a string.</p> </li> <li> <p> <code>NUMBER</code> - The hash key is a
* number.</p> </li> </ul> <p>If you don't specify <code>hashKeyType</code>, the
* default value is <code>STRING</code>.</p>
*/
inline const Aws::String& GetHashKeyType() const{ return m_hashKeyType; }
/**
* <p>The data type for the hash key (also called the partition key). You can
* specify the following values:</p> <ul> <li> <p> <code>STRING</code> - The hash
* key is a string.</p> </li> <li> <p> <code>NUMBER</code> - The hash key is a
* number.</p> </li> </ul> <p>If you don't specify <code>hashKeyType</code>, the
* default value is <code>STRING</code>.</p>
*/
inline bool HashKeyTypeHasBeenSet() const { return m_hashKeyTypeHasBeenSet; }
/**
* <p>The data type for the hash key (also called the partition key). You can
* specify the following values:</p> <ul> <li> <p> <code>STRING</code> - The hash
* key is a string.</p> </li> <li> <p> <code>NUMBER</code> - The hash key is a
* number.</p> </li> </ul> <p>If you don't specify <code>hashKeyType</code>, the
* default value is <code>STRING</code>.</p>
*/
inline void SetHashKeyType(const Aws::String& value) { m_hashKeyTypeHasBeenSet = true; m_hashKeyType = value; }
/**
* <p>The data type for the hash key (also called the partition key). You can
* specify the following values:</p> <ul> <li> <p> <code>STRING</code> - The hash
* key is a string.</p> </li> <li> <p> <code>NUMBER</code> - The hash key is a
* number.</p> </li> </ul> <p>If you don't specify <code>hashKeyType</code>, the
* default value is <code>STRING</code>.</p>
*/
inline void SetHashKeyType(Aws::String&& value) { m_hashKeyTypeHasBeenSet = true; m_hashKeyType = std::move(value); }
/**
* <p>The data type for the hash key (also called the partition key). You can
* specify the following values:</p> <ul> <li> <p> <code>STRING</code> - The hash
* key is a string.</p> </li> <li> <p> <code>NUMBER</code> - The hash key is a
* number.</p> </li> </ul> <p>If you don't specify <code>hashKeyType</code>, the
* default value is <code>STRING</code>.</p>
*/
inline void SetHashKeyType(const char* value) { m_hashKeyTypeHasBeenSet = true; m_hashKeyType.assign(value); }
/**
* <p>The data type for the hash key (also called the partition key). You can
* specify the following values:</p> <ul> <li> <p> <code>STRING</code> - The hash
* key is a string.</p> </li> <li> <p> <code>NUMBER</code> - The hash key is a
* number.</p> </li> </ul> <p>If you don't specify <code>hashKeyType</code>, the
* default value is <code>STRING</code>.</p>
*/
inline DynamoDBAction& WithHashKeyType(const Aws::String& value) { SetHashKeyType(value); return *this;}
/**
* <p>The data type for the hash key (also called the partition key). You can
* specify the following values:</p> <ul> <li> <p> <code>STRING</code> - The hash
* key is a string.</p> </li> <li> <p> <code>NUMBER</code> - The hash key is a
* number.</p> </li> </ul> <p>If you don't specify <code>hashKeyType</code>, the
* default value is <code>STRING</code>.</p>
*/
inline DynamoDBAction& WithHashKeyType(Aws::String&& value) { SetHashKeyType(std::move(value)); return *this;}
/**
* <p>The data type for the hash key (also called the partition key). You can
* specify the following values:</p> <ul> <li> <p> <code>STRING</code> - The hash
* key is a string.</p> </li> <li> <p> <code>NUMBER</code> - The hash key is a
* number.</p> </li> </ul> <p>If you don't specify <code>hashKeyType</code>, the
* default value is <code>STRING</code>.</p>
*/
inline DynamoDBAction& WithHashKeyType(const char* value) { SetHashKeyType(value); return *this;}
/**
* <p>The name of the hash key (also called the partition key).</p>
*/
inline const Aws::String& GetHashKeyField() const{ return m_hashKeyField; }
/**
* <p>The name of the hash key (also called the partition key).</p>
*/
inline bool HashKeyFieldHasBeenSet() const { return m_hashKeyFieldHasBeenSet; }
/**
* <p>The name of the hash key (also called the partition key).</p>
*/
inline void SetHashKeyField(const Aws::String& value) { m_hashKeyFieldHasBeenSet = true; m_hashKeyField = value; }
/**
* <p>The name of the hash key (also called the partition key).</p>
*/
inline void SetHashKeyField(Aws::String&& value) { m_hashKeyFieldHasBeenSet = true; m_hashKeyField = std::move(value); }
/**
* <p>The name of the hash key (also called the partition key).</p>
*/
inline void SetHashKeyField(const char* value) { m_hashKeyFieldHasBeenSet = true; m_hashKeyField.assign(value); }
/**
* <p>The name of the hash key (also called the partition key).</p>
*/
inline DynamoDBAction& WithHashKeyField(const Aws::String& value) { SetHashKeyField(value); return *this;}
/**
* <p>The name of the hash key (also called the partition key).</p>
*/
inline DynamoDBAction& WithHashKeyField(Aws::String&& value) { SetHashKeyField(std::move(value)); return *this;}
/**
* <p>The name of the hash key (also called the partition key).</p>
*/
inline DynamoDBAction& WithHashKeyField(const char* value) { SetHashKeyField(value); return *this;}
/**
* <p>The value of the hash key (also called the partition key).</p>
*/
inline const Aws::String& GetHashKeyValue() const{ return m_hashKeyValue; }
/**
* <p>The value of the hash key (also called the partition key).</p>
*/
inline bool HashKeyValueHasBeenSet() const { return m_hashKeyValueHasBeenSet; }
/**
* <p>The value of the hash key (also called the partition key).</p>
*/
inline void SetHashKeyValue(const Aws::String& value) { m_hashKeyValueHasBeenSet = true; m_hashKeyValue = value; }
/**
* <p>The value of the hash key (also called the partition key).</p>
*/
inline void SetHashKeyValue(Aws::String&& value) { m_hashKeyValueHasBeenSet = true; m_hashKeyValue = std::move(value); }
/**
* <p>The value of the hash key (also called the partition key).</p>
*/
inline void SetHashKeyValue(const char* value) { m_hashKeyValueHasBeenSet = true; m_hashKeyValue.assign(value); }
/**
* <p>The value of the hash key (also called the partition key).</p>
*/
inline DynamoDBAction& WithHashKeyValue(const Aws::String& value) { SetHashKeyValue(value); return *this;}
/**
* <p>The value of the hash key (also called the partition key).</p>
*/
inline DynamoDBAction& WithHashKeyValue(Aws::String&& value) { SetHashKeyValue(std::move(value)); return *this;}
/**
* <p>The value of the hash key (also called the partition key).</p>
*/
inline DynamoDBAction& WithHashKeyValue(const char* value) { SetHashKeyValue(value); return *this;}
/**
* <p>The data type for the range key (also called the sort key), You can specify
* the following values:</p> <ul> <li> <p> <code>STRING</code> - The range key is a
* string.</p> </li> <li> <p> <code>NUMBER</code> - The range key is number.</p>
* </li> </ul> <p>If you don't specify <code>rangeKeyField</code>, the default
* value is <code>STRING</code>.</p>
*/
inline const Aws::String& GetRangeKeyType() const{ return m_rangeKeyType; }
/**
* <p>The data type for the range key (also called the sort key), You can specify
* the following values:</p> <ul> <li> <p> <code>STRING</code> - The range key is a
* string.</p> </li> <li> <p> <code>NUMBER</code> - The range key is number.</p>
* </li> </ul> <p>If you don't specify <code>rangeKeyField</code>, the default
* value is <code>STRING</code>.</p>
*/
inline bool RangeKeyTypeHasBeenSet() const { return m_rangeKeyTypeHasBeenSet; }
/**
* <p>The data type for the range key (also called the sort key), You can specify
* the following values:</p> <ul> <li> <p> <code>STRING</code> - The range key is a
* string.</p> </li> <li> <p> <code>NUMBER</code> - The range key is number.</p>
* </li> </ul> <p>If you don't specify <code>rangeKeyField</code>, the default
* value is <code>STRING</code>.</p>
*/
inline void SetRangeKeyType(const Aws::String& value) { m_rangeKeyTypeHasBeenSet = true; m_rangeKeyType = value; }
/**
* <p>The data type for the range key (also called the sort key), You can specify
* the following values:</p> <ul> <li> <p> <code>STRING</code> - The range key is a
* string.</p> </li> <li> <p> <code>NUMBER</code> - The range key is number.</p>
* </li> </ul> <p>If you don't specify <code>rangeKeyField</code>, the default
* value is <code>STRING</code>.</p>
*/
inline void SetRangeKeyType(Aws::String&& value) { m_rangeKeyTypeHasBeenSet = true; m_rangeKeyType = std::move(value); }
/**
* <p>The data type for the range key (also called the sort key), You can specify
* the following values:</p> <ul> <li> <p> <code>STRING</code> - The range key is a
* string.</p> </li> <li> <p> <code>NUMBER</code> - The range key is number.</p>
* </li> </ul> <p>If you don't specify <code>rangeKeyField</code>, the default
* value is <code>STRING</code>.</p>
*/
inline void SetRangeKeyType(const char* value) { m_rangeKeyTypeHasBeenSet = true; m_rangeKeyType.assign(value); }
/**
* <p>The data type for the range key (also called the sort key), You can specify
* the following values:</p> <ul> <li> <p> <code>STRING</code> - The range key is a
* string.</p> </li> <li> <p> <code>NUMBER</code> - The range key is number.</p>
* </li> </ul> <p>If you don't specify <code>rangeKeyField</code>, the default
* value is <code>STRING</code>.</p>
*/
inline DynamoDBAction& WithRangeKeyType(const Aws::String& value) { SetRangeKeyType(value); return *this;}
/**
* <p>The data type for the range key (also called the sort key), You can specify
* the following values:</p> <ul> <li> <p> <code>STRING</code> - The range key is a
* string.</p> </li> <li> <p> <code>NUMBER</code> - The range key is number.</p>
* </li> </ul> <p>If you don't specify <code>rangeKeyField</code>, the default
* value is <code>STRING</code>.</p>
*/
inline DynamoDBAction& WithRangeKeyType(Aws::String&& value) { SetRangeKeyType(std::move(value)); return *this;}
/**
* <p>The data type for the range key (also called the sort key), You can specify
* the following values:</p> <ul> <li> <p> <code>STRING</code> - The range key is a
* string.</p> </li> <li> <p> <code>NUMBER</code> - The range key is number.</p>
* </li> </ul> <p>If you don't specify <code>rangeKeyField</code>, the default
* value is <code>STRING</code>.</p>
*/
inline DynamoDBAction& WithRangeKeyType(const char* value) { SetRangeKeyType(value); return *this;}
/**
* <p>The name of the range key (also called the sort key).</p>
*/
inline const Aws::String& GetRangeKeyField() const{ return m_rangeKeyField; }
/**
* <p>The name of the range key (also called the sort key).</p>
*/
inline bool RangeKeyFieldHasBeenSet() const { return m_rangeKeyFieldHasBeenSet; }
/**
* <p>The name of the range key (also called the sort key).</p>
*/
inline void SetRangeKeyField(const Aws::String& value) { m_rangeKeyFieldHasBeenSet = true; m_rangeKeyField = value; }
/**
* <p>The name of the range key (also called the sort key).</p>
*/
inline void SetRangeKeyField(Aws::String&& value) { m_rangeKeyFieldHasBeenSet = true; m_rangeKeyField = std::move(value); }
/**
* <p>The name of the range key (also called the sort key).</p>
*/
inline void SetRangeKeyField(const char* value) { m_rangeKeyFieldHasBeenSet = true; m_rangeKeyField.assign(value); }
/**
* <p>The name of the range key (also called the sort key).</p>
*/
inline DynamoDBAction& WithRangeKeyField(const Aws::String& value) { SetRangeKeyField(value); return *this;}
/**
* <p>The name of the range key (also called the sort key).</p>
*/
inline DynamoDBAction& WithRangeKeyField(Aws::String&& value) { SetRangeKeyField(std::move(value)); return *this;}
/**
* <p>The name of the range key (also called the sort key).</p>
*/
inline DynamoDBAction& WithRangeKeyField(const char* value) { SetRangeKeyField(value); return *this;}
/**
* <p>The value of the range key (also called the sort key).</p>
*/
inline const Aws::String& GetRangeKeyValue() const{ return m_rangeKeyValue; }
/**
* <p>The value of the range key (also called the sort key).</p>
*/
inline bool RangeKeyValueHasBeenSet() const { return m_rangeKeyValueHasBeenSet; }
/**
* <p>The value of the range key (also called the sort key).</p>
*/
inline void SetRangeKeyValue(const Aws::String& value) { m_rangeKeyValueHasBeenSet = true; m_rangeKeyValue = value; }
/**
* <p>The value of the range key (also called the sort key).</p>
*/
inline void SetRangeKeyValue(Aws::String&& value) { m_rangeKeyValueHasBeenSet = true; m_rangeKeyValue = std::move(value); }
/**
* <p>The value of the range key (also called the sort key).</p>
*/
inline void SetRangeKeyValue(const char* value) { m_rangeKeyValueHasBeenSet = true; m_rangeKeyValue.assign(value); }
/**
* <p>The value of the range key (also called the sort key).</p>
*/
inline DynamoDBAction& WithRangeKeyValue(const Aws::String& value) { SetRangeKeyValue(value); return *this;}
/**
* <p>The value of the range key (also called the sort key).</p>
*/
inline DynamoDBAction& WithRangeKeyValue(Aws::String&& value) { SetRangeKeyValue(std::move(value)); return *this;}
/**
* <p>The value of the range key (also called the sort key).</p>
*/
inline DynamoDBAction& WithRangeKeyValue(const char* value) { SetRangeKeyValue(value); return *this;}
/**
* <p>The type of operation to perform. You can specify the following values: </p>
* <ul> <li> <p> <code>INSERT</code> - Insert data as a new item into the DynamoDB
* table. This item uses the specified hash key as a partition key. If you
* specified a range key, the item uses the range key as a sort key.</p> </li> <li>
* <p> <code>UPDATE</code> - Update an existing item of the DynamoDB table with new
* data. This item's partition key must match the specified hash key. If you
* specified a range key, the range key must match the item's sort key.</p> </li>
* <li> <p> <code>DELETE</code> - Delete an existing item of the DynamoDB table.
* This item's partition key must match the specified hash key. If you specified a
* range key, the range key must match the item's sort key.</p> </li> </ul> <p>If
* you don't specify this parameter, AWS IoT Events triggers the
* <code>INSERT</code> operation.</p>
*/
inline const Aws::String& GetOperation() const{ return m_operation; }
/**
* <p>The type of operation to perform. You can specify the following values: </p>
* <ul> <li> <p> <code>INSERT</code> - Insert data as a new item into the DynamoDB
* table. This item uses the specified hash key as a partition key. If you
* specified a range key, the item uses the range key as a sort key.</p> </li> <li>
* <p> <code>UPDATE</code> - Update an existing item of the DynamoDB table with new
* data. This item's partition key must match the specified hash key. If you
* specified a range key, the range key must match the item's sort key.</p> </li>
* <li> <p> <code>DELETE</code> - Delete an existing item of the DynamoDB table.
* This item's partition key must match the specified hash key. If you specified a
* range key, the range key must match the item's sort key.</p> </li> </ul> <p>If
* you don't specify this parameter, AWS IoT Events triggers the
* <code>INSERT</code> operation.</p>
*/
inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
/**
* <p>The type of operation to perform. You can specify the following values: </p>
* <ul> <li> <p> <code>INSERT</code> - Insert data as a new item into the DynamoDB
* table. This item uses the specified hash key as a partition key. If you
* specified a range key, the item uses the range key as a sort key.</p> </li> <li>
* <p> <code>UPDATE</code> - Update an existing item of the DynamoDB table with new
* data. This item's partition key must match the specified hash key. If you
* specified a range key, the range key must match the item's sort key.</p> </li>
* <li> <p> <code>DELETE</code> - Delete an existing item of the DynamoDB table.
* This item's partition key must match the specified hash key. If you specified a
* range key, the range key must match the item's sort key.</p> </li> </ul> <p>If
* you don't specify this parameter, AWS IoT Events triggers the
* <code>INSERT</code> operation.</p>
*/
inline void SetOperation(const Aws::String& value) { m_operationHasBeenSet = true; m_operation = value; }
/**
* <p>The type of operation to perform. You can specify the following values: </p>
* <ul> <li> <p> <code>INSERT</code> - Insert data as a new item into the DynamoDB
* table. This item uses the specified hash key as a partition key. If you
* specified a range key, the item uses the range key as a sort key.</p> </li> <li>
* <p> <code>UPDATE</code> - Update an existing item of the DynamoDB table with new
* data. This item's partition key must match the specified hash key. If you
* specified a range key, the range key must match the item's sort key.</p> </li>
* <li> <p> <code>DELETE</code> - Delete an existing item of the DynamoDB table.
* This item's partition key must match the specified hash key. If you specified a
* range key, the range key must match the item's sort key.</p> </li> </ul> <p>If
* you don't specify this parameter, AWS IoT Events triggers the
* <code>INSERT</code> operation.</p>
*/
inline void SetOperation(Aws::String&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); }
/**
* <p>The type of operation to perform. You can specify the following values: </p>
* <ul> <li> <p> <code>INSERT</code> - Insert data as a new item into the DynamoDB
* table. This item uses the specified hash key as a partition key. If you
* specified a range key, the item uses the range key as a sort key.</p> </li> <li>
* <p> <code>UPDATE</code> - Update an existing item of the DynamoDB table with new
* data. This item's partition key must match the specified hash key. If you
* specified a range key, the range key must match the item's sort key.</p> </li>
* <li> <p> <code>DELETE</code> - Delete an existing item of the DynamoDB table.
* This item's partition key must match the specified hash key. If you specified a
* range key, the range key must match the item's sort key.</p> </li> </ul> <p>If
* you don't specify this parameter, AWS IoT Events triggers the
* <code>INSERT</code> operation.</p>
*/
inline void SetOperation(const char* value) { m_operationHasBeenSet = true; m_operation.assign(value); }
/**
* <p>The type of operation to perform. You can specify the following values: </p>
* <ul> <li> <p> <code>INSERT</code> - Insert data as a new item into the DynamoDB
* table. This item uses the specified hash key as a partition key. If you
* specified a range key, the item uses the range key as a sort key.</p> </li> <li>
* <p> <code>UPDATE</code> - Update an existing item of the DynamoDB table with new
* data. This item's partition key must match the specified hash key. If you
* specified a range key, the range key must match the item's sort key.</p> </li>
* <li> <p> <code>DELETE</code> - Delete an existing item of the DynamoDB table.
* This item's partition key must match the specified hash key. If you specified a
* range key, the range key must match the item's sort key.</p> </li> </ul> <p>If
* you don't specify this parameter, AWS IoT Events triggers the
* <code>INSERT</code> operation.</p>
*/
inline DynamoDBAction& WithOperation(const Aws::String& value) { SetOperation(value); return *this;}
/**
* <p>The type of operation to perform. You can specify the following values: </p>
* <ul> <li> <p> <code>INSERT</code> - Insert data as a new item into the DynamoDB
* table. This item uses the specified hash key as a partition key. If you
* specified a range key, the item uses the range key as a sort key.</p> </li> <li>
* <p> <code>UPDATE</code> - Update an existing item of the DynamoDB table with new
* data. This item's partition key must match the specified hash key. If you
* specified a range key, the range key must match the item's sort key.</p> </li>
* <li> <p> <code>DELETE</code> - Delete an existing item of the DynamoDB table.
* This item's partition key must match the specified hash key. If you specified a
* range key, the range key must match the item's sort key.</p> </li> </ul> <p>If
* you don't specify this parameter, AWS IoT Events triggers the
* <code>INSERT</code> operation.</p>
*/
inline DynamoDBAction& WithOperation(Aws::String&& value) { SetOperation(std::move(value)); return *this;}
/**
* <p>The type of operation to perform. You can specify the following values: </p>
* <ul> <li> <p> <code>INSERT</code> - Insert data as a new item into the DynamoDB
* table. This item uses the specified hash key as a partition key. If you
* specified a range key, the item uses the range key as a sort key.</p> </li> <li>
* <p> <code>UPDATE</code> - Update an existing item of the DynamoDB table with new
* data. This item's partition key must match the specified hash key. If you
* specified a range key, the range key must match the item's sort key.</p> </li>
* <li> <p> <code>DELETE</code> - Delete an existing item of the DynamoDB table.
* This item's partition key must match the specified hash key. If you specified a
* range key, the range key must match the item's sort key.</p> </li> </ul> <p>If
* you don't specify this parameter, AWS IoT Events triggers the
* <code>INSERT</code> operation.</p>
*/
inline DynamoDBAction& WithOperation(const char* value) { SetOperation(value); return *this;}
/**
* <p>The name of the DynamoDB column that receives the action payload.</p> <p>If
* you don't specify this parameter, the name of the DynamoDB column is
* <code>payload</code>.</p>
*/
inline const Aws::String& GetPayloadField() const{ return m_payloadField; }
/**
* <p>The name of the DynamoDB column that receives the action payload.</p> <p>If
* you don't specify this parameter, the name of the DynamoDB column is
* <code>payload</code>.</p>
*/
inline bool PayloadFieldHasBeenSet() const { return m_payloadFieldHasBeenSet; }
/**
* <p>The name of the DynamoDB column that receives the action payload.</p> <p>If
* you don't specify this parameter, the name of the DynamoDB column is
* <code>payload</code>.</p>
*/
inline void SetPayloadField(const Aws::String& value) { m_payloadFieldHasBeenSet = true; m_payloadField = value; }
/**
* <p>The name of the DynamoDB column that receives the action payload.</p> <p>If
* you don't specify this parameter, the name of the DynamoDB column is
* <code>payload</code>.</p>
*/
inline void SetPayloadField(Aws::String&& value) { m_payloadFieldHasBeenSet = true; m_payloadField = std::move(value); }
/**
* <p>The name of the DynamoDB column that receives the action payload.</p> <p>If
* you don't specify this parameter, the name of the DynamoDB column is
* <code>payload</code>.</p>
*/
inline void SetPayloadField(const char* value) { m_payloadFieldHasBeenSet = true; m_payloadField.assign(value); }
/**
* <p>The name of the DynamoDB column that receives the action payload.</p> <p>If
* you don't specify this parameter, the name of the DynamoDB column is
* <code>payload</code>.</p>
*/
inline DynamoDBAction& WithPayloadField(const Aws::String& value) { SetPayloadField(value); return *this;}
/**
* <p>The name of the DynamoDB column that receives the action payload.</p> <p>If
* you don't specify this parameter, the name of the DynamoDB column is
* <code>payload</code>.</p>
*/
inline DynamoDBAction& WithPayloadField(Aws::String&& value) { SetPayloadField(std::move(value)); return *this;}
/**
* <p>The name of the DynamoDB column that receives the action payload.</p> <p>If
* you don't specify this parameter, the name of the DynamoDB column is
* <code>payload</code>.</p>
*/
inline DynamoDBAction& WithPayloadField(const char* value) { SetPayloadField(value); return *this;}
/**
* <p>The name of the DynamoDB table.</p>
*/
inline const Aws::String& GetTableName() const{ return m_tableName; }
/**
* <p>The name of the DynamoDB table.</p>
*/
inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
/**
* <p>The name of the DynamoDB table.</p>
*/
inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
/**
* <p>The name of the DynamoDB table.</p>
*/
inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
/**
* <p>The name of the DynamoDB table.</p>
*/
inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
/**
* <p>The name of the DynamoDB table.</p>
*/
inline DynamoDBAction& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
/**
* <p>The name of the DynamoDB table.</p>
*/
inline DynamoDBAction& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
/**
* <p>The name of the DynamoDB table.</p>
*/
inline DynamoDBAction& WithTableName(const char* value) { SetTableName(value); return *this;}
inline const Payload& GetPayload() const{ return m_payload; }
inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
inline void SetPayload(const Payload& value) { m_payloadHasBeenSet = true; m_payload = value; }
inline void SetPayload(Payload&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
inline DynamoDBAction& WithPayload(const Payload& value) { SetPayload(value); return *this;}
inline DynamoDBAction& WithPayload(Payload&& value) { SetPayload(std::move(value)); return *this;}
private:
Aws::String m_hashKeyType;
bool m_hashKeyTypeHasBeenSet;
Aws::String m_hashKeyField;
bool m_hashKeyFieldHasBeenSet;
Aws::String m_hashKeyValue;
bool m_hashKeyValueHasBeenSet;
Aws::String m_rangeKeyType;
bool m_rangeKeyTypeHasBeenSet;
Aws::String m_rangeKeyField;
bool m_rangeKeyFieldHasBeenSet;
Aws::String m_rangeKeyValue;
bool m_rangeKeyValueHasBeenSet;
Aws::String m_operation;
bool m_operationHasBeenSet;
Aws::String m_payloadField;
bool m_payloadFieldHasBeenSet;
Aws::String m_tableName;
bool m_tableNameHasBeenSet;
Payload m_payload;
bool m_payloadHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,121 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/Payload.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Defines an action to write to the Amazon DynamoDB table that you created. The
* default action payload contains all attribute-value pairs that have the
* information about the detector model instance and the event that triggered the
* action. You can also customize the <a
* href="https://docs.aws.amazon.com/iotevents/latest/apireference/API_Payload.html">payload</a>.
* A separate column of the DynamoDB table receives one attribute-value pair in the
* payload that you specify.</p> <p>The <code>type</code> value for
* <code>Payload</code> must be <code>JSON</code>.</p> <p>You can use
* expressions for parameters that are strings. For more information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html">Expressions</a>
* in the <i>AWS IoT Events Developer Guide</i>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/DynamoDBv2Action">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API DynamoDBv2Action
{
public:
DynamoDBv2Action();
DynamoDBv2Action(Aws::Utils::Json::JsonView jsonValue);
DynamoDBv2Action& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the DynamoDB table.</p>
*/
inline const Aws::String& GetTableName() const{ return m_tableName; }
/**
* <p>The name of the DynamoDB table.</p>
*/
inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
/**
* <p>The name of the DynamoDB table.</p>
*/
inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
/**
* <p>The name of the DynamoDB table.</p>
*/
inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
/**
* <p>The name of the DynamoDB table.</p>
*/
inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
/**
* <p>The name of the DynamoDB table.</p>
*/
inline DynamoDBv2Action& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
/**
* <p>The name of the DynamoDB table.</p>
*/
inline DynamoDBv2Action& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
/**
* <p>The name of the DynamoDB table.</p>
*/
inline DynamoDBv2Action& WithTableName(const char* value) { SetTableName(value); return *this;}
inline const Payload& GetPayload() const{ return m_payload; }
inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
inline void SetPayload(const Payload& value) { m_payloadHasBeenSet = true; m_payload = value; }
inline void SetPayload(Payload&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
inline DynamoDBv2Action& WithPayload(const Payload& value) { SetPayload(value); return *this;}
inline DynamoDBv2Action& WithPayload(Payload&& value) { SetPayload(std::move(value)); return *this;}
private:
Aws::String m_tableName;
bool m_tableNameHasBeenSet;
Payload m_payload;
bool m_payloadHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace IoTEvents
{
namespace Model
{
enum class EvaluationMethod
{
NOT_SET,
BATCH,
SERIAL
};
namespace EvaluationMethodMapper
{
AWS_IOTEVENTS_API EvaluationMethod GetEvaluationMethodForName(const Aws::String& name);
AWS_IOTEVENTS_API Aws::String GetNameForEvaluationMethod(EvaluationMethod value);
} // namespace EvaluationMethodMapper
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,203 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotevents/model/Action.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Specifies the <code>actions</code> to be performed when the
* <code>condition</code> evaluates to TRUE.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/Event">AWS API
* Reference</a></p>
*/
class AWS_IOTEVENTS_API Event
{
public:
Event();
Event(Aws::Utils::Json::JsonView jsonValue);
Event& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the event.</p>
*/
inline const Aws::String& GetEventName() const{ return m_eventName; }
/**
* <p>The name of the event.</p>
*/
inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; }
/**
* <p>The name of the event.</p>
*/
inline void SetEventName(const Aws::String& value) { m_eventNameHasBeenSet = true; m_eventName = value; }
/**
* <p>The name of the event.</p>
*/
inline void SetEventName(Aws::String&& value) { m_eventNameHasBeenSet = true; m_eventName = std::move(value); }
/**
* <p>The name of the event.</p>
*/
inline void SetEventName(const char* value) { m_eventNameHasBeenSet = true; m_eventName.assign(value); }
/**
* <p>The name of the event.</p>
*/
inline Event& WithEventName(const Aws::String& value) { SetEventName(value); return *this;}
/**
* <p>The name of the event.</p>
*/
inline Event& WithEventName(Aws::String&& value) { SetEventName(std::move(value)); return *this;}
/**
* <p>The name of the event.</p>
*/
inline Event& WithEventName(const char* value) { SetEventName(value); return *this;}
/**
* <p>Optional. The Boolean expression that, when TRUE, causes the
* <code>actions</code> to be performed. If not present, the actions are performed
* (=TRUE). If the expression result is not a Boolean value, the actions are not
* performed (=FALSE).</p>
*/
inline const Aws::String& GetCondition() const{ return m_condition; }
/**
* <p>Optional. The Boolean expression that, when TRUE, causes the
* <code>actions</code> to be performed. If not present, the actions are performed
* (=TRUE). If the expression result is not a Boolean value, the actions are not
* performed (=FALSE).</p>
*/
inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
/**
* <p>Optional. The Boolean expression that, when TRUE, causes the
* <code>actions</code> to be performed. If not present, the actions are performed
* (=TRUE). If the expression result is not a Boolean value, the actions are not
* performed (=FALSE).</p>
*/
inline void SetCondition(const Aws::String& value) { m_conditionHasBeenSet = true; m_condition = value; }
/**
* <p>Optional. The Boolean expression that, when TRUE, causes the
* <code>actions</code> to be performed. If not present, the actions are performed
* (=TRUE). If the expression result is not a Boolean value, the actions are not
* performed (=FALSE).</p>
*/
inline void SetCondition(Aws::String&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
/**
* <p>Optional. The Boolean expression that, when TRUE, causes the
* <code>actions</code> to be performed. If not present, the actions are performed
* (=TRUE). If the expression result is not a Boolean value, the actions are not
* performed (=FALSE).</p>
*/
inline void SetCondition(const char* value) { m_conditionHasBeenSet = true; m_condition.assign(value); }
/**
* <p>Optional. The Boolean expression that, when TRUE, causes the
* <code>actions</code> to be performed. If not present, the actions are performed
* (=TRUE). If the expression result is not a Boolean value, the actions are not
* performed (=FALSE).</p>
*/
inline Event& WithCondition(const Aws::String& value) { SetCondition(value); return *this;}
/**
* <p>Optional. The Boolean expression that, when TRUE, causes the
* <code>actions</code> to be performed. If not present, the actions are performed
* (=TRUE). If the expression result is not a Boolean value, the actions are not
* performed (=FALSE).</p>
*/
inline Event& WithCondition(Aws::String&& value) { SetCondition(std::move(value)); return *this;}
/**
* <p>Optional. The Boolean expression that, when TRUE, causes the
* <code>actions</code> to be performed. If not present, the actions are performed
* (=TRUE). If the expression result is not a Boolean value, the actions are not
* performed (=FALSE).</p>
*/
inline Event& WithCondition(const char* value) { SetCondition(value); return *this;}
/**
* <p>The actions to be performed.</p>
*/
inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
/**
* <p>The actions to be performed.</p>
*/
inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
/**
* <p>The actions to be performed.</p>
*/
inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
/**
* <p>The actions to be performed.</p>
*/
inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
/**
* <p>The actions to be performed.</p>
*/
inline Event& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
/**
* <p>The actions to be performed.</p>
*/
inline Event& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
/**
* <p>The actions to be performed.</p>
*/
inline Event& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
/**
* <p>The actions to be performed.</p>
*/
inline Event& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
private:
Aws::String m_eventName;
bool m_eventNameHasBeenSet;
Aws::String m_condition;
bool m_conditionHasBeenSet;
Aws::Vector<Action> m_actions;
bool m_actionsHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,199 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/Payload.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an Amazon Kinesis Data Firehose delivery
* stream.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/FirehoseAction">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API FirehoseAction
{
public:
FirehoseAction();
FirehoseAction(Aws::Utils::Json::JsonView jsonValue);
FirehoseAction& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the Kinesis Data Firehose delivery stream where the data is
* written.</p>
*/
inline const Aws::String& GetDeliveryStreamName() const{ return m_deliveryStreamName; }
/**
* <p>The name of the Kinesis Data Firehose delivery stream where the data is
* written.</p>
*/
inline bool DeliveryStreamNameHasBeenSet() const { return m_deliveryStreamNameHasBeenSet; }
/**
* <p>The name of the Kinesis Data Firehose delivery stream where the data is
* written.</p>
*/
inline void SetDeliveryStreamName(const Aws::String& value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName = value; }
/**
* <p>The name of the Kinesis Data Firehose delivery stream where the data is
* written.</p>
*/
inline void SetDeliveryStreamName(Aws::String&& value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName = std::move(value); }
/**
* <p>The name of the Kinesis Data Firehose delivery stream where the data is
* written.</p>
*/
inline void SetDeliveryStreamName(const char* value) { m_deliveryStreamNameHasBeenSet = true; m_deliveryStreamName.assign(value); }
/**
* <p>The name of the Kinesis Data Firehose delivery stream where the data is
* written.</p>
*/
inline FirehoseAction& WithDeliveryStreamName(const Aws::String& value) { SetDeliveryStreamName(value); return *this;}
/**
* <p>The name of the Kinesis Data Firehose delivery stream where the data is
* written.</p>
*/
inline FirehoseAction& WithDeliveryStreamName(Aws::String&& value) { SetDeliveryStreamName(std::move(value)); return *this;}
/**
* <p>The name of the Kinesis Data Firehose delivery stream where the data is
* written.</p>
*/
inline FirehoseAction& WithDeliveryStreamName(const char* value) { SetDeliveryStreamName(value); return *this;}
/**
* <p>A character separator that is used to separate records written to the Kinesis
* Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab),
* '\r\n' (Windows newline), ',' (comma).</p>
*/
inline const Aws::String& GetSeparator() const{ return m_separator; }
/**
* <p>A character separator that is used to separate records written to the Kinesis
* Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab),
* '\r\n' (Windows newline), ',' (comma).</p>
*/
inline bool SeparatorHasBeenSet() const { return m_separatorHasBeenSet; }
/**
* <p>A character separator that is used to separate records written to the Kinesis
* Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab),
* '\r\n' (Windows newline), ',' (comma).</p>
*/
inline void SetSeparator(const Aws::String& value) { m_separatorHasBeenSet = true; m_separator = value; }
/**
* <p>A character separator that is used to separate records written to the Kinesis
* Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab),
* '\r\n' (Windows newline), ',' (comma).</p>
*/
inline void SetSeparator(Aws::String&& value) { m_separatorHasBeenSet = true; m_separator = std::move(value); }
/**
* <p>A character separator that is used to separate records written to the Kinesis
* Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab),
* '\r\n' (Windows newline), ',' (comma).</p>
*/
inline void SetSeparator(const char* value) { m_separatorHasBeenSet = true; m_separator.assign(value); }
/**
* <p>A character separator that is used to separate records written to the Kinesis
* Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab),
* '\r\n' (Windows newline), ',' (comma).</p>
*/
inline FirehoseAction& WithSeparator(const Aws::String& value) { SetSeparator(value); return *this;}
/**
* <p>A character separator that is used to separate records written to the Kinesis
* Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab),
* '\r\n' (Windows newline), ',' (comma).</p>
*/
inline FirehoseAction& WithSeparator(Aws::String&& value) { SetSeparator(std::move(value)); return *this;}
/**
* <p>A character separator that is used to separate records written to the Kinesis
* Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab),
* '\r\n' (Windows newline), ',' (comma).</p>
*/
inline FirehoseAction& WithSeparator(const char* value) { SetSeparator(value); return *this;}
/**
* <p>You can configure the action payload when you send a message to an Amazon
* Kinesis Data Firehose delivery stream.</p>
*/
inline const Payload& GetPayload() const{ return m_payload; }
/**
* <p>You can configure the action payload when you send a message to an Amazon
* Kinesis Data Firehose delivery stream.</p>
*/
inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
/**
* <p>You can configure the action payload when you send a message to an Amazon
* Kinesis Data Firehose delivery stream.</p>
*/
inline void SetPayload(const Payload& value) { m_payloadHasBeenSet = true; m_payload = value; }
/**
* <p>You can configure the action payload when you send a message to an Amazon
* Kinesis Data Firehose delivery stream.</p>
*/
inline void SetPayload(Payload&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
/**
* <p>You can configure the action payload when you send a message to an Amazon
* Kinesis Data Firehose delivery stream.</p>
*/
inline FirehoseAction& WithPayload(const Payload& value) { SetPayload(value); return *this;}
/**
* <p>You can configure the action payload when you send a message to an Amazon
* Kinesis Data Firehose delivery stream.</p>
*/
inline FirehoseAction& WithPayload(Payload&& value) { SetPayload(std::move(value)); return *this;}
private:
Aws::String m_deliveryStreamName;
bool m_deliveryStreamNameHasBeenSet;
Aws::String m_separator;
bool m_separatorHasBeenSet;
Payload m_payload;
bool m_payloadHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,113 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/model/InputConfiguration.h>
#include <aws/iotevents/model/InputDefinition.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Information about the input.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/Input">AWS API
* Reference</a></p>
*/
class AWS_IOTEVENTS_API Input
{
public:
Input();
Input(Aws::Utils::Json::JsonView jsonValue);
Input& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Information about the configuration of an input.</p>
*/
inline const InputConfiguration& GetInputConfiguration() const{ return m_inputConfiguration; }
/**
* <p>Information about the configuration of an input.</p>
*/
inline bool InputConfigurationHasBeenSet() const { return m_inputConfigurationHasBeenSet; }
/**
* <p>Information about the configuration of an input.</p>
*/
inline void SetInputConfiguration(const InputConfiguration& value) { m_inputConfigurationHasBeenSet = true; m_inputConfiguration = value; }
/**
* <p>Information about the configuration of an input.</p>
*/
inline void SetInputConfiguration(InputConfiguration&& value) { m_inputConfigurationHasBeenSet = true; m_inputConfiguration = std::move(value); }
/**
* <p>Information about the configuration of an input.</p>
*/
inline Input& WithInputConfiguration(const InputConfiguration& value) { SetInputConfiguration(value); return *this;}
/**
* <p>Information about the configuration of an input.</p>
*/
inline Input& WithInputConfiguration(InputConfiguration&& value) { SetInputConfiguration(std::move(value)); return *this;}
/**
* <p>The definition of the input.</p>
*/
inline const InputDefinition& GetInputDefinition() const{ return m_inputDefinition; }
/**
* <p>The definition of the input.</p>
*/
inline bool InputDefinitionHasBeenSet() const { return m_inputDefinitionHasBeenSet; }
/**
* <p>The definition of the input.</p>
*/
inline void SetInputDefinition(const InputDefinition& value) { m_inputDefinitionHasBeenSet = true; m_inputDefinition = value; }
/**
* <p>The definition of the input.</p>
*/
inline void SetInputDefinition(InputDefinition&& value) { m_inputDefinitionHasBeenSet = true; m_inputDefinition = std::move(value); }
/**
* <p>The definition of the input.</p>
*/
inline Input& WithInputDefinition(const InputDefinition& value) { SetInputDefinition(value); return *this;}
/**
* <p>The definition of the input.</p>
*/
inline Input& WithInputDefinition(InputDefinition&& value) { SetInputDefinition(std::move(value)); return *this;}
private:
InputConfiguration m_inputConfiguration;
bool m_inputConfigurationHasBeenSet;
InputDefinition m_inputDefinition;
bool m_inputDefinitionHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,281 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/iotevents/model/InputStatus.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Information about the configuration of an input.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/InputConfiguration">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API InputConfiguration
{
public:
InputConfiguration();
InputConfiguration(Aws::Utils::Json::JsonView jsonValue);
InputConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the input.</p>
*/
inline const Aws::String& GetInputName() const{ return m_inputName; }
/**
* <p>The name of the input.</p>
*/
inline bool InputNameHasBeenSet() const { return m_inputNameHasBeenSet; }
/**
* <p>The name of the input.</p>
*/
inline void SetInputName(const Aws::String& value) { m_inputNameHasBeenSet = true; m_inputName = value; }
/**
* <p>The name of the input.</p>
*/
inline void SetInputName(Aws::String&& value) { m_inputNameHasBeenSet = true; m_inputName = std::move(value); }
/**
* <p>The name of the input.</p>
*/
inline void SetInputName(const char* value) { m_inputNameHasBeenSet = true; m_inputName.assign(value); }
/**
* <p>The name of the input.</p>
*/
inline InputConfiguration& WithInputName(const Aws::String& value) { SetInputName(value); return *this;}
/**
* <p>The name of the input.</p>
*/
inline InputConfiguration& WithInputName(Aws::String&& value) { SetInputName(std::move(value)); return *this;}
/**
* <p>The name of the input.</p>
*/
inline InputConfiguration& WithInputName(const char* value) { SetInputName(value); return *this;}
/**
* <p>A brief description of the input.</p>
*/
inline const Aws::String& GetInputDescription() const{ return m_inputDescription; }
/**
* <p>A brief description of the input.</p>
*/
inline bool InputDescriptionHasBeenSet() const { return m_inputDescriptionHasBeenSet; }
/**
* <p>A brief description of the input.</p>
*/
inline void SetInputDescription(const Aws::String& value) { m_inputDescriptionHasBeenSet = true; m_inputDescription = value; }
/**
* <p>A brief description of the input.</p>
*/
inline void SetInputDescription(Aws::String&& value) { m_inputDescriptionHasBeenSet = true; m_inputDescription = std::move(value); }
/**
* <p>A brief description of the input.</p>
*/
inline void SetInputDescription(const char* value) { m_inputDescriptionHasBeenSet = true; m_inputDescription.assign(value); }
/**
* <p>A brief description of the input.</p>
*/
inline InputConfiguration& WithInputDescription(const Aws::String& value) { SetInputDescription(value); return *this;}
/**
* <p>A brief description of the input.</p>
*/
inline InputConfiguration& WithInputDescription(Aws::String&& value) { SetInputDescription(std::move(value)); return *this;}
/**
* <p>A brief description of the input.</p>
*/
inline InputConfiguration& WithInputDescription(const char* value) { SetInputDescription(value); return *this;}
/**
* <p>The ARN of the input.</p>
*/
inline const Aws::String& GetInputArn() const{ return m_inputArn; }
/**
* <p>The ARN of the input.</p>
*/
inline bool InputArnHasBeenSet() const { return m_inputArnHasBeenSet; }
/**
* <p>The ARN of the input.</p>
*/
inline void SetInputArn(const Aws::String& value) { m_inputArnHasBeenSet = true; m_inputArn = value; }
/**
* <p>The ARN of the input.</p>
*/
inline void SetInputArn(Aws::String&& value) { m_inputArnHasBeenSet = true; m_inputArn = std::move(value); }
/**
* <p>The ARN of the input.</p>
*/
inline void SetInputArn(const char* value) { m_inputArnHasBeenSet = true; m_inputArn.assign(value); }
/**
* <p>The ARN of the input.</p>
*/
inline InputConfiguration& WithInputArn(const Aws::String& value) { SetInputArn(value); return *this;}
/**
* <p>The ARN of the input.</p>
*/
inline InputConfiguration& WithInputArn(Aws::String&& value) { SetInputArn(std::move(value)); return *this;}
/**
* <p>The ARN of the input.</p>
*/
inline InputConfiguration& WithInputArn(const char* value) { SetInputArn(value); return *this;}
/**
* <p>The time the input was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The time the input was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>The time the input was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>The time the input was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>The time the input was created.</p>
*/
inline InputConfiguration& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The time the input was created.</p>
*/
inline InputConfiguration& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>The last time the input was updated.</p>
*/
inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
/**
* <p>The last time the input was updated.</p>
*/
inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
/**
* <p>The last time the input was updated.</p>
*/
inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
/**
* <p>The last time the input was updated.</p>
*/
inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); }
/**
* <p>The last time the input was updated.</p>
*/
inline InputConfiguration& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;}
/**
* <p>The last time the input was updated.</p>
*/
inline InputConfiguration& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;}
/**
* <p>The status of the input.</p>
*/
inline const InputStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the input.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the input.</p>
*/
inline void SetStatus(const InputStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the input.</p>
*/
inline void SetStatus(InputStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the input.</p>
*/
inline InputConfiguration& WithStatus(const InputStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the input.</p>
*/
inline InputConfiguration& WithStatus(InputStatus&& value) { SetStatus(std::move(value)); return *this;}
private:
Aws::String m_inputName;
bool m_inputNameHasBeenSet;
Aws::String m_inputDescription;
bool m_inputDescriptionHasBeenSet;
Aws::String m_inputArn;
bool m_inputArnHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Utils::DateTime m_lastUpdateTime;
bool m_lastUpdateTimeHasBeenSet;
InputStatus m_status;
bool m_statusHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,129 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotevents/model/Attribute.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>The definition of the input.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/InputDefinition">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API InputDefinition
{
public:
InputDefinition();
InputDefinition(Aws::Utils::Json::JsonView jsonValue);
InputDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The attributes from the JSON payload that are made available by the input.
* Inputs are derived from messages sent to the AWS IoT Events system using
* <code>BatchPutMessage</code>. Each such message contains a JSON payload, and
* those attributes (and their paired values) specified here are available for use
* in the <code>condition</code> expressions used by detectors that monitor this
* input. </p>
*/
inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
/**
* <p>The attributes from the JSON payload that are made available by the input.
* Inputs are derived from messages sent to the AWS IoT Events system using
* <code>BatchPutMessage</code>. Each such message contains a JSON payload, and
* those attributes (and their paired values) specified here are available for use
* in the <code>condition</code> expressions used by detectors that monitor this
* input. </p>
*/
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
/**
* <p>The attributes from the JSON payload that are made available by the input.
* Inputs are derived from messages sent to the AWS IoT Events system using
* <code>BatchPutMessage</code>. Each such message contains a JSON payload, and
* those attributes (and their paired values) specified here are available for use
* in the <code>condition</code> expressions used by detectors that monitor this
* input. </p>
*/
inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
/**
* <p>The attributes from the JSON payload that are made available by the input.
* Inputs are derived from messages sent to the AWS IoT Events system using
* <code>BatchPutMessage</code>. Each such message contains a JSON payload, and
* those attributes (and their paired values) specified here are available for use
* in the <code>condition</code> expressions used by detectors that monitor this
* input. </p>
*/
inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
/**
* <p>The attributes from the JSON payload that are made available by the input.
* Inputs are derived from messages sent to the AWS IoT Events system using
* <code>BatchPutMessage</code>. Each such message contains a JSON payload, and
* those attributes (and their paired values) specified here are available for use
* in the <code>condition</code> expressions used by detectors that monitor this
* input. </p>
*/
inline InputDefinition& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
/**
* <p>The attributes from the JSON payload that are made available by the input.
* Inputs are derived from messages sent to the AWS IoT Events system using
* <code>BatchPutMessage</code>. Each such message contains a JSON payload, and
* those attributes (and their paired values) specified here are available for use
* in the <code>condition</code> expressions used by detectors that monitor this
* input. </p>
*/
inline InputDefinition& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
/**
* <p>The attributes from the JSON payload that are made available by the input.
* Inputs are derived from messages sent to the AWS IoT Events system using
* <code>BatchPutMessage</code>. Each such message contains a JSON payload, and
* those attributes (and their paired values) specified here are available for use
* in the <code>condition</code> expressions used by detectors that monitor this
* input. </p>
*/
inline InputDefinition& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
/**
* <p>The attributes from the JSON payload that are made available by the input.
* Inputs are derived from messages sent to the AWS IoT Events system using
* <code>BatchPutMessage</code>. Each such message contains a JSON payload, and
* those attributes (and their paired values) specified here are available for use
* in the <code>condition</code> expressions used by detectors that monitor this
* input. </p>
*/
inline InputDefinition& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Attribute> m_attributes;
bool m_attributesHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace IoTEvents
{
namespace Model
{
enum class InputStatus
{
NOT_SET,
CREATING,
UPDATING,
ACTIVE,
DELETING
};
namespace InputStatusMapper
{
AWS_IOTEVENTS_API InputStatus GetInputStatusForName(const Aws::String& name);
AWS_IOTEVENTS_API Aws::String GetNameForInputStatus(InputStatus value);
} // namespace InputStatusMapper
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,280 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/iotevents/model/InputStatus.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Information about the input.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/InputSummary">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API InputSummary
{
public:
InputSummary();
InputSummary(Aws::Utils::Json::JsonView jsonValue);
InputSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the input.</p>
*/
inline const Aws::String& GetInputName() const{ return m_inputName; }
/**
* <p>The name of the input.</p>
*/
inline bool InputNameHasBeenSet() const { return m_inputNameHasBeenSet; }
/**
* <p>The name of the input.</p>
*/
inline void SetInputName(const Aws::String& value) { m_inputNameHasBeenSet = true; m_inputName = value; }
/**
* <p>The name of the input.</p>
*/
inline void SetInputName(Aws::String&& value) { m_inputNameHasBeenSet = true; m_inputName = std::move(value); }
/**
* <p>The name of the input.</p>
*/
inline void SetInputName(const char* value) { m_inputNameHasBeenSet = true; m_inputName.assign(value); }
/**
* <p>The name of the input.</p>
*/
inline InputSummary& WithInputName(const Aws::String& value) { SetInputName(value); return *this;}
/**
* <p>The name of the input.</p>
*/
inline InputSummary& WithInputName(Aws::String&& value) { SetInputName(std::move(value)); return *this;}
/**
* <p>The name of the input.</p>
*/
inline InputSummary& WithInputName(const char* value) { SetInputName(value); return *this;}
/**
* <p>A brief description of the input.</p>
*/
inline const Aws::String& GetInputDescription() const{ return m_inputDescription; }
/**
* <p>A brief description of the input.</p>
*/
inline bool InputDescriptionHasBeenSet() const { return m_inputDescriptionHasBeenSet; }
/**
* <p>A brief description of the input.</p>
*/
inline void SetInputDescription(const Aws::String& value) { m_inputDescriptionHasBeenSet = true; m_inputDescription = value; }
/**
* <p>A brief description of the input.</p>
*/
inline void SetInputDescription(Aws::String&& value) { m_inputDescriptionHasBeenSet = true; m_inputDescription = std::move(value); }
/**
* <p>A brief description of the input.</p>
*/
inline void SetInputDescription(const char* value) { m_inputDescriptionHasBeenSet = true; m_inputDescription.assign(value); }
/**
* <p>A brief description of the input.</p>
*/
inline InputSummary& WithInputDescription(const Aws::String& value) { SetInputDescription(value); return *this;}
/**
* <p>A brief description of the input.</p>
*/
inline InputSummary& WithInputDescription(Aws::String&& value) { SetInputDescription(std::move(value)); return *this;}
/**
* <p>A brief description of the input.</p>
*/
inline InputSummary& WithInputDescription(const char* value) { SetInputDescription(value); return *this;}
/**
* <p>The ARN of the input.</p>
*/
inline const Aws::String& GetInputArn() const{ return m_inputArn; }
/**
* <p>The ARN of the input.</p>
*/
inline bool InputArnHasBeenSet() const { return m_inputArnHasBeenSet; }
/**
* <p>The ARN of the input.</p>
*/
inline void SetInputArn(const Aws::String& value) { m_inputArnHasBeenSet = true; m_inputArn = value; }
/**
* <p>The ARN of the input.</p>
*/
inline void SetInputArn(Aws::String&& value) { m_inputArnHasBeenSet = true; m_inputArn = std::move(value); }
/**
* <p>The ARN of the input.</p>
*/
inline void SetInputArn(const char* value) { m_inputArnHasBeenSet = true; m_inputArn.assign(value); }
/**
* <p>The ARN of the input.</p>
*/
inline InputSummary& WithInputArn(const Aws::String& value) { SetInputArn(value); return *this;}
/**
* <p>The ARN of the input.</p>
*/
inline InputSummary& WithInputArn(Aws::String&& value) { SetInputArn(std::move(value)); return *this;}
/**
* <p>The ARN of the input.</p>
*/
inline InputSummary& WithInputArn(const char* value) { SetInputArn(value); return *this;}
/**
* <p>The time the input was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
/**
* <p>The time the input was created.</p>
*/
inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
/**
* <p>The time the input was created.</p>
*/
inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
/**
* <p>The time the input was created.</p>
*/
inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
/**
* <p>The time the input was created.</p>
*/
inline InputSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
/**
* <p>The time the input was created.</p>
*/
inline InputSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
/**
* <p>The last time the input was updated.</p>
*/
inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
/**
* <p>The last time the input was updated.</p>
*/
inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
/**
* <p>The last time the input was updated.</p>
*/
inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
/**
* <p>The last time the input was updated.</p>
*/
inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); }
/**
* <p>The last time the input was updated.</p>
*/
inline InputSummary& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;}
/**
* <p>The last time the input was updated.</p>
*/
inline InputSummary& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;}
/**
* <p>The status of the input.</p>
*/
inline const InputStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the input.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the input.</p>
*/
inline void SetStatus(const InputStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the input.</p>
*/
inline void SetStatus(InputStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the input.</p>
*/
inline InputSummary& WithStatus(const InputStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the input.</p>
*/
inline InputSummary& WithStatus(InputStatus&& value) { SetStatus(std::move(value)); return *this;}
private:
Aws::String m_inputName;
bool m_inputNameHasBeenSet;
Aws::String m_inputDescription;
bool m_inputDescriptionHasBeenSet;
Aws::String m_inputArn;
bool m_inputArnHasBeenSet;
Aws::Utils::DateTime m_creationTime;
bool m_creationTimeHasBeenSet;
Aws::Utils::DateTime m_lastUpdateTime;
bool m_lastUpdateTimeHasBeenSet;
InputStatus m_status;
bool m_statusHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,131 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/Payload.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Sends an AWS IoT Events input, passing in information about the detector
* model instance and the event that triggered the action.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/IotEventsAction">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API IotEventsAction
{
public:
IotEventsAction();
IotEventsAction(Aws::Utils::Json::JsonView jsonValue);
IotEventsAction& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the AWS IoT Events input where the data is sent.</p>
*/
inline const Aws::String& GetInputName() const{ return m_inputName; }
/**
* <p>The name of the AWS IoT Events input where the data is sent.</p>
*/
inline bool InputNameHasBeenSet() const { return m_inputNameHasBeenSet; }
/**
* <p>The name of the AWS IoT Events input where the data is sent.</p>
*/
inline void SetInputName(const Aws::String& value) { m_inputNameHasBeenSet = true; m_inputName = value; }
/**
* <p>The name of the AWS IoT Events input where the data is sent.</p>
*/
inline void SetInputName(Aws::String&& value) { m_inputNameHasBeenSet = true; m_inputName = std::move(value); }
/**
* <p>The name of the AWS IoT Events input where the data is sent.</p>
*/
inline void SetInputName(const char* value) { m_inputNameHasBeenSet = true; m_inputName.assign(value); }
/**
* <p>The name of the AWS IoT Events input where the data is sent.</p>
*/
inline IotEventsAction& WithInputName(const Aws::String& value) { SetInputName(value); return *this;}
/**
* <p>The name of the AWS IoT Events input where the data is sent.</p>
*/
inline IotEventsAction& WithInputName(Aws::String&& value) { SetInputName(std::move(value)); return *this;}
/**
* <p>The name of the AWS IoT Events input where the data is sent.</p>
*/
inline IotEventsAction& WithInputName(const char* value) { SetInputName(value); return *this;}
/**
* <p>You can configure the action payload when you send a message to an AWS IoT
* Events input.</p>
*/
inline const Payload& GetPayload() const{ return m_payload; }
/**
* <p>You can configure the action payload when you send a message to an AWS IoT
* Events input.</p>
*/
inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
/**
* <p>You can configure the action payload when you send a message to an AWS IoT
* Events input.</p>
*/
inline void SetPayload(const Payload& value) { m_payloadHasBeenSet = true; m_payload = value; }
/**
* <p>You can configure the action payload when you send a message to an AWS IoT
* Events input.</p>
*/
inline void SetPayload(Payload&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
/**
* <p>You can configure the action payload when you send a message to an AWS IoT
* Events input.</p>
*/
inline IotEventsAction& WithPayload(const Payload& value) { SetPayload(value); return *this;}
/**
* <p>You can configure the action payload when you send a message to an AWS IoT
* Events input.</p>
*/
inline IotEventsAction& WithPayload(Payload&& value) { SetPayload(std::move(value)); return *this;}
private:
Aws::String m_inputName;
bool m_inputNameHasBeenSet;
Payload m_payload;
bool m_payloadHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,298 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/AssetPropertyValue.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to a specified asset property in AWS IoT SiteWise.</p>
* <p>You must specify either <code>propertyAlias</code> or both
* <code>assetId</code> and <code>propertyId</code> to identify the target asset
* property in AWS IoT SiteWise.</p> <p>For parameters that are string
* data type, you can specify the following options: </p> <ul> <li> <p>Use a
* string. For example, the <code>propertyAlias</code> value can be
* <code>'/company/windfarm/3/turbine/7/temperature'</code>.</p> </li> <li> <p>Use
* an expression. For example, the <code>propertyAlias</code> value can be
* <code>'company/windfarm/${$input.TemperatureInput.sensorData.windfarmID}/turbine/${$input.TemperatureInput.sensorData.turbineID}/temperature'</code>.</p>
* <p>For more information, see <a
* href="https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html">Expressions</a>
* in the <i>AWS IoT Events Developer Guide</i>.</p> </li> </ul><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/IotSiteWiseAction">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API IotSiteWiseAction
{
public:
IotSiteWiseAction();
IotSiteWiseAction(Aws::Utils::Json::JsonView jsonValue);
IotSiteWiseAction& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A unique identifier for this entry. You can use the entry ID to track which
* data entry causes an error in case of failure. The default is a new unique
* identifier. You can also specify an expression.</p>
*/
inline const Aws::String& GetEntryId() const{ return m_entryId; }
/**
* <p>A unique identifier for this entry. You can use the entry ID to track which
* data entry causes an error in case of failure. The default is a new unique
* identifier. You can also specify an expression.</p>
*/
inline bool EntryIdHasBeenSet() const { return m_entryIdHasBeenSet; }
/**
* <p>A unique identifier for this entry. You can use the entry ID to track which
* data entry causes an error in case of failure. The default is a new unique
* identifier. You can also specify an expression.</p>
*/
inline void SetEntryId(const Aws::String& value) { m_entryIdHasBeenSet = true; m_entryId = value; }
/**
* <p>A unique identifier for this entry. You can use the entry ID to track which
* data entry causes an error in case of failure. The default is a new unique
* identifier. You can also specify an expression.</p>
*/
inline void SetEntryId(Aws::String&& value) { m_entryIdHasBeenSet = true; m_entryId = std::move(value); }
/**
* <p>A unique identifier for this entry. You can use the entry ID to track which
* data entry causes an error in case of failure. The default is a new unique
* identifier. You can also specify an expression.</p>
*/
inline void SetEntryId(const char* value) { m_entryIdHasBeenSet = true; m_entryId.assign(value); }
/**
* <p>A unique identifier for this entry. You can use the entry ID to track which
* data entry causes an error in case of failure. The default is a new unique
* identifier. You can also specify an expression.</p>
*/
inline IotSiteWiseAction& WithEntryId(const Aws::String& value) { SetEntryId(value); return *this;}
/**
* <p>A unique identifier for this entry. You can use the entry ID to track which
* data entry causes an error in case of failure. The default is a new unique
* identifier. You can also specify an expression.</p>
*/
inline IotSiteWiseAction& WithEntryId(Aws::String&& value) { SetEntryId(std::move(value)); return *this;}
/**
* <p>A unique identifier for this entry. You can use the entry ID to track which
* data entry causes an error in case of failure. The default is a new unique
* identifier. You can also specify an expression.</p>
*/
inline IotSiteWiseAction& WithEntryId(const char* value) { SetEntryId(value); return *this;}
/**
* <p>The ID of the asset that has the specified property. You can specify an
* expression.</p>
*/
inline const Aws::String& GetAssetId() const{ return m_assetId; }
/**
* <p>The ID of the asset that has the specified property. You can specify an
* expression.</p>
*/
inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
/**
* <p>The ID of the asset that has the specified property. You can specify an
* expression.</p>
*/
inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
/**
* <p>The ID of the asset that has the specified property. You can specify an
* expression.</p>
*/
inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
/**
* <p>The ID of the asset that has the specified property. You can specify an
* expression.</p>
*/
inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
/**
* <p>The ID of the asset that has the specified property. You can specify an
* expression.</p>
*/
inline IotSiteWiseAction& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
/**
* <p>The ID of the asset that has the specified property. You can specify an
* expression.</p>
*/
inline IotSiteWiseAction& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
/**
* <p>The ID of the asset that has the specified property. You can specify an
* expression.</p>
*/
inline IotSiteWiseAction& WithAssetId(const char* value) { SetAssetId(value); return *this;}
/**
* <p>The ID of the asset property. You can specify an expression.</p>
*/
inline const Aws::String& GetPropertyId() const{ return m_propertyId; }
/**
* <p>The ID of the asset property. You can specify an expression.</p>
*/
inline bool PropertyIdHasBeenSet() const { return m_propertyIdHasBeenSet; }
/**
* <p>The ID of the asset property. You can specify an expression.</p>
*/
inline void SetPropertyId(const Aws::String& value) { m_propertyIdHasBeenSet = true; m_propertyId = value; }
/**
* <p>The ID of the asset property. You can specify an expression.</p>
*/
inline void SetPropertyId(Aws::String&& value) { m_propertyIdHasBeenSet = true; m_propertyId = std::move(value); }
/**
* <p>The ID of the asset property. You can specify an expression.</p>
*/
inline void SetPropertyId(const char* value) { m_propertyIdHasBeenSet = true; m_propertyId.assign(value); }
/**
* <p>The ID of the asset property. You can specify an expression.</p>
*/
inline IotSiteWiseAction& WithPropertyId(const Aws::String& value) { SetPropertyId(value); return *this;}
/**
* <p>The ID of the asset property. You can specify an expression.</p>
*/
inline IotSiteWiseAction& WithPropertyId(Aws::String&& value) { SetPropertyId(std::move(value)); return *this;}
/**
* <p>The ID of the asset property. You can specify an expression.</p>
*/
inline IotSiteWiseAction& WithPropertyId(const char* value) { SetPropertyId(value); return *this;}
/**
* <p>The alias of the asset property. You can also specify an expression.</p>
*/
inline const Aws::String& GetPropertyAlias() const{ return m_propertyAlias; }
/**
* <p>The alias of the asset property. You can also specify an expression.</p>
*/
inline bool PropertyAliasHasBeenSet() const { return m_propertyAliasHasBeenSet; }
/**
* <p>The alias of the asset property. You can also specify an expression.</p>
*/
inline void SetPropertyAlias(const Aws::String& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = value; }
/**
* <p>The alias of the asset property. You can also specify an expression.</p>
*/
inline void SetPropertyAlias(Aws::String&& value) { m_propertyAliasHasBeenSet = true; m_propertyAlias = std::move(value); }
/**
* <p>The alias of the asset property. You can also specify an expression.</p>
*/
inline void SetPropertyAlias(const char* value) { m_propertyAliasHasBeenSet = true; m_propertyAlias.assign(value); }
/**
* <p>The alias of the asset property. You can also specify an expression.</p>
*/
inline IotSiteWiseAction& WithPropertyAlias(const Aws::String& value) { SetPropertyAlias(value); return *this;}
/**
* <p>The alias of the asset property. You can also specify an expression.</p>
*/
inline IotSiteWiseAction& WithPropertyAlias(Aws::String&& value) { SetPropertyAlias(std::move(value)); return *this;}
/**
* <p>The alias of the asset property. You can also specify an expression.</p>
*/
inline IotSiteWiseAction& WithPropertyAlias(const char* value) { SetPropertyAlias(value); return *this;}
/**
* <p>The value to send to the asset property. This value contains timestamp,
* quality, and value (TQV) information. </p>
*/
inline const AssetPropertyValue& GetPropertyValue() const{ return m_propertyValue; }
/**
* <p>The value to send to the asset property. This value contains timestamp,
* quality, and value (TQV) information. </p>
*/
inline bool PropertyValueHasBeenSet() const { return m_propertyValueHasBeenSet; }
/**
* <p>The value to send to the asset property. This value contains timestamp,
* quality, and value (TQV) information. </p>
*/
inline void SetPropertyValue(const AssetPropertyValue& value) { m_propertyValueHasBeenSet = true; m_propertyValue = value; }
/**
* <p>The value to send to the asset property. This value contains timestamp,
* quality, and value (TQV) information. </p>
*/
inline void SetPropertyValue(AssetPropertyValue&& value) { m_propertyValueHasBeenSet = true; m_propertyValue = std::move(value); }
/**
* <p>The value to send to the asset property. This value contains timestamp,
* quality, and value (TQV) information. </p>
*/
inline IotSiteWiseAction& WithPropertyValue(const AssetPropertyValue& value) { SetPropertyValue(value); return *this;}
/**
* <p>The value to send to the asset property. This value contains timestamp,
* quality, and value (TQV) information. </p>
*/
inline IotSiteWiseAction& WithPropertyValue(AssetPropertyValue&& value) { SetPropertyValue(std::move(value)); return *this;}
private:
Aws::String m_entryId;
bool m_entryIdHasBeenSet;
Aws::String m_assetId;
bool m_assetIdHasBeenSet;
Aws::String m_propertyId;
bool m_propertyIdHasBeenSet;
Aws::String m_propertyAlias;
bool m_propertyAliasHasBeenSet;
AssetPropertyValue m_propertyValue;
bool m_propertyValueHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,154 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/Payload.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Information required to publish the MQTT message through the AWS IoT message
* broker.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/IotTopicPublishAction">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API IotTopicPublishAction
{
public:
IotTopicPublishAction();
IotTopicPublishAction(Aws::Utils::Json::JsonView jsonValue);
IotTopicPublishAction& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The MQTT topic of the message. You can use a string expression that includes
* variables (<code>$variable.&lt;variable-name&gt;</code>) and input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as the topic
* string.</p>
*/
inline const Aws::String& GetMqttTopic() const{ return m_mqttTopic; }
/**
* <p>The MQTT topic of the message. You can use a string expression that includes
* variables (<code>$variable.&lt;variable-name&gt;</code>) and input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as the topic
* string.</p>
*/
inline bool MqttTopicHasBeenSet() const { return m_mqttTopicHasBeenSet; }
/**
* <p>The MQTT topic of the message. You can use a string expression that includes
* variables (<code>$variable.&lt;variable-name&gt;</code>) and input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as the topic
* string.</p>
*/
inline void SetMqttTopic(const Aws::String& value) { m_mqttTopicHasBeenSet = true; m_mqttTopic = value; }
/**
* <p>The MQTT topic of the message. You can use a string expression that includes
* variables (<code>$variable.&lt;variable-name&gt;</code>) and input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as the topic
* string.</p>
*/
inline void SetMqttTopic(Aws::String&& value) { m_mqttTopicHasBeenSet = true; m_mqttTopic = std::move(value); }
/**
* <p>The MQTT topic of the message. You can use a string expression that includes
* variables (<code>$variable.&lt;variable-name&gt;</code>) and input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as the topic
* string.</p>
*/
inline void SetMqttTopic(const char* value) { m_mqttTopicHasBeenSet = true; m_mqttTopic.assign(value); }
/**
* <p>The MQTT topic of the message. You can use a string expression that includes
* variables (<code>$variable.&lt;variable-name&gt;</code>) and input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as the topic
* string.</p>
*/
inline IotTopicPublishAction& WithMqttTopic(const Aws::String& value) { SetMqttTopic(value); return *this;}
/**
* <p>The MQTT topic of the message. You can use a string expression that includes
* variables (<code>$variable.&lt;variable-name&gt;</code>) and input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as the topic
* string.</p>
*/
inline IotTopicPublishAction& WithMqttTopic(Aws::String&& value) { SetMqttTopic(std::move(value)); return *this;}
/**
* <p>The MQTT topic of the message. You can use a string expression that includes
* variables (<code>$variable.&lt;variable-name&gt;</code>) and input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as the topic
* string.</p>
*/
inline IotTopicPublishAction& WithMqttTopic(const char* value) { SetMqttTopic(value); return *this;}
/**
* <p>You can configure the action payload when you publish a message to an AWS IoT
* Core topic.</p>
*/
inline const Payload& GetPayload() const{ return m_payload; }
/**
* <p>You can configure the action payload when you publish a message to an AWS IoT
* Core topic.</p>
*/
inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
/**
* <p>You can configure the action payload when you publish a message to an AWS IoT
* Core topic.</p>
*/
inline void SetPayload(const Payload& value) { m_payloadHasBeenSet = true; m_payload = value; }
/**
* <p>You can configure the action payload when you publish a message to an AWS IoT
* Core topic.</p>
*/
inline void SetPayload(Payload&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
/**
* <p>You can configure the action payload when you publish a message to an AWS IoT
* Core topic.</p>
*/
inline IotTopicPublishAction& WithPayload(const Payload& value) { SetPayload(value); return *this;}
/**
* <p>You can configure the action payload when you publish a message to an AWS IoT
* Core topic.</p>
*/
inline IotTopicPublishAction& WithPayload(Payload&& value) { SetPayload(std::move(value)); return *this;}
private:
Aws::String m_mqttTopic;
bool m_mqttTopicHasBeenSet;
Payload m_payload;
bool m_payloadHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,130 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/Payload.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Calls a Lambda function, passing in information about the detector model
* instance and the event that triggered the action.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/LambdaAction">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API LambdaAction
{
public:
LambdaAction();
LambdaAction(Aws::Utils::Json::JsonView jsonValue);
LambdaAction& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN of the Lambda function that is executed.</p>
*/
inline const Aws::String& GetFunctionArn() const{ return m_functionArn; }
/**
* <p>The ARN of the Lambda function that is executed.</p>
*/
inline bool FunctionArnHasBeenSet() const { return m_functionArnHasBeenSet; }
/**
* <p>The ARN of the Lambda function that is executed.</p>
*/
inline void SetFunctionArn(const Aws::String& value) { m_functionArnHasBeenSet = true; m_functionArn = value; }
/**
* <p>The ARN of the Lambda function that is executed.</p>
*/
inline void SetFunctionArn(Aws::String&& value) { m_functionArnHasBeenSet = true; m_functionArn = std::move(value); }
/**
* <p>The ARN of the Lambda function that is executed.</p>
*/
inline void SetFunctionArn(const char* value) { m_functionArnHasBeenSet = true; m_functionArn.assign(value); }
/**
* <p>The ARN of the Lambda function that is executed.</p>
*/
inline LambdaAction& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;}
/**
* <p>The ARN of the Lambda function that is executed.</p>
*/
inline LambdaAction& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;}
/**
* <p>The ARN of the Lambda function that is executed.</p>
*/
inline LambdaAction& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;}
/**
* <p>You can configure the action payload when you send a message to a Lambda
* function.</p>
*/
inline const Payload& GetPayload() const{ return m_payload; }
/**
* <p>You can configure the action payload when you send a message to a Lambda
* function.</p>
*/
inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
/**
* <p>You can configure the action payload when you send a message to a Lambda
* function.</p>
*/
inline void SetPayload(const Payload& value) { m_payloadHasBeenSet = true; m_payload = value; }
/**
* <p>You can configure the action payload when you send a message to a Lambda
* function.</p>
*/
inline void SetPayload(Payload&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
/**
* <p>You can configure the action payload when you send a message to a Lambda
* function.</p>
*/
inline LambdaAction& WithPayload(const Payload& value) { SetPayload(value); return *this;}
/**
* <p>You can configure the action payload when you send a message to a Lambda
* function.</p>
*/
inline LambdaAction& WithPayload(Payload&& value) { SetPayload(std::move(value)); return *this;}
private:
Aws::String m_functionArn;
bool m_functionArnHasBeenSet;
Payload m_payload;
bool m_payloadHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,157 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/IoTEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace IoTEvents
{
namespace Model
{
/**
*/
class AWS_IOTEVENTS_API ListDetectorModelVersionsRequest : public IoTEventsRequest
{
public:
ListDetectorModelVersionsRequest();
// 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 "ListDetectorModelVersions"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The name of the detector model whose versions are returned.</p>
*/
inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
/**
* <p>The name of the detector model whose versions are returned.</p>
*/
inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
/**
* <p>The name of the detector model whose versions are returned.</p>
*/
inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
/**
* <p>The name of the detector model whose versions are returned.</p>
*/
inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
/**
* <p>The name of the detector model whose versions are returned.</p>
*/
inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
/**
* <p>The name of the detector model whose versions are returned.</p>
*/
inline ListDetectorModelVersionsRequest& WithDetectorModelName(const Aws::String& value) { SetDetectorModelName(value); return *this;}
/**
* <p>The name of the detector model whose versions are returned.</p>
*/
inline ListDetectorModelVersionsRequest& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
/**
* <p>The name of the detector model whose versions are returned.</p>
*/
inline ListDetectorModelVersionsRequest& WithDetectorModelName(const char* value) { SetDetectorModelName(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 ListDetectorModelVersionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline ListDetectorModelVersionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline ListDetectorModelVersionsRequest& 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 ListDetectorModelVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_detectorModelName;
bool m_detectorModelNameHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // 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/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/DetectorModelVersionSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
class AWS_IOTEVENTS_API ListDetectorModelVersionsResult
{
public:
ListDetectorModelVersionsResult();
ListDetectorModelVersionsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListDetectorModelVersionsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Summary information about the detector model versions.</p>
*/
inline const Aws::Vector<DetectorModelVersionSummary>& GetDetectorModelVersionSummaries() const{ return m_detectorModelVersionSummaries; }
/**
* <p>Summary information about the detector model versions.</p>
*/
inline void SetDetectorModelVersionSummaries(const Aws::Vector<DetectorModelVersionSummary>& value) { m_detectorModelVersionSummaries = value; }
/**
* <p>Summary information about the detector model versions.</p>
*/
inline void SetDetectorModelVersionSummaries(Aws::Vector<DetectorModelVersionSummary>&& value) { m_detectorModelVersionSummaries = std::move(value); }
/**
* <p>Summary information about the detector model versions.</p>
*/
inline ListDetectorModelVersionsResult& WithDetectorModelVersionSummaries(const Aws::Vector<DetectorModelVersionSummary>& value) { SetDetectorModelVersionSummaries(value); return *this;}
/**
* <p>Summary information about the detector model versions.</p>
*/
inline ListDetectorModelVersionsResult& WithDetectorModelVersionSummaries(Aws::Vector<DetectorModelVersionSummary>&& value) { SetDetectorModelVersionSummaries(std::move(value)); return *this;}
/**
* <p>Summary information about the detector model versions.</p>
*/
inline ListDetectorModelVersionsResult& AddDetectorModelVersionSummaries(const DetectorModelVersionSummary& value) { m_detectorModelVersionSummaries.push_back(value); return *this; }
/**
* <p>Summary information about the detector model versions.</p>
*/
inline ListDetectorModelVersionsResult& AddDetectorModelVersionSummaries(DetectorModelVersionSummary&& value) { m_detectorModelVersionSummaries.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 ListDetectorModelVersionsResult& 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 ListDetectorModelVersionsResult& 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 ListDetectorModelVersionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<DetectorModelVersionSummary> m_detectorModelVersionSummaries;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,113 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/IoTEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace IoTEvents
{
namespace Model
{
/**
*/
class AWS_IOTEVENTS_API ListDetectorModelsRequest : public IoTEventsRequest
{
public:
ListDetectorModelsRequest();
// 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 "ListDetectorModels"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <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 ListDetectorModelsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline ListDetectorModelsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline ListDetectorModelsRequest& 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 ListDetectorModelsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // 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/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/DetectorModelSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
class AWS_IOTEVENTS_API ListDetectorModelsResult
{
public:
ListDetectorModelsResult();
ListDetectorModelsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListDetectorModelsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Summary information about the detector models.</p>
*/
inline const Aws::Vector<DetectorModelSummary>& GetDetectorModelSummaries() const{ return m_detectorModelSummaries; }
/**
* <p>Summary information about the detector models.</p>
*/
inline void SetDetectorModelSummaries(const Aws::Vector<DetectorModelSummary>& value) { m_detectorModelSummaries = value; }
/**
* <p>Summary information about the detector models.</p>
*/
inline void SetDetectorModelSummaries(Aws::Vector<DetectorModelSummary>&& value) { m_detectorModelSummaries = std::move(value); }
/**
* <p>Summary information about the detector models.</p>
*/
inline ListDetectorModelsResult& WithDetectorModelSummaries(const Aws::Vector<DetectorModelSummary>& value) { SetDetectorModelSummaries(value); return *this;}
/**
* <p>Summary information about the detector models.</p>
*/
inline ListDetectorModelsResult& WithDetectorModelSummaries(Aws::Vector<DetectorModelSummary>&& value) { SetDetectorModelSummaries(std::move(value)); return *this;}
/**
* <p>Summary information about the detector models.</p>
*/
inline ListDetectorModelsResult& AddDetectorModelSummaries(const DetectorModelSummary& value) { m_detectorModelSummaries.push_back(value); return *this; }
/**
* <p>Summary information about the detector models.</p>
*/
inline ListDetectorModelsResult& AddDetectorModelSummaries(DetectorModelSummary&& value) { m_detectorModelSummaries.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 ListDetectorModelsResult& 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 ListDetectorModelsResult& 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 ListDetectorModelsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<DetectorModelSummary> m_detectorModelSummaries;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,113 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/IoTEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace IoTEvents
{
namespace Model
{
/**
*/
class AWS_IOTEVENTS_API ListInputsRequest : public IoTEventsRequest
{
public:
ListInputsRequest();
// 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 "ListInputs"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <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 ListInputsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline ListInputsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The token for the next set of results.</p>
*/
inline ListInputsRequest& 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 ListInputsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // 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/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/InputSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
class AWS_IOTEVENTS_API ListInputsResult
{
public:
ListInputsResult();
ListInputsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListInputsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Summary information about the inputs.</p>
*/
inline const Aws::Vector<InputSummary>& GetInputSummaries() const{ return m_inputSummaries; }
/**
* <p>Summary information about the inputs.</p>
*/
inline void SetInputSummaries(const Aws::Vector<InputSummary>& value) { m_inputSummaries = value; }
/**
* <p>Summary information about the inputs.</p>
*/
inline void SetInputSummaries(Aws::Vector<InputSummary>&& value) { m_inputSummaries = std::move(value); }
/**
* <p>Summary information about the inputs.</p>
*/
inline ListInputsResult& WithInputSummaries(const Aws::Vector<InputSummary>& value) { SetInputSummaries(value); return *this;}
/**
* <p>Summary information about the inputs.</p>
*/
inline ListInputsResult& WithInputSummaries(Aws::Vector<InputSummary>&& value) { SetInputSummaries(std::move(value)); return *this;}
/**
* <p>Summary information about the inputs.</p>
*/
inline ListInputsResult& AddInputSummaries(const InputSummary& value) { m_inputSummaries.push_back(value); return *this; }
/**
* <p>Summary information about the inputs.</p>
*/
inline ListInputsResult& AddInputSummaries(InputSummary&& value) { m_inputSummaries.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 ListInputsResult& 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 ListInputsResult& 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 ListInputsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<InputSummary> m_inputSummaries;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/IoTEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace IoTEvents
{
namespace Model
{
/**
*/
class AWS_IOTEVENTS_API ListTagsForResourceRequest : public IoTEventsRequest
{
public:
ListTagsForResourceRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListTagsForResource"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The ARN of the resource.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The ARN of the resource.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The ARN of the resource.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The ARN of the resource.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The ARN of the resource.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The ARN of the resource.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The ARN of the resource.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The ARN of the resource.</p>
*/
inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // 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/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotevents/model/Tag.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
class AWS_IOTEVENTS_API ListTagsForResourceResult
{
public:
ListTagsForResourceResult();
ListTagsForResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListTagsForResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The list of tags assigned to the resource.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The list of tags assigned to the resource.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
/**
* <p>The list of tags assigned to the resource.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
/**
* <p>The list of tags assigned to the resource.</p>
*/
inline ListTagsForResourceResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The list of tags assigned to the resource.</p>
*/
inline ListTagsForResourceResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The list of tags assigned to the resource.</p>
*/
inline ListTagsForResourceResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
/**
* <p>The list of tags assigned to the resource.</p>
*/
inline ListTagsForResourceResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Tag> m_tags;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,32 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace IoTEvents
{
namespace Model
{
enum class LoggingLevel
{
NOT_SET,
ERROR_,
INFO,
DEBUG_
};
namespace LoggingLevelMapper
{
AWS_IOTEVENTS_API LoggingLevel GetLoggingLevelForName(const Aws::String& name);
AWS_IOTEVENTS_API Aws::String GetNameForLoggingLevel(LoggingLevel value);
} // namespace LoggingLevelMapper
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,210 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/LoggingLevel.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotevents/model/DetectorDebugOption.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>The values of the AWS IoT Events logging options.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/LoggingOptions">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API LoggingOptions
{
public:
LoggingOptions();
LoggingOptions(Aws::Utils::Json::JsonView jsonValue);
LoggingOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform
* logging.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform
* logging.</p>
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform
* logging.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform
* logging.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform
* logging.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform
* logging.</p>
*/
inline LoggingOptions& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform
* logging.</p>
*/
inline LoggingOptions& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform
* logging.</p>
*/
inline LoggingOptions& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* <p>The logging level.</p>
*/
inline const LoggingLevel& GetLevel() const{ return m_level; }
/**
* <p>The logging level.</p>
*/
inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; }
/**
* <p>The logging level.</p>
*/
inline void SetLevel(const LoggingLevel& value) { m_levelHasBeenSet = true; m_level = value; }
/**
* <p>The logging level.</p>
*/
inline void SetLevel(LoggingLevel&& value) { m_levelHasBeenSet = true; m_level = std::move(value); }
/**
* <p>The logging level.</p>
*/
inline LoggingOptions& WithLevel(const LoggingLevel& value) { SetLevel(value); return *this;}
/**
* <p>The logging level.</p>
*/
inline LoggingOptions& WithLevel(LoggingLevel&& value) { SetLevel(std::move(value)); return *this;}
/**
* <p>If TRUE, logging is enabled for AWS IoT Events.</p>
*/
inline bool GetEnabled() const{ return m_enabled; }
/**
* <p>If TRUE, logging is enabled for AWS IoT Events.</p>
*/
inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
/**
* <p>If TRUE, logging is enabled for AWS IoT Events.</p>
*/
inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
/**
* <p>If TRUE, logging is enabled for AWS IoT Events.</p>
*/
inline LoggingOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
/**
* <p>Information that identifies those detector models and their detectors
* (instances) for which the logging level is given.</p>
*/
inline const Aws::Vector<DetectorDebugOption>& GetDetectorDebugOptions() const{ return m_detectorDebugOptions; }
/**
* <p>Information that identifies those detector models and their detectors
* (instances) for which the logging level is given.</p>
*/
inline bool DetectorDebugOptionsHasBeenSet() const { return m_detectorDebugOptionsHasBeenSet; }
/**
* <p>Information that identifies those detector models and their detectors
* (instances) for which the logging level is given.</p>
*/
inline void SetDetectorDebugOptions(const Aws::Vector<DetectorDebugOption>& value) { m_detectorDebugOptionsHasBeenSet = true; m_detectorDebugOptions = value; }
/**
* <p>Information that identifies those detector models and their detectors
* (instances) for which the logging level is given.</p>
*/
inline void SetDetectorDebugOptions(Aws::Vector<DetectorDebugOption>&& value) { m_detectorDebugOptionsHasBeenSet = true; m_detectorDebugOptions = std::move(value); }
/**
* <p>Information that identifies those detector models and their detectors
* (instances) for which the logging level is given.</p>
*/
inline LoggingOptions& WithDetectorDebugOptions(const Aws::Vector<DetectorDebugOption>& value) { SetDetectorDebugOptions(value); return *this;}
/**
* <p>Information that identifies those detector models and their detectors
* (instances) for which the logging level is given.</p>
*/
inline LoggingOptions& WithDetectorDebugOptions(Aws::Vector<DetectorDebugOption>&& value) { SetDetectorDebugOptions(std::move(value)); return *this;}
/**
* <p>Information that identifies those detector models and their detectors
* (instances) for which the logging level is given.</p>
*/
inline LoggingOptions& AddDetectorDebugOptions(const DetectorDebugOption& value) { m_detectorDebugOptionsHasBeenSet = true; m_detectorDebugOptions.push_back(value); return *this; }
/**
* <p>Information that identifies those detector models and their detectors
* (instances) for which the logging level is given.</p>
*/
inline LoggingOptions& AddDetectorDebugOptions(DetectorDebugOption&& value) { m_detectorDebugOptionsHasBeenSet = true; m_detectorDebugOptions.push_back(std::move(value)); return *this; }
private:
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
LoggingLevel m_level;
bool m_levelHasBeenSet;
bool m_enabled;
bool m_enabledHasBeenSet;
Aws::Vector<DetectorDebugOption> m_detectorDebugOptions;
bool m_detectorDebugOptionsHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotevents/model/Event.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>When entering this state, perform these <code>actions</code> if the
* <code>condition</code> is TRUE.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/OnEnterLifecycle">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API OnEnterLifecycle
{
public:
OnEnterLifecycle();
OnEnterLifecycle(Aws::Utils::Json::JsonView jsonValue);
OnEnterLifecycle& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies the actions that are performed when the state is entered and the
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
/**
* <p>Specifies the actions that are performed when the state is entered and the
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
/**
* <p>Specifies the actions that are performed when the state is entered and the
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
/**
* <p>Specifies the actions that are performed when the state is entered and the
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
/**
* <p>Specifies the actions that are performed when the state is entered and the
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline OnEnterLifecycle& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
/**
* <p>Specifies the actions that are performed when the state is entered and the
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline OnEnterLifecycle& WithEvents(Aws::Vector<Event>&& value) { SetEvents(std::move(value)); return *this;}
/**
* <p>Specifies the actions that are performed when the state is entered and the
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline OnEnterLifecycle& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
/**
* <p>Specifies the actions that are performed when the state is entered and the
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline OnEnterLifecycle& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Event> m_events;
bool m_eventsHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,98 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotevents/model/Event.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>When exiting this state, perform these <code>actions</code> if the specified
* <code>condition</code> is <code>TRUE</code>.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/OnExitLifecycle">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API OnExitLifecycle
{
public:
OnExitLifecycle();
OnExitLifecycle(Aws::Utils::Json::JsonView jsonValue);
OnExitLifecycle& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies the <code>actions</code> that are performed when the state is
* exited and the <code>condition</code> is <code>TRUE</code>.</p>
*/
inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
/**
* <p>Specifies the <code>actions</code> that are performed when the state is
* exited and the <code>condition</code> is <code>TRUE</code>.</p>
*/
inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
/**
* <p>Specifies the <code>actions</code> that are performed when the state is
* exited and the <code>condition</code> is <code>TRUE</code>.</p>
*/
inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
/**
* <p>Specifies the <code>actions</code> that are performed when the state is
* exited and the <code>condition</code> is <code>TRUE</code>.</p>
*/
inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
/**
* <p>Specifies the <code>actions</code> that are performed when the state is
* exited and the <code>condition</code> is <code>TRUE</code>.</p>
*/
inline OnExitLifecycle& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
/**
* <p>Specifies the <code>actions</code> that are performed when the state is
* exited and the <code>condition</code> is <code>TRUE</code>.</p>
*/
inline OnExitLifecycle& WithEvents(Aws::Vector<Event>&& value) { SetEvents(std::move(value)); return *this;}
/**
* <p>Specifies the <code>actions</code> that are performed when the state is
* exited and the <code>condition</code> is <code>TRUE</code>.</p>
*/
inline OnExitLifecycle& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
/**
* <p>Specifies the <code>actions</code> that are performed when the state is
* exited and the <code>condition</code> is <code>TRUE</code>.</p>
*/
inline OnExitLifecycle& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Event> m_events;
bool m_eventsHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,151 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotevents/model/Event.h>
#include <aws/iotevents/model/TransitionEvent.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Specifies the actions performed when the <code>condition</code> evaluates to
* TRUE.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/OnInputLifecycle">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API OnInputLifecycle
{
public:
OnInputLifecycle();
OnInputLifecycle(Aws::Utils::Json::JsonView jsonValue);
OnInputLifecycle& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies the actions performed when the <code>condition</code> evaluates to
* TRUE.</p>
*/
inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
/**
* <p>Specifies the actions performed when the <code>condition</code> evaluates to
* TRUE.</p>
*/
inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
/**
* <p>Specifies the actions performed when the <code>condition</code> evaluates to
* TRUE.</p>
*/
inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
/**
* <p>Specifies the actions performed when the <code>condition</code> evaluates to
* TRUE.</p>
*/
inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
/**
* <p>Specifies the actions performed when the <code>condition</code> evaluates to
* TRUE.</p>
*/
inline OnInputLifecycle& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
/**
* <p>Specifies the actions performed when the <code>condition</code> evaluates to
* TRUE.</p>
*/
inline OnInputLifecycle& WithEvents(Aws::Vector<Event>&& value) { SetEvents(std::move(value)); return *this;}
/**
* <p>Specifies the actions performed when the <code>condition</code> evaluates to
* TRUE.</p>
*/
inline OnInputLifecycle& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
/**
* <p>Specifies the actions performed when the <code>condition</code> evaluates to
* TRUE.</p>
*/
inline OnInputLifecycle& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
/**
* <p>Specifies the actions performed, and the next state entered, when a
* <code>condition</code> evaluates to TRUE.</p>
*/
inline const Aws::Vector<TransitionEvent>& GetTransitionEvents() const{ return m_transitionEvents; }
/**
* <p>Specifies the actions performed, and the next state entered, when a
* <code>condition</code> evaluates to TRUE.</p>
*/
inline bool TransitionEventsHasBeenSet() const { return m_transitionEventsHasBeenSet; }
/**
* <p>Specifies the actions performed, and the next state entered, when a
* <code>condition</code> evaluates to TRUE.</p>
*/
inline void SetTransitionEvents(const Aws::Vector<TransitionEvent>& value) { m_transitionEventsHasBeenSet = true; m_transitionEvents = value; }
/**
* <p>Specifies the actions performed, and the next state entered, when a
* <code>condition</code> evaluates to TRUE.</p>
*/
inline void SetTransitionEvents(Aws::Vector<TransitionEvent>&& value) { m_transitionEventsHasBeenSet = true; m_transitionEvents = std::move(value); }
/**
* <p>Specifies the actions performed, and the next state entered, when a
* <code>condition</code> evaluates to TRUE.</p>
*/
inline OnInputLifecycle& WithTransitionEvents(const Aws::Vector<TransitionEvent>& value) { SetTransitionEvents(value); return *this;}
/**
* <p>Specifies the actions performed, and the next state entered, when a
* <code>condition</code> evaluates to TRUE.</p>
*/
inline OnInputLifecycle& WithTransitionEvents(Aws::Vector<TransitionEvent>&& value) { SetTransitionEvents(std::move(value)); return *this;}
/**
* <p>Specifies the actions performed, and the next state entered, when a
* <code>condition</code> evaluates to TRUE.</p>
*/
inline OnInputLifecycle& AddTransitionEvents(const TransitionEvent& value) { m_transitionEventsHasBeenSet = true; m_transitionEvents.push_back(value); return *this; }
/**
* <p>Specifies the actions performed, and the next state entered, when a
* <code>condition</code> evaluates to TRUE.</p>
*/
inline OnInputLifecycle& AddTransitionEvents(TransitionEvent&& value) { m_transitionEventsHasBeenSet = true; m_transitionEvents.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Event> m_events;
bool m_eventsHasBeenSet;
Aws::Vector<TransitionEvent> m_transitionEvents;
bool m_transitionEventsHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,174 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/PayloadType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Information needed to configure the payload.</p> <p>By default, AWS IoT
* Events generates a standard payload in JSON for any action. This action payload
* contains all attribute-value pairs that have the information about the detector
* model instance and the event triggered the action. To configure the action
* payload, you can use <code>contentExpression</code>.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/Payload">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API Payload
{
public:
Payload();
Payload(Aws::Utils::Json::JsonView jsonValue);
Payload& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The content of the payload. You can use a string expression that includes
* quoted strings (<code>'&lt;string&gt;'</code>), variables
* (<code>$variable.&lt;variable-name&gt;</code>), input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>), string
* concatenations, and quoted strings that contain <code>${}</code> as the content.
* The recommended maximum size of a content expression is 1 KB.</p>
*/
inline const Aws::String& GetContentExpression() const{ return m_contentExpression; }
/**
* <p>The content of the payload. You can use a string expression that includes
* quoted strings (<code>'&lt;string&gt;'</code>), variables
* (<code>$variable.&lt;variable-name&gt;</code>), input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>), string
* concatenations, and quoted strings that contain <code>${}</code> as the content.
* The recommended maximum size of a content expression is 1 KB.</p>
*/
inline bool ContentExpressionHasBeenSet() const { return m_contentExpressionHasBeenSet; }
/**
* <p>The content of the payload. You can use a string expression that includes
* quoted strings (<code>'&lt;string&gt;'</code>), variables
* (<code>$variable.&lt;variable-name&gt;</code>), input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>), string
* concatenations, and quoted strings that contain <code>${}</code> as the content.
* The recommended maximum size of a content expression is 1 KB.</p>
*/
inline void SetContentExpression(const Aws::String& value) { m_contentExpressionHasBeenSet = true; m_contentExpression = value; }
/**
* <p>The content of the payload. You can use a string expression that includes
* quoted strings (<code>'&lt;string&gt;'</code>), variables
* (<code>$variable.&lt;variable-name&gt;</code>), input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>), string
* concatenations, and quoted strings that contain <code>${}</code> as the content.
* The recommended maximum size of a content expression is 1 KB.</p>
*/
inline void SetContentExpression(Aws::String&& value) { m_contentExpressionHasBeenSet = true; m_contentExpression = std::move(value); }
/**
* <p>The content of the payload. You can use a string expression that includes
* quoted strings (<code>'&lt;string&gt;'</code>), variables
* (<code>$variable.&lt;variable-name&gt;</code>), input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>), string
* concatenations, and quoted strings that contain <code>${}</code> as the content.
* The recommended maximum size of a content expression is 1 KB.</p>
*/
inline void SetContentExpression(const char* value) { m_contentExpressionHasBeenSet = true; m_contentExpression.assign(value); }
/**
* <p>The content of the payload. You can use a string expression that includes
* quoted strings (<code>'&lt;string&gt;'</code>), variables
* (<code>$variable.&lt;variable-name&gt;</code>), input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>), string
* concatenations, and quoted strings that contain <code>${}</code> as the content.
* The recommended maximum size of a content expression is 1 KB.</p>
*/
inline Payload& WithContentExpression(const Aws::String& value) { SetContentExpression(value); return *this;}
/**
* <p>The content of the payload. You can use a string expression that includes
* quoted strings (<code>'&lt;string&gt;'</code>), variables
* (<code>$variable.&lt;variable-name&gt;</code>), input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>), string
* concatenations, and quoted strings that contain <code>${}</code> as the content.
* The recommended maximum size of a content expression is 1 KB.</p>
*/
inline Payload& WithContentExpression(Aws::String&& value) { SetContentExpression(std::move(value)); return *this;}
/**
* <p>The content of the payload. You can use a string expression that includes
* quoted strings (<code>'&lt;string&gt;'</code>), variables
* (<code>$variable.&lt;variable-name&gt;</code>), input values
* (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>), string
* concatenations, and quoted strings that contain <code>${}</code> as the content.
* The recommended maximum size of a content expression is 1 KB.</p>
*/
inline Payload& WithContentExpression(const char* value) { SetContentExpression(value); return *this;}
/**
* <p>The value of the payload type can be either <code>STRING</code> or
* <code>JSON</code>.</p>
*/
inline const PayloadType& GetType() const{ return m_type; }
/**
* <p>The value of the payload type can be either <code>STRING</code> or
* <code>JSON</code>.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The value of the payload type can be either <code>STRING</code> or
* <code>JSON</code>.</p>
*/
inline void SetType(const PayloadType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The value of the payload type can be either <code>STRING</code> or
* <code>JSON</code>.</p>
*/
inline void SetType(PayloadType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The value of the payload type can be either <code>STRING</code> or
* <code>JSON</code>.</p>
*/
inline Payload& WithType(const PayloadType& value) { SetType(value); return *this;}
/**
* <p>The value of the payload type can be either <code>STRING</code> or
* <code>JSON</code>.</p>
*/
inline Payload& WithType(PayloadType&& value) { SetType(std::move(value)); return *this;}
private:
Aws::String m_contentExpression;
bool m_contentExpressionHasBeenSet;
PayloadType m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace IoTEvents
{
namespace Model
{
enum class PayloadType
{
NOT_SET,
STRING,
JSON
};
namespace PayloadTypeMapper
{
AWS_IOTEVENTS_API PayloadType GetPayloadTypeForName(const Aws::String& name);
AWS_IOTEVENTS_API Aws::String GetNameForPayloadType(PayloadType value);
} // namespace PayloadTypeMapper
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,73 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/IoTEventsRequest.h>
#include <aws/iotevents/model/LoggingOptions.h>
#include <utility>
namespace Aws
{
namespace IoTEvents
{
namespace Model
{
/**
*/
class AWS_IOTEVENTS_API PutLoggingOptionsRequest : public IoTEventsRequest
{
public:
PutLoggingOptionsRequest();
// 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 "PutLoggingOptions"; }
Aws::String SerializePayload() const override;
/**
* <p>The new values of the AWS IoT Events logging options.</p>
*/
inline const LoggingOptions& GetLoggingOptions() const{ return m_loggingOptions; }
/**
* <p>The new values of the AWS IoT Events logging options.</p>
*/
inline bool LoggingOptionsHasBeenSet() const { return m_loggingOptionsHasBeenSet; }
/**
* <p>The new values of the AWS IoT Events logging options.</p>
*/
inline void SetLoggingOptions(const LoggingOptions& value) { m_loggingOptionsHasBeenSet = true; m_loggingOptions = value; }
/**
* <p>The new values of the AWS IoT Events logging options.</p>
*/
inline void SetLoggingOptions(LoggingOptions&& value) { m_loggingOptionsHasBeenSet = true; m_loggingOptions = std::move(value); }
/**
* <p>The new values of the AWS IoT Events logging options.</p>
*/
inline PutLoggingOptionsRequest& WithLoggingOptions(const LoggingOptions& value) { SetLoggingOptions(value); return *this;}
/**
* <p>The new values of the AWS IoT Events logging options.</p>
*/
inline PutLoggingOptionsRequest& WithLoggingOptions(LoggingOptions&& value) { SetLoggingOptions(std::move(value)); return *this;}
private:
LoggingOptions m_loggingOptions;
bool m_loggingOptionsHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,90 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_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 IoTEvents
{
namespace Model
{
/**
* <p>Information required to reset the timer. The timer is reset to the previously
* evaluated result of the duration. The duration expression isn't reevaluated when
* you reset the timer.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/ResetTimerAction">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API ResetTimerAction
{
public:
ResetTimerAction();
ResetTimerAction(Aws::Utils::Json::JsonView jsonValue);
ResetTimerAction& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the timer to reset.</p>
*/
inline const Aws::String& GetTimerName() const{ return m_timerName; }
/**
* <p>The name of the timer to reset.</p>
*/
inline bool TimerNameHasBeenSet() const { return m_timerNameHasBeenSet; }
/**
* <p>The name of the timer to reset.</p>
*/
inline void SetTimerName(const Aws::String& value) { m_timerNameHasBeenSet = true; m_timerName = value; }
/**
* <p>The name of the timer to reset.</p>
*/
inline void SetTimerName(Aws::String&& value) { m_timerNameHasBeenSet = true; m_timerName = std::move(value); }
/**
* <p>The name of the timer to reset.</p>
*/
inline void SetTimerName(const char* value) { m_timerNameHasBeenSet = true; m_timerName.assign(value); }
/**
* <p>The name of the timer to reset.</p>
*/
inline ResetTimerAction& WithTimerName(const Aws::String& value) { SetTimerName(value); return *this;}
/**
* <p>The name of the timer to reset.</p>
*/
inline ResetTimerAction& WithTimerName(Aws::String&& value) { SetTimerName(std::move(value)); return *this;}
/**
* <p>The name of the timer to reset.</p>
*/
inline ResetTimerAction& WithTimerName(const char* value) { SetTimerName(value); return *this;}
private:
Aws::String m_timerName;
bool m_timerNameHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

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/IoTEvents_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 IoTEvents
{
namespace Model
{
/**
* <p>The resource already exists.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/ResourceAlreadyExistsException">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API ResourceAlreadyExistsException
{
public:
ResourceAlreadyExistsException();
ResourceAlreadyExistsException(Aws::Utils::Json::JsonView jsonValue);
ResourceAlreadyExistsException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The message for the exception.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>The message for the exception.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>The message for the exception.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>The message for the exception.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>The message for the exception.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>The message for the exception.</p>
*/
inline ResourceAlreadyExistsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>The message for the exception.</p>
*/
inline ResourceAlreadyExistsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>The message for the exception.</p>
*/
inline ResourceAlreadyExistsException& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline const Aws::String& GetResourceId() const{ return m_resourceId; }
/**
* <p>The ID of the resource.</p>
*/
inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
/**
* <p>The ID of the resource.</p>
*/
inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
/**
* <p>The ID of the resource.</p>
*/
inline ResourceAlreadyExistsException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline ResourceAlreadyExistsException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
/**
* <p>The ID of the resource.</p>
*/
inline ResourceAlreadyExistsException& WithResourceId(const char* value) { SetResourceId(value); return *this;}
/**
* <p>The ARN of the resource.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The ARN of the resource.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The ARN of the resource.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The ARN of the resource.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The ARN of the resource.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The ARN of the resource.</p>
*/
inline ResourceAlreadyExistsException& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The ARN of the resource.</p>
*/
inline ResourceAlreadyExistsException& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The ARN of the resource.</p>
*/
inline ResourceAlreadyExistsException& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
private:
Aws::String m_message;
bool m_messageHasBeenSet;
Aws::String m_resourceId;
bool m_resourceIdHasBeenSet;
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,130 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/Payload.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Information required to publish the Amazon SNS message.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/SNSTopicPublishAction">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API SNSTopicPublishAction
{
public:
SNSTopicPublishAction();
SNSTopicPublishAction(Aws::Utils::Json::JsonView jsonValue);
SNSTopicPublishAction& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN of the Amazon SNS target where the message is sent.</p>
*/
inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
/**
* <p>The ARN of the Amazon SNS target where the message is sent.</p>
*/
inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
/**
* <p>The ARN of the Amazon SNS target where the message is sent.</p>
*/
inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
/**
* <p>The ARN of the Amazon SNS target where the message is sent.</p>
*/
inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
/**
* <p>The ARN of the Amazon SNS target where the message is sent.</p>
*/
inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
/**
* <p>The ARN of the Amazon SNS target where the message is sent.</p>
*/
inline SNSTopicPublishAction& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
/**
* <p>The ARN of the Amazon SNS target where the message is sent.</p>
*/
inline SNSTopicPublishAction& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
/**
* <p>The ARN of the Amazon SNS target where the message is sent.</p>
*/
inline SNSTopicPublishAction& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
/**
* <p>You can configure the action payload when you send a message as an Amazon SNS
* push notification.</p>
*/
inline const Payload& GetPayload() const{ return m_payload; }
/**
* <p>You can configure the action payload when you send a message as an Amazon SNS
* push notification.</p>
*/
inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
/**
* <p>You can configure the action payload when you send a message as an Amazon SNS
* push notification.</p>
*/
inline void SetPayload(const Payload& value) { m_payloadHasBeenSet = true; m_payload = value; }
/**
* <p>You can configure the action payload when you send a message as an Amazon SNS
* push notification.</p>
*/
inline void SetPayload(Payload&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
/**
* <p>You can configure the action payload when you send a message as an Amazon SNS
* push notification.</p>
*/
inline SNSTopicPublishAction& WithPayload(const Payload& value) { SetPayload(value); return *this;}
/**
* <p>You can configure the action payload when you send a message as an Amazon SNS
* push notification.</p>
*/
inline SNSTopicPublishAction& WithPayload(Payload&& value) { SetPayload(std::move(value)); return *this;}
private:
Aws::String m_targetArn;
bool m_targetArnHasBeenSet;
Payload m_payload;
bool m_payloadHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,172 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_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 IoTEvents
{
namespace Model
{
/**
* <p>Information needed to set the timer.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/SetTimerAction">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API SetTimerAction
{
public:
SetTimerAction();
SetTimerAction(Aws::Utils::Json::JsonView jsonValue);
SetTimerAction& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the timer.</p>
*/
inline const Aws::String& GetTimerName() const{ return m_timerName; }
/**
* <p>The name of the timer.</p>
*/
inline bool TimerNameHasBeenSet() const { return m_timerNameHasBeenSet; }
/**
* <p>The name of the timer.</p>
*/
inline void SetTimerName(const Aws::String& value) { m_timerNameHasBeenSet = true; m_timerName = value; }
/**
* <p>The name of the timer.</p>
*/
inline void SetTimerName(Aws::String&& value) { m_timerNameHasBeenSet = true; m_timerName = std::move(value); }
/**
* <p>The name of the timer.</p>
*/
inline void SetTimerName(const char* value) { m_timerNameHasBeenSet = true; m_timerName.assign(value); }
/**
* <p>The name of the timer.</p>
*/
inline SetTimerAction& WithTimerName(const Aws::String& value) { SetTimerName(value); return *this;}
/**
* <p>The name of the timer.</p>
*/
inline SetTimerAction& WithTimerName(Aws::String&& value) { SetTimerName(std::move(value)); return *this;}
/**
* <p>The name of the timer.</p>
*/
inline SetTimerAction& WithTimerName(const char* value) { SetTimerName(value); return *this;}
/**
* <p>The duration of the timer, in seconds. You can use a string expression that
* includes numbers, variables (<code>$variable.&lt;variable-name&gt;</code>), and
* input values (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as
* the duration. The range of the duration is 1-31622400 seconds. To ensure
* accuracy, the minimum duration is 60 seconds. The evaluated result of the
* duration is rounded down to the nearest whole number. </p>
*/
inline const Aws::String& GetDurationExpression() const{ return m_durationExpression; }
/**
* <p>The duration of the timer, in seconds. You can use a string expression that
* includes numbers, variables (<code>$variable.&lt;variable-name&gt;</code>), and
* input values (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as
* the duration. The range of the duration is 1-31622400 seconds. To ensure
* accuracy, the minimum duration is 60 seconds. The evaluated result of the
* duration is rounded down to the nearest whole number. </p>
*/
inline bool DurationExpressionHasBeenSet() const { return m_durationExpressionHasBeenSet; }
/**
* <p>The duration of the timer, in seconds. You can use a string expression that
* includes numbers, variables (<code>$variable.&lt;variable-name&gt;</code>), and
* input values (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as
* the duration. The range of the duration is 1-31622400 seconds. To ensure
* accuracy, the minimum duration is 60 seconds. The evaluated result of the
* duration is rounded down to the nearest whole number. </p>
*/
inline void SetDurationExpression(const Aws::String& value) { m_durationExpressionHasBeenSet = true; m_durationExpression = value; }
/**
* <p>The duration of the timer, in seconds. You can use a string expression that
* includes numbers, variables (<code>$variable.&lt;variable-name&gt;</code>), and
* input values (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as
* the duration. The range of the duration is 1-31622400 seconds. To ensure
* accuracy, the minimum duration is 60 seconds. The evaluated result of the
* duration is rounded down to the nearest whole number. </p>
*/
inline void SetDurationExpression(Aws::String&& value) { m_durationExpressionHasBeenSet = true; m_durationExpression = std::move(value); }
/**
* <p>The duration of the timer, in seconds. You can use a string expression that
* includes numbers, variables (<code>$variable.&lt;variable-name&gt;</code>), and
* input values (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as
* the duration. The range of the duration is 1-31622400 seconds. To ensure
* accuracy, the minimum duration is 60 seconds. The evaluated result of the
* duration is rounded down to the nearest whole number. </p>
*/
inline void SetDurationExpression(const char* value) { m_durationExpressionHasBeenSet = true; m_durationExpression.assign(value); }
/**
* <p>The duration of the timer, in seconds. You can use a string expression that
* includes numbers, variables (<code>$variable.&lt;variable-name&gt;</code>), and
* input values (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as
* the duration. The range of the duration is 1-31622400 seconds. To ensure
* accuracy, the minimum duration is 60 seconds. The evaluated result of the
* duration is rounded down to the nearest whole number. </p>
*/
inline SetTimerAction& WithDurationExpression(const Aws::String& value) { SetDurationExpression(value); return *this;}
/**
* <p>The duration of the timer, in seconds. You can use a string expression that
* includes numbers, variables (<code>$variable.&lt;variable-name&gt;</code>), and
* input values (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as
* the duration. The range of the duration is 1-31622400 seconds. To ensure
* accuracy, the minimum duration is 60 seconds. The evaluated result of the
* duration is rounded down to the nearest whole number. </p>
*/
inline SetTimerAction& WithDurationExpression(Aws::String&& value) { SetDurationExpression(std::move(value)); return *this;}
/**
* <p>The duration of the timer, in seconds. You can use a string expression that
* includes numbers, variables (<code>$variable.&lt;variable-name&gt;</code>), and
* input values (<code>$input.&lt;input-name&gt;.&lt;path-to-datum&gt;</code>) as
* the duration. The range of the duration is 1-31622400 seconds. To ensure
* accuracy, the minimum duration is 60 seconds. The evaluated result of the
* duration is rounded down to the nearest whole number. </p>
*/
inline SetTimerAction& WithDurationExpression(const char* value) { SetDurationExpression(value); return *this;}
private:
Aws::String m_timerName;
bool m_timerNameHasBeenSet;
Aws::String m_durationExpression;
bool m_durationExpressionHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_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 IoTEvents
{
namespace Model
{
/**
* <p>Information about the variable and its new value.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/SetVariableAction">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API SetVariableAction
{
public:
SetVariableAction();
SetVariableAction(Aws::Utils::Json::JsonView jsonValue);
SetVariableAction& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the variable.</p>
*/
inline const Aws::String& GetVariableName() const{ return m_variableName; }
/**
* <p>The name of the variable.</p>
*/
inline bool VariableNameHasBeenSet() const { return m_variableNameHasBeenSet; }
/**
* <p>The name of the variable.</p>
*/
inline void SetVariableName(const Aws::String& value) { m_variableNameHasBeenSet = true; m_variableName = value; }
/**
* <p>The name of the variable.</p>
*/
inline void SetVariableName(Aws::String&& value) { m_variableNameHasBeenSet = true; m_variableName = std::move(value); }
/**
* <p>The name of the variable.</p>
*/
inline void SetVariableName(const char* value) { m_variableNameHasBeenSet = true; m_variableName.assign(value); }
/**
* <p>The name of the variable.</p>
*/
inline SetVariableAction& WithVariableName(const Aws::String& value) { SetVariableName(value); return *this;}
/**
* <p>The name of the variable.</p>
*/
inline SetVariableAction& WithVariableName(Aws::String&& value) { SetVariableName(std::move(value)); return *this;}
/**
* <p>The name of the variable.</p>
*/
inline SetVariableAction& WithVariableName(const char* value) { SetVariableName(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 SetVariableAction& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The new value of the variable.</p>
*/
inline SetVariableAction& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The new value of the variable.</p>
*/
inline SetVariableAction& WithValue(const char* value) { SetValue(value); return *this;}
private:
Aws::String m_variableName;
bool m_variableNameHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,158 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/Payload.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Sends information about the detector model instance and the event that
* triggered the action to an Amazon SQS queue.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/SqsAction">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API SqsAction
{
public:
SqsAction();
SqsAction(Aws::Utils::Json::JsonView jsonValue);
SqsAction& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The URL of the SQS queue where the data is written.</p>
*/
inline const Aws::String& GetQueueUrl() const{ return m_queueUrl; }
/**
* <p>The URL of the SQS queue where the data is written.</p>
*/
inline bool QueueUrlHasBeenSet() const { return m_queueUrlHasBeenSet; }
/**
* <p>The URL of the SQS queue where the data is written.</p>
*/
inline void SetQueueUrl(const Aws::String& value) { m_queueUrlHasBeenSet = true; m_queueUrl = value; }
/**
* <p>The URL of the SQS queue where the data is written.</p>
*/
inline void SetQueueUrl(Aws::String&& value) { m_queueUrlHasBeenSet = true; m_queueUrl = std::move(value); }
/**
* <p>The URL of the SQS queue where the data is written.</p>
*/
inline void SetQueueUrl(const char* value) { m_queueUrlHasBeenSet = true; m_queueUrl.assign(value); }
/**
* <p>The URL of the SQS queue where the data is written.</p>
*/
inline SqsAction& WithQueueUrl(const Aws::String& value) { SetQueueUrl(value); return *this;}
/**
* <p>The URL of the SQS queue where the data is written.</p>
*/
inline SqsAction& WithQueueUrl(Aws::String&& value) { SetQueueUrl(std::move(value)); return *this;}
/**
* <p>The URL of the SQS queue where the data is written.</p>
*/
inline SqsAction& WithQueueUrl(const char* value) { SetQueueUrl(value); return *this;}
/**
* <p>Set this to TRUE if you want the data to be base-64 encoded before it is
* written to the queue. Otherwise, set this to FALSE.</p>
*/
inline bool GetUseBase64() const{ return m_useBase64; }
/**
* <p>Set this to TRUE if you want the data to be base-64 encoded before it is
* written to the queue. Otherwise, set this to FALSE.</p>
*/
inline bool UseBase64HasBeenSet() const { return m_useBase64HasBeenSet; }
/**
* <p>Set this to TRUE if you want the data to be base-64 encoded before it is
* written to the queue. Otherwise, set this to FALSE.</p>
*/
inline void SetUseBase64(bool value) { m_useBase64HasBeenSet = true; m_useBase64 = value; }
/**
* <p>Set this to TRUE if you want the data to be base-64 encoded before it is
* written to the queue. Otherwise, set this to FALSE.</p>
*/
inline SqsAction& WithUseBase64(bool value) { SetUseBase64(value); return *this;}
/**
* <p>You can configure the action payload when you send a message to an Amazon SQS
* queue.</p>
*/
inline const Payload& GetPayload() const{ return m_payload; }
/**
* <p>You can configure the action payload when you send a message to an Amazon SQS
* queue.</p>
*/
inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
/**
* <p>You can configure the action payload when you send a message to an Amazon SQS
* queue.</p>
*/
inline void SetPayload(const Payload& value) { m_payloadHasBeenSet = true; m_payload = value; }
/**
* <p>You can configure the action payload when you send a message to an Amazon SQS
* queue.</p>
*/
inline void SetPayload(Payload&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
/**
* <p>You can configure the action payload when you send a message to an Amazon SQS
* queue.</p>
*/
inline SqsAction& WithPayload(const Payload& value) { SetPayload(value); return *this;}
/**
* <p>You can configure the action payload when you send a message to an Amazon SQS
* queue.</p>
*/
inline SqsAction& WithPayload(Payload&& value) { SetPayload(std::move(value)); return *this;}
private:
Aws::String m_queueUrl;
bool m_queueUrlHasBeenSet;
bool m_useBase64;
bool m_useBase64HasBeenSet;
Payload m_payload;
bool m_payloadHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,211 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/OnInputLifecycle.h>
#include <aws/iotevents/model/OnEnterLifecycle.h>
#include <aws/iotevents/model/OnExitLifecycle.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Information that defines a state of a detector.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/State">AWS API
* Reference</a></p>
*/
class AWS_IOTEVENTS_API State
{
public:
State();
State(Aws::Utils::Json::JsonView jsonValue);
State& 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 State& WithStateName(const Aws::String& value) { SetStateName(value); return *this;}
/**
* <p>The name of the state.</p>
*/
inline State& WithStateName(Aws::String&& value) { SetStateName(std::move(value)); return *this;}
/**
* <p>The name of the state.</p>
*/
inline State& WithStateName(const char* value) { SetStateName(value); return *this;}
/**
* <p>When an input is received and the <code>condition</code> is TRUE, perform the
* specified <code>actions</code>.</p>
*/
inline const OnInputLifecycle& GetOnInput() const{ return m_onInput; }
/**
* <p>When an input is received and the <code>condition</code> is TRUE, perform the
* specified <code>actions</code>.</p>
*/
inline bool OnInputHasBeenSet() const { return m_onInputHasBeenSet; }
/**
* <p>When an input is received and the <code>condition</code> is TRUE, perform the
* specified <code>actions</code>.</p>
*/
inline void SetOnInput(const OnInputLifecycle& value) { m_onInputHasBeenSet = true; m_onInput = value; }
/**
* <p>When an input is received and the <code>condition</code> is TRUE, perform the
* specified <code>actions</code>.</p>
*/
inline void SetOnInput(OnInputLifecycle&& value) { m_onInputHasBeenSet = true; m_onInput = std::move(value); }
/**
* <p>When an input is received and the <code>condition</code> is TRUE, perform the
* specified <code>actions</code>.</p>
*/
inline State& WithOnInput(const OnInputLifecycle& value) { SetOnInput(value); return *this;}
/**
* <p>When an input is received and the <code>condition</code> is TRUE, perform the
* specified <code>actions</code>.</p>
*/
inline State& WithOnInput(OnInputLifecycle&& value) { SetOnInput(std::move(value)); return *this;}
/**
* <p>When entering this state, perform these <code>actions</code> if the
* <code>condition</code> is TRUE.</p>
*/
inline const OnEnterLifecycle& GetOnEnter() const{ return m_onEnter; }
/**
* <p>When entering this state, perform these <code>actions</code> if the
* <code>condition</code> is TRUE.</p>
*/
inline bool OnEnterHasBeenSet() const { return m_onEnterHasBeenSet; }
/**
* <p>When entering this state, perform these <code>actions</code> if the
* <code>condition</code> is TRUE.</p>
*/
inline void SetOnEnter(const OnEnterLifecycle& value) { m_onEnterHasBeenSet = true; m_onEnter = value; }
/**
* <p>When entering this state, perform these <code>actions</code> if the
* <code>condition</code> is TRUE.</p>
*/
inline void SetOnEnter(OnEnterLifecycle&& value) { m_onEnterHasBeenSet = true; m_onEnter = std::move(value); }
/**
* <p>When entering this state, perform these <code>actions</code> if the
* <code>condition</code> is TRUE.</p>
*/
inline State& WithOnEnter(const OnEnterLifecycle& value) { SetOnEnter(value); return *this;}
/**
* <p>When entering this state, perform these <code>actions</code> if the
* <code>condition</code> is TRUE.</p>
*/
inline State& WithOnEnter(OnEnterLifecycle&& value) { SetOnEnter(std::move(value)); return *this;}
/**
* <p>When exiting this state, perform these <code>actions</code> if the specified
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline const OnExitLifecycle& GetOnExit() const{ return m_onExit; }
/**
* <p>When exiting this state, perform these <code>actions</code> if the specified
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline bool OnExitHasBeenSet() const { return m_onExitHasBeenSet; }
/**
* <p>When exiting this state, perform these <code>actions</code> if the specified
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline void SetOnExit(const OnExitLifecycle& value) { m_onExitHasBeenSet = true; m_onExit = value; }
/**
* <p>When exiting this state, perform these <code>actions</code> if the specified
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline void SetOnExit(OnExitLifecycle&& value) { m_onExitHasBeenSet = true; m_onExit = std::move(value); }
/**
* <p>When exiting this state, perform these <code>actions</code> if the specified
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline State& WithOnExit(const OnExitLifecycle& value) { SetOnExit(value); return *this;}
/**
* <p>When exiting this state, perform these <code>actions</code> if the specified
* <code>condition</code> is <code>TRUE</code>.</p>
*/
inline State& WithOnExit(OnExitLifecycle&& value) { SetOnExit(std::move(value)); return *this;}
private:
Aws::String m_stateName;
bool m_stateNameHasBeenSet;
OnInputLifecycle m_onInput;
bool m_onInputHasBeenSet;
OnEnterLifecycle m_onEnter;
bool m_onEnterHasBeenSet;
OnExitLifecycle m_onExit;
bool m_onExitHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // 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/IoTEvents_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 IoTEvents
{
namespace Model
{
/**
* <p>Metadata that can be used to manage the resource.</p><p><h3>See Also:</h3>
* <a href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/Tag">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API Tag
{
public:
Tag();
Tag(Aws::Utils::Json::JsonView jsonValue);
Tag& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The tag's key.</p>
*/
inline const Aws::String& GetKey() const{ return m_key; }
/**
* <p>The tag's key.</p>
*/
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
/**
* <p>The tag's key.</p>
*/
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
/**
* <p>The tag's key.</p>
*/
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
/**
* <p>The tag's key.</p>
*/
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
/**
* <p>The tag's key.</p>
*/
inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
/**
* <p>The tag's key.</p>
*/
inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
/**
* <p>The tag's key.</p>
*/
inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
/**
* <p>The tag's value.</p>
*/
inline const Aws::String& GetValue() const{ return m_value; }
/**
* <p>The tag's value.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The tag's value.</p>
*/
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The tag's value.</p>
*/
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The tag's value.</p>
*/
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
/**
* <p>The tag's value.</p>
*/
inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
/**
* <p>The tag's value.</p>
*/
inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
/**
* <p>The tag's value.</p>
*/
inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
private:
Aws::String m_key;
bool m_keyHasBeenSet;
Aws::String m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,135 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/IoTEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotevents/model/Tag.h>
#include <utility>
namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace IoTEvents
{
namespace Model
{
/**
*/
class AWS_IOTEVENTS_API TagResourceRequest : public IoTEventsRequest
{
public:
TagResourceRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "TagResource"; }
Aws::String SerializePayload() const override;
void AddQueryStringParameters(Aws::Http::URI& uri) const override;
/**
* <p>The ARN of the resource.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The ARN of the resource.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The ARN of the resource.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The ARN of the resource.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The ARN of the resource.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The ARN of the resource.</p>
*/
inline TagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The ARN of the resource.</p>
*/
inline TagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The ARN of the resource.</p>
*/
inline TagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>The new or modified tags for the resource.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>The new or modified tags for the resource.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The new or modified tags for the resource.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The new or modified tags for the resource.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The new or modified tags for the resource.</p>
*/
inline TagResourceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>The new or modified tags for the resource.</p>
*/
inline TagResourceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The new or modified tags for the resource.</p>
*/
inline TagResourceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The new or modified tags for the resource.</p>
*/
inline TagResourceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
Aws::Vector<Tag> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

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

View File

@@ -0,0 +1,231 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/iotevents/model/Action.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
/**
* <p>Specifies the actions performed and the next state entered when a
* <code>condition</code> evaluates to TRUE.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/TransitionEvent">AWS
* API Reference</a></p>
*/
class AWS_IOTEVENTS_API TransitionEvent
{
public:
TransitionEvent();
TransitionEvent(Aws::Utils::Json::JsonView jsonValue);
TransitionEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the transition event.</p>
*/
inline const Aws::String& GetEventName() const{ return m_eventName; }
/**
* <p>The name of the transition event.</p>
*/
inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; }
/**
* <p>The name of the transition event.</p>
*/
inline void SetEventName(const Aws::String& value) { m_eventNameHasBeenSet = true; m_eventName = value; }
/**
* <p>The name of the transition event.</p>
*/
inline void SetEventName(Aws::String&& value) { m_eventNameHasBeenSet = true; m_eventName = std::move(value); }
/**
* <p>The name of the transition event.</p>
*/
inline void SetEventName(const char* value) { m_eventNameHasBeenSet = true; m_eventName.assign(value); }
/**
* <p>The name of the transition event.</p>
*/
inline TransitionEvent& WithEventName(const Aws::String& value) { SetEventName(value); return *this;}
/**
* <p>The name of the transition event.</p>
*/
inline TransitionEvent& WithEventName(Aws::String&& value) { SetEventName(std::move(value)); return *this;}
/**
* <p>The name of the transition event.</p>
*/
inline TransitionEvent& WithEventName(const char* value) { SetEventName(value); return *this;}
/**
* <p>Required. A Boolean expression that when TRUE causes the actions to be
* performed and the <code>nextState</code> to be entered.</p>
*/
inline const Aws::String& GetCondition() const{ return m_condition; }
/**
* <p>Required. A Boolean expression that when TRUE causes the actions to be
* performed and the <code>nextState</code> to be entered.</p>
*/
inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
/**
* <p>Required. A Boolean expression that when TRUE causes the actions to be
* performed and the <code>nextState</code> to be entered.</p>
*/
inline void SetCondition(const Aws::String& value) { m_conditionHasBeenSet = true; m_condition = value; }
/**
* <p>Required. A Boolean expression that when TRUE causes the actions to be
* performed and the <code>nextState</code> to be entered.</p>
*/
inline void SetCondition(Aws::String&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
/**
* <p>Required. A Boolean expression that when TRUE causes the actions to be
* performed and the <code>nextState</code> to be entered.</p>
*/
inline void SetCondition(const char* value) { m_conditionHasBeenSet = true; m_condition.assign(value); }
/**
* <p>Required. A Boolean expression that when TRUE causes the actions to be
* performed and the <code>nextState</code> to be entered.</p>
*/
inline TransitionEvent& WithCondition(const Aws::String& value) { SetCondition(value); return *this;}
/**
* <p>Required. A Boolean expression that when TRUE causes the actions to be
* performed and the <code>nextState</code> to be entered.</p>
*/
inline TransitionEvent& WithCondition(Aws::String&& value) { SetCondition(std::move(value)); return *this;}
/**
* <p>Required. A Boolean expression that when TRUE causes the actions to be
* performed and the <code>nextState</code> to be entered.</p>
*/
inline TransitionEvent& WithCondition(const char* value) { SetCondition(value); return *this;}
/**
* <p>The actions to be performed.</p>
*/
inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
/**
* <p>The actions to be performed.</p>
*/
inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
/**
* <p>The actions to be performed.</p>
*/
inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
/**
* <p>The actions to be performed.</p>
*/
inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
/**
* <p>The actions to be performed.</p>
*/
inline TransitionEvent& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
/**
* <p>The actions to be performed.</p>
*/
inline TransitionEvent& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
/**
* <p>The actions to be performed.</p>
*/
inline TransitionEvent& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
/**
* <p>The actions to be performed.</p>
*/
inline TransitionEvent& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
/**
* <p>The next state to enter.</p>
*/
inline const Aws::String& GetNextState() const{ return m_nextState; }
/**
* <p>The next state to enter.</p>
*/
inline bool NextStateHasBeenSet() const { return m_nextStateHasBeenSet; }
/**
* <p>The next state to enter.</p>
*/
inline void SetNextState(const Aws::String& value) { m_nextStateHasBeenSet = true; m_nextState = value; }
/**
* <p>The next state to enter.</p>
*/
inline void SetNextState(Aws::String&& value) { m_nextStateHasBeenSet = true; m_nextState = std::move(value); }
/**
* <p>The next state to enter.</p>
*/
inline void SetNextState(const char* value) { m_nextStateHasBeenSet = true; m_nextState.assign(value); }
/**
* <p>The next state to enter.</p>
*/
inline TransitionEvent& WithNextState(const Aws::String& value) { SetNextState(value); return *this;}
/**
* <p>The next state to enter.</p>
*/
inline TransitionEvent& WithNextState(Aws::String&& value) { SetNextState(std::move(value)); return *this;}
/**
* <p>The next state to enter.</p>
*/
inline TransitionEvent& WithNextState(const char* value) { SetNextState(value); return *this;}
private:
Aws::String m_eventName;
bool m_eventNameHasBeenSet;
Aws::String m_condition;
bool m_conditionHasBeenSet;
Aws::Vector<Action> m_actions;
bool m_actionsHasBeenSet;
Aws::String m_nextState;
bool m_nextStateHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

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

View File

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

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/IoTEvents_EXPORTS.h>
#include <aws/iotevents/IoTEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/DetectorModelDefinition.h>
#include <aws/iotevents/model/EvaluationMethod.h>
#include <utility>
namespace Aws
{
namespace IoTEvents
{
namespace Model
{
/**
*/
class AWS_IOTEVENTS_API UpdateDetectorModelRequest : public IoTEventsRequest
{
public:
UpdateDetectorModelRequest();
// 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 "UpdateDetectorModel"; }
Aws::String SerializePayload() const override;
/**
* <p>The name of the detector model that is updated.</p>
*/
inline const Aws::String& GetDetectorModelName() const{ return m_detectorModelName; }
/**
* <p>The name of the detector model that is updated.</p>
*/
inline bool DetectorModelNameHasBeenSet() const { return m_detectorModelNameHasBeenSet; }
/**
* <p>The name of the detector model that is updated.</p>
*/
inline void SetDetectorModelName(const Aws::String& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = value; }
/**
* <p>The name of the detector model that is updated.</p>
*/
inline void SetDetectorModelName(Aws::String&& value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName = std::move(value); }
/**
* <p>The name of the detector model that is updated.</p>
*/
inline void SetDetectorModelName(const char* value) { m_detectorModelNameHasBeenSet = true; m_detectorModelName.assign(value); }
/**
* <p>The name of the detector model that is updated.</p>
*/
inline UpdateDetectorModelRequest& WithDetectorModelName(const Aws::String& value) { SetDetectorModelName(value); return *this;}
/**
* <p>The name of the detector model that is updated.</p>
*/
inline UpdateDetectorModelRequest& WithDetectorModelName(Aws::String&& value) { SetDetectorModelName(std::move(value)); return *this;}
/**
* <p>The name of the detector model that is updated.</p>
*/
inline UpdateDetectorModelRequest& WithDetectorModelName(const char* value) { SetDetectorModelName(value); return *this;}
/**
* <p>Information that defines how a detector operates.</p>
*/
inline const DetectorModelDefinition& GetDetectorModelDefinition() const{ return m_detectorModelDefinition; }
/**
* <p>Information that defines how a detector operates.</p>
*/
inline bool DetectorModelDefinitionHasBeenSet() const { return m_detectorModelDefinitionHasBeenSet; }
/**
* <p>Information that defines how a detector operates.</p>
*/
inline void SetDetectorModelDefinition(const DetectorModelDefinition& value) { m_detectorModelDefinitionHasBeenSet = true; m_detectorModelDefinition = value; }
/**
* <p>Information that defines how a detector operates.</p>
*/
inline void SetDetectorModelDefinition(DetectorModelDefinition&& value) { m_detectorModelDefinitionHasBeenSet = true; m_detectorModelDefinition = std::move(value); }
/**
* <p>Information that defines how a detector operates.</p>
*/
inline UpdateDetectorModelRequest& WithDetectorModelDefinition(const DetectorModelDefinition& value) { SetDetectorModelDefinition(value); return *this;}
/**
* <p>Information that defines how a detector operates.</p>
*/
inline UpdateDetectorModelRequest& WithDetectorModelDefinition(DetectorModelDefinition&& value) { SetDetectorModelDefinition(std::move(value)); return *this;}
/**
* <p>A brief description of the detector model.</p>
*/
inline const Aws::String& GetDetectorModelDescription() const{ return m_detectorModelDescription; }
/**
* <p>A brief description of the detector model.</p>
*/
inline bool DetectorModelDescriptionHasBeenSet() const { return m_detectorModelDescriptionHasBeenSet; }
/**
* <p>A brief description of the detector model.</p>
*/
inline void SetDetectorModelDescription(const Aws::String& value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription = value; }
/**
* <p>A brief description of the detector model.</p>
*/
inline void SetDetectorModelDescription(Aws::String&& value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription = std::move(value); }
/**
* <p>A brief description of the detector model.</p>
*/
inline void SetDetectorModelDescription(const char* value) { m_detectorModelDescriptionHasBeenSet = true; m_detectorModelDescription.assign(value); }
/**
* <p>A brief description of the detector model.</p>
*/
inline UpdateDetectorModelRequest& WithDetectorModelDescription(const Aws::String& value) { SetDetectorModelDescription(value); return *this;}
/**
* <p>A brief description of the detector model.</p>
*/
inline UpdateDetectorModelRequest& WithDetectorModelDescription(Aws::String&& value) { SetDetectorModelDescription(std::move(value)); return *this;}
/**
* <p>A brief description of the detector model.</p>
*/
inline UpdateDetectorModelRequest& WithDetectorModelDescription(const char* value) { SetDetectorModelDescription(value); return *this;}
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline UpdateDetectorModelRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline UpdateDetectorModelRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p>The ARN of the role that grants permission to AWS IoT Events to perform its
* operations.</p>
*/
inline UpdateDetectorModelRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline const EvaluationMethod& GetEvaluationMethod() const{ return m_evaluationMethod; }
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline bool EvaluationMethodHasBeenSet() const { return m_evaluationMethodHasBeenSet; }
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline void SetEvaluationMethod(const EvaluationMethod& value) { m_evaluationMethodHasBeenSet = true; m_evaluationMethod = value; }
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline void SetEvaluationMethod(EvaluationMethod&& value) { m_evaluationMethodHasBeenSet = true; m_evaluationMethod = std::move(value); }
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline UpdateDetectorModelRequest& WithEvaluationMethod(const EvaluationMethod& value) { SetEvaluationMethod(value); return *this;}
/**
* <p>Information about the order in which events are evaluated and how actions are
* executed. </p>
*/
inline UpdateDetectorModelRequest& WithEvaluationMethod(EvaluationMethod&& value) { SetEvaluationMethod(std::move(value)); return *this;}
private:
Aws::String m_detectorModelName;
bool m_detectorModelNameHasBeenSet;
DetectorModelDefinition m_detectorModelDefinition;
bool m_detectorModelDefinitionHasBeenSet;
Aws::String m_detectorModelDescription;
bool m_detectorModelDescriptionHasBeenSet;
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
EvaluationMethod m_evaluationMethod;
bool m_evaluationMethodHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // 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/IoTEvents_EXPORTS.h>
#include <aws/iotevents/model/DetectorModelConfiguration.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
class AWS_IOTEVENTS_API UpdateDetectorModelResult
{
public:
UpdateDetectorModelResult();
UpdateDetectorModelResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateDetectorModelResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about how the detector model is configured.</p>
*/
inline const DetectorModelConfiguration& GetDetectorModelConfiguration() const{ return m_detectorModelConfiguration; }
/**
* <p>Information about how the detector model is configured.</p>
*/
inline void SetDetectorModelConfiguration(const DetectorModelConfiguration& value) { m_detectorModelConfiguration = value; }
/**
* <p>Information about how the detector model is configured.</p>
*/
inline void SetDetectorModelConfiguration(DetectorModelConfiguration&& value) { m_detectorModelConfiguration = std::move(value); }
/**
* <p>Information about how the detector model is configured.</p>
*/
inline UpdateDetectorModelResult& WithDetectorModelConfiguration(const DetectorModelConfiguration& value) { SetDetectorModelConfiguration(value); return *this;}
/**
* <p>Information about how the detector model is configured.</p>
*/
inline UpdateDetectorModelResult& WithDetectorModelConfiguration(DetectorModelConfiguration&& value) { SetDetectorModelConfiguration(std::move(value)); return *this;}
private:
DetectorModelConfiguration m_detectorModelConfiguration;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws

View File

@@ -0,0 +1,162 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iotevents/IoTEvents_EXPORTS.h>
#include <aws/iotevents/IoTEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iotevents/model/InputDefinition.h>
#include <utility>
namespace Aws
{
namespace IoTEvents
{
namespace Model
{
/**
*/
class AWS_IOTEVENTS_API UpdateInputRequest : public IoTEventsRequest
{
public:
UpdateInputRequest();
// 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 "UpdateInput"; }
Aws::String SerializePayload() const override;
/**
* <p>The name of the input you want to update.</p>
*/
inline const Aws::String& GetInputName() const{ return m_inputName; }
/**
* <p>The name of the input you want to update.</p>
*/
inline bool InputNameHasBeenSet() const { return m_inputNameHasBeenSet; }
/**
* <p>The name of the input you want to update.</p>
*/
inline void SetInputName(const Aws::String& value) { m_inputNameHasBeenSet = true; m_inputName = value; }
/**
* <p>The name of the input you want to update.</p>
*/
inline void SetInputName(Aws::String&& value) { m_inputNameHasBeenSet = true; m_inputName = std::move(value); }
/**
* <p>The name of the input you want to update.</p>
*/
inline void SetInputName(const char* value) { m_inputNameHasBeenSet = true; m_inputName.assign(value); }
/**
* <p>The name of the input you want to update.</p>
*/
inline UpdateInputRequest& WithInputName(const Aws::String& value) { SetInputName(value); return *this;}
/**
* <p>The name of the input you want to update.</p>
*/
inline UpdateInputRequest& WithInputName(Aws::String&& value) { SetInputName(std::move(value)); return *this;}
/**
* <p>The name of the input you want to update.</p>
*/
inline UpdateInputRequest& WithInputName(const char* value) { SetInputName(value); return *this;}
/**
* <p>A brief description of the input.</p>
*/
inline const Aws::String& GetInputDescription() const{ return m_inputDescription; }
/**
* <p>A brief description of the input.</p>
*/
inline bool InputDescriptionHasBeenSet() const { return m_inputDescriptionHasBeenSet; }
/**
* <p>A brief description of the input.</p>
*/
inline void SetInputDescription(const Aws::String& value) { m_inputDescriptionHasBeenSet = true; m_inputDescription = value; }
/**
* <p>A brief description of the input.</p>
*/
inline void SetInputDescription(Aws::String&& value) { m_inputDescriptionHasBeenSet = true; m_inputDescription = std::move(value); }
/**
* <p>A brief description of the input.</p>
*/
inline void SetInputDescription(const char* value) { m_inputDescriptionHasBeenSet = true; m_inputDescription.assign(value); }
/**
* <p>A brief description of the input.</p>
*/
inline UpdateInputRequest& WithInputDescription(const Aws::String& value) { SetInputDescription(value); return *this;}
/**
* <p>A brief description of the input.</p>
*/
inline UpdateInputRequest& WithInputDescription(Aws::String&& value) { SetInputDescription(std::move(value)); return *this;}
/**
* <p>A brief description of the input.</p>
*/
inline UpdateInputRequest& WithInputDescription(const char* value) { SetInputDescription(value); return *this;}
/**
* <p>The definition of the input.</p>
*/
inline const InputDefinition& GetInputDefinition() const{ return m_inputDefinition; }
/**
* <p>The definition of the input.</p>
*/
inline bool InputDefinitionHasBeenSet() const { return m_inputDefinitionHasBeenSet; }
/**
* <p>The definition of the input.</p>
*/
inline void SetInputDefinition(const InputDefinition& value) { m_inputDefinitionHasBeenSet = true; m_inputDefinition = value; }
/**
* <p>The definition of the input.</p>
*/
inline void SetInputDefinition(InputDefinition&& value) { m_inputDefinitionHasBeenSet = true; m_inputDefinition = std::move(value); }
/**
* <p>The definition of the input.</p>
*/
inline UpdateInputRequest& WithInputDefinition(const InputDefinition& value) { SetInputDefinition(value); return *this;}
/**
* <p>The definition of the input.</p>
*/
inline UpdateInputRequest& WithInputDefinition(InputDefinition&& value) { SetInputDefinition(std::move(value)); return *this;}
private:
Aws::String m_inputName;
bool m_inputNameHasBeenSet;
Aws::String m_inputDescription;
bool m_inputDescriptionHasBeenSet;
InputDefinition m_inputDefinition;
bool m_inputDefinitionHasBeenSet;
};
} // namespace Model
} // namespace IoTEvents
} // 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/IoTEvents_EXPORTS.h>
#include <aws/iotevents/model/InputConfiguration.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace IoTEvents
{
namespace Model
{
class AWS_IOTEVENTS_API UpdateInputResult
{
public:
UpdateInputResult();
UpdateInputResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateInputResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the configuration of the input.</p>
*/
inline const InputConfiguration& GetInputConfiguration() const{ return m_inputConfiguration; }
/**
* <p>Information about the configuration of the input.</p>
*/
inline void SetInputConfiguration(const InputConfiguration& value) { m_inputConfiguration = value; }
/**
* <p>Information about the configuration of the input.</p>
*/
inline void SetInputConfiguration(InputConfiguration&& value) { m_inputConfiguration = std::move(value); }
/**
* <p>Information about the configuration of the input.</p>
*/
inline UpdateInputResult& WithInputConfiguration(const InputConfiguration& value) { SetInputConfiguration(value); return *this;}
/**
* <p>Information about the configuration of the input.</p>
*/
inline UpdateInputResult& WithInputConfiguration(InputConfiguration&& value) { SetInputConfiguration(std::move(value)); return *this;}
private:
InputConfiguration m_inputConfiguration;
};
} // namespace Model
} // namespace IoTEvents
} // namespace Aws