AWS SDK for C++  1.9.66
AWS SDK for C++
CreateDatasetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <aws/forecast/model/Tag.h>
16 #include <utility>
17 
18 namespace Aws
19 {
20 namespace ForecastService
21 {
22 namespace Model
23 {
24 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "CreateDataset"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
46  inline const Aws::String& GetDatasetName() const{ return m_datasetName; }
47 
51  inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
52 
56  inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
57 
61  inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::move(value); }
62 
66  inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); }
67 
71  inline CreateDatasetRequest& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;}
72 
76  inline CreateDatasetRequest& WithDatasetName(Aws::String&& value) { SetDatasetName(std::move(value)); return *this;}
77 
81  inline CreateDatasetRequest& WithDatasetName(const char* value) { SetDatasetName(value); return *this;}
82 
83 
96  inline const Domain& GetDomain() const{ return m_domain; }
97 
110  inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
111 
124  inline void SetDomain(const Domain& value) { m_domainHasBeenSet = true; m_domain = value; }
125 
138  inline void SetDomain(Domain&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
139 
152  inline CreateDatasetRequest& WithDomain(const Domain& value) { SetDomain(value); return *this;}
153 
166  inline CreateDatasetRequest& WithDomain(Domain&& value) { SetDomain(std::move(value)); return *this;}
167 
168 
172  inline const DatasetType& GetDatasetType() const{ return m_datasetType; }
173 
177  inline bool DatasetTypeHasBeenSet() const { return m_datasetTypeHasBeenSet; }
178 
182  inline void SetDatasetType(const DatasetType& value) { m_datasetTypeHasBeenSet = true; m_datasetType = value; }
183 
187  inline void SetDatasetType(DatasetType&& value) { m_datasetTypeHasBeenSet = true; m_datasetType = std::move(value); }
188 
192  inline CreateDatasetRequest& WithDatasetType(const DatasetType& value) { SetDatasetType(value); return *this;}
193 
197  inline CreateDatasetRequest& WithDatasetType(DatasetType&& value) { SetDatasetType(std::move(value)); return *this;}
198 
199 
207  inline const Aws::String& GetDataFrequency() const{ return m_dataFrequency; }
208 
216  inline bool DataFrequencyHasBeenSet() const { return m_dataFrequencyHasBeenSet; }
217 
225  inline void SetDataFrequency(const Aws::String& value) { m_dataFrequencyHasBeenSet = true; m_dataFrequency = value; }
226 
234  inline void SetDataFrequency(Aws::String&& value) { m_dataFrequencyHasBeenSet = true; m_dataFrequency = std::move(value); }
235 
243  inline void SetDataFrequency(const char* value) { m_dataFrequencyHasBeenSet = true; m_dataFrequency.assign(value); }
244 
252  inline CreateDatasetRequest& WithDataFrequency(const Aws::String& value) { SetDataFrequency(value); return *this;}
253 
261  inline CreateDatasetRequest& WithDataFrequency(Aws::String&& value) { SetDataFrequency(std::move(value)); return *this;}
262 
270  inline CreateDatasetRequest& WithDataFrequency(const char* value) { SetDataFrequency(value); return *this;}
271 
272 
280  inline const Schema& GetSchema() const{ return m_schema; }
281 
289  inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
290 
298  inline void SetSchema(const Schema& value) { m_schemaHasBeenSet = true; m_schema = value; }
299 
307  inline void SetSchema(Schema&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
308 
316  inline CreateDatasetRequest& WithSchema(const Schema& value) { SetSchema(value); return *this;}
317 
325  inline CreateDatasetRequest& WithSchema(Schema&& value) { SetSchema(std::move(value)); return *this;}
326 
327 
332  inline const EncryptionConfig& GetEncryptionConfig() const{ return m_encryptionConfig; }
333 
338  inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; }
339 
344  inline void SetEncryptionConfig(const EncryptionConfig& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = value; }
345 
350  inline void SetEncryptionConfig(EncryptionConfig&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = std::move(value); }
351 
356  inline CreateDatasetRequest& WithEncryptionConfig(const EncryptionConfig& value) { SetEncryptionConfig(value); return *this;}
357 
362  inline CreateDatasetRequest& WithEncryptionConfig(EncryptionConfig&& value) { SetEncryptionConfig(std::move(value)); return *this;}
363 
364 
386  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
387 
409  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
410 
432  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
433 
455  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
456 
478  inline CreateDatasetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
479 
501  inline CreateDatasetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
502 
524  inline CreateDatasetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
525 
547  inline CreateDatasetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
548 
549  private:
550 
551  Aws::String m_datasetName;
552  bool m_datasetNameHasBeenSet;
553 
554  Domain m_domain;
555  bool m_domainHasBeenSet;
556 
557  DatasetType m_datasetType;
558  bool m_datasetTypeHasBeenSet;
559 
560  Aws::String m_dataFrequency;
561  bool m_dataFrequencyHasBeenSet;
562 
563  Schema m_schema;
564  bool m_schemaHasBeenSet;
565 
566  EncryptionConfig m_encryptionConfig;
567  bool m_encryptionConfigHasBeenSet;
568 
569  Aws::Vector<Tag> m_tags;
570  bool m_tagsHasBeenSet;
571  };
572 
573 } // namespace Model
574 } // namespace ForecastService
575 } // namespace Aws
Aws::ForecastService::Model::CreateDatasetRequest::CreateDatasetRequest
CreateDatasetRequest()
Aws::ForecastService::Model::CreateDatasetRequest::SetDatasetName
void SetDatasetName(const char *value)
Definition: CreateDatasetRequest.h:66
Aws::ForecastService::Model::CreateDatasetRequest::WithDomain
CreateDatasetRequest & WithDomain(Domain &&value)
Definition: CreateDatasetRequest.h:166
Aws::ForecastService::Model::CreateDatasetRequest::WithDataFrequency
CreateDatasetRequest & WithDataFrequency(Aws::String &&value)
Definition: CreateDatasetRequest.h:261
Aws::ForecastService::Model::CreateDatasetRequest::DatasetTypeHasBeenSet
bool DatasetTypeHasBeenSet() const
Definition: CreateDatasetRequest.h:177
Aws::ForecastService::Model::CreateDatasetRequest::WithSchema
CreateDatasetRequest & WithSchema(const Schema &value)
Definition: CreateDatasetRequest.h:316
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ForecastService::Model::CreateDatasetRequest::AddTags
CreateDatasetRequest & AddTags(const Tag &value)
Definition: CreateDatasetRequest.h:524
ForecastService_EXPORTS.h
Aws::ForecastService::Model::CreateDatasetRequest::GetDomain
const Domain & GetDomain() const
Definition: CreateDatasetRequest.h:96
Aws::ForecastService::Model::CreateDatasetRequest::WithDatasetType
CreateDatasetRequest & WithDatasetType(const DatasetType &value)
Definition: CreateDatasetRequest.h:192
Aws::ForecastService::Model::Schema
Definition: Schema.h:34
Aws::ForecastService::Model::CreateDatasetRequest::SetDataFrequency
void SetDataFrequency(const char *value)
Definition: CreateDatasetRequest.h:243
Aws::ForecastService::Model::DatasetType
DatasetType
Definition: DatasetType.h:17
Aws::ForecastService::Model::CreateDatasetRequest::GetSchema
const Schema & GetSchema() const
Definition: CreateDatasetRequest.h:280
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ForecastService::Model::CreateDatasetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ForecastService::Model::CreateDatasetRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateDatasetRequest.h:432
Aws::ForecastService::Model::CreateDatasetRequest::SetSchema
void SetSchema(Schema &&value)
Definition: CreateDatasetRequest.h:307
AWSVector.h
Aws::ForecastService::Model::Domain
Domain
Definition: Domain.h:17
Aws::ForecastService::Model::CreateDatasetRequest::SetEncryptionConfig
void SetEncryptionConfig(const EncryptionConfig &value)
Definition: CreateDatasetRequest.h:344
Domain.h
Aws::ForecastService::Model::CreateDatasetRequest::WithDataFrequency
CreateDatasetRequest & WithDataFrequency(const Aws::String &value)
Definition: CreateDatasetRequest.h:252
Aws::ForecastService::Model::CreateDatasetRequest::GetDatasetName
const Aws::String & GetDatasetName() const
Definition: CreateDatasetRequest.h:46
Aws::ForecastService::Model::CreateDatasetRequest::WithDataFrequency
CreateDatasetRequest & WithDataFrequency(const char *value)
Definition: CreateDatasetRequest.h:270
Aws::ForecastService::Model::CreateDatasetRequest::WithSchema
CreateDatasetRequest & WithSchema(Schema &&value)
Definition: CreateDatasetRequest.h:325
Aws::ForecastService::Model::CreateDatasetRequest::SetDatasetName
void SetDatasetName(Aws::String &&value)
Definition: CreateDatasetRequest.h:61
Aws::ForecastService::Model::CreateDatasetRequest::WithDatasetType
CreateDatasetRequest & WithDatasetType(DatasetType &&value)
Definition: CreateDatasetRequest.h:197
Aws::ForecastService::Model::CreateDatasetRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateDatasetRequest.h:409
Aws::ForecastService::Model::CreateDatasetRequest
Definition: CreateDatasetRequest.h:28
Aws::ForecastService::Model::CreateDatasetRequest::WithDomain
CreateDatasetRequest & WithDomain(const Domain &value)
Definition: CreateDatasetRequest.h:152
Aws::ForecastService::Model::CreateDatasetRequest::GetEncryptionConfig
const EncryptionConfig & GetEncryptionConfig() const
Definition: CreateDatasetRequest.h:332
Aws::ForecastService::Model::CreateDatasetRequest::DatasetNameHasBeenSet
bool DatasetNameHasBeenSet() const
Definition: CreateDatasetRequest.h:51
Aws::ForecastService::Model::CreateDatasetRequest::GetDataFrequency
const Aws::String & GetDataFrequency() const
Definition: CreateDatasetRequest.h:207
Aws::ForecastService::Model::CreateDatasetRequest::SetDataFrequency
void SetDataFrequency(const Aws::String &value)
Definition: CreateDatasetRequest.h:225
ForecastServiceRequest.h
Aws::ForecastService::Model::CreateDatasetRequest::AddTags
CreateDatasetRequest & AddTags(Tag &&value)
Definition: CreateDatasetRequest.h:547
Aws::ForecastService::Model::CreateDatasetRequest::DomainHasBeenSet
bool DomainHasBeenSet() const
Definition: CreateDatasetRequest.h:110
Aws::ForecastService::Model::CreateDatasetRequest::WithTags
CreateDatasetRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateDatasetRequest.h:501
AWSString.h
EncryptionConfig.h
Aws::ForecastService::Model::CreateDatasetRequest::DataFrequencyHasBeenSet
bool DataFrequencyHasBeenSet() const
Definition: CreateDatasetRequest.h:216
Aws::ForecastService::Model::CreateDatasetRequest::SchemaHasBeenSet
bool SchemaHasBeenSet() const
Definition: CreateDatasetRequest.h:289
Aws::ForecastService::Model::CreateDatasetRequest::WithTags
CreateDatasetRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateDatasetRequest.h:478
Aws::ForecastService::Model::CreateDatasetRequest::SetDatasetType
void SetDatasetType(const DatasetType &value)
Definition: CreateDatasetRequest.h:182
Aws::ForecastService::Model::CreateDatasetRequest::SetDomain
void SetDomain(const Domain &value)
Definition: CreateDatasetRequest.h:124
Aws::ForecastService::Model::CreateDatasetRequest::WithEncryptionConfig
CreateDatasetRequest & WithEncryptionConfig(EncryptionConfig &&value)
Definition: CreateDatasetRequest.h:362
Aws::ForecastService::Model::CreateDatasetRequest::SetEncryptionConfig
void SetEncryptionConfig(EncryptionConfig &&value)
Definition: CreateDatasetRequest.h:350
Aws::ForecastService::Model::EncryptionConfig
Definition: EncryptionConfig.h:35
Tag.h
Aws::ForecastService::Model::CreateDatasetRequest::SetDomain
void SetDomain(Domain &&value)
Definition: CreateDatasetRequest.h:138
Aws::ForecastService::Model::CreateDatasetRequest::GetDatasetType
const DatasetType & GetDatasetType() const
Definition: CreateDatasetRequest.h:172
Aws::ForecastService::Model::CreateDatasetRequest::WithDatasetName
CreateDatasetRequest & WithDatasetName(Aws::String &&value)
Definition: CreateDatasetRequest.h:76
Aws::ForecastService::Model::CreateDatasetRequest::SetSchema
void SetSchema(const Schema &value)
Definition: CreateDatasetRequest.h:298
Aws::ForecastService::ForecastServiceRequest
Definition: ForecastServiceRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::ForecastService::Model::CreateDatasetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDatasetRequest.h:36
Aws::ForecastService::Model::CreateDatasetRequest::SetDatasetName
void SetDatasetName(const Aws::String &value)
Definition: CreateDatasetRequest.h:56
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Schema.h
Aws::ForecastService::Model::Tag
Definition: Tag.h:50
Aws::ForecastService::Model::CreateDatasetRequest::WithDatasetName
CreateDatasetRequest & WithDatasetName(const char *value)
Definition: CreateDatasetRequest.h:81
DatasetType.h
Aws::ForecastService::Model::CreateDatasetRequest::EncryptionConfigHasBeenSet
bool EncryptionConfigHasBeenSet() const
Definition: CreateDatasetRequest.h:338
Aws::ForecastService::Model::CreateDatasetRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateDatasetRequest.h:386
Aws::ForecastService::Model::CreateDatasetRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateDatasetRequest.h:455
AWS_FORECASTSERVICE_API
#define AWS_FORECASTSERVICE_API
Definition: ForecastService_EXPORTS.h:28
Aws::ForecastService::Model::CreateDatasetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ForecastService::Model::CreateDatasetRequest::SetDataFrequency
void SetDataFrequency(Aws::String &&value)
Definition: CreateDatasetRequest.h:234
Aws::ForecastService::Model::CreateDatasetRequest::SetDatasetType
void SetDatasetType(DatasetType &&value)
Definition: CreateDatasetRequest.h:187
Aws::ForecastService::Model::CreateDatasetRequest::WithEncryptionConfig
CreateDatasetRequest & WithEncryptionConfig(const EncryptionConfig &value)
Definition: CreateDatasetRequest.h:356
Aws::ForecastService::Model::CreateDatasetRequest::WithDatasetName
CreateDatasetRequest & WithDatasetName(const Aws::String &value)
Definition: CreateDatasetRequest.h:71