AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDatasetRequest.h
1
6#pragma once
7#include <aws/iotanalytics/IoTAnalytics_EXPORTS.h>
8#include <aws/iotanalytics/IoTAnalyticsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iotanalytics/model/RetentionPeriod.h>
12#include <aws/iotanalytics/model/VersioningConfiguration.h>
13#include <aws/iotanalytics/model/DatasetAction.h>
14#include <aws/iotanalytics/model/DatasetTrigger.h>
15#include <aws/iotanalytics/model/DatasetContentDeliveryRule.h>
16#include <aws/iotanalytics/model/Tag.h>
17#include <aws/iotanalytics/model/LateDataRule.h>
18#include <utility>
19
20namespace Aws
21{
22namespace IoTAnalytics
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_IOTANALYTICS_API CreateDatasetRequest();
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 "CreateDataset"; }
39
40 AWS_IOTANALYTICS_API Aws::String SerializePayload() const override;
41
42
44
47 inline const Aws::String& GetDatasetName() const{ return m_datasetName; }
48 inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
49 inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
50 inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::move(value); }
51 inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); }
52 inline CreateDatasetRequest& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;}
53 inline CreateDatasetRequest& WithDatasetName(Aws::String&& value) { SetDatasetName(std::move(value)); return *this;}
54 inline CreateDatasetRequest& WithDatasetName(const char* value) { SetDatasetName(value); return *this;}
56
58
61 inline const Aws::Vector<DatasetAction>& GetActions() const{ return m_actions; }
62 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
63 inline void SetActions(const Aws::Vector<DatasetAction>& value) { m_actionsHasBeenSet = true; m_actions = value; }
64 inline void SetActions(Aws::Vector<DatasetAction>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
65 inline CreateDatasetRequest& WithActions(const Aws::Vector<DatasetAction>& value) { SetActions(value); return *this;}
66 inline CreateDatasetRequest& WithActions(Aws::Vector<DatasetAction>&& value) { SetActions(std::move(value)); return *this;}
67 inline CreateDatasetRequest& AddActions(const DatasetAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
68 inline CreateDatasetRequest& AddActions(DatasetAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
70
72
78 inline const Aws::Vector<DatasetTrigger>& GetTriggers() const{ return m_triggers; }
79 inline bool TriggersHasBeenSet() const { return m_triggersHasBeenSet; }
80 inline void SetTriggers(const Aws::Vector<DatasetTrigger>& value) { m_triggersHasBeenSet = true; m_triggers = value; }
81 inline void SetTriggers(Aws::Vector<DatasetTrigger>&& value) { m_triggersHasBeenSet = true; m_triggers = std::move(value); }
82 inline CreateDatasetRequest& WithTriggers(const Aws::Vector<DatasetTrigger>& value) { SetTriggers(value); return *this;}
83 inline CreateDatasetRequest& WithTriggers(Aws::Vector<DatasetTrigger>&& value) { SetTriggers(std::move(value)); return *this;}
84 inline CreateDatasetRequest& AddTriggers(const DatasetTrigger& value) { m_triggersHasBeenSet = true; m_triggers.push_back(value); return *this; }
85 inline CreateDatasetRequest& AddTriggers(DatasetTrigger&& value) { m_triggersHasBeenSet = true; m_triggers.push_back(std::move(value)); return *this; }
87
89
93 inline const Aws::Vector<DatasetContentDeliveryRule>& GetContentDeliveryRules() const{ return m_contentDeliveryRules; }
94 inline bool ContentDeliveryRulesHasBeenSet() const { return m_contentDeliveryRulesHasBeenSet; }
95 inline void SetContentDeliveryRules(const Aws::Vector<DatasetContentDeliveryRule>& value) { m_contentDeliveryRulesHasBeenSet = true; m_contentDeliveryRules = value; }
96 inline void SetContentDeliveryRules(Aws::Vector<DatasetContentDeliveryRule>&& value) { m_contentDeliveryRulesHasBeenSet = true; m_contentDeliveryRules = std::move(value); }
99 inline CreateDatasetRequest& AddContentDeliveryRules(const DatasetContentDeliveryRule& value) { m_contentDeliveryRulesHasBeenSet = true; m_contentDeliveryRules.push_back(value); return *this; }
100 inline CreateDatasetRequest& AddContentDeliveryRules(DatasetContentDeliveryRule&& value) { m_contentDeliveryRulesHasBeenSet = true; m_contentDeliveryRules.push_back(std::move(value)); return *this; }
102
104
114 inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; }
115 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
116 inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
117 inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::move(value); }
118 inline CreateDatasetRequest& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;}
119 inline CreateDatasetRequest& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;}
121
123
132 inline const VersioningConfiguration& GetVersioningConfiguration() const{ return m_versioningConfiguration; }
133 inline bool VersioningConfigurationHasBeenSet() const { return m_versioningConfigurationHasBeenSet; }
134 inline void SetVersioningConfiguration(const VersioningConfiguration& value) { m_versioningConfigurationHasBeenSet = true; m_versioningConfiguration = value; }
135 inline void SetVersioningConfiguration(VersioningConfiguration&& value) { m_versioningConfigurationHasBeenSet = true; m_versioningConfiguration = std::move(value); }
139
141
144 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
147 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
148 inline CreateDatasetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
149 inline CreateDatasetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
150 inline CreateDatasetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
151 inline CreateDatasetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
153
155
161 inline const Aws::Vector<LateDataRule>& GetLateDataRules() const{ return m_lateDataRules; }
162 inline bool LateDataRulesHasBeenSet() const { return m_lateDataRulesHasBeenSet; }
163 inline void SetLateDataRules(const Aws::Vector<LateDataRule>& value) { m_lateDataRulesHasBeenSet = true; m_lateDataRules = value; }
164 inline void SetLateDataRules(Aws::Vector<LateDataRule>&& value) { m_lateDataRulesHasBeenSet = true; m_lateDataRules = std::move(value); }
166 inline CreateDatasetRequest& WithLateDataRules(Aws::Vector<LateDataRule>&& value) { SetLateDataRules(std::move(value)); return *this;}
167 inline CreateDatasetRequest& AddLateDataRules(const LateDataRule& value) { m_lateDataRulesHasBeenSet = true; m_lateDataRules.push_back(value); return *this; }
168 inline CreateDatasetRequest& AddLateDataRules(LateDataRule&& value) { m_lateDataRulesHasBeenSet = true; m_lateDataRules.push_back(std::move(value)); return *this; }
170 private:
171
172 Aws::String m_datasetName;
173 bool m_datasetNameHasBeenSet = false;
174
176 bool m_actionsHasBeenSet = false;
177
179 bool m_triggersHasBeenSet = false;
180
181 Aws::Vector<DatasetContentDeliveryRule> m_contentDeliveryRules;
182 bool m_contentDeliveryRulesHasBeenSet = false;
183
184 RetentionPeriod m_retentionPeriod;
185 bool m_retentionPeriodHasBeenSet = false;
186
187 VersioningConfiguration m_versioningConfiguration;
188 bool m_versioningConfigurationHasBeenSet = false;
189
190 Aws::Vector<Tag> m_tags;
191 bool m_tagsHasBeenSet = false;
192
193 Aws::Vector<LateDataRule> m_lateDataRules;
194 bool m_lateDataRulesHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace IoTAnalytics
199} // namespace Aws
const Aws::Vector< DatasetContentDeliveryRule > & GetContentDeliveryRules() const
CreateDatasetRequest & AddActions(DatasetAction &&value)
CreateDatasetRequest & AddContentDeliveryRules(DatasetContentDeliveryRule &&value)
CreateDatasetRequest & WithContentDeliveryRules(const Aws::Vector< DatasetContentDeliveryRule > &value)
CreateDatasetRequest & WithDatasetName(Aws::String &&value)
CreateDatasetRequest & AddLateDataRules(LateDataRule &&value)
CreateDatasetRequest & WithRetentionPeriod(const RetentionPeriod &value)
CreateDatasetRequest & WithTriggers(const Aws::Vector< DatasetTrigger > &value)
void SetTriggers(const Aws::Vector< DatasetTrigger > &value)
const VersioningConfiguration & GetVersioningConfiguration() const
const Aws::Vector< LateDataRule > & GetLateDataRules() const
void SetContentDeliveryRules(const Aws::Vector< DatasetContentDeliveryRule > &value)
CreateDatasetRequest & AddActions(const DatasetAction &value)
void SetVersioningConfiguration(VersioningConfiguration &&value)
void SetTriggers(Aws::Vector< DatasetTrigger > &&value)
CreateDatasetRequest & WithRetentionPeriod(RetentionPeriod &&value)
CreateDatasetRequest & AddTags(Tag &&value)
CreateDatasetRequest & AddTriggers(DatasetTrigger &&value)
CreateDatasetRequest & WithActions(const Aws::Vector< DatasetAction > &value)
CreateDatasetRequest & WithVersioningConfiguration(VersioningConfiguration &&value)
CreateDatasetRequest & AddTriggers(const DatasetTrigger &value)
CreateDatasetRequest & WithLateDataRules(Aws::Vector< LateDataRule > &&value)
CreateDatasetRequest & AddLateDataRules(const LateDataRule &value)
CreateDatasetRequest & AddTags(const Tag &value)
const Aws::Vector< DatasetAction > & GetActions() const
CreateDatasetRequest & AddContentDeliveryRules(const DatasetContentDeliveryRule &value)
CreateDatasetRequest & WithContentDeliveryRules(Aws::Vector< DatasetContentDeliveryRule > &&value)
void SetLateDataRules(Aws::Vector< LateDataRule > &&value)
CreateDatasetRequest & WithLateDataRules(const Aws::Vector< LateDataRule > &value)
CreateDatasetRequest & WithDatasetName(const char *value)
void SetActions(Aws::Vector< DatasetAction > &&value)
CreateDatasetRequest & WithActions(Aws::Vector< DatasetAction > &&value)
const Aws::Vector< DatasetTrigger > & GetTriggers() const
AWS_IOTANALYTICS_API Aws::String SerializePayload() const override
CreateDatasetRequest & WithVersioningConfiguration(const VersioningConfiguration &value)
void SetVersioningConfiguration(const VersioningConfiguration &value)
void SetActions(const Aws::Vector< DatasetAction > &value)
CreateDatasetRequest & WithTags(const Aws::Vector< Tag > &value)
void SetLateDataRules(const Aws::Vector< LateDataRule > &value)
virtual const char * GetServiceRequestName() const override
CreateDatasetRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDatasetRequest & WithTriggers(Aws::Vector< DatasetTrigger > &&value)
void SetContentDeliveryRules(Aws::Vector< DatasetContentDeliveryRule > &&value)
void SetTags(const Aws::Vector< Tag > &value)
void SetRetentionPeriod(const RetentionPeriod &value)
CreateDatasetRequest & WithDatasetName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector