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/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/ComprehendRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/comprehend/model/DatasetType.h>
11#include <aws/comprehend/model/DatasetInputDataConfig.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/comprehend/model/Tag.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace Comprehend
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_COMPREHEND_API CreateDatasetRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateDataset"; }
36
37 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
38
40
41
43
47 inline const Aws::String& GetFlywheelArn() const{ return m_flywheelArn; }
48 inline bool FlywheelArnHasBeenSet() const { return m_flywheelArnHasBeenSet; }
49 inline void SetFlywheelArn(const Aws::String& value) { m_flywheelArnHasBeenSet = true; m_flywheelArn = value; }
50 inline void SetFlywheelArn(Aws::String&& value) { m_flywheelArnHasBeenSet = true; m_flywheelArn = std::move(value); }
51 inline void SetFlywheelArn(const char* value) { m_flywheelArnHasBeenSet = true; m_flywheelArn.assign(value); }
52 inline CreateDatasetRequest& WithFlywheelArn(const Aws::String& value) { SetFlywheelArn(value); return *this;}
53 inline CreateDatasetRequest& WithFlywheelArn(Aws::String&& value) { SetFlywheelArn(std::move(value)); return *this;}
54 inline CreateDatasetRequest& WithFlywheelArn(const char* value) { SetFlywheelArn(value); return *this;}
56
58
61 inline const Aws::String& GetDatasetName() const{ return m_datasetName; }
62 inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
63 inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
64 inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::move(value); }
65 inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); }
66 inline CreateDatasetRequest& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;}
67 inline CreateDatasetRequest& WithDatasetName(Aws::String&& value) { SetDatasetName(std::move(value)); return *this;}
68 inline CreateDatasetRequest& WithDatasetName(const char* value) { SetDatasetName(value); return *this;}
70
72
76 inline const DatasetType& GetDatasetType() const{ return m_datasetType; }
77 inline bool DatasetTypeHasBeenSet() const { return m_datasetTypeHasBeenSet; }
78 inline void SetDatasetType(const DatasetType& value) { m_datasetTypeHasBeenSet = true; m_datasetType = value; }
79 inline void SetDatasetType(DatasetType&& value) { m_datasetTypeHasBeenSet = true; m_datasetType = std::move(value); }
80 inline CreateDatasetRequest& WithDatasetType(const DatasetType& value) { SetDatasetType(value); return *this;}
81 inline CreateDatasetRequest& WithDatasetType(DatasetType&& value) { SetDatasetType(std::move(value)); return *this;}
83
85
88 inline const Aws::String& GetDescription() const{ return m_description; }
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
91 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
92 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
93 inline CreateDatasetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
94 inline CreateDatasetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
95 inline CreateDatasetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
97
99
104 inline const DatasetInputDataConfig& GetInputDataConfig() const{ return m_inputDataConfig; }
105 inline bool InputDataConfigHasBeenSet() const { return m_inputDataConfigHasBeenSet; }
106 inline void SetInputDataConfig(const DatasetInputDataConfig& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = value; }
107 inline void SetInputDataConfig(DatasetInputDataConfig&& value) { m_inputDataConfigHasBeenSet = true; m_inputDataConfig = std::move(value); }
109 inline CreateDatasetRequest& WithInputDataConfig(DatasetInputDataConfig&& value) { SetInputDataConfig(std::move(value)); return *this;}
111
113
117 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
118 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
119 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
120 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
121 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
123 inline CreateDatasetRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
124 inline CreateDatasetRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
126
128
131 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
134 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
135 inline CreateDatasetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
136 inline CreateDatasetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
137 inline CreateDatasetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
138 inline CreateDatasetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
140 private:
141
142 Aws::String m_flywheelArn;
143 bool m_flywheelArnHasBeenSet = false;
144
145 Aws::String m_datasetName;
146 bool m_datasetNameHasBeenSet = false;
147
148 DatasetType m_datasetType;
149 bool m_datasetTypeHasBeenSet = false;
150
151 Aws::String m_description;
152 bool m_descriptionHasBeenSet = false;
153
154 DatasetInputDataConfig m_inputDataConfig;
155 bool m_inputDataConfigHasBeenSet = false;
156
157 Aws::String m_clientRequestToken;
158 bool m_clientRequestTokenHasBeenSet = false;
159
160 Aws::Vector<Tag> m_tags;
161 bool m_tagsHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace Comprehend
166} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetInputDataConfig(DatasetInputDataConfig &&value)
CreateDatasetRequest & WithClientRequestToken(const char *value)
CreateDatasetRequest & WithDatasetName(const Aws::String &value)
CreateDatasetRequest & WithFlywheelArn(const char *value)
CreateDatasetRequest & WithDatasetName(Aws::String &&value)
CreateDatasetRequest & WithDatasetType(DatasetType &&value)
const Aws::Vector< Tag > & GetTags() const
CreateDatasetRequest & WithClientRequestToken(const Aws::String &value)
CreateDatasetRequest & WithDatasetType(const DatasetType &value)
CreateDatasetRequest & WithDatasetName(const char *value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
CreateDatasetRequest & WithFlywheelArn(const Aws::String &value)
void SetClientRequestToken(const Aws::String &value)
CreateDatasetRequest & WithDescription(Aws::String &&value)
CreateDatasetRequest & AddTags(const Tag &value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDatasetRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDatasetRequest & WithClientRequestToken(Aws::String &&value)
CreateDatasetRequest & WithTags(Aws::Vector< Tag > &&value)
void SetTags(const Aws::Vector< Tag > &value)
void SetInputDataConfig(const DatasetInputDataConfig &value)
CreateDatasetRequest & WithDescription(const char *value)
CreateDatasetRequest & AddTags(Tag &&value)
CreateDatasetRequest & WithFlywheelArn(Aws::String &&value)
CreateDatasetRequest & WithInputDataConfig(const DatasetInputDataConfig &value)
CreateDatasetRequest & WithDescription(const Aws::String &value)
CreateDatasetRequest & WithInputDataConfig(DatasetInputDataConfig &&value)
const DatasetInputDataConfig & GetInputDataConfig() const
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