AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename DatasetNameT = Aws::String>
50 void SetDatasetName(DatasetNameT&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::forward<DatasetNameT>(value); }
51 template<typename DatasetNameT = Aws::String>
52 CreateDatasetRequest& WithDatasetName(DatasetNameT&& value) { SetDatasetName(std::forward<DatasetNameT>(value)); return *this;}
54
56
71 inline Domain GetDomain() const { return m_domain; }
72 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
73 inline void SetDomain(Domain value) { m_domainHasBeenSet = true; m_domain = value; }
74 inline CreateDatasetRequest& WithDomain(Domain value) { SetDomain(value); return *this;}
76
78
81 inline DatasetType GetDatasetType() const { return m_datasetType; }
82 inline bool DatasetTypeHasBeenSet() const { return m_datasetTypeHasBeenSet; }
83 inline void SetDatasetType(DatasetType value) { m_datasetTypeHasBeenSet = true; m_datasetType = value; }
84 inline CreateDatasetRequest& WithDatasetType(DatasetType value) { SetDatasetType(value); return *this;}
86
88
101 inline const Aws::String& GetDataFrequency() const { return m_dataFrequency; }
102 inline bool DataFrequencyHasBeenSet() const { return m_dataFrequencyHasBeenSet; }
103 template<typename DataFrequencyT = Aws::String>
104 void SetDataFrequency(DataFrequencyT&& value) { m_dataFrequencyHasBeenSet = true; m_dataFrequency = std::forward<DataFrequencyT>(value); }
105 template<typename DataFrequencyT = Aws::String>
106 CreateDatasetRequest& WithDataFrequency(DataFrequencyT&& value) { SetDataFrequency(std::forward<DataFrequencyT>(value)); return *this;}
108
110
119 inline const Schema& GetSchema() const { return m_schema; }
120 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
121 template<typename SchemaT = Schema>
122 void SetSchema(SchemaT&& value) { m_schemaHasBeenSet = true; m_schema = std::forward<SchemaT>(value); }
123 template<typename SchemaT = Schema>
124 CreateDatasetRequest& WithSchema(SchemaT&& value) { SetSchema(std::forward<SchemaT>(value)); return *this;}
126
128
132 inline const EncryptionConfig& GetEncryptionConfig() const { return m_encryptionConfig; }
133 inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; }
134 template<typename EncryptionConfigT = EncryptionConfig>
135 void SetEncryptionConfig(EncryptionConfigT&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = std::forward<EncryptionConfigT>(value); }
136 template<typename EncryptionConfigT = EncryptionConfig>
137 CreateDatasetRequest& WithEncryptionConfig(EncryptionConfigT&& value) { SetEncryptionConfig(std::forward<EncryptionConfigT>(value)); return *this;}
139
141
162 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
163 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
164 template<typename TagsT = Aws::Vector<Tag>>
165 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
166 template<typename TagsT = Aws::Vector<Tag>>
167 CreateDatasetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
168 template<typename TagsT = Tag>
169 CreateDatasetRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
171 private:
172
173 Aws::String m_datasetName;
174 bool m_datasetNameHasBeenSet = false;
175
176 Domain m_domain{Domain::NOT_SET};
177 bool m_domainHasBeenSet = false;
178
179 DatasetType m_datasetType{DatasetType::NOT_SET};
180 bool m_datasetTypeHasBeenSet = false;
181
182 Aws::String m_dataFrequency;
183 bool m_dataFrequencyHasBeenSet = false;
184
185 Schema m_schema;
186 bool m_schemaHasBeenSet = false;
187
188 EncryptionConfig m_encryptionConfig;
189 bool m_encryptionConfigHasBeenSet = false;
190
191 Aws::Vector<Tag> m_tags;
192 bool m_tagsHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace ForecastService
197} // namespace Aws
CreateDatasetRequest & WithDatasetName(DatasetNameT &&value)
CreateDatasetRequest & WithEncryptionConfig(EncryptionConfigT &&value)
CreateDatasetRequest & WithTags(TagsT &&value)
AWS_FORECASTSERVICE_API Aws::String SerializePayload() const override
CreateDatasetRequest & WithDomain(Domain value)
CreateDatasetRequest & WithDatasetType(DatasetType value)
CreateDatasetRequest & AddTags(TagsT &&value)
CreateDatasetRequest & WithSchema(SchemaT &&value)
CreateDatasetRequest & WithDataFrequency(DataFrequencyT &&value)
virtual const char * GetServiceRequestName() const override
AWS_FORECASTSERVICE_API CreateDatasetRequest()=default
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