AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
IotEventsAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT {
20namespace Model {
21
28 public:
29 AWS_IOT_API IotEventsAction() = default;
33
35
38 inline const Aws::String& GetInputName() const { return m_inputName; }
39 inline bool InputNameHasBeenSet() const { return m_inputNameHasBeenSet; }
40 template <typename InputNameT = Aws::String>
41 void SetInputName(InputNameT&& value) {
42 m_inputNameHasBeenSet = true;
43 m_inputName = std::forward<InputNameT>(value);
44 }
45 template <typename InputNameT = Aws::String>
46 IotEventsAction& WithInputName(InputNameT&& value) {
47 SetInputName(std::forward<InputNameT>(value));
48 return *this;
49 }
51
53
60 inline const Aws::String& GetMessageId() const { return m_messageId; }
61 inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
62 template <typename MessageIdT = Aws::String>
63 void SetMessageId(MessageIdT&& value) {
64 m_messageIdHasBeenSet = true;
65 m_messageId = std::forward<MessageIdT>(value);
66 }
67 template <typename MessageIdT = Aws::String>
68 IotEventsAction& WithMessageId(MessageIdT&& value) {
69 SetMessageId(std::forward<MessageIdT>(value));
70 return *this;
71 }
73
75
86 inline bool GetBatchMode() const { return m_batchMode; }
87 inline bool BatchModeHasBeenSet() const { return m_batchModeHasBeenSet; }
88 inline void SetBatchMode(bool value) {
89 m_batchModeHasBeenSet = true;
90 m_batchMode = value;
91 }
92 inline IotEventsAction& WithBatchMode(bool value) {
93 SetBatchMode(value);
94 return *this;
95 }
97
99
103 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
104 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
105 template <typename RoleArnT = Aws::String>
106 void SetRoleArn(RoleArnT&& value) {
107 m_roleArnHasBeenSet = true;
108 m_roleArn = std::forward<RoleArnT>(value);
109 }
110 template <typename RoleArnT = Aws::String>
111 IotEventsAction& WithRoleArn(RoleArnT&& value) {
112 SetRoleArn(std::forward<RoleArnT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_inputName;
118
119 Aws::String m_messageId;
120
121 bool m_batchMode{false};
122
123 Aws::String m_roleArn;
124 bool m_inputNameHasBeenSet = false;
125 bool m_messageIdHasBeenSet = false;
126 bool m_batchModeHasBeenSet = false;
127 bool m_roleArnHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace IoT
132} // namespace Aws
void SetRoleArn(RoleArnT &&value)
IotEventsAction & WithBatchMode(bool value)
AWS_IOT_API IotEventsAction(Aws::Utils::Json::JsonView jsonValue)
void SetInputName(InputNameT &&value)
AWS_IOT_API IotEventsAction & operator=(Aws::Utils::Json::JsonView jsonValue)
IotEventsAction & WithMessageId(MessageIdT &&value)
IotEventsAction & WithRoleArn(RoleArnT &&value)
AWS_IOT_API IotEventsAction()=default
const Aws::String & GetRoleArn() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetMessageId() const
IotEventsAction & WithInputName(InputNameT &&value)
void SetMessageId(MessageIdT &&value)
const Aws::String & GetInputName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue