AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
CreateCampaignRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iotfleetwise/IoTFleetWiseRequest.h>
11#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
12#include <aws/iotfleetwise/model/CollectionScheme.h>
13#include <aws/iotfleetwise/model/Compression.h>
14#include <aws/iotfleetwise/model/DataDestinationConfig.h>
15#include <aws/iotfleetwise/model/DataPartition.h>
16#include <aws/iotfleetwise/model/DiagnosticsMode.h>
17#include <aws/iotfleetwise/model/SignalFetchInformation.h>
18#include <aws/iotfleetwise/model/SignalInformation.h>
19#include <aws/iotfleetwise/model/SpoolingMode.h>
20#include <aws/iotfleetwise/model/Tag.h>
21
22#include <utility>
23
24namespace Aws {
25namespace IoTFleetWise {
26namespace Model {
27
31 public:
32 AWS_IOTFLEETWISE_API CreateCampaignRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateCampaign"; }
39
40 AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override;
41
42 AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template <typename NameT = Aws::String>
51 void SetName(NameT&& value) {
52 m_nameHasBeenSet = true;
53 m_name = std::forward<NameT>(value);
54 }
55 template <typename NameT = Aws::String>
57 SetName(std::forward<NameT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetDescription() const { return m_description; }
67 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
68 template <typename DescriptionT = Aws::String>
69 void SetDescription(DescriptionT&& value) {
70 m_descriptionHasBeenSet = true;
71 m_description = std::forward<DescriptionT>(value);
72 }
73 template <typename DescriptionT = Aws::String>
74 CreateCampaignRequest& WithDescription(DescriptionT&& value) {
75 SetDescription(std::forward<DescriptionT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetSignalCatalogArn() const { return m_signalCatalogArn; }
86 inline bool SignalCatalogArnHasBeenSet() const { return m_signalCatalogArnHasBeenSet; }
87 template <typename SignalCatalogArnT = Aws::String>
88 void SetSignalCatalogArn(SignalCatalogArnT&& value) {
89 m_signalCatalogArnHasBeenSet = true;
90 m_signalCatalogArn = std::forward<SignalCatalogArnT>(value);
91 }
92 template <typename SignalCatalogArnT = Aws::String>
93 CreateCampaignRequest& WithSignalCatalogArn(SignalCatalogArnT&& value) {
94 SetSignalCatalogArn(std::forward<SignalCatalogArnT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
104 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
105 template <typename TargetArnT = Aws::String>
106 void SetTargetArn(TargetArnT&& value) {
107 m_targetArnHasBeenSet = true;
108 m_targetArn = std::forward<TargetArnT>(value);
109 }
110 template <typename TargetArnT = Aws::String>
112 SetTargetArn(std::forward<TargetArnT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
123 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
124 template <typename StartTimeT = Aws::Utils::DateTime>
125 void SetStartTime(StartTimeT&& value) {
126 m_startTimeHasBeenSet = true;
127 m_startTime = std::forward<StartTimeT>(value);
128 }
129 template <typename StartTimeT = Aws::Utils::DateTime>
131 SetStartTime(std::forward<StartTimeT>(value));
132 return *this;
133 }
135
137
142 inline const Aws::Utils::DateTime& GetExpiryTime() const { return m_expiryTime; }
143 inline bool ExpiryTimeHasBeenSet() const { return m_expiryTimeHasBeenSet; }
144 template <typename ExpiryTimeT = Aws::Utils::DateTime>
145 void SetExpiryTime(ExpiryTimeT&& value) {
146 m_expiryTimeHasBeenSet = true;
147 m_expiryTime = std::forward<ExpiryTimeT>(value);
148 }
149 template <typename ExpiryTimeT = Aws::Utils::DateTime>
150 CreateCampaignRequest& WithExpiryTime(ExpiryTimeT&& value) {
151 SetExpiryTime(std::forward<ExpiryTimeT>(value));
152 return *this;
153 }
155
157
162 inline long long GetPostTriggerCollectionDuration() const { return m_postTriggerCollectionDuration; }
163 inline bool PostTriggerCollectionDurationHasBeenSet() const { return m_postTriggerCollectionDurationHasBeenSet; }
164 inline void SetPostTriggerCollectionDuration(long long value) {
165 m_postTriggerCollectionDurationHasBeenSet = true;
166 m_postTriggerCollectionDuration = value;
167 }
170 return *this;
171 }
173
175
181 inline DiagnosticsMode GetDiagnosticsMode() const { return m_diagnosticsMode; }
182 inline bool DiagnosticsModeHasBeenSet() const { return m_diagnosticsModeHasBeenSet; }
184 m_diagnosticsModeHasBeenSet = true;
185 m_diagnosticsMode = value;
186 }
188 SetDiagnosticsMode(value);
189 return *this;
190 }
192
194
202 inline SpoolingMode GetSpoolingMode() const { return m_spoolingMode; }
203 inline bool SpoolingModeHasBeenSet() const { return m_spoolingModeHasBeenSet; }
204 inline void SetSpoolingMode(SpoolingMode value) {
205 m_spoolingModeHasBeenSet = true;
206 m_spoolingMode = value;
207 }
209 SetSpoolingMode(value);
210 return *this;
211 }
213
215
221 inline Compression GetCompression() const { return m_compression; }
222 inline bool CompressionHasBeenSet() const { return m_compressionHasBeenSet; }
223 inline void SetCompression(Compression value) {
224 m_compressionHasBeenSet = true;
225 m_compression = value;
226 }
228 SetCompression(value);
229 return *this;
230 }
232
234
239 inline const Aws::Vector<SignalInformation>& GetSignalsToCollect() const { return m_signalsToCollect; }
240 inline bool SignalsToCollectHasBeenSet() const { return m_signalsToCollectHasBeenSet; }
241 template <typename SignalsToCollectT = Aws::Vector<SignalInformation>>
242 void SetSignalsToCollect(SignalsToCollectT&& value) {
243 m_signalsToCollectHasBeenSet = true;
244 m_signalsToCollect = std::forward<SignalsToCollectT>(value);
245 }
246 template <typename SignalsToCollectT = Aws::Vector<SignalInformation>>
247 CreateCampaignRequest& WithSignalsToCollect(SignalsToCollectT&& value) {
248 SetSignalsToCollect(std::forward<SignalsToCollectT>(value));
249 return *this;
250 }
251 template <typename SignalsToCollectT = SignalInformation>
252 CreateCampaignRequest& AddSignalsToCollect(SignalsToCollectT&& value) {
253 m_signalsToCollectHasBeenSet = true;
254 m_signalsToCollect.emplace_back(std::forward<SignalsToCollectT>(value));
255 return *this;
256 }
258
260
264 inline const CollectionScheme& GetCollectionScheme() const { return m_collectionScheme; }
265 inline bool CollectionSchemeHasBeenSet() const { return m_collectionSchemeHasBeenSet; }
266 template <typename CollectionSchemeT = CollectionScheme>
267 void SetCollectionScheme(CollectionSchemeT&& value) {
268 m_collectionSchemeHasBeenSet = true;
269 m_collectionScheme = std::forward<CollectionSchemeT>(value);
270 }
271 template <typename CollectionSchemeT = CollectionScheme>
272 CreateCampaignRequest& WithCollectionScheme(CollectionSchemeT&& value) {
273 SetCollectionScheme(std::forward<CollectionSchemeT>(value));
274 return *this;
275 }
277
279
287 inline const Aws::Vector<Aws::String>& GetDataExtraDimensions() const { return m_dataExtraDimensions; }
288 inline bool DataExtraDimensionsHasBeenSet() const { return m_dataExtraDimensionsHasBeenSet; }
289 template <typename DataExtraDimensionsT = Aws::Vector<Aws::String>>
290 void SetDataExtraDimensions(DataExtraDimensionsT&& value) {
291 m_dataExtraDimensionsHasBeenSet = true;
292 m_dataExtraDimensions = std::forward<DataExtraDimensionsT>(value);
293 }
294 template <typename DataExtraDimensionsT = Aws::Vector<Aws::String>>
295 CreateCampaignRequest& WithDataExtraDimensions(DataExtraDimensionsT&& value) {
296 SetDataExtraDimensions(std::forward<DataExtraDimensionsT>(value));
297 return *this;
298 }
299 template <typename DataExtraDimensionsT = Aws::String>
300 CreateCampaignRequest& AddDataExtraDimensions(DataExtraDimensionsT&& value) {
301 m_dataExtraDimensionsHasBeenSet = true;
302 m_dataExtraDimensions.emplace_back(std::forward<DataExtraDimensionsT>(value));
303 return *this;
304 }
306
308
311 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
312 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
313 template <typename TagsT = Aws::Vector<Tag>>
314 void SetTags(TagsT&& value) {
315 m_tagsHasBeenSet = true;
316 m_tags = std::forward<TagsT>(value);
317 }
318 template <typename TagsT = Aws::Vector<Tag>>
320 SetTags(std::forward<TagsT>(value));
321 return *this;
322 }
323 template <typename TagsT = Tag>
325 m_tagsHasBeenSet = true;
326 m_tags.emplace_back(std::forward<TagsT>(value));
327 return *this;
328 }
330
332
345 inline const Aws::Vector<DataDestinationConfig>& GetDataDestinationConfigs() const { return m_dataDestinationConfigs; }
346 inline bool DataDestinationConfigsHasBeenSet() const { return m_dataDestinationConfigsHasBeenSet; }
347 template <typename DataDestinationConfigsT = Aws::Vector<DataDestinationConfig>>
348 void SetDataDestinationConfigs(DataDestinationConfigsT&& value) {
349 m_dataDestinationConfigsHasBeenSet = true;
350 m_dataDestinationConfigs = std::forward<DataDestinationConfigsT>(value);
351 }
352 template <typename DataDestinationConfigsT = Aws::Vector<DataDestinationConfig>>
353 CreateCampaignRequest& WithDataDestinationConfigs(DataDestinationConfigsT&& value) {
354 SetDataDestinationConfigs(std::forward<DataDestinationConfigsT>(value));
355 return *this;
356 }
357 template <typename DataDestinationConfigsT = DataDestinationConfig>
358 CreateCampaignRequest& AddDataDestinationConfigs(DataDestinationConfigsT&& value) {
359 m_dataDestinationConfigsHasBeenSet = true;
360 m_dataDestinationConfigs.emplace_back(std::forward<DataDestinationConfigsT>(value));
361 return *this;
362 }
364
366
370 inline const Aws::Vector<DataPartition>& GetDataPartitions() const { return m_dataPartitions; }
371 inline bool DataPartitionsHasBeenSet() const { return m_dataPartitionsHasBeenSet; }
372 template <typename DataPartitionsT = Aws::Vector<DataPartition>>
373 void SetDataPartitions(DataPartitionsT&& value) {
374 m_dataPartitionsHasBeenSet = true;
375 m_dataPartitions = std::forward<DataPartitionsT>(value);
376 }
377 template <typename DataPartitionsT = Aws::Vector<DataPartition>>
378 CreateCampaignRequest& WithDataPartitions(DataPartitionsT&& value) {
379 SetDataPartitions(std::forward<DataPartitionsT>(value));
380 return *this;
381 }
382 template <typename DataPartitionsT = DataPartition>
383 CreateCampaignRequest& AddDataPartitions(DataPartitionsT&& value) {
384 m_dataPartitionsHasBeenSet = true;
385 m_dataPartitions.emplace_back(std::forward<DataPartitionsT>(value));
386 return *this;
387 }
389
391
394 inline const Aws::Vector<SignalFetchInformation>& GetSignalsToFetch() const { return m_signalsToFetch; }
395 inline bool SignalsToFetchHasBeenSet() const { return m_signalsToFetchHasBeenSet; }
396 template <typename SignalsToFetchT = Aws::Vector<SignalFetchInformation>>
397 void SetSignalsToFetch(SignalsToFetchT&& value) {
398 m_signalsToFetchHasBeenSet = true;
399 m_signalsToFetch = std::forward<SignalsToFetchT>(value);
400 }
401 template <typename SignalsToFetchT = Aws::Vector<SignalFetchInformation>>
402 CreateCampaignRequest& WithSignalsToFetch(SignalsToFetchT&& value) {
403 SetSignalsToFetch(std::forward<SignalsToFetchT>(value));
404 return *this;
405 }
406 template <typename SignalsToFetchT = SignalFetchInformation>
407 CreateCampaignRequest& AddSignalsToFetch(SignalsToFetchT&& value) {
408 m_signalsToFetchHasBeenSet = true;
409 m_signalsToFetch.emplace_back(std::forward<SignalsToFetchT>(value));
410 return *this;
411 }
413 private:
414 Aws::String m_name;
415
416 Aws::String m_description;
417
418 Aws::String m_signalCatalogArn;
419
420 Aws::String m_targetArn;
421
422 Aws::Utils::DateTime m_startTime{};
423
424 Aws::Utils::DateTime m_expiryTime{};
425
426 long long m_postTriggerCollectionDuration{0};
427
428 DiagnosticsMode m_diagnosticsMode{DiagnosticsMode::NOT_SET};
429
430 SpoolingMode m_spoolingMode{SpoolingMode::NOT_SET};
431
432 Compression m_compression{Compression::NOT_SET};
433
434 Aws::Vector<SignalInformation> m_signalsToCollect;
435
436 CollectionScheme m_collectionScheme;
437
438 Aws::Vector<Aws::String> m_dataExtraDimensions;
439
440 Aws::Vector<Tag> m_tags;
441
442 Aws::Vector<DataDestinationConfig> m_dataDestinationConfigs;
443
444 Aws::Vector<DataPartition> m_dataPartitions;
445
447 bool m_nameHasBeenSet = false;
448 bool m_descriptionHasBeenSet = false;
449 bool m_signalCatalogArnHasBeenSet = false;
450 bool m_targetArnHasBeenSet = false;
451 bool m_startTimeHasBeenSet = false;
452 bool m_expiryTimeHasBeenSet = false;
453 bool m_postTriggerCollectionDurationHasBeenSet = false;
454 bool m_diagnosticsModeHasBeenSet = false;
455 bool m_spoolingModeHasBeenSet = false;
456 bool m_compressionHasBeenSet = false;
457 bool m_signalsToCollectHasBeenSet = false;
458 bool m_collectionSchemeHasBeenSet = false;
459 bool m_dataExtraDimensionsHasBeenSet = false;
460 bool m_tagsHasBeenSet = false;
461 bool m_dataDestinationConfigsHasBeenSet = false;
462 bool m_dataPartitionsHasBeenSet = false;
463 bool m_signalsToFetchHasBeenSet = false;
464};
465
466} // namespace Model
467} // namespace IoTFleetWise
468} // namespace Aws
CreateCampaignRequest & WithSpoolingMode(SpoolingMode value)
CreateCampaignRequest & WithDataDestinationConfigs(DataDestinationConfigsT &&value)
CreateCampaignRequest & WithDataExtraDimensions(DataExtraDimensionsT &&value)
CreateCampaignRequest & WithName(NameT &&value)
CreateCampaignRequest & WithPostTriggerCollectionDuration(long long value)
void SetDataDestinationConfigs(DataDestinationConfigsT &&value)
const Aws::Utils::DateTime & GetStartTime() const
virtual const char * GetServiceRequestName() const override
const Aws::Vector< SignalInformation > & GetSignalsToCollect() const
CreateCampaignRequest & AddTags(TagsT &&value)
const Aws::Vector< DataDestinationConfig > & GetDataDestinationConfigs() const
const Aws::Vector< SignalFetchInformation > & GetSignalsToFetch() const
CreateCampaignRequest & WithDescription(DescriptionT &&value)
CreateCampaignRequest & WithCompression(Compression value)
CreateCampaignRequest & AddSignalsToCollect(SignalsToCollectT &&value)
const Aws::Utils::DateTime & GetExpiryTime() const
CreateCampaignRequest & WithCollectionScheme(CollectionSchemeT &&value)
CreateCampaignRequest & WithSignalCatalogArn(SignalCatalogArnT &&value)
CreateCampaignRequest & WithStartTime(StartTimeT &&value)
CreateCampaignRequest & WithTargetArn(TargetArnT &&value)
AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override
CreateCampaignRequest & AddDataExtraDimensions(DataExtraDimensionsT &&value)
AWS_IOTFLEETWISE_API CreateCampaignRequest()=default
AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCampaignRequest & WithDiagnosticsMode(DiagnosticsMode value)
CreateCampaignRequest & WithSignalsToFetch(SignalsToFetchT &&value)
CreateCampaignRequest & WithDataPartitions(DataPartitionsT &&value)
CreateCampaignRequest & WithSignalsToCollect(SignalsToCollectT &&value)
CreateCampaignRequest & AddDataDestinationConfigs(DataDestinationConfigsT &&value)
CreateCampaignRequest & AddDataPartitions(DataPartitionsT &&value)
CreateCampaignRequest & WithExpiryTime(ExpiryTimeT &&value)
const Aws::Vector< DataPartition > & GetDataPartitions() const
CreateCampaignRequest & AddSignalsToFetch(SignalsToFetchT &&value)
void SetDataExtraDimensions(DataExtraDimensionsT &&value)
const Aws::Vector< Aws::String > & GetDataExtraDimensions() const
CreateCampaignRequest & WithTags(TagsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector