AWS SDK for C++  1.9.109
AWS SDK for C++
CreateDatasetImportJobRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Personalize
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateDatasetImportJob"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetJobName() const{ return m_jobName; }
42 
46  inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
47 
51  inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
52 
56  inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
57 
61  inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
62 
66  inline CreateDatasetImportJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
67 
71  inline CreateDatasetImportJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
72 
76  inline CreateDatasetImportJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
77 
78 
82  inline const Aws::String& GetDatasetArn() const{ return m_datasetArn; }
83 
87  inline bool DatasetArnHasBeenSet() const { return m_datasetArnHasBeenSet; }
88 
92  inline void SetDatasetArn(const Aws::String& value) { m_datasetArnHasBeenSet = true; m_datasetArn = value; }
93 
97  inline void SetDatasetArn(Aws::String&& value) { m_datasetArnHasBeenSet = true; m_datasetArn = std::move(value); }
98 
102  inline void SetDatasetArn(const char* value) { m_datasetArnHasBeenSet = true; m_datasetArn.assign(value); }
103 
107  inline CreateDatasetImportJobRequest& WithDatasetArn(const Aws::String& value) { SetDatasetArn(value); return *this;}
108 
112  inline CreateDatasetImportJobRequest& WithDatasetArn(Aws::String&& value) { SetDatasetArn(std::move(value)); return *this;}
113 
117  inline CreateDatasetImportJobRequest& WithDatasetArn(const char* value) { SetDatasetArn(value); return *this;}
118 
119 
123  inline const DataSource& GetDataSource() const{ return m_dataSource; }
124 
128  inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
129 
133  inline void SetDataSource(const DataSource& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; }
134 
138  inline void SetDataSource(DataSource&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); }
139 
143  inline CreateDatasetImportJobRequest& WithDataSource(const DataSource& value) { SetDataSource(value); return *this;}
144 
148  inline CreateDatasetImportJobRequest& WithDataSource(DataSource&& value) { SetDataSource(std::move(value)); return *this;}
149 
150 
155  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
156 
161  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
162 
167  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
168 
173  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
174 
179  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
180 
185  inline CreateDatasetImportJobRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
186 
191  inline CreateDatasetImportJobRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
192 
197  inline CreateDatasetImportJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
198 
199  private:
200 
201  Aws::String m_jobName;
202  bool m_jobNameHasBeenSet;
203 
204  Aws::String m_datasetArn;
205  bool m_datasetArnHasBeenSet;
206 
207  DataSource m_dataSource;
208  bool m_dataSourceHasBeenSet;
209 
210  Aws::String m_roleArn;
211  bool m_roleArnHasBeenSet;
212  };
213 
214 } // namespace Model
215 } // namespace Personalize
216 } // namespace Aws
Aws::Personalize::Model::CreateDatasetImportJobRequest::DataSourceHasBeenSet
bool DataSourceHasBeenSet() const
Definition: CreateDatasetImportJobRequest.h:128
PersonalizeRequest.h
Aws::Personalize::Model::CreateDatasetImportJobRequest::WithDatasetArn
CreateDatasetImportJobRequest & WithDatasetArn(const char *value)
Definition: CreateDatasetImportJobRequest.h:117
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Personalize::Model::CreateDatasetImportJobRequest::WithJobName
CreateDatasetImportJobRequest & WithJobName(const Aws::String &value)
Definition: CreateDatasetImportJobRequest.h:66
DataSource.h
Aws::Personalize::Model::CreateDatasetImportJobRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: CreateDatasetImportJobRequest.h:173
Aws::Personalize::Model::CreateDatasetImportJobRequest::SetDataSource
void SetDataSource(const DataSource &value)
Definition: CreateDatasetImportJobRequest.h:133
Aws::Personalize::Model::CreateDatasetImportJobRequest::WithRoleArn
CreateDatasetImportJobRequest & WithRoleArn(const Aws::String &value)
Definition: CreateDatasetImportJobRequest.h:185
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
Aws::Personalize::Model::CreateDatasetImportJobRequest::WithRoleArn
CreateDatasetImportJobRequest & WithRoleArn(Aws::String &&value)
Definition: CreateDatasetImportJobRequest.h:191
Aws::Personalize::Model::CreateDatasetImportJobRequest::WithDataSource
CreateDatasetImportJobRequest & WithDataSource(DataSource &&value)
Definition: CreateDatasetImportJobRequest.h:148
Aws::Personalize::Model::CreateDatasetImportJobRequest::JobNameHasBeenSet
bool JobNameHasBeenSet() const
Definition: CreateDatasetImportJobRequest.h:46
Aws::Personalize::Model::CreateDatasetImportJobRequest::SetDatasetArn
void SetDatasetArn(const Aws::String &value)
Definition: CreateDatasetImportJobRequest.h:92
Aws::Personalize::Model::CreateDatasetImportJobRequest::SetDatasetArn
void SetDatasetArn(Aws::String &&value)
Definition: CreateDatasetImportJobRequest.h:97
Aws::Personalize::Model::CreateDatasetImportJobRequest::SetDatasetArn
void SetDatasetArn(const char *value)
Definition: CreateDatasetImportJobRequest.h:102
Aws::Personalize::Model::CreateDatasetImportJobRequest::SetJobName
void SetJobName(const Aws::String &value)
Definition: CreateDatasetImportJobRequest.h:51
Aws::Personalize::Model::CreateDatasetImportJobRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: CreateDatasetImportJobRequest.h:179
Aws::Personalize::Model::CreateDatasetImportJobRequest::WithRoleArn
CreateDatasetImportJobRequest & WithRoleArn(const char *value)
Definition: CreateDatasetImportJobRequest.h:197
Aws::Personalize::Model::CreateDatasetImportJobRequest::GetDataSource
const DataSource & GetDataSource() const
Definition: CreateDatasetImportJobRequest.h:123
Aws::Personalize::Model::CreateDatasetImportJobRequest::WithJobName
CreateDatasetImportJobRequest & WithJobName(const char *value)
Definition: CreateDatasetImportJobRequest.h:76
Aws::Personalize::Model::CreateDatasetImportJobRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: CreateDatasetImportJobRequest.h:167
AWSString.h
Aws::Personalize::Model::CreateDatasetImportJobRequest::GetJobName
const Aws::String & GetJobName() const
Definition: CreateDatasetImportJobRequest.h:41
Aws::Personalize::PersonalizeRequest
Definition: PersonalizeRequest.h:17
Aws::Personalize::Model::DataSource
Definition: DataSource.h:33
Aws::Personalize::Model::CreateDatasetImportJobRequest
Definition: CreateDatasetImportJobRequest.h:23
Aws::Personalize::Model::CreateDatasetImportJobRequest::WithDatasetArn
CreateDatasetImportJobRequest & WithDatasetArn(const Aws::String &value)
Definition: CreateDatasetImportJobRequest.h:107
Aws::Personalize::Model::CreateDatasetImportJobRequest::WithDataSource
CreateDatasetImportJobRequest & WithDataSource(const DataSource &value)
Definition: CreateDatasetImportJobRequest.h:143
Aws::Personalize::Model::CreateDatasetImportJobRequest::WithDatasetArn
CreateDatasetImportJobRequest & WithDatasetArn(Aws::String &&value)
Definition: CreateDatasetImportJobRequest.h:112
Aws::Personalize::Model::CreateDatasetImportJobRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateDatasetImportJobRequest.h:31
Aws
Definition: AccessManagementClient.h:15
Aws::Personalize::Model::CreateDatasetImportJobRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Personalize::Model::CreateDatasetImportJobRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: CreateDatasetImportJobRequest.h:155
Aws::Personalize::Model::CreateDatasetImportJobRequest::DatasetArnHasBeenSet
bool DatasetArnHasBeenSet() const
Definition: CreateDatasetImportJobRequest.h:87
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Personalize::Model::CreateDatasetImportJobRequest::WithJobName
CreateDatasetImportJobRequest & WithJobName(Aws::String &&value)
Definition: CreateDatasetImportJobRequest.h:71
Aws::Personalize::Model::CreateDatasetImportJobRequest::CreateDatasetImportJobRequest
CreateDatasetImportJobRequest()
Personalize_EXPORTS.h
Aws::Personalize::Model::CreateDatasetImportJobRequest::SetJobName
void SetJobName(Aws::String &&value)
Definition: CreateDatasetImportJobRequest.h:56
Aws::Personalize::Model::CreateDatasetImportJobRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: CreateDatasetImportJobRequest.h:161
Aws::Personalize::Model::CreateDatasetImportJobRequest::SetJobName
void SetJobName(const char *value)
Definition: CreateDatasetImportJobRequest.h:61
Aws::Personalize::Model::CreateDatasetImportJobRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Personalize::Model::CreateDatasetImportJobRequest::GetDatasetArn
const Aws::String & GetDatasetArn() const
Definition: CreateDatasetImportJobRequest.h:82
Aws::Personalize::Model::CreateDatasetImportJobRequest::SetDataSource
void SetDataSource(DataSource &&value)
Definition: CreateDatasetImportJobRequest.h:138