AWS SDK for C++  1.9.108
AWS SDK for C++
CreateDatasetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 #include <aws/core/utils/UUID.h>
13 
14 namespace Aws
15 {
16 namespace LookoutforVision
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetProjectName() const{ return m_projectName; }
43 
47  inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
48 
52  inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
53 
57  inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
58 
62  inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
63 
67  inline CreateDatasetRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
68 
72  inline CreateDatasetRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
73 
77  inline CreateDatasetRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
78 
79 
84  inline const Aws::String& GetDatasetType() const{ return m_datasetType; }
85 
90  inline bool DatasetTypeHasBeenSet() const { return m_datasetTypeHasBeenSet; }
91 
96  inline void SetDatasetType(const Aws::String& value) { m_datasetTypeHasBeenSet = true; m_datasetType = value; }
97 
102  inline void SetDatasetType(Aws::String&& value) { m_datasetTypeHasBeenSet = true; m_datasetType = std::move(value); }
103 
108  inline void SetDatasetType(const char* value) { m_datasetTypeHasBeenSet = true; m_datasetType.assign(value); }
109 
114  inline CreateDatasetRequest& WithDatasetType(const Aws::String& value) { SetDatasetType(value); return *this;}
115 
120  inline CreateDatasetRequest& WithDatasetType(Aws::String&& value) { SetDatasetType(std::move(value)); return *this;}
121 
126  inline CreateDatasetRequest& WithDatasetType(const char* value) { SetDatasetType(value); return *this;}
127 
128 
140  inline const DatasetSource& GetDatasetSource() const{ return m_datasetSource; }
141 
153  inline bool DatasetSourceHasBeenSet() const { return m_datasetSourceHasBeenSet; }
154 
166  inline void SetDatasetSource(const DatasetSource& value) { m_datasetSourceHasBeenSet = true; m_datasetSource = value; }
167 
179  inline void SetDatasetSource(DatasetSource&& value) { m_datasetSourceHasBeenSet = true; m_datasetSource = std::move(value); }
180 
192  inline CreateDatasetRequest& WithDatasetSource(const DatasetSource& value) { SetDatasetSource(value); return *this;}
193 
205  inline CreateDatasetRequest& WithDatasetSource(DatasetSource&& value) { SetDatasetSource(std::move(value)); return *this;}
206 
207 
219  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
220 
232  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
233 
245  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
246 
258  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
259 
271  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
272 
284  inline CreateDatasetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
285 
297  inline CreateDatasetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
298 
310  inline CreateDatasetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
311 
312  private:
313 
314  Aws::String m_projectName;
315  bool m_projectNameHasBeenSet;
316 
317  Aws::String m_datasetType;
318  bool m_datasetTypeHasBeenSet;
319 
320  DatasetSource m_datasetSource;
321  bool m_datasetSourceHasBeenSet;
322 
323  Aws::String m_clientToken;
324  bool m_clientTokenHasBeenSet;
325  };
326 
327 } // namespace Model
328 } // namespace LookoutforVision
329 } // namespace Aws
Aws::LookoutforVision::Model::CreateDatasetRequest::DatasetTypeHasBeenSet
bool DatasetTypeHasBeenSet() const
Definition: CreateDatasetRequest.h:90
Aws::LookoutforVision::Model::CreateDatasetRequest::SetDatasetSource
void SetDatasetSource(DatasetSource &&value)
Definition: CreateDatasetRequest.h:179
LookoutforVisionRequest.h
Aws::LookoutforVision::Model::CreateDatasetRequest::WithDatasetType
CreateDatasetRequest & WithDatasetType(Aws::String &&value)
Definition: CreateDatasetRequest.h:120
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::LookoutforVision::Model::CreateDatasetRequest::WithClientToken
CreateDatasetRequest & WithClientToken(const char *value)
Definition: CreateDatasetRequest.h:310
Aws::LookoutforVision::Model::CreateDatasetRequest::SetDatasetType
void SetDatasetType(Aws::String &&value)
Definition: CreateDatasetRequest.h:102
Aws::LookoutforVision::Model::CreateDatasetRequest::SetDatasetType
void SetDatasetType(const char *value)
Definition: CreateDatasetRequest.h:108
Aws::LookoutforVision::Model::CreateDatasetRequest::SetProjectName
void SetProjectName(Aws::String &&value)
Definition: CreateDatasetRequest.h:57
Aws::LookoutforVision::Model::CreateDatasetRequest::WithDatasetSource
CreateDatasetRequest & WithDatasetSource(const DatasetSource &value)
Definition: CreateDatasetRequest.h:192
Aws::LookoutforVision::Model::CreateDatasetRequest::WithDatasetType
CreateDatasetRequest & WithDatasetType(const Aws::String &value)
Definition: CreateDatasetRequest.h:114
Aws::LookoutforVision::Model::CreateDatasetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::LookoutforVision::Model::CreateDatasetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::LookoutforVision::Model::CreateDatasetRequest::GetProjectName
const Aws::String & GetProjectName() const
Definition: CreateDatasetRequest.h:42
Aws::LookoutforVision::Model::CreateDatasetRequest::WithClientToken
CreateDatasetRequest & WithClientToken(Aws::String &&value)
Definition: CreateDatasetRequest.h:297
Aws::LookoutforVision::Model::CreateDatasetRequest::SetProjectName
void SetProjectName(const char *value)
Definition: CreateDatasetRequest.h:62
Aws::LookoutforVision::Model::CreateDatasetRequest::WithProjectName
CreateDatasetRequest & WithProjectName(Aws::String &&value)
Definition: CreateDatasetRequest.h:72
DatasetSource.h
Aws::LookoutforVision::Model::CreateDatasetRequest::SetDatasetSource
void SetDatasetSource(const DatasetSource &value)
Definition: CreateDatasetRequest.h:166
LookoutforVision_EXPORTS.h
Aws::LookoutforVision::Model::CreateDatasetRequest::GetDatasetSource
const DatasetSource & GetDatasetSource() const
Definition: CreateDatasetRequest.h:140
Aws::LookoutforVision::Model::CreateDatasetRequest::ProjectNameHasBeenSet
bool ProjectNameHasBeenSet() const
Definition: CreateDatasetRequest.h:47
Aws::LookoutforVision::Model::CreateDatasetRequest::WithClientToken
CreateDatasetRequest & WithClientToken(const Aws::String &value)
Definition: CreateDatasetRequest.h:284
Aws::LookoutforVision::Model::CreateDatasetRequest::WithProjectName
CreateDatasetRequest & WithProjectName(const Aws::String &value)
Definition: CreateDatasetRequest.h:67
Aws::LookoutforVision::Model::CreateDatasetRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateDatasetRequest.h:271
Aws::LookoutforVision::LookoutforVisionRequest
Definition: LookoutforVisionRequest.h:18
Aws::LookoutforVision::Model::CreateDatasetRequest::WithDatasetType
CreateDatasetRequest & WithDatasetType(const char *value)
Definition: CreateDatasetRequest.h:126
Aws::LookoutforVision::Model::CreateDatasetRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateDatasetRequest.h:245
Aws::LookoutforVision::Model::CreateDatasetRequest::SetProjectName
void SetProjectName(const Aws::String &value)
Definition: CreateDatasetRequest.h:52
AWSString.h
Aws::LookoutforVision::Model::CreateDatasetRequest
Definition: CreateDatasetRequest.h:24
Aws::LookoutforVision::Model::CreateDatasetRequest::DatasetSourceHasBeenSet
bool DatasetSourceHasBeenSet() const
Definition: CreateDatasetRequest.h:153
Aws::LookoutforVision::Model::CreateDatasetRequest::GetDatasetType
const Aws::String & GetDatasetType() const
Definition: CreateDatasetRequest.h:84
Aws::LookoutforVision::Model::DatasetSource
Definition: DatasetSource.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::LookoutforVision::Model::CreateDatasetRequest::CreateDatasetRequest
CreateDatasetRequest()
Aws::LookoutforVision::Model::CreateDatasetRequest::WithProjectName
CreateDatasetRequest & WithProjectName(const char *value)
Definition: CreateDatasetRequest.h:77
Aws::LookoutforVision::Model::CreateDatasetRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateDatasetRequest.h:219
Aws::LookoutforVision::Model::CreateDatasetRequest::SetDatasetType
void SetDatasetType(const Aws::String &value)
Definition: CreateDatasetRequest.h:96
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LOOKOUTFORVISION_API
#define AWS_LOOKOUTFORVISION_API
Definition: LookoutforVision_EXPORTS.h:28
Aws::LookoutforVision::Model::CreateDatasetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDatasetRequest.h:32
Aws::LookoutforVision::Model::CreateDatasetRequest::WithDatasetSource
CreateDatasetRequest & WithDatasetSource(DatasetSource &&value)
Definition: CreateDatasetRequest.h:205
Aws::LookoutforVision::Model::CreateDatasetRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateDatasetRequest.h:232
UUID.h
Aws::LookoutforVision::Model::CreateDatasetRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateDatasetRequest.h:258