AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateCampaignRequest.h
1
6#pragma once
7#include <aws/iotfleetwise/IoTFleetWise_EXPORTS.h>
8#include <aws/iotfleetwise/IoTFleetWiseRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/iotfleetwise/model/DiagnosticsMode.h>
12#include <aws/iotfleetwise/model/SpoolingMode.h>
13#include <aws/iotfleetwise/model/Compression.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/iotfleetwise/model/CollectionScheme.h>
16#include <aws/iotfleetwise/model/SignalInformation.h>
17#include <aws/iotfleetwise/model/Tag.h>
18#include <aws/iotfleetwise/model/DataDestinationConfig.h>
19#include <aws/iotfleetwise/model/DataPartition.h>
20#include <aws/iotfleetwise/model/SignalFetchInformation.h>
21#include <utility>
22
23namespace Aws
24{
25namespace IoTFleetWise
26{
27namespace Model
28{
29
33 {
34 public:
35 AWS_IOTFLEETWISE_API CreateCampaignRequest() = default;
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateCampaign"; }
42
43 AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override;
44
45 AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
46
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 template<typename NameT = Aws::String>
55 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
56 template<typename NameT = Aws::String>
57 CreateCampaignRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
59
61
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template<typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
68 template<typename DescriptionT = Aws::String>
69 CreateCampaignRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
71
73
77 inline const Aws::String& GetSignalCatalogArn() const { return m_signalCatalogArn; }
78 inline bool SignalCatalogArnHasBeenSet() const { return m_signalCatalogArnHasBeenSet; }
79 template<typename SignalCatalogArnT = Aws::String>
80 void SetSignalCatalogArn(SignalCatalogArnT&& value) { m_signalCatalogArnHasBeenSet = true; m_signalCatalogArn = std::forward<SignalCatalogArnT>(value); }
81 template<typename SignalCatalogArnT = Aws::String>
82 CreateCampaignRequest& WithSignalCatalogArn(SignalCatalogArnT&& value) { SetSignalCatalogArn(std::forward<SignalCatalogArnT>(value)); return *this;}
84
86
89 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
90 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
91 template<typename TargetArnT = Aws::String>
92 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::forward<TargetArnT>(value); }
93 template<typename TargetArnT = Aws::String>
94 CreateCampaignRequest& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
96
98
102 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
103 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
104 template<typename StartTimeT = Aws::Utils::DateTime>
105 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
106 template<typename StartTimeT = Aws::Utils::DateTime>
107 CreateCampaignRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
109
111
116 inline const Aws::Utils::DateTime& GetExpiryTime() const { return m_expiryTime; }
117 inline bool ExpiryTimeHasBeenSet() const { return m_expiryTimeHasBeenSet; }
118 template<typename ExpiryTimeT = Aws::Utils::DateTime>
119 void SetExpiryTime(ExpiryTimeT&& value) { m_expiryTimeHasBeenSet = true; m_expiryTime = std::forward<ExpiryTimeT>(value); }
120 template<typename ExpiryTimeT = Aws::Utils::DateTime>
121 CreateCampaignRequest& WithExpiryTime(ExpiryTimeT&& value) { SetExpiryTime(std::forward<ExpiryTimeT>(value)); return *this;}
123
125
130 inline long long GetPostTriggerCollectionDuration() const { return m_postTriggerCollectionDuration; }
131 inline bool PostTriggerCollectionDurationHasBeenSet() const { return m_postTriggerCollectionDurationHasBeenSet; }
132 inline void SetPostTriggerCollectionDuration(long long value) { m_postTriggerCollectionDurationHasBeenSet = true; m_postTriggerCollectionDuration = value; }
135
137
143 inline DiagnosticsMode GetDiagnosticsMode() const { return m_diagnosticsMode; }
144 inline bool DiagnosticsModeHasBeenSet() const { return m_diagnosticsModeHasBeenSet; }
145 inline void SetDiagnosticsMode(DiagnosticsMode value) { m_diagnosticsModeHasBeenSet = true; m_diagnosticsMode = value; }
148
150
158 inline SpoolingMode GetSpoolingMode() const { return m_spoolingMode; }
159 inline bool SpoolingModeHasBeenSet() const { return m_spoolingModeHasBeenSet; }
160 inline void SetSpoolingMode(SpoolingMode value) { m_spoolingModeHasBeenSet = true; m_spoolingMode = value; }
163
165
171 inline Compression GetCompression() const { return m_compression; }
172 inline bool CompressionHasBeenSet() const { return m_compressionHasBeenSet; }
173 inline void SetCompression(Compression value) { m_compressionHasBeenSet = true; m_compression = value; }
174 inline CreateCampaignRequest& WithCompression(Compression value) { SetCompression(value); return *this;}
176
178
183 inline const Aws::Vector<SignalInformation>& GetSignalsToCollect() const { return m_signalsToCollect; }
184 inline bool SignalsToCollectHasBeenSet() const { return m_signalsToCollectHasBeenSet; }
185 template<typename SignalsToCollectT = Aws::Vector<SignalInformation>>
186 void SetSignalsToCollect(SignalsToCollectT&& value) { m_signalsToCollectHasBeenSet = true; m_signalsToCollect = std::forward<SignalsToCollectT>(value); }
187 template<typename SignalsToCollectT = Aws::Vector<SignalInformation>>
188 CreateCampaignRequest& WithSignalsToCollect(SignalsToCollectT&& value) { SetSignalsToCollect(std::forward<SignalsToCollectT>(value)); return *this;}
189 template<typename SignalsToCollectT = SignalInformation>
190 CreateCampaignRequest& AddSignalsToCollect(SignalsToCollectT&& value) { m_signalsToCollectHasBeenSet = true; m_signalsToCollect.emplace_back(std::forward<SignalsToCollectT>(value)); return *this; }
192
194
198 inline const CollectionScheme& GetCollectionScheme() const { return m_collectionScheme; }
199 inline bool CollectionSchemeHasBeenSet() const { return m_collectionSchemeHasBeenSet; }
200 template<typename CollectionSchemeT = CollectionScheme>
201 void SetCollectionScheme(CollectionSchemeT&& value) { m_collectionSchemeHasBeenSet = true; m_collectionScheme = std::forward<CollectionSchemeT>(value); }
202 template<typename CollectionSchemeT = CollectionScheme>
203 CreateCampaignRequest& WithCollectionScheme(CollectionSchemeT&& value) { SetCollectionScheme(std::forward<CollectionSchemeT>(value)); return *this;}
205
207
215 inline const Aws::Vector<Aws::String>& GetDataExtraDimensions() const { return m_dataExtraDimensions; }
216 inline bool DataExtraDimensionsHasBeenSet() const { return m_dataExtraDimensionsHasBeenSet; }
217 template<typename DataExtraDimensionsT = Aws::Vector<Aws::String>>
218 void SetDataExtraDimensions(DataExtraDimensionsT&& value) { m_dataExtraDimensionsHasBeenSet = true; m_dataExtraDimensions = std::forward<DataExtraDimensionsT>(value); }
219 template<typename DataExtraDimensionsT = Aws::Vector<Aws::String>>
220 CreateCampaignRequest& WithDataExtraDimensions(DataExtraDimensionsT&& value) { SetDataExtraDimensions(std::forward<DataExtraDimensionsT>(value)); return *this;}
221 template<typename DataExtraDimensionsT = Aws::String>
222 CreateCampaignRequest& AddDataExtraDimensions(DataExtraDimensionsT&& value) { m_dataExtraDimensionsHasBeenSet = true; m_dataExtraDimensions.emplace_back(std::forward<DataExtraDimensionsT>(value)); return *this; }
224
226
229 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
230 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
231 template<typename TagsT = Aws::Vector<Tag>>
232 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
233 template<typename TagsT = Aws::Vector<Tag>>
234 CreateCampaignRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
235 template<typename TagsT = Tag>
236 CreateCampaignRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
238
240
253 inline const Aws::Vector<DataDestinationConfig>& GetDataDestinationConfigs() const { return m_dataDestinationConfigs; }
254 inline bool DataDestinationConfigsHasBeenSet() const { return m_dataDestinationConfigsHasBeenSet; }
255 template<typename DataDestinationConfigsT = Aws::Vector<DataDestinationConfig>>
256 void SetDataDestinationConfigs(DataDestinationConfigsT&& value) { m_dataDestinationConfigsHasBeenSet = true; m_dataDestinationConfigs = std::forward<DataDestinationConfigsT>(value); }
257 template<typename DataDestinationConfigsT = Aws::Vector<DataDestinationConfig>>
258 CreateCampaignRequest& WithDataDestinationConfigs(DataDestinationConfigsT&& value) { SetDataDestinationConfigs(std::forward<DataDestinationConfigsT>(value)); return *this;}
259 template<typename DataDestinationConfigsT = DataDestinationConfig>
260 CreateCampaignRequest& AddDataDestinationConfigs(DataDestinationConfigsT&& value) { m_dataDestinationConfigsHasBeenSet = true; m_dataDestinationConfigs.emplace_back(std::forward<DataDestinationConfigsT>(value)); return *this; }
262
264
268 inline const Aws::Vector<DataPartition>& GetDataPartitions() const { return m_dataPartitions; }
269 inline bool DataPartitionsHasBeenSet() const { return m_dataPartitionsHasBeenSet; }
270 template<typename DataPartitionsT = Aws::Vector<DataPartition>>
271 void SetDataPartitions(DataPartitionsT&& value) { m_dataPartitionsHasBeenSet = true; m_dataPartitions = std::forward<DataPartitionsT>(value); }
272 template<typename DataPartitionsT = Aws::Vector<DataPartition>>
273 CreateCampaignRequest& WithDataPartitions(DataPartitionsT&& value) { SetDataPartitions(std::forward<DataPartitionsT>(value)); return *this;}
274 template<typename DataPartitionsT = DataPartition>
275 CreateCampaignRequest& AddDataPartitions(DataPartitionsT&& value) { m_dataPartitionsHasBeenSet = true; m_dataPartitions.emplace_back(std::forward<DataPartitionsT>(value)); return *this; }
277
279
282 inline const Aws::Vector<SignalFetchInformation>& GetSignalsToFetch() const { return m_signalsToFetch; }
283 inline bool SignalsToFetchHasBeenSet() const { return m_signalsToFetchHasBeenSet; }
284 template<typename SignalsToFetchT = Aws::Vector<SignalFetchInformation>>
285 void SetSignalsToFetch(SignalsToFetchT&& value) { m_signalsToFetchHasBeenSet = true; m_signalsToFetch = std::forward<SignalsToFetchT>(value); }
286 template<typename SignalsToFetchT = Aws::Vector<SignalFetchInformation>>
287 CreateCampaignRequest& WithSignalsToFetch(SignalsToFetchT&& value) { SetSignalsToFetch(std::forward<SignalsToFetchT>(value)); return *this;}
288 template<typename SignalsToFetchT = SignalFetchInformation>
289 CreateCampaignRequest& AddSignalsToFetch(SignalsToFetchT&& value) { m_signalsToFetchHasBeenSet = true; m_signalsToFetch.emplace_back(std::forward<SignalsToFetchT>(value)); return *this; }
291 private:
292
293 Aws::String m_name;
294 bool m_nameHasBeenSet = false;
295
296 Aws::String m_description;
297 bool m_descriptionHasBeenSet = false;
298
299 Aws::String m_signalCatalogArn;
300 bool m_signalCatalogArnHasBeenSet = false;
301
302 Aws::String m_targetArn;
303 bool m_targetArnHasBeenSet = false;
304
305 Aws::Utils::DateTime m_startTime{};
306 bool m_startTimeHasBeenSet = false;
307
308 Aws::Utils::DateTime m_expiryTime{};
309 bool m_expiryTimeHasBeenSet = false;
310
311 long long m_postTriggerCollectionDuration{0};
312 bool m_postTriggerCollectionDurationHasBeenSet = false;
313
314 DiagnosticsMode m_diagnosticsMode{DiagnosticsMode::NOT_SET};
315 bool m_diagnosticsModeHasBeenSet = false;
316
317 SpoolingMode m_spoolingMode{SpoolingMode::NOT_SET};
318 bool m_spoolingModeHasBeenSet = false;
319
320 Compression m_compression{Compression::NOT_SET};
321 bool m_compressionHasBeenSet = false;
322
323 Aws::Vector<SignalInformation> m_signalsToCollect;
324 bool m_signalsToCollectHasBeenSet = false;
325
326 CollectionScheme m_collectionScheme;
327 bool m_collectionSchemeHasBeenSet = false;
328
329 Aws::Vector<Aws::String> m_dataExtraDimensions;
330 bool m_dataExtraDimensionsHasBeenSet = false;
331
332 Aws::Vector<Tag> m_tags;
333 bool m_tagsHasBeenSet = false;
334
335 Aws::Vector<DataDestinationConfig> m_dataDestinationConfigs;
336 bool m_dataDestinationConfigsHasBeenSet = false;
337
338 Aws::Vector<DataPartition> m_dataPartitions;
339 bool m_dataPartitionsHasBeenSet = false;
340
342 bool m_signalsToFetchHasBeenSet = false;
343 };
344
345} // namespace Model
346} // namespace IoTFleetWise
347} // 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