AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateDatasetRequest.h
1
6#pragma once
7#include <aws/comprehend/ComprehendRequest.h>
8#include <aws/comprehend/Comprehend_EXPORTS.h>
9#include <aws/comprehend/model/DatasetInputDataConfig.h>
10#include <aws/comprehend/model/DatasetType.h>
11#include <aws/comprehend/model/Tag.h>
12#include <aws/core/utils/UUID.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Comprehend {
20namespace Model {
21
25 public:
26 AWS_COMPREHEND_API CreateDatasetRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateDataset"; }
33
34 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
35
37
39
43 inline const Aws::String& GetFlywheelArn() const { return m_flywheelArn; }
44 inline bool FlywheelArnHasBeenSet() const { return m_flywheelArnHasBeenSet; }
45 template <typename FlywheelArnT = Aws::String>
46 void SetFlywheelArn(FlywheelArnT&& value) {
47 m_flywheelArnHasBeenSet = true;
48 m_flywheelArn = std::forward<FlywheelArnT>(value);
49 }
50 template <typename FlywheelArnT = Aws::String>
51 CreateDatasetRequest& WithFlywheelArn(FlywheelArnT&& value) {
52 SetFlywheelArn(std::forward<FlywheelArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDatasetName() const { return m_datasetName; }
62 inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
63 template <typename DatasetNameT = Aws::String>
64 void SetDatasetName(DatasetNameT&& value) {
65 m_datasetNameHasBeenSet = true;
66 m_datasetName = std::forward<DatasetNameT>(value);
67 }
68 template <typename DatasetNameT = Aws::String>
69 CreateDatasetRequest& WithDatasetName(DatasetNameT&& value) {
70 SetDatasetName(std::forward<DatasetNameT>(value));
71 return *this;
72 }
74
76
80 inline DatasetType GetDatasetType() const { return m_datasetType; }
81 inline bool DatasetTypeHasBeenSet() const { return m_datasetTypeHasBeenSet; }
82 inline void SetDatasetType(DatasetType value) {
83 m_datasetTypeHasBeenSet = true;
84 m_datasetType = value;
85 }
87 SetDatasetType(value);
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template <typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) {
100 m_descriptionHasBeenSet = true;
101 m_description = std::forward<DescriptionT>(value);
102 }
103 template <typename DescriptionT = Aws::String>
104 CreateDatasetRequest& WithDescription(DescriptionT&& value) {
105 SetDescription(std::forward<DescriptionT>(value));
106 return *this;
107 }
109
111
116 inline const DatasetInputDataConfig& GetInputDataConfig() const { return m_inputDataConfig; }
117 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
118 template <typename InputDataConfigT = DatasetInputDataConfig>
119 void SetInputDataConfig(InputDataConfigT&& value) {
120 m_inputDataConfigHasBeenSet = true;
121 m_inputDataConfig = std::forward<InputDataConfigT>(value);
122 }
123 template <typename InputDataConfigT = DatasetInputDataConfig>
124 CreateDatasetRequest& WithInputDataConfig(InputDataConfigT&& value) {
125 SetInputDataConfig(std::forward<InputDataConfigT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
136 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
137 template <typename ClientRequestTokenT = Aws::String>
138 void SetClientRequestToken(ClientRequestTokenT&& value) {
139 m_clientRequestTokenHasBeenSet = true;
140 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
141 }
142 template <typename ClientRequestTokenT = Aws::String>
143 CreateDatasetRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
144 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
154 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
155 template <typename TagsT = Aws::Vector<Tag>>
156 void SetTags(TagsT&& value) {
157 m_tagsHasBeenSet = true;
158 m_tags = std::forward<TagsT>(value);
159 }
160 template <typename TagsT = Aws::Vector<Tag>>
162 SetTags(std::forward<TagsT>(value));
163 return *this;
164 }
165 template <typename TagsT = Tag>
167 m_tagsHasBeenSet = true;
168 m_tags.emplace_back(std::forward<TagsT>(value));
169 return *this;
170 }
172 private:
173 Aws::String m_flywheelArn;
174
175 Aws::String m_datasetName;
176
177 DatasetType m_datasetType{DatasetType::NOT_SET};
178
179 Aws::String m_description;
180
181 DatasetInputDataConfig m_inputDataConfig;
182
183 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
184
185 Aws::Vector<Tag> m_tags;
186 bool m_flywheelArnHasBeenSet = false;
187 bool m_datasetNameHasBeenSet = false;
188 bool m_datasetTypeHasBeenSet = false;
189 bool m_descriptionHasBeenSet = false;
190 bool m_inputDataConfigHasBeenSet = false;
191 bool m_clientRequestTokenHasBeenSet = true;
192 bool m_tagsHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace Comprehend
197} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateDatasetRequest & WithInputDataConfig(InputDataConfigT &&value)
CreateDatasetRequest & WithFlywheelArn(FlywheelArnT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_COMPREHEND_API Aws::String SerializePayload() const override
CreateDatasetRequest & WithDescription(DescriptionT &&value)
CreateDatasetRequest & WithDatasetType(DatasetType value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDatasetRequest & WithDatasetName(DatasetNameT &&value)
CreateDatasetRequest & WithTags(TagsT &&value)
CreateDatasetRequest & WithClientRequestToken(ClientRequestTokenT &&value)
void SetInputDataConfig(InputDataConfigT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
AWS_COMPREHEND_API CreateDatasetRequest()=default
CreateDatasetRequest & AddTags(TagsT &&value)
const DatasetInputDataConfig & GetInputDataConfig() const
static Aws::Utils::UUID PseudoRandomUUID()
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