AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateDatasetImportJobRequest.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/personalize/PersonalizeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/personalize/model/DataSource.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/personalize/model/ImportMode.h>
13#include <aws/personalize/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Personalize
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_PERSONALIZE_API CreateDatasetImportJobRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateDatasetImportJob"; }
35
36 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
37
38 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetJobName() const { return m_jobName; }
46 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
47 template<typename JobNameT = Aws::String>
48 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
49 template<typename JobNameT = Aws::String>
50 CreateDatasetImportJobRequest& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDatasetArn() const { return m_datasetArn; }
58 inline bool DatasetArnHasBeenSet() const { return m_datasetArnHasBeenSet; }
59 template<typename DatasetArnT = Aws::String>
60 void SetDatasetArn(DatasetArnT&& value) { m_datasetArnHasBeenSet = true; m_datasetArn = std::forward<DatasetArnT>(value); }
61 template<typename DatasetArnT = Aws::String>
62 CreateDatasetImportJobRequest& WithDatasetArn(DatasetArnT&& value) { SetDatasetArn(std::forward<DatasetArnT>(value)); return *this;}
64
66
69 inline const DataSource& GetDataSource() const { return m_dataSource; }
70 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
71 template<typename DataSourceT = DataSource>
72 void SetDataSource(DataSourceT&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::forward<DataSourceT>(value); }
73 template<typename DataSourceT = DataSource>
74 CreateDatasetImportJobRequest& WithDataSource(DataSourceT&& value) { SetDataSource(std::forward<DataSourceT>(value)); return *this;}
76
78
82 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
83 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
84 template<typename RoleArnT = Aws::String>
85 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
86 template<typename RoleArnT = Aws::String>
87 CreateDatasetImportJobRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
89
91
96 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
97 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
98 template<typename TagsT = Aws::Vector<Tag>>
99 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
100 template<typename TagsT = Aws::Vector<Tag>>
101 CreateDatasetImportJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
102 template<typename TagsT = Tag>
103 CreateDatasetImportJobRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
105
107
117 inline ImportMode GetImportMode() const { return m_importMode; }
118 inline bool ImportModeHasBeenSet() const { return m_importModeHasBeenSet; }
119 inline void SetImportMode(ImportMode value) { m_importModeHasBeenSet = true; m_importMode = value; }
122
124
128 inline bool GetPublishAttributionMetricsToS3() const { return m_publishAttributionMetricsToS3; }
129 inline bool PublishAttributionMetricsToS3HasBeenSet() const { return m_publishAttributionMetricsToS3HasBeenSet; }
130 inline void SetPublishAttributionMetricsToS3(bool value) { m_publishAttributionMetricsToS3HasBeenSet = true; m_publishAttributionMetricsToS3 = value; }
133 private:
134
135 Aws::String m_jobName;
136 bool m_jobNameHasBeenSet = false;
137
138 Aws::String m_datasetArn;
139 bool m_datasetArnHasBeenSet = false;
140
141 DataSource m_dataSource;
142 bool m_dataSourceHasBeenSet = false;
143
144 Aws::String m_roleArn;
145 bool m_roleArnHasBeenSet = false;
146
147 Aws::Vector<Tag> m_tags;
148 bool m_tagsHasBeenSet = false;
149
150 ImportMode m_importMode{ImportMode::NOT_SET};
151 bool m_importModeHasBeenSet = false;
152
153 bool m_publishAttributionMetricsToS3{false};
154 bool m_publishAttributionMetricsToS3HasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace Personalize
159} // namespace Aws
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateDatasetImportJobRequest & WithRoleArn(RoleArnT &&value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_PERSONALIZE_API CreateDatasetImportJobRequest()=default
CreateDatasetImportJobRequest & WithPublishAttributionMetricsToS3(bool value)
CreateDatasetImportJobRequest & WithImportMode(ImportMode value)
CreateDatasetImportJobRequest & WithTags(TagsT &&value)
CreateDatasetImportJobRequest & WithDatasetArn(DatasetArnT &&value)
CreateDatasetImportJobRequest & WithDataSource(DataSourceT &&value)
CreateDatasetImportJobRequest & WithJobName(JobNameT &&value)
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