AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Dataset.h
1
6#pragma once
7#include <aws/iotanalytics/IoTAnalytics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iotanalytics/model/DatasetStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/iotanalytics/model/RetentionPeriod.h>
13#include <aws/iotanalytics/model/VersioningConfiguration.h>
14#include <aws/iotanalytics/model/DatasetAction.h>
15#include <aws/iotanalytics/model/DatasetTrigger.h>
16#include <aws/iotanalytics/model/DatasetContentDeliveryRule.h>
17#include <aws/iotanalytics/model/LateDataRule.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace IoTAnalytics
31{
32namespace Model
33{
34
40 class Dataset
41 {
42 public:
43 AWS_IOTANALYTICS_API Dataset();
44 AWS_IOTANALYTICS_API Dataset(Aws::Utils::Json::JsonView jsonValue);
45 AWS_IOTANALYTICS_API Dataset& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_IOTANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetName() const{ return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
58 inline Dataset& WithName(const Aws::String& value) { SetName(value); return *this;}
59 inline Dataset& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
60 inline Dataset& WithName(const char* value) { SetName(value); return *this;}
62
64
67 inline const Aws::String& GetArn() const{ return m_arn; }
68 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
69 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
70 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
71 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
72 inline Dataset& WithArn(const Aws::String& value) { SetArn(value); return *this;}
73 inline Dataset& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
74 inline Dataset& WithArn(const char* value) { SetArn(value); return *this;}
76
78
82 inline const Aws::Vector<DatasetAction>& GetActions() const{ return m_actions; }
83 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
84 inline void SetActions(const Aws::Vector<DatasetAction>& value) { m_actionsHasBeenSet = true; m_actions = value; }
85 inline void SetActions(Aws::Vector<DatasetAction>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
86 inline Dataset& WithActions(const Aws::Vector<DatasetAction>& value) { SetActions(value); return *this;}
87 inline Dataset& WithActions(Aws::Vector<DatasetAction>&& value) { SetActions(std::move(value)); return *this;}
88 inline Dataset& AddActions(const DatasetAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
89 inline Dataset& AddActions(DatasetAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
91
93
97 inline const Aws::Vector<DatasetTrigger>& GetTriggers() const{ return m_triggers; }
98 inline bool TriggersHasBeenSet() const { return m_triggersHasBeenSet; }
99 inline void SetTriggers(const Aws::Vector<DatasetTrigger>& value) { m_triggersHasBeenSet = true; m_triggers = value; }
100 inline void SetTriggers(Aws::Vector<DatasetTrigger>&& value) { m_triggersHasBeenSet = true; m_triggers = std::move(value); }
101 inline Dataset& WithTriggers(const Aws::Vector<DatasetTrigger>& value) { SetTriggers(value); return *this;}
102 inline Dataset& WithTriggers(Aws::Vector<DatasetTrigger>&& value) { SetTriggers(std::move(value)); return *this;}
103 inline Dataset& AddTriggers(const DatasetTrigger& value) { m_triggersHasBeenSet = true; m_triggers.push_back(value); return *this; }
104 inline Dataset& AddTriggers(DatasetTrigger&& value) { m_triggersHasBeenSet = true; m_triggers.push_back(std::move(value)); return *this; }
106
108
112 inline const Aws::Vector<DatasetContentDeliveryRule>& GetContentDeliveryRules() const{ return m_contentDeliveryRules; }
113 inline bool ContentDeliveryRulesHasBeenSet() const { return m_contentDeliveryRulesHasBeenSet; }
114 inline void SetContentDeliveryRules(const Aws::Vector<DatasetContentDeliveryRule>& value) { m_contentDeliveryRulesHasBeenSet = true; m_contentDeliveryRules = value; }
115 inline void SetContentDeliveryRules(Aws::Vector<DatasetContentDeliveryRule>&& value) { m_contentDeliveryRulesHasBeenSet = true; m_contentDeliveryRules = std::move(value); }
118 inline Dataset& AddContentDeliveryRules(const DatasetContentDeliveryRule& value) { m_contentDeliveryRulesHasBeenSet = true; m_contentDeliveryRules.push_back(value); return *this; }
119 inline Dataset& AddContentDeliveryRules(DatasetContentDeliveryRule&& value) { m_contentDeliveryRulesHasBeenSet = true; m_contentDeliveryRules.push_back(std::move(value)); return *this; }
121
123
126 inline const DatasetStatus& GetStatus() const{ return m_status; }
127 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
128 inline void SetStatus(const DatasetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
129 inline void SetStatus(DatasetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
130 inline Dataset& WithStatus(const DatasetStatus& value) { SetStatus(value); return *this;}
131 inline Dataset& WithStatus(DatasetStatus&& value) { SetStatus(std::move(value)); return *this;}
133
135
138 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
139 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
140 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
141 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
142 inline Dataset& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
143 inline Dataset& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
145
147
150 inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
151 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
152 inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
153 inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); }
154 inline Dataset& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;}
155 inline Dataset& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;}
157
159
162 inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; }
163 inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
164 inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
165 inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::move(value); }
166 inline Dataset& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;}
167 inline Dataset& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;}
169
171
180 inline const VersioningConfiguration& GetVersioningConfiguration() const{ return m_versioningConfiguration; }
181 inline bool VersioningConfigurationHasBeenSet() const { return m_versioningConfigurationHasBeenSet; }
182 inline void SetVersioningConfiguration(const VersioningConfiguration& value) { m_versioningConfigurationHasBeenSet = true; m_versioningConfiguration = value; }
183 inline void SetVersioningConfiguration(VersioningConfiguration&& value) { m_versioningConfigurationHasBeenSet = true; m_versioningConfiguration = std::move(value); }
187
189
195 inline const Aws::Vector<LateDataRule>& GetLateDataRules() const{ return m_lateDataRules; }
196 inline bool LateDataRulesHasBeenSet() const { return m_lateDataRulesHasBeenSet; }
197 inline void SetLateDataRules(const Aws::Vector<LateDataRule>& value) { m_lateDataRulesHasBeenSet = true; m_lateDataRules = value; }
198 inline void SetLateDataRules(Aws::Vector<LateDataRule>&& value) { m_lateDataRulesHasBeenSet = true; m_lateDataRules = std::move(value); }
199 inline Dataset& WithLateDataRules(const Aws::Vector<LateDataRule>& value) { SetLateDataRules(value); return *this;}
200 inline Dataset& WithLateDataRules(Aws::Vector<LateDataRule>&& value) { SetLateDataRules(std::move(value)); return *this;}
201 inline Dataset& AddLateDataRules(const LateDataRule& value) { m_lateDataRulesHasBeenSet = true; m_lateDataRules.push_back(value); return *this; }
202 inline Dataset& AddLateDataRules(LateDataRule&& value) { m_lateDataRulesHasBeenSet = true; m_lateDataRules.push_back(std::move(value)); return *this; }
204 private:
205
206 Aws::String m_name;
207 bool m_nameHasBeenSet = false;
208
209 Aws::String m_arn;
210 bool m_arnHasBeenSet = false;
211
213 bool m_actionsHasBeenSet = false;
214
216 bool m_triggersHasBeenSet = false;
217
218 Aws::Vector<DatasetContentDeliveryRule> m_contentDeliveryRules;
219 bool m_contentDeliveryRulesHasBeenSet = false;
220
221 DatasetStatus m_status;
222 bool m_statusHasBeenSet = false;
223
224 Aws::Utils::DateTime m_creationTime;
225 bool m_creationTimeHasBeenSet = false;
226
227 Aws::Utils::DateTime m_lastUpdateTime;
228 bool m_lastUpdateTimeHasBeenSet = false;
229
230 RetentionPeriod m_retentionPeriod;
231 bool m_retentionPeriodHasBeenSet = false;
232
233 VersioningConfiguration m_versioningConfiguration;
234 bool m_versioningConfigurationHasBeenSet = false;
235
236 Aws::Vector<LateDataRule> m_lateDataRules;
237 bool m_lateDataRulesHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace IoTAnalytics
242} // namespace Aws
Dataset & WithTriggers(const Aws::Vector< DatasetTrigger > &value)
Definition Dataset.h:101
void SetArn(Aws::String &&value)
Definition Dataset.h:70
Dataset & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Dataset.h:143
const DatasetStatus & GetStatus() const
Definition Dataset.h:126
void SetLastUpdateTime(const Aws::Utils::DateTime &value)
Definition Dataset.h:152
Dataset & WithVersioningConfiguration(const VersioningConfiguration &value)
Definition Dataset.h:184
Dataset & WithName(const Aws::String &value)
Definition Dataset.h:58
Dataset & WithVersioningConfiguration(VersioningConfiguration &&value)
Definition Dataset.h:185
bool VersioningConfigurationHasBeenSet() const
Definition Dataset.h:181
const Aws::Utils::DateTime & GetLastUpdateTime() const
Definition Dataset.h:150
Dataset & WithStatus(const DatasetStatus &value)
Definition Dataset.h:130
Dataset & WithLastUpdateTime(const Aws::Utils::DateTime &value)
Definition Dataset.h:154
void SetName(Aws::String &&value)
Definition Dataset.h:56
Dataset & WithStatus(DatasetStatus &&value)
Definition Dataset.h:131
const Aws::Vector< LateDataRule > & GetLateDataRules() const
Definition Dataset.h:195
void SetStatus(DatasetStatus &&value)
Definition Dataset.h:129
AWS_IOTANALYTICS_API Dataset(Aws::Utils::Json::JsonView jsonValue)
bool LastUpdateTimeHasBeenSet() const
Definition Dataset.h:151
Dataset & AddLateDataRules(const LateDataRule &value)
Definition Dataset.h:201
const Aws::String & GetName() const
Definition Dataset.h:53
const Aws::Utils::DateTime & GetCreationTime() const
Definition Dataset.h:138
void SetArn(const char *value)
Definition Dataset.h:71
Dataset & WithName(const char *value)
Definition Dataset.h:60
bool RetentionPeriodHasBeenSet() const
Definition Dataset.h:163
Dataset & AddContentDeliveryRules(const DatasetContentDeliveryRule &value)
Definition Dataset.h:118
void SetName(const char *value)
Definition Dataset.h:57
Dataset & WithActions(Aws::Vector< DatasetAction > &&value)
Definition Dataset.h:87
Dataset & WithArn(const Aws::String &value)
Definition Dataset.h:72
Dataset & WithActions(const Aws::Vector< DatasetAction > &value)
Definition Dataset.h:86
void SetName(const Aws::String &value)
Definition Dataset.h:55
Dataset & WithArn(Aws::String &&value)
Definition Dataset.h:73
void SetLateDataRules(const Aws::Vector< LateDataRule > &value)
Definition Dataset.h:197
void SetStatus(const DatasetStatus &value)
Definition Dataset.h:128
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Dataset.h:141
Dataset & AddActions(DatasetAction &&value)
Definition Dataset.h:89
Dataset & WithContentDeliveryRules(Aws::Vector< DatasetContentDeliveryRule > &&value)
Definition Dataset.h:117
Dataset & AddTriggers(const DatasetTrigger &value)
Definition Dataset.h:103
AWS_IOTANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< DatasetAction > & GetActions() const
Definition Dataset.h:82
const Aws::String & GetArn() const
Definition Dataset.h:67
void SetActions(Aws::Vector< DatasetAction > &&value)
Definition Dataset.h:85
void SetTriggers(Aws::Vector< DatasetTrigger > &&value)
Definition Dataset.h:100
Dataset & AddLateDataRules(LateDataRule &&value)
Definition Dataset.h:202
void SetRetentionPeriod(const RetentionPeriod &value)
Definition Dataset.h:164
void SetActions(const Aws::Vector< DatasetAction > &value)
Definition Dataset.h:84
void SetTriggers(const Aws::Vector< DatasetTrigger > &value)
Definition Dataset.h:99
Dataset & WithTriggers(Aws::Vector< DatasetTrigger > &&value)
Definition Dataset.h:102
Dataset & WithRetentionPeriod(const RetentionPeriod &value)
Definition Dataset.h:166
Dataset & AddActions(const DatasetAction &value)
Definition Dataset.h:88
void SetArn(const Aws::String &value)
Definition Dataset.h:69
void SetContentDeliveryRules(Aws::Vector< DatasetContentDeliveryRule > &&value)
Definition Dataset.h:115
Dataset & AddContentDeliveryRules(DatasetContentDeliveryRule &&value)
Definition Dataset.h:119
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Dataset.h:140
Dataset & WithRetentionPeriod(RetentionPeriod &&value)
Definition Dataset.h:167
void SetLateDataRules(Aws::Vector< LateDataRule > &&value)
Definition Dataset.h:198
const VersioningConfiguration & GetVersioningConfiguration() const
Definition Dataset.h:180
const RetentionPeriod & GetRetentionPeriod() const
Definition Dataset.h:162
Dataset & WithLateDataRules(Aws::Vector< LateDataRule > &&value)
Definition Dataset.h:200
Dataset & WithContentDeliveryRules(const Aws::Vector< DatasetContentDeliveryRule > &value)
Definition Dataset.h:116
void SetRetentionPeriod(RetentionPeriod &&value)
Definition Dataset.h:165
void SetLastUpdateTime(Aws::Utils::DateTime &&value)
Definition Dataset.h:153
const Aws::Vector< DatasetTrigger > & GetTriggers() const
Definition Dataset.h:97
Dataset & WithLastUpdateTime(Aws::Utils::DateTime &&value)
Definition Dataset.h:155
bool ContentDeliveryRulesHasBeenSet() const
Definition Dataset.h:113
Dataset & WithLateDataRules(const Aws::Vector< LateDataRule > &value)
Definition Dataset.h:199
void SetContentDeliveryRules(const Aws::Vector< DatasetContentDeliveryRule > &value)
Definition Dataset.h:114
Dataset & AddTriggers(DatasetTrigger &&value)
Definition Dataset.h:104
AWS_IOTANALYTICS_API Dataset()
const Aws::Vector< DatasetContentDeliveryRule > & GetContentDeliveryRules() const
Definition Dataset.h:112
void SetVersioningConfiguration(VersioningConfiguration &&value)
Definition Dataset.h:183
Dataset & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Dataset.h:142
Dataset & WithArn(const char *value)
Definition Dataset.h:74
Dataset & WithName(Aws::String &&value)
Definition Dataset.h:59
AWS_IOTANALYTICS_API Dataset & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVersioningConfiguration(const VersioningConfiguration &value)
Definition Dataset.h:182
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue