AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDatasetExportJobRequest.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/IngestionMode.h>
11#include <aws/personalize/model/DatasetExportJobOutput.h>
12#include <aws/core/utils/memory/stl/AWSVector.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 CreateDatasetExportJobRequest() = 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 "CreateDatasetExportJob"; }
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 CreateDatasetExportJobRequest& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
52
54
58 inline const Aws::String& GetDatasetArn() const { return m_datasetArn; }
59 inline bool DatasetArnHasBeenSet() const { return m_datasetArnHasBeenSet; }
60 template<typename DatasetArnT = Aws::String>
61 void SetDatasetArn(DatasetArnT&& value) { m_datasetArnHasBeenSet = true; m_datasetArn = std::forward<DatasetArnT>(value); }
62 template<typename DatasetArnT = Aws::String>
63 CreateDatasetExportJobRequest& WithDatasetArn(DatasetArnT&& value) { SetDatasetArn(std::forward<DatasetArnT>(value)); return *this;}
65
67
74 inline IngestionMode GetIngestionMode() const { return m_ingestionMode; }
75 inline bool IngestionModeHasBeenSet() const { return m_ingestionModeHasBeenSet; }
76 inline void SetIngestionMode(IngestionMode value) { m_ingestionModeHasBeenSet = true; m_ingestionMode = value; }
79
81
85 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
86 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
87 template<typename RoleArnT = Aws::String>
88 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
89 template<typename RoleArnT = Aws::String>
90 CreateDatasetExportJobRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
92
94
97 inline const DatasetExportJobOutput& GetJobOutput() const { return m_jobOutput; }
98 inline bool JobOutputHasBeenSet() const { return m_jobOutputHasBeenSet; }
99 template<typename JobOutputT = DatasetExportJobOutput>
100 void SetJobOutput(JobOutputT&& value) { m_jobOutputHasBeenSet = true; m_jobOutput = std::forward<JobOutputT>(value); }
101 template<typename JobOutputT = DatasetExportJobOutput>
102 CreateDatasetExportJobRequest& WithJobOutput(JobOutputT&& value) { SetJobOutput(std::forward<JobOutputT>(value)); return *this;}
104
106
111 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
112 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
113 template<typename TagsT = Aws::Vector<Tag>>
114 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
115 template<typename TagsT = Aws::Vector<Tag>>
116 CreateDatasetExportJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
117 template<typename TagsT = Tag>
118 CreateDatasetExportJobRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
120 private:
121
122 Aws::String m_jobName;
123 bool m_jobNameHasBeenSet = false;
124
125 Aws::String m_datasetArn;
126 bool m_datasetArnHasBeenSet = false;
127
128 IngestionMode m_ingestionMode{IngestionMode::NOT_SET};
129 bool m_ingestionModeHasBeenSet = false;
130
131 Aws::String m_roleArn;
132 bool m_roleArnHasBeenSet = false;
133
134 DatasetExportJobOutput m_jobOutput;
135 bool m_jobOutputHasBeenSet = false;
136
137 Aws::Vector<Tag> m_tags;
138 bool m_tagsHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace Personalize
143} // namespace Aws
CreateDatasetExportJobRequest & WithJobOutput(JobOutputT &&value)
CreateDatasetExportJobRequest & WithIngestionMode(IngestionMode value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDatasetExportJobRequest & WithDatasetArn(DatasetArnT &&value)
CreateDatasetExportJobRequest & WithJobName(JobNameT &&value)
AWS_PERSONALIZE_API CreateDatasetExportJobRequest()=default
CreateDatasetExportJobRequest & WithTags(TagsT &&value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateDatasetExportJobRequest & WithRoleArn(RoleArnT &&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