AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
20
21namespace Aws
22{
23namespace IoTFleetWise
24{
25namespace Model
26{
27
31 {
32 public:
33 AWS_IOTFLEETWISE_API CreateCampaignRequest();
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateCampaign"; }
40
41 AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override;
42
43 AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
44
45
47
50 inline const Aws::String& GetName() const{ return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
54 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
55 inline CreateCampaignRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
56 inline CreateCampaignRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
57 inline CreateCampaignRequest& WithName(const char* value) { SetName(value); return *this;}
59
61
64 inline const Aws::String& GetDescription() const{ return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
67 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
68 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
69 inline CreateCampaignRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
70 inline CreateCampaignRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
71 inline CreateCampaignRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
73
75
79 inline const Aws::String& GetSignalCatalogArn() const{ return m_signalCatalogArn; }
80 inline bool SignalCatalogArnHasBeenSet() const { return m_signalCatalogArnHasBeenSet; }
81 inline void SetSignalCatalogArn(const Aws::String& value) { m_signalCatalogArnHasBeenSet = true; m_signalCatalogArn = value; }
82 inline void SetSignalCatalogArn(Aws::String&& value) { m_signalCatalogArnHasBeenSet = true; m_signalCatalogArn = std::move(value); }
83 inline void SetSignalCatalogArn(const char* value) { m_signalCatalogArnHasBeenSet = true; m_signalCatalogArn.assign(value); }
84 inline CreateCampaignRequest& WithSignalCatalogArn(const Aws::String& value) { SetSignalCatalogArn(value); return *this;}
85 inline CreateCampaignRequest& WithSignalCatalogArn(Aws::String&& value) { SetSignalCatalogArn(std::move(value)); return *this;}
86 inline CreateCampaignRequest& WithSignalCatalogArn(const char* value) { SetSignalCatalogArn(value); return *this;}
88
90
93 inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
94 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
95 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
96 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
97 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
98 inline CreateCampaignRequest& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
99 inline CreateCampaignRequest& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
100 inline CreateCampaignRequest& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
102
104
109 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
110 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
111 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
112 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
113 inline CreateCampaignRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
114 inline CreateCampaignRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
116
118
123 inline const Aws::Utils::DateTime& GetExpiryTime() const{ return m_expiryTime; }
124 inline bool ExpiryTimeHasBeenSet() const { return m_expiryTimeHasBeenSet; }
125 inline void SetExpiryTime(const Aws::Utils::DateTime& value) { m_expiryTimeHasBeenSet = true; m_expiryTime = value; }
126 inline void SetExpiryTime(Aws::Utils::DateTime&& value) { m_expiryTimeHasBeenSet = true; m_expiryTime = std::move(value); }
127 inline CreateCampaignRequest& WithExpiryTime(const Aws::Utils::DateTime& value) { SetExpiryTime(value); return *this;}
128 inline CreateCampaignRequest& WithExpiryTime(Aws::Utils::DateTime&& value) { SetExpiryTime(std::move(value)); return *this;}
130
132
137 inline long long GetPostTriggerCollectionDuration() const{ return m_postTriggerCollectionDuration; }
138 inline bool PostTriggerCollectionDurationHasBeenSet() const { return m_postTriggerCollectionDurationHasBeenSet; }
139 inline void SetPostTriggerCollectionDuration(long long value) { m_postTriggerCollectionDurationHasBeenSet = true; m_postTriggerCollectionDuration = value; }
142
144
150 inline const DiagnosticsMode& GetDiagnosticsMode() const{ return m_diagnosticsMode; }
151 inline bool DiagnosticsModeHasBeenSet() const { return m_diagnosticsModeHasBeenSet; }
152 inline void SetDiagnosticsMode(const DiagnosticsMode& value) { m_diagnosticsModeHasBeenSet = true; m_diagnosticsMode = value; }
153 inline void SetDiagnosticsMode(DiagnosticsMode&& value) { m_diagnosticsModeHasBeenSet = true; m_diagnosticsMode = std::move(value); }
155 inline CreateCampaignRequest& WithDiagnosticsMode(DiagnosticsMode&& value) { SetDiagnosticsMode(std::move(value)); return *this;}
157
159
167 inline const SpoolingMode& GetSpoolingMode() const{ return m_spoolingMode; }
168 inline bool SpoolingModeHasBeenSet() const { return m_spoolingModeHasBeenSet; }
169 inline void SetSpoolingMode(const SpoolingMode& value) { m_spoolingModeHasBeenSet = true; m_spoolingMode = value; }
170 inline void SetSpoolingMode(SpoolingMode&& value) { m_spoolingModeHasBeenSet = true; m_spoolingMode = std::move(value); }
171 inline CreateCampaignRequest& WithSpoolingMode(const SpoolingMode& value) { SetSpoolingMode(value); return *this;}
172 inline CreateCampaignRequest& WithSpoolingMode(SpoolingMode&& value) { SetSpoolingMode(std::move(value)); return *this;}
174
176
182 inline const Compression& GetCompression() const{ return m_compression; }
183 inline bool CompressionHasBeenSet() const { return m_compressionHasBeenSet; }
184 inline void SetCompression(const Compression& value) { m_compressionHasBeenSet = true; m_compression = value; }
185 inline void SetCompression(Compression&& value) { m_compressionHasBeenSet = true; m_compression = std::move(value); }
186 inline CreateCampaignRequest& WithCompression(const Compression& value) { SetCompression(value); return *this;}
187 inline CreateCampaignRequest& WithCompression(Compression&& value) { SetCompression(std::move(value)); return *this;}
189
191
194 inline const Aws::Vector<SignalInformation>& GetSignalsToCollect() const{ return m_signalsToCollect; }
195 inline bool SignalsToCollectHasBeenSet() const { return m_signalsToCollectHasBeenSet; }
196 inline void SetSignalsToCollect(const Aws::Vector<SignalInformation>& value) { m_signalsToCollectHasBeenSet = true; m_signalsToCollect = value; }
197 inline void SetSignalsToCollect(Aws::Vector<SignalInformation>&& value) { m_signalsToCollectHasBeenSet = true; m_signalsToCollect = std::move(value); }
200 inline CreateCampaignRequest& AddSignalsToCollect(const SignalInformation& value) { m_signalsToCollectHasBeenSet = true; m_signalsToCollect.push_back(value); return *this; }
201 inline CreateCampaignRequest& AddSignalsToCollect(SignalInformation&& value) { m_signalsToCollectHasBeenSet = true; m_signalsToCollect.push_back(std::move(value)); return *this; }
203
205
209 inline const CollectionScheme& GetCollectionScheme() const{ return m_collectionScheme; }
210 inline bool CollectionSchemeHasBeenSet() const { return m_collectionSchemeHasBeenSet; }
211 inline void SetCollectionScheme(const CollectionScheme& value) { m_collectionSchemeHasBeenSet = true; m_collectionScheme = value; }
212 inline void SetCollectionScheme(CollectionScheme&& value) { m_collectionSchemeHasBeenSet = true; m_collectionScheme = std::move(value); }
214 inline CreateCampaignRequest& WithCollectionScheme(CollectionScheme&& value) { SetCollectionScheme(std::move(value)); return *this;}
216
218
226 inline const Aws::Vector<Aws::String>& GetDataExtraDimensions() const{ return m_dataExtraDimensions; }
227 inline bool DataExtraDimensionsHasBeenSet() const { return m_dataExtraDimensionsHasBeenSet; }
228 inline void SetDataExtraDimensions(const Aws::Vector<Aws::String>& value) { m_dataExtraDimensionsHasBeenSet = true; m_dataExtraDimensions = value; }
229 inline void SetDataExtraDimensions(Aws::Vector<Aws::String>&& value) { m_dataExtraDimensionsHasBeenSet = true; m_dataExtraDimensions = std::move(value); }
232 inline CreateCampaignRequest& AddDataExtraDimensions(const Aws::String& value) { m_dataExtraDimensionsHasBeenSet = true; m_dataExtraDimensions.push_back(value); return *this; }
233 inline CreateCampaignRequest& AddDataExtraDimensions(Aws::String&& value) { m_dataExtraDimensionsHasBeenSet = true; m_dataExtraDimensions.push_back(std::move(value)); return *this; }
234 inline CreateCampaignRequest& AddDataExtraDimensions(const char* value) { m_dataExtraDimensionsHasBeenSet = true; m_dataExtraDimensions.push_back(value); return *this; }
236
238
241 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
242 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
243 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
244 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
245 inline CreateCampaignRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
246 inline CreateCampaignRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
247 inline CreateCampaignRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
248 inline CreateCampaignRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
250
252
263 inline const Aws::Vector<DataDestinationConfig>& GetDataDestinationConfigs() const{ return m_dataDestinationConfigs; }
264 inline bool DataDestinationConfigsHasBeenSet() const { return m_dataDestinationConfigsHasBeenSet; }
265 inline void SetDataDestinationConfigs(const Aws::Vector<DataDestinationConfig>& value) { m_dataDestinationConfigsHasBeenSet = true; m_dataDestinationConfigs = value; }
266 inline void SetDataDestinationConfigs(Aws::Vector<DataDestinationConfig>&& value) { m_dataDestinationConfigsHasBeenSet = true; m_dataDestinationConfigs = std::move(value); }
269 inline CreateCampaignRequest& AddDataDestinationConfigs(const DataDestinationConfig& value) { m_dataDestinationConfigsHasBeenSet = true; m_dataDestinationConfigs.push_back(value); return *this; }
270 inline CreateCampaignRequest& AddDataDestinationConfigs(DataDestinationConfig&& value) { m_dataDestinationConfigsHasBeenSet = true; m_dataDestinationConfigs.push_back(std::move(value)); return *this; }
272 private:
273
274 Aws::String m_name;
275 bool m_nameHasBeenSet = false;
276
277 Aws::String m_description;
278 bool m_descriptionHasBeenSet = false;
279
280 Aws::String m_signalCatalogArn;
281 bool m_signalCatalogArnHasBeenSet = false;
282
283 Aws::String m_targetArn;
284 bool m_targetArnHasBeenSet = false;
285
286 Aws::Utils::DateTime m_startTime;
287 bool m_startTimeHasBeenSet = false;
288
289 Aws::Utils::DateTime m_expiryTime;
290 bool m_expiryTimeHasBeenSet = false;
291
292 long long m_postTriggerCollectionDuration;
293 bool m_postTriggerCollectionDurationHasBeenSet = false;
294
295 DiagnosticsMode m_diagnosticsMode;
296 bool m_diagnosticsModeHasBeenSet = false;
297
298 SpoolingMode m_spoolingMode;
299 bool m_spoolingModeHasBeenSet = false;
300
301 Compression m_compression;
302 bool m_compressionHasBeenSet = false;
303
304 Aws::Vector<SignalInformation> m_signalsToCollect;
305 bool m_signalsToCollectHasBeenSet = false;
306
307 CollectionScheme m_collectionScheme;
308 bool m_collectionSchemeHasBeenSet = false;
309
310 Aws::Vector<Aws::String> m_dataExtraDimensions;
311 bool m_dataExtraDimensionsHasBeenSet = false;
312
313 Aws::Vector<Tag> m_tags;
314 bool m_tagsHasBeenSet = false;
315
316 Aws::Vector<DataDestinationConfig> m_dataDestinationConfigs;
317 bool m_dataDestinationConfigsHasBeenSet = false;
318 };
319
320} // namespace Model
321} // namespace IoTFleetWise
322} // namespace Aws
CreateCampaignRequest & AddDataDestinationConfigs(DataDestinationConfig &&value)
CreateCampaignRequest & AddTags(const Tag &value)
CreateCampaignRequest & WithExpiryTime(const Aws::Utils::DateTime &value)
CreateCampaignRequest & WithExpiryTime(Aws::Utils::DateTime &&value)
void SetDataDestinationConfigs(Aws::Vector< DataDestinationConfig > &&value)
CreateCampaignRequest & WithStartTime(const Aws::Utils::DateTime &value)
CreateCampaignRequest & WithSignalCatalogArn(const Aws::String &value)
void SetDiagnosticsMode(const DiagnosticsMode &value)
CreateCampaignRequest & WithName(const char *value)
CreateCampaignRequest & WithDataDestinationConfigs(Aws::Vector< DataDestinationConfig > &&value)
CreateCampaignRequest & WithPostTriggerCollectionDuration(long long value)
CreateCampaignRequest & WithTargetArn(Aws::String &&value)
CreateCampaignRequest & AddDataExtraDimensions(Aws::String &&value)
CreateCampaignRequest & WithStartTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetStartTime() const
virtual const char * GetServiceRequestName() const override
CreateCampaignRequest & WithCompression(const Compression &value)
CreateCampaignRequest & WithName(Aws::String &&value)
const Aws::Vector< SignalInformation > & GetSignalsToCollect() const
CreateCampaignRequest & WithCompression(Compression &&value)
CreateCampaignRequest & AddDataExtraDimensions(const char *value)
CreateCampaignRequest & AddDataExtraDimensions(const Aws::String &value)
void SetCollectionScheme(const CollectionScheme &value)
CreateCampaignRequest & WithSignalsToCollect(const Aws::Vector< SignalInformation > &value)
const Aws::Vector< DataDestinationConfig > & GetDataDestinationConfigs() const
CreateCampaignRequest & WithSignalCatalogArn(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
CreateCampaignRequest & WithDataExtraDimensions(Aws::Vector< Aws::String > &&value)
const Aws::Utils::DateTime & GetExpiryTime() const
CreateCampaignRequest & AddSignalsToCollect(const SignalInformation &value)
void SetSignalsToCollect(const Aws::Vector< SignalInformation > &value)
CreateCampaignRequest & WithSpoolingMode(SpoolingMode &&value)
void SetDataExtraDimensions(const Aws::Vector< Aws::String > &value)
void SetStartTime(const Aws::Utils::DateTime &value)
CreateCampaignRequest & AddSignalsToCollect(SignalInformation &&value)
CreateCampaignRequest & WithCollectionScheme(const CollectionScheme &value)
CreateCampaignRequest & WithDiagnosticsMode(const DiagnosticsMode &value)
CreateCampaignRequest & WithSignalsToCollect(Aws::Vector< SignalInformation > &&value)
void SetDataExtraDimensions(Aws::Vector< Aws::String > &&value)
CreateCampaignRequest & WithCollectionScheme(CollectionScheme &&value)
CreateCampaignRequest & WithDiagnosticsMode(DiagnosticsMode &&value)
CreateCampaignRequest & WithDescription(const char *value)
CreateCampaignRequest & WithTags(const Aws::Vector< Tag > &value)
CreateCampaignRequest & WithDataExtraDimensions(const Aws::Vector< Aws::String > &value)
AWS_IOTFLEETWISE_API Aws::String SerializePayload() const override
CreateCampaignRequest & WithName(const Aws::String &value)
AWS_IOTFLEETWISE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetDataDestinationConfigs(const Aws::Vector< DataDestinationConfig > &value)
CreateCampaignRequest & WithSignalCatalogArn(Aws::String &&value)
CreateCampaignRequest & WithDescription(const Aws::String &value)
CreateCampaignRequest & WithTargetArn(const Aws::String &value)
void SetSignalsToCollect(Aws::Vector< SignalInformation > &&value)
CreateCampaignRequest & WithSpoolingMode(const SpoolingMode &value)
CreateCampaignRequest & AddDataDestinationConfigs(const DataDestinationConfig &value)
void SetExpiryTime(const Aws::Utils::DateTime &value)
const Aws::Vector< Aws::String > & GetDataExtraDimensions() const
CreateCampaignRequest & WithDescription(Aws::String &&value)
CreateCampaignRequest & WithTargetArn(const char *value)
CreateCampaignRequest & WithDataDestinationConfigs(const Aws::Vector< DataDestinationConfig > &value)
CreateCampaignRequest & WithTags(Aws::Vector< Tag > &&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