AWS SDK for C++  1.9.161
AWS SDK for C++
CreateDatasetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Personalize
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CreateDataset"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetName() const{ return m_name; }
41 
45  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 
50  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 
55  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 
60  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 
65  inline CreateDatasetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
66 
70  inline CreateDatasetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 
75  inline CreateDatasetRequest& WithName(const char* value) { SetName(value); return *this;}
76 
77 
82  inline const Aws::String& GetSchemaArn() const{ return m_schemaArn; }
83 
88  inline bool SchemaArnHasBeenSet() const { return m_schemaArnHasBeenSet; }
89 
94  inline void SetSchemaArn(const Aws::String& value) { m_schemaArnHasBeenSet = true; m_schemaArn = value; }
95 
100  inline void SetSchemaArn(Aws::String&& value) { m_schemaArnHasBeenSet = true; m_schemaArn = std::move(value); }
101 
106  inline void SetSchemaArn(const char* value) { m_schemaArnHasBeenSet = true; m_schemaArn.assign(value); }
107 
112  inline CreateDatasetRequest& WithSchemaArn(const Aws::String& value) { SetSchemaArn(value); return *this;}
113 
118  inline CreateDatasetRequest& WithSchemaArn(Aws::String&& value) { SetSchemaArn(std::move(value)); return *this;}
119 
124  inline CreateDatasetRequest& WithSchemaArn(const char* value) { SetSchemaArn(value); return *this;}
125 
126 
131  inline const Aws::String& GetDatasetGroupArn() const{ return m_datasetGroupArn; }
132 
137  inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
138 
143  inline void SetDatasetGroupArn(const Aws::String& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = value; }
144 
149  inline void SetDatasetGroupArn(Aws::String&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::move(value); }
150 
155  inline void SetDatasetGroupArn(const char* value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn.assign(value); }
156 
161  inline CreateDatasetRequest& WithDatasetGroupArn(const Aws::String& value) { SetDatasetGroupArn(value); return *this;}
162 
167  inline CreateDatasetRequest& WithDatasetGroupArn(Aws::String&& value) { SetDatasetGroupArn(std::move(value)); return *this;}
168 
173  inline CreateDatasetRequest& WithDatasetGroupArn(const char* value) { SetDatasetGroupArn(value); return *this;}
174 
175 
181  inline const Aws::String& GetDatasetType() const{ return m_datasetType; }
182 
188  inline bool DatasetTypeHasBeenSet() const { return m_datasetTypeHasBeenSet; }
189 
195  inline void SetDatasetType(const Aws::String& value) { m_datasetTypeHasBeenSet = true; m_datasetType = value; }
196 
202  inline void SetDatasetType(Aws::String&& value) { m_datasetTypeHasBeenSet = true; m_datasetType = std::move(value); }
203 
209  inline void SetDatasetType(const char* value) { m_datasetTypeHasBeenSet = true; m_datasetType.assign(value); }
210 
216  inline CreateDatasetRequest& WithDatasetType(const Aws::String& value) { SetDatasetType(value); return *this;}
217 
223  inline CreateDatasetRequest& WithDatasetType(Aws::String&& value) { SetDatasetType(std::move(value)); return *this;}
224 
230  inline CreateDatasetRequest& WithDatasetType(const char* value) { SetDatasetType(value); return *this;}
231 
232  private:
233 
234  Aws::String m_name;
235  bool m_nameHasBeenSet;
236 
237  Aws::String m_schemaArn;
238  bool m_schemaArnHasBeenSet;
239 
240  Aws::String m_datasetGroupArn;
241  bool m_datasetGroupArnHasBeenSet;
242 
243  Aws::String m_datasetType;
244  bool m_datasetTypeHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace Personalize
249 } // namespace Aws
Aws::Personalize::Model::CreateDatasetRequest::WithDatasetType
CreateDatasetRequest & WithDatasetType(const Aws::String &value)
Definition: CreateDatasetRequest.h:216
Aws::Personalize::Model::CreateDatasetRequest::WithDatasetType
CreateDatasetRequest & WithDatasetType(Aws::String &&value)
Definition: CreateDatasetRequest.h:223
Aws::Personalize::Model::CreateDatasetRequest::SchemaArnHasBeenSet
bool SchemaArnHasBeenSet() const
Definition: CreateDatasetRequest.h:88
Aws::Personalize::Model::CreateDatasetRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateDatasetRequest.h:55
PersonalizeRequest.h
Aws::Personalize::Model::CreateDatasetRequest::WithDatasetGroupArn
CreateDatasetRequest & WithDatasetGroupArn(const Aws::String &value)
Definition: CreateDatasetRequest.h:161
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Personalize::Model::CreateDatasetRequest::SetDatasetGroupArn
void SetDatasetGroupArn(const char *value)
Definition: CreateDatasetRequest.h:155
Aws::Personalize::Model::CreateDatasetRequest::SetSchemaArn
void SetSchemaArn(Aws::String &&value)
Definition: CreateDatasetRequest.h:100
Aws::Personalize::Model::CreateDatasetRequest::GetDatasetGroupArn
const Aws::String & GetDatasetGroupArn() const
Definition: CreateDatasetRequest.h:131
Aws::Personalize::Model::CreateDatasetRequest::WithSchemaArn
CreateDatasetRequest & WithSchemaArn(const char *value)
Definition: CreateDatasetRequest.h:124
Aws::Personalize::Model::CreateDatasetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Personalize::Model::CreateDatasetRequest::SetSchemaArn
void SetSchemaArn(const char *value)
Definition: CreateDatasetRequest.h:106
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
Aws::Personalize::Model::CreateDatasetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateDatasetRequest.h:45
Aws::Personalize::Model::CreateDatasetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Personalize::Model::CreateDatasetRequest::SetDatasetGroupArn
void SetDatasetGroupArn(const Aws::String &value)
Definition: CreateDatasetRequest.h:143
Aws::Personalize::Model::CreateDatasetRequest::WithDatasetGroupArn
CreateDatasetRequest & WithDatasetGroupArn(Aws::String &&value)
Definition: CreateDatasetRequest.h:167
Aws::Personalize::Model::CreateDatasetRequest::GetDatasetType
const Aws::String & GetDatasetType() const
Definition: CreateDatasetRequest.h:181
Aws::Personalize::Model::CreateDatasetRequest::WithSchemaArn
CreateDatasetRequest & WithSchemaArn(const Aws::String &value)
Definition: CreateDatasetRequest.h:112
Aws::Personalize::Model::CreateDatasetRequest::SetName
void SetName(const char *value)
Definition: CreateDatasetRequest.h:60
Aws::Personalize::Model::CreateDatasetRequest
Definition: CreateDatasetRequest.h:22
Aws::Personalize::Model::CreateDatasetRequest::DatasetGroupArnHasBeenSet
bool DatasetGroupArnHasBeenSet() const
Definition: CreateDatasetRequest.h:137
Aws::Personalize::Model::CreateDatasetRequest::GetSchemaArn
const Aws::String & GetSchemaArn() const
Definition: CreateDatasetRequest.h:82
Aws::Personalize::Model::CreateDatasetRequest::SetSchemaArn
void SetSchemaArn(const Aws::String &value)
Definition: CreateDatasetRequest.h:94
Aws::Personalize::Model::CreateDatasetRequest::WithDatasetType
CreateDatasetRequest & WithDatasetType(const char *value)
Definition: CreateDatasetRequest.h:230
Aws::Personalize::Model::CreateDatasetRequest::DatasetTypeHasBeenSet
bool DatasetTypeHasBeenSet() const
Definition: CreateDatasetRequest.h:188
Aws::Personalize::Model::CreateDatasetRequest::SetDatasetType
void SetDatasetType(const Aws::String &value)
Definition: CreateDatasetRequest.h:195
AWSString.h
Aws::Personalize::Model::CreateDatasetRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateDatasetRequest.h:50
Aws::Personalize::PersonalizeRequest
Definition: PersonalizeRequest.h:17
Aws::Personalize::Model::CreateDatasetRequest::WithName
CreateDatasetRequest & WithName(Aws::String &&value)
Definition: CreateDatasetRequest.h:70
Aws::Personalize::Model::CreateDatasetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDatasetRequest.h:30
Aws::Personalize::Model::CreateDatasetRequest::SetDatasetType
void SetDatasetType(Aws::String &&value)
Definition: CreateDatasetRequest.h:202
Aws
Definition: AccessManagementClient.h:15
Aws::Personalize::Model::CreateDatasetRequest::WithName
CreateDatasetRequest & WithName(const Aws::String &value)
Definition: CreateDatasetRequest.h:65
Aws::Personalize::Model::CreateDatasetRequest::GetName
const Aws::String & GetName() const
Definition: CreateDatasetRequest.h:40
Aws::Personalize::Model::CreateDatasetRequest::WithDatasetGroupArn
CreateDatasetRequest & WithDatasetGroupArn(const char *value)
Definition: CreateDatasetRequest.h:173
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Personalize::Model::CreateDatasetRequest::WithSchemaArn
CreateDatasetRequest & WithSchemaArn(Aws::String &&value)
Definition: CreateDatasetRequest.h:118
Personalize_EXPORTS.h
Aws::Personalize::Model::CreateDatasetRequest::WithName
CreateDatasetRequest & WithName(const char *value)
Definition: CreateDatasetRequest.h:75
Aws::Personalize::Model::CreateDatasetRequest::SetDatasetType
void SetDatasetType(const char *value)
Definition: CreateDatasetRequest.h:209
Aws::Personalize::Model::CreateDatasetRequest::CreateDatasetRequest
CreateDatasetRequest()
Aws::Personalize::Model::CreateDatasetRequest::SetDatasetGroupArn
void SetDatasetGroupArn(Aws::String &&value)
Definition: CreateDatasetRequest.h:149