193 lines
6.7 KiB
C
193 lines
6.7 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/iot/IoT_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 IoT
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Sends an input to an AWS IoT Events detector.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/IotEventsAction">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_IOT_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.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetInputName() const{ return m_inputName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the AWS IoT Events input.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool InputNameHasBeenSet() const { return m_inputNameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the AWS IoT Events input.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetInputName(const Aws::String& value) { m_inputNameHasBeenSet = true; m_inputName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the AWS IoT Events input.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetInputName(Aws::String&& value) { m_inputNameHasBeenSet = true; m_inputName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the AWS IoT Events input.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetInputName(const char* value) { m_inputNameHasBeenSet = true; m_inputName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the AWS IoT Events input.</p>
|
|||
|
|
*/
|
|||
|
|
inline IotEventsAction& WithInputName(const Aws::String& value) { SetInputName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the AWS IoT Events input.</p>
|
|||
|
|
*/
|
|||
|
|
inline IotEventsAction& WithInputName(Aws::String&& value) { SetInputName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the AWS IoT Events input.</p>
|
|||
|
|
*/
|
|||
|
|
inline IotEventsAction& WithInputName(const char* value) { SetInputName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Optional] Use this to ensure that only one input (message) with a given
|
|||
|
|
* messageId will be processed by an AWS IoT Events detector.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetMessageId() const{ return m_messageId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Optional] Use this to ensure that only one input (message) with a given
|
|||
|
|
* messageId will be processed by an AWS IoT Events detector.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Optional] Use this to ensure that only one input (message) with a given
|
|||
|
|
* messageId will be processed by an AWS IoT Events detector.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Optional] Use this to ensure that only one input (message) with a given
|
|||
|
|
* messageId will be processed by an AWS IoT Events detector.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Optional] Use this to ensure that only one input (message) with a given
|
|||
|
|
* messageId will be processed by an AWS IoT Events detector.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Optional] Use this to ensure that only one input (message) with a given
|
|||
|
|
* messageId will be processed by an AWS IoT Events detector.</p>
|
|||
|
|
*/
|
|||
|
|
inline IotEventsAction& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Optional] Use this to ensure that only one input (message) with a given
|
|||
|
|
* messageId will be processed by an AWS IoT Events detector.</p>
|
|||
|
|
*/
|
|||
|
|
inline IotEventsAction& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Optional] Use this to ensure that only one input (message) with a given
|
|||
|
|
* messageId will be processed by an AWS IoT Events detector.</p>
|
|||
|
|
*/
|
|||
|
|
inline IotEventsAction& WithMessageId(const char* value) { SetMessageId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the role that grants AWS IoT permission to send an input to an AWS
|
|||
|
|
* IoT Events detector. ("Action":"iotevents:BatchPutMessage").</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the role that grants AWS IoT permission to send an input to an AWS
|
|||
|
|
* IoT Events detector. ("Action":"iotevents:BatchPutMessage").</p>
|
|||
|
|
*/
|
|||
|
|
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the role that grants AWS IoT permission to send an input to an AWS
|
|||
|
|
* IoT Events detector. ("Action":"iotevents:BatchPutMessage").</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the role that grants AWS IoT permission to send an input to an AWS
|
|||
|
|
* IoT Events detector. ("Action":"iotevents:BatchPutMessage").</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the role that grants AWS IoT permission to send an input to an AWS
|
|||
|
|
* IoT Events detector. ("Action":"iotevents:BatchPutMessage").</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the role that grants AWS IoT permission to send an input to an AWS
|
|||
|
|
* IoT Events detector. ("Action":"iotevents:BatchPutMessage").</p>
|
|||
|
|
*/
|
|||
|
|
inline IotEventsAction& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the role that grants AWS IoT permission to send an input to an AWS
|
|||
|
|
* IoT Events detector. ("Action":"iotevents:BatchPutMessage").</p>
|
|||
|
|
*/
|
|||
|
|
inline IotEventsAction& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ARN of the role that grants AWS IoT permission to send an input to an AWS
|
|||
|
|
* IoT Events detector. ("Action":"iotevents:BatchPutMessage").</p>
|
|||
|
|
*/
|
|||
|
|
inline IotEventsAction& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_inputName;
|
|||
|
|
bool m_inputNameHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_messageId;
|
|||
|
|
bool m_messageIdHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_roleArn;
|
|||
|
|
bool m_roleArnHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace IoT
|
|||
|
|
} // namespace Aws
|