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/forecast/ForecastService_EXPORTS.h>
8#include <aws/forecast/ForecastServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/forecast/model/Domain.h>
11#include <aws/forecast/model/DatasetType.h>
12#include <aws/forecast/model/Schema.h>
13#include <aws/forecast/model/EncryptionConfig.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/forecast/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace ForecastService
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_FORECASTSERVICE_API CreateDatasetRequest();
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_FORECASTSERVICE_API Aws::String SerializePayload() const override;
39
40 AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() 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
73 inline const Domain& GetDomain() const{ return m_domain; }
74 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
75 inline void SetDomain(const Domain& value) { m_domainHasBeenSet = true; m_domain = value; }
76 inline void SetDomain(Domain&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
77 inline CreateDatasetRequest& WithDomain(const Domain& value) { SetDomain(value); return *this;}
78 inline CreateDatasetRequest& WithDomain(Domain&& value) { SetDomain(std::move(value)); return *this;}
80
82
85 inline const DatasetType& GetDatasetType() const{ return m_datasetType; }
86 inline bool DatasetTypeHasBeenSet() const { return m_datasetTypeHasBeenSet; }
87 inline void SetDatasetType(const DatasetType& value) { m_datasetTypeHasBeenSet = true; m_datasetType = value; }
88 inline void SetDatasetType(DatasetType&& value) { m_datasetTypeHasBeenSet = true; m_datasetType = std::move(value); }
89 inline CreateDatasetRequest& WithDatasetType(const DatasetType& value) { SetDatasetType(value); return *this;}
90 inline CreateDatasetRequest& WithDatasetType(DatasetType&& value) { SetDatasetType(std::move(value)); return *this;}
92
94
107 inline const Aws::String& GetDataFrequency() const{ return m_dataFrequency; }
108 inline bool DataFrequencyHasBeenSet() const { return m_dataFrequencyHasBeenSet; }
109 inline void SetDataFrequency(const Aws::String& value) { m_dataFrequencyHasBeenSet = true; m_dataFrequency = value; }
110 inline void SetDataFrequency(Aws::String&& value) { m_dataFrequencyHasBeenSet = true; m_dataFrequency = std::move(value); }
111 inline void SetDataFrequency(const char* value) { m_dataFrequencyHasBeenSet = true; m_dataFrequency.assign(value); }
112 inline CreateDatasetRequest& WithDataFrequency(const Aws::String& value) { SetDataFrequency(value); return *this;}
113 inline CreateDatasetRequest& WithDataFrequency(Aws::String&& value) { SetDataFrequency(std::move(value)); return *this;}
114 inline CreateDatasetRequest& WithDataFrequency(const char* value) { SetDataFrequency(value); return *this;}
116
118
127 inline const Schema& GetSchema() const{ return m_schema; }
128 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
129 inline void SetSchema(const Schema& value) { m_schemaHasBeenSet = true; m_schema = value; }
130 inline void SetSchema(Schema&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
131 inline CreateDatasetRequest& WithSchema(const Schema& value) { SetSchema(value); return *this;}
132 inline CreateDatasetRequest& WithSchema(Schema&& value) { SetSchema(std::move(value)); return *this;}
134
136
140 inline const EncryptionConfig& GetEncryptionConfig() const{ return m_encryptionConfig; }
141 inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; }
142 inline void SetEncryptionConfig(const EncryptionConfig& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = value; }
143 inline void SetEncryptionConfig(EncryptionConfig&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = std::move(value); }
145 inline CreateDatasetRequest& WithEncryptionConfig(EncryptionConfig&& value) { SetEncryptionConfig(std::move(value)); return *this;}
147
149
170 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
171 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
172 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
173 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
174 inline CreateDatasetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
175 inline CreateDatasetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
176 inline CreateDatasetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
177 inline CreateDatasetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
179 private:
180
181 Aws::String m_datasetName;
182 bool m_datasetNameHasBeenSet = false;
183
184 Domain m_domain;
185 bool m_domainHasBeenSet = false;
186
187 DatasetType m_datasetType;
188 bool m_datasetTypeHasBeenSet = false;
189
190 Aws::String m_dataFrequency;
191 bool m_dataFrequencyHasBeenSet = false;
192
193 Schema m_schema;
194 bool m_schemaHasBeenSet = false;
195
196 EncryptionConfig m_encryptionConfig;
197 bool m_encryptionConfigHasBeenSet = false;
198
199 Aws::Vector<Tag> m_tags;
200 bool m_tagsHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace ForecastService
205} // namespace Aws
CreateDatasetRequest & WithDatasetName(Aws::String &&value)
CreateDatasetRequest & WithEncryptionConfig(const EncryptionConfig &value)
CreateDatasetRequest & WithDatasetType(DatasetType &&value)
CreateDatasetRequest & WithDataFrequency(const char *value)
CreateDatasetRequest & WithDomain(Domain &&value)
AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override
CreateDatasetRequest & WithEncryptionConfig(EncryptionConfig &&value)
CreateDatasetRequest & WithDataFrequency(const Aws::String &value)
CreateDatasetRequest & WithDatasetType(const DatasetType &value)
CreateDatasetRequest & WithDatasetName(const char *value)
void SetEncryptionConfig(const EncryptionConfig &value)
CreateDatasetRequest & WithDomain(const Domain &value)
CreateDatasetRequest & WithDataFrequency(Aws::String &&value)
CreateDatasetRequest & WithDatasetName(const Aws::String &value)
CreateDatasetRequest & WithSchema(const Schema &value)
CreateDatasetRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDatasetRequest & WithSchema(Schema &&value)
CreateDatasetRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDatasetRequest & AddTags(const Tag &value)
void SetTags(const Aws::Vector< Tag > &value)
virtual const char * GetServiceRequestName() const override
AWS_FORECASTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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