AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateTaskRequest.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/DataSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datasync/model/Options.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/datasync/model/TaskSchedule.h>
13#include <aws/datasync/model/ManifestConfig.h>
14#include <aws/datasync/model/TaskReportConfig.h>
15#include <aws/datasync/model/TaskMode.h>
16#include <aws/datasync/model/FilterRule.h>
17#include <aws/datasync/model/TagListEntry.h>
18#include <utility>
19
20namespace Aws
21{
22namespace DataSync
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_DATASYNC_API CreateTaskRequest() = default;
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateTask"; }
42
43 AWS_DATASYNC_API Aws::String SerializePayload() const override;
44
46
47
49
52 inline const Aws::String& GetSourceLocationArn() const { return m_sourceLocationArn; }
53 inline bool SourceLocationArnHasBeenSet() const { return m_sourceLocationArnHasBeenSet; }
54 template<typename SourceLocationArnT = Aws::String>
55 void SetSourceLocationArn(SourceLocationArnT&& value) { m_sourceLocationArnHasBeenSet = true; m_sourceLocationArn = std::forward<SourceLocationArnT>(value); }
56 template<typename SourceLocationArnT = Aws::String>
57 CreateTaskRequest& WithSourceLocationArn(SourceLocationArnT&& value) { SetSourceLocationArn(std::forward<SourceLocationArnT>(value)); return *this;}
59
61
64 inline const Aws::String& GetDestinationLocationArn() const { return m_destinationLocationArn; }
65 inline bool DestinationLocationArnHasBeenSet() const { return m_destinationLocationArnHasBeenSet; }
66 template<typename DestinationLocationArnT = Aws::String>
67 void SetDestinationLocationArn(DestinationLocationArnT&& value) { m_destinationLocationArnHasBeenSet = true; m_destinationLocationArn = std::forward<DestinationLocationArnT>(value); }
68 template<typename DestinationLocationArnT = Aws::String>
69 CreateTaskRequest& WithDestinationLocationArn(DestinationLocationArnT&& value) { SetDestinationLocationArn(std::forward<DestinationLocationArnT>(value)); return *this;}
71
73
79 inline const Aws::String& GetCloudWatchLogGroupArn() const { return m_cloudWatchLogGroupArn; }
80 inline bool CloudWatchLogGroupArnHasBeenSet() const { return m_cloudWatchLogGroupArnHasBeenSet; }
81 template<typename CloudWatchLogGroupArnT = Aws::String>
82 void SetCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = std::forward<CloudWatchLogGroupArnT>(value); }
83 template<typename CloudWatchLogGroupArnT = Aws::String>
84 CreateTaskRequest& WithCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) { SetCloudWatchLogGroupArn(std::forward<CloudWatchLogGroupArnT>(value)); return *this;}
86
88
91 inline const Aws::String& GetName() const { return m_name; }
92 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 template<typename NameT = Aws::String>
94 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
95 template<typename NameT = Aws::String>
96 CreateTaskRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
98
100
104 inline const Options& GetOptions() const { return m_options; }
105 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
106 template<typename OptionsT = Options>
107 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
108 template<typename OptionsT = Options>
109 CreateTaskRequest& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
111
113
120 inline const Aws::Vector<FilterRule>& GetExcludes() const { return m_excludes; }
121 inline bool ExcludesHasBeenSet() const { return m_excludesHasBeenSet; }
122 template<typename ExcludesT = Aws::Vector<FilterRule>>
123 void SetExcludes(ExcludesT&& value) { m_excludesHasBeenSet = true; m_excludes = std::forward<ExcludesT>(value); }
124 template<typename ExcludesT = Aws::Vector<FilterRule>>
125 CreateTaskRequest& WithExcludes(ExcludesT&& value) { SetExcludes(std::forward<ExcludesT>(value)); return *this;}
126 template<typename ExcludesT = FilterRule>
127 CreateTaskRequest& AddExcludes(ExcludesT&& value) { m_excludesHasBeenSet = true; m_excludes.emplace_back(std::forward<ExcludesT>(value)); return *this; }
129
131
137 inline const TaskSchedule& GetSchedule() const { return m_schedule; }
138 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
139 template<typename ScheduleT = TaskSchedule>
140 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
141 template<typename ScheduleT = TaskSchedule>
142 CreateTaskRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
144
146
151 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 template<typename TagsT = Aws::Vector<TagListEntry>>
154 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
155 template<typename TagsT = Aws::Vector<TagListEntry>>
156 CreateTaskRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
157 template<typename TagsT = TagListEntry>
158 CreateTaskRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
160
162
169 inline const Aws::Vector<FilterRule>& GetIncludes() const { return m_includes; }
170 inline bool IncludesHasBeenSet() const { return m_includesHasBeenSet; }
171 template<typename IncludesT = Aws::Vector<FilterRule>>
172 void SetIncludes(IncludesT&& value) { m_includesHasBeenSet = true; m_includes = std::forward<IncludesT>(value); }
173 template<typename IncludesT = Aws::Vector<FilterRule>>
174 CreateTaskRequest& WithIncludes(IncludesT&& value) { SetIncludes(std::forward<IncludesT>(value)); return *this;}
175 template<typename IncludesT = FilterRule>
176 CreateTaskRequest& AddIncludes(IncludesT&& value) { m_includesHasBeenSet = true; m_includes.emplace_back(std::forward<IncludesT>(value)); return *this; }
178
180
190 inline const ManifestConfig& GetManifestConfig() const { return m_manifestConfig; }
191 inline bool ManifestConfigHasBeenSet() const { return m_manifestConfigHasBeenSet; }
192 template<typename ManifestConfigT = ManifestConfig>
193 void SetManifestConfig(ManifestConfigT&& value) { m_manifestConfigHasBeenSet = true; m_manifestConfig = std::forward<ManifestConfigT>(value); }
194 template<typename ManifestConfigT = ManifestConfig>
195 CreateTaskRequest& WithManifestConfig(ManifestConfigT&& value) { SetManifestConfig(std::forward<ManifestConfigT>(value)); return *this;}
197
199
209 inline const TaskReportConfig& GetTaskReportConfig() const { return m_taskReportConfig; }
210 inline bool TaskReportConfigHasBeenSet() const { return m_taskReportConfigHasBeenSet; }
211 template<typename TaskReportConfigT = TaskReportConfig>
212 void SetTaskReportConfig(TaskReportConfigT&& value) { m_taskReportConfigHasBeenSet = true; m_taskReportConfig = std::forward<TaskReportConfigT>(value); }
213 template<typename TaskReportConfigT = TaskReportConfig>
214 CreateTaskRequest& WithTaskReportConfig(TaskReportConfigT&& value) { SetTaskReportConfig(std::forward<TaskReportConfigT>(value)); return *this;}
216
218
240 inline TaskMode GetTaskMode() const { return m_taskMode; }
241 inline bool TaskModeHasBeenSet() const { return m_taskModeHasBeenSet; }
242 inline void SetTaskMode(TaskMode value) { m_taskModeHasBeenSet = true; m_taskMode = value; }
243 inline CreateTaskRequest& WithTaskMode(TaskMode value) { SetTaskMode(value); return *this;}
245 private:
246
247 Aws::String m_sourceLocationArn;
248 bool m_sourceLocationArnHasBeenSet = false;
249
250 Aws::String m_destinationLocationArn;
251 bool m_destinationLocationArnHasBeenSet = false;
252
253 Aws::String m_cloudWatchLogGroupArn;
254 bool m_cloudWatchLogGroupArnHasBeenSet = false;
255
256 Aws::String m_name;
257 bool m_nameHasBeenSet = false;
258
259 Options m_options;
260 bool m_optionsHasBeenSet = false;
261
262 Aws::Vector<FilterRule> m_excludes;
263 bool m_excludesHasBeenSet = false;
264
265 TaskSchedule m_schedule;
266 bool m_scheduleHasBeenSet = false;
267
269 bool m_tagsHasBeenSet = false;
270
271 Aws::Vector<FilterRule> m_includes;
272 bool m_includesHasBeenSet = false;
273
274 ManifestConfig m_manifestConfig;
275 bool m_manifestConfigHasBeenSet = false;
276
277 TaskReportConfig m_taskReportConfig;
278 bool m_taskReportConfigHasBeenSet = false;
279
280 TaskMode m_taskMode{TaskMode::NOT_SET};
281 bool m_taskModeHasBeenSet = false;
282 };
283
284} // namespace Model
285} // namespace DataSync
286} // namespace Aws
CreateTaskRequest & WithOptions(OptionsT &&value)
CreateTaskRequest & WithDestinationLocationArn(DestinationLocationArnT &&value)
CreateTaskRequest & WithTags(TagsT &&value)
CreateTaskRequest & WithExcludes(ExcludesT &&value)
const TaskSchedule & GetSchedule() const
CreateTaskRequest & WithTaskMode(TaskMode value)
const TaskReportConfig & GetTaskReportConfig() const
CreateTaskRequest & WithCloudWatchLogGroupArn(CloudWatchLogGroupArnT &&value)
void SetTaskReportConfig(TaskReportConfigT &&value)
void SetCloudWatchLogGroupArn(CloudWatchLogGroupArnT &&value)
AWS_DATASYNC_API CreateTaskRequest()=default
CreateTaskRequest & WithSourceLocationArn(SourceLocationArnT &&value)
CreateTaskRequest & AddTags(TagsT &&value)
const Aws::String & GetSourceLocationArn() const
void SetDestinationLocationArn(DestinationLocationArnT &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
CreateTaskRequest & WithTaskReportConfig(TaskReportConfigT &&value)
CreateTaskRequest & AddExcludes(ExcludesT &&value)
const ManifestConfig & GetManifestConfig() const
const Aws::Vector< FilterRule > & GetIncludes() const
const Aws::Vector< FilterRule > & GetExcludes() const
void SetManifestConfig(ManifestConfigT &&value)
const Aws::Vector< TagListEntry > & GetTags() const
const Aws::String & GetDestinationLocationArn() const
CreateTaskRequest & WithName(NameT &&value)
CreateTaskRequest & WithSchedule(ScheduleT &&value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTaskRequest & WithManifestConfig(ManifestConfigT &&value)
virtual const char * GetServiceRequestName() const override
void SetSourceLocationArn(SourceLocationArnT &&value)
CreateTaskRequest & AddIncludes(IncludesT &&value)
const Aws::String & GetCloudWatchLogGroupArn() const
CreateTaskRequest & WithIncludes(IncludesT &&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