AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
48 inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
49 inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
50 inline CreateDatasetImportJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
51 inline CreateDatasetImportJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
52 inline CreateDatasetImportJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
54
56
59 inline const Aws::String& GetDatasetArn() const{ return m_datasetArn; }
60 inline bool DatasetArnHasBeenSet() const { return m_datasetArnHasBeenSet; }
61 inline void SetDatasetArn(const Aws::String& value) { m_datasetArnHasBeenSet = true; m_datasetArn = value; }
62 inline void SetDatasetArn(Aws::String&& value) { m_datasetArnHasBeenSet = true; m_datasetArn = std::move(value); }
63 inline void SetDatasetArn(const char* value) { m_datasetArnHasBeenSet = true; m_datasetArn.assign(value); }
64 inline CreateDatasetImportJobRequest& WithDatasetArn(const Aws::String& value) { SetDatasetArn(value); return *this;}
65 inline CreateDatasetImportJobRequest& WithDatasetArn(Aws::String&& value) { SetDatasetArn(std::move(value)); return *this;}
66 inline CreateDatasetImportJobRequest& WithDatasetArn(const char* value) { SetDatasetArn(value); return *this;}
68
70
73 inline const DataSource& GetDataSource() const{ return m_dataSource; }
74 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
75 inline void SetDataSource(const DataSource& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; }
76 inline void SetDataSource(DataSource&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); }
77 inline CreateDatasetImportJobRequest& WithDataSource(const DataSource& value) { SetDataSource(value); return *this;}
78 inline CreateDatasetImportJobRequest& WithDataSource(DataSource&& value) { SetDataSource(std::move(value)); return *this;}
80
82
86 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
87 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
88 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
89 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
90 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
91 inline CreateDatasetImportJobRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
92 inline CreateDatasetImportJobRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
93 inline CreateDatasetImportJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
95
97
102 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
105 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
106 inline CreateDatasetImportJobRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
107 inline CreateDatasetImportJobRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
108 inline CreateDatasetImportJobRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
109 inline CreateDatasetImportJobRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
111
113
123 inline const ImportMode& GetImportMode() const{ return m_importMode; }
124 inline bool ImportModeHasBeenSet() const { return m_importModeHasBeenSet; }
125 inline void SetImportMode(const ImportMode& value) { m_importModeHasBeenSet = true; m_importMode = value; }
126 inline void SetImportMode(ImportMode&& value) { m_importModeHasBeenSet = true; m_importMode = std::move(value); }
127 inline CreateDatasetImportJobRequest& WithImportMode(const ImportMode& value) { SetImportMode(value); return *this;}
128 inline CreateDatasetImportJobRequest& WithImportMode(ImportMode&& value) { SetImportMode(std::move(value)); return *this;}
130
132
136 inline bool GetPublishAttributionMetricsToS3() const{ return m_publishAttributionMetricsToS3; }
137 inline bool PublishAttributionMetricsToS3HasBeenSet() const { return m_publishAttributionMetricsToS3HasBeenSet; }
138 inline void SetPublishAttributionMetricsToS3(bool value) { m_publishAttributionMetricsToS3HasBeenSet = true; m_publishAttributionMetricsToS3 = value; }
141 private:
142
143 Aws::String m_jobName;
144 bool m_jobNameHasBeenSet = false;
145
146 Aws::String m_datasetArn;
147 bool m_datasetArnHasBeenSet = false;
148
149 DataSource m_dataSource;
150 bool m_dataSourceHasBeenSet = false;
151
152 Aws::String m_roleArn;
153 bool m_roleArnHasBeenSet = false;
154
155 Aws::Vector<Tag> m_tags;
156 bool m_tagsHasBeenSet = false;
157
158 ImportMode m_importMode;
159 bool m_importModeHasBeenSet = false;
160
161 bool m_publishAttributionMetricsToS3;
162 bool m_publishAttributionMetricsToS3HasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace Personalize
167} // namespace Aws
CreateDatasetImportJobRequest & WithTags(Aws::Vector< Tag > &&value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDatasetImportJobRequest & WithDatasetArn(const Aws::String &value)
CreateDatasetImportJobRequest & WithImportMode(const ImportMode &value)
CreateDatasetImportJobRequest & WithRoleArn(const Aws::String &value)
CreateDatasetImportJobRequest & WithDataSource(DataSource &&value)
CreateDatasetImportJobRequest & WithJobName(const Aws::String &value)
CreateDatasetImportJobRequest & WithPublishAttributionMetricsToS3(bool value)
CreateDatasetImportJobRequest & AddTags(const Tag &value)
CreateDatasetImportJobRequest & WithJobName(const char *value)
CreateDatasetImportJobRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDatasetImportJobRequest & WithRoleArn(Aws::String &&value)
CreateDatasetImportJobRequest & WithImportMode(ImportMode &&value)
CreateDatasetImportJobRequest & WithDataSource(const DataSource &value)
CreateDatasetImportJobRequest & WithDatasetArn(Aws::String &&value)
CreateDatasetImportJobRequest & WithJobName(Aws::String &&value)
CreateDatasetImportJobRequest & WithRoleArn(const char *value)
CreateDatasetImportJobRequest & WithDatasetArn(const char *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