AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
SendDataIntegrationEventRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/UUID.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/supplychain/SupplyChainRequest.h>
11#include <aws/supplychain/SupplyChain_EXPORTS.h>
12#include <aws/supplychain/model/DataIntegrationEventDatasetTargetConfiguration.h>
13#include <aws/supplychain/model/DataIntegrationEventType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SupplyChain {
19namespace Model {
20
28 public:
29 AWS_SUPPLYCHAIN_API SendDataIntegrationEventRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "SendDataIntegrationEvent"; }
36
37 AWS_SUPPLYCHAIN_API Aws::String SerializePayload() const override;
38
40
43 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 template <typename InstanceIdT = Aws::String>
46 void SetInstanceId(InstanceIdT&& value) {
47 m_instanceIdHasBeenSet = true;
48 m_instanceId = std::forward<InstanceIdT>(value);
49 }
50 template <typename InstanceIdT = Aws::String>
52 SetInstanceId(std::forward<InstanceIdT>(value));
53 return *this;
54 }
56
58
94 inline DataIntegrationEventType GetEventType() const { return m_eventType; }
95 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
97 m_eventTypeHasBeenSet = true;
98 m_eventType = value;
99 }
101 SetEventType(value);
102 return *this;
103 }
105
107
117 inline const Aws::String& GetData() const { return m_data; }
118 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
119 template <typename DataT = Aws::String>
120 void SetData(DataT&& value) {
121 m_dataHasBeenSet = true;
122 m_data = std::forward<DataT>(value);
123 }
124 template <typename DataT = Aws::String>
126 SetData(std::forward<DataT>(value));
127 return *this;
128 }
130
132
138 inline const Aws::String& GetEventGroupId() const { return m_eventGroupId; }
139 inline bool EventGroupIdHasBeenSet() const { return m_eventGroupIdHasBeenSet; }
140 template <typename EventGroupIdT = Aws::String>
141 void SetEventGroupId(EventGroupIdT&& value) {
142 m_eventGroupIdHasBeenSet = true;
143 m_eventGroupId = std::forward<EventGroupIdT>(value);
144 }
145 template <typename EventGroupIdT = Aws::String>
147 SetEventGroupId(std::forward<EventGroupIdT>(value));
148 return *this;
149 }
151
153
157 inline const Aws::Utils::DateTime& GetEventTimestamp() const { return m_eventTimestamp; }
158 inline bool EventTimestampHasBeenSet() const { return m_eventTimestampHasBeenSet; }
159 template <typename EventTimestampT = Aws::Utils::DateTime>
160 void SetEventTimestamp(EventTimestampT&& value) {
161 m_eventTimestampHasBeenSet = true;
162 m_eventTimestamp = std::forward<EventTimestampT>(value);
163 }
164 template <typename EventTimestampT = Aws::Utils::DateTime>
166 SetEventTimestamp(std::forward<EventTimestampT>(value));
167 return *this;
168 }
170
172
178 inline const Aws::String& GetClientToken() const { return m_clientToken; }
179 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
180 template <typename ClientTokenT = Aws::String>
181 void SetClientToken(ClientTokenT&& value) {
182 m_clientTokenHasBeenSet = true;
183 m_clientToken = std::forward<ClientTokenT>(value);
184 }
185 template <typename ClientTokenT = Aws::String>
187 SetClientToken(std::forward<ClientTokenT>(value));
188 return *this;
189 }
191
193
196 inline const DataIntegrationEventDatasetTargetConfiguration& GetDatasetTarget() const { return m_datasetTarget; }
197 inline bool DatasetTargetHasBeenSet() const { return m_datasetTargetHasBeenSet; }
198 template <typename DatasetTargetT = DataIntegrationEventDatasetTargetConfiguration>
199 void SetDatasetTarget(DatasetTargetT&& value) {
200 m_datasetTargetHasBeenSet = true;
201 m_datasetTarget = std::forward<DatasetTargetT>(value);
202 }
203 template <typename DatasetTargetT = DataIntegrationEventDatasetTargetConfiguration>
205 SetDatasetTarget(std::forward<DatasetTargetT>(value));
206 return *this;
207 }
209 private:
210 Aws::String m_instanceId;
211
213
214 Aws::String m_data;
215
216 Aws::String m_eventGroupId;
217
218 Aws::Utils::DateTime m_eventTimestamp{};
219
221
222 DataIntegrationEventDatasetTargetConfiguration m_datasetTarget;
223 bool m_instanceIdHasBeenSet = false;
224 bool m_eventTypeHasBeenSet = false;
225 bool m_dataHasBeenSet = false;
226 bool m_eventGroupIdHasBeenSet = false;
227 bool m_eventTimestampHasBeenSet = false;
228 bool m_clientTokenHasBeenSet = true;
229 bool m_datasetTargetHasBeenSet = false;
230};
231
232} // namespace Model
233} // namespace SupplyChain
234} // namespace Aws
SendDataIntegrationEventRequest & WithEventType(DataIntegrationEventType value)
AWS_SUPPLYCHAIN_API SendDataIntegrationEventRequest()=default
SendDataIntegrationEventRequest & WithClientToken(ClientTokenT &&value)
SendDataIntegrationEventRequest & WithEventGroupId(EventGroupIdT &&value)
SendDataIntegrationEventRequest & WithInstanceId(InstanceIdT &&value)
SendDataIntegrationEventRequest & WithDatasetTarget(DatasetTargetT &&value)
AWS_SUPPLYCHAIN_API Aws::String SerializePayload() const override
SendDataIntegrationEventRequest & WithEventTimestamp(EventTimestampT &&value)
const DataIntegrationEventDatasetTargetConfiguration & GetDatasetTarget() const
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String