AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSourceLocationArn(const Aws::String& value) { m_sourceLocationArnHasBeenSet = true; m_sourceLocationArn = value; }
55 inline void SetSourceLocationArn(Aws::String&& value) { m_sourceLocationArnHasBeenSet = true; m_sourceLocationArn = std::move(value); }
56 inline void SetSourceLocationArn(const char* value) { m_sourceLocationArnHasBeenSet = true; m_sourceLocationArn.assign(value); }
57 inline CreateTaskRequest& WithSourceLocationArn(const Aws::String& value) { SetSourceLocationArn(value); return *this;}
58 inline CreateTaskRequest& WithSourceLocationArn(Aws::String&& value) { SetSourceLocationArn(std::move(value)); return *this;}
59 inline CreateTaskRequest& WithSourceLocationArn(const char* value) { SetSourceLocationArn(value); return *this;}
61
63
66 inline const Aws::String& GetDestinationLocationArn() const{ return m_destinationLocationArn; }
67 inline bool DestinationLocationArnHasBeenSet() const { return m_destinationLocationArnHasBeenSet; }
68 inline void SetDestinationLocationArn(const Aws::String& value) { m_destinationLocationArnHasBeenSet = true; m_destinationLocationArn = value; }
69 inline void SetDestinationLocationArn(Aws::String&& value) { m_destinationLocationArnHasBeenSet = true; m_destinationLocationArn = std::move(value); }
70 inline void SetDestinationLocationArn(const char* value) { m_destinationLocationArnHasBeenSet = true; m_destinationLocationArn.assign(value); }
72 inline CreateTaskRequest& WithDestinationLocationArn(Aws::String&& value) { SetDestinationLocationArn(std::move(value)); return *this;}
73 inline CreateTaskRequest& WithDestinationLocationArn(const char* value) { SetDestinationLocationArn(value); return *this;}
75
77
83 inline const Aws::String& GetCloudWatchLogGroupArn() const{ return m_cloudWatchLogGroupArn; }
84 inline bool CloudWatchLogGroupArnHasBeenSet() const { return m_cloudWatchLogGroupArnHasBeenSet; }
85 inline void SetCloudWatchLogGroupArn(const Aws::String& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = value; }
86 inline void SetCloudWatchLogGroupArn(Aws::String&& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = std::move(value); }
87 inline void SetCloudWatchLogGroupArn(const char* value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn.assign(value); }
89 inline CreateTaskRequest& WithCloudWatchLogGroupArn(Aws::String&& value) { SetCloudWatchLogGroupArn(std::move(value)); return *this;}
90 inline CreateTaskRequest& WithCloudWatchLogGroupArn(const char* value) { SetCloudWatchLogGroupArn(value); return *this;}
92
94
97 inline const Aws::String& GetName() const{ return m_name; }
98 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
99 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
100 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
101 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
102 inline CreateTaskRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
103 inline CreateTaskRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
104 inline CreateTaskRequest& WithName(const char* value) { SetName(value); return *this;}
106
108
112 inline const Options& GetOptions() const{ return m_options; }
113 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
114 inline void SetOptions(const Options& value) { m_optionsHasBeenSet = true; m_options = value; }
115 inline void SetOptions(Options&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
116 inline CreateTaskRequest& WithOptions(const Options& value) { SetOptions(value); return *this;}
117 inline CreateTaskRequest& WithOptions(Options&& value) { SetOptions(std::move(value)); return *this;}
119
121
128 inline const Aws::Vector<FilterRule>& GetExcludes() const{ return m_excludes; }
129 inline bool ExcludesHasBeenSet() const { return m_excludesHasBeenSet; }
130 inline void SetExcludes(const Aws::Vector<FilterRule>& value) { m_excludesHasBeenSet = true; m_excludes = value; }
131 inline void SetExcludes(Aws::Vector<FilterRule>&& value) { m_excludesHasBeenSet = true; m_excludes = std::move(value); }
132 inline CreateTaskRequest& WithExcludes(const Aws::Vector<FilterRule>& value) { SetExcludes(value); return *this;}
133 inline CreateTaskRequest& WithExcludes(Aws::Vector<FilterRule>&& value) { SetExcludes(std::move(value)); return *this;}
134 inline CreateTaskRequest& AddExcludes(const FilterRule& value) { m_excludesHasBeenSet = true; m_excludes.push_back(value); return *this; }
135 inline CreateTaskRequest& AddExcludes(FilterRule&& value) { m_excludesHasBeenSet = true; m_excludes.push_back(std::move(value)); return *this; }
137
139
145 inline const TaskSchedule& GetSchedule() const{ return m_schedule; }
146 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
147 inline void SetSchedule(const TaskSchedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
148 inline void SetSchedule(TaskSchedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
149 inline CreateTaskRequest& WithSchedule(const TaskSchedule& value) { SetSchedule(value); return *this;}
150 inline CreateTaskRequest& WithSchedule(TaskSchedule&& value) { SetSchedule(std::move(value)); return *this;}
152
154
159 inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
160 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
161 inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
162 inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
163 inline CreateTaskRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
164 inline CreateTaskRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
165 inline CreateTaskRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
166 inline CreateTaskRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
168
170
177 inline const Aws::Vector<FilterRule>& GetIncludes() const{ return m_includes; }
178 inline bool IncludesHasBeenSet() const { return m_includesHasBeenSet; }
179 inline void SetIncludes(const Aws::Vector<FilterRule>& value) { m_includesHasBeenSet = true; m_includes = value; }
180 inline void SetIncludes(Aws::Vector<FilterRule>&& value) { m_includesHasBeenSet = true; m_includes = std::move(value); }
181 inline CreateTaskRequest& WithIncludes(const Aws::Vector<FilterRule>& value) { SetIncludes(value); return *this;}
182 inline CreateTaskRequest& WithIncludes(Aws::Vector<FilterRule>&& value) { SetIncludes(std::move(value)); return *this;}
183 inline CreateTaskRequest& AddIncludes(const FilterRule& value) { m_includesHasBeenSet = true; m_includes.push_back(value); return *this; }
184 inline CreateTaskRequest& AddIncludes(FilterRule&& value) { m_includesHasBeenSet = true; m_includes.push_back(std::move(value)); return *this; }
186
188
198 inline const ManifestConfig& GetManifestConfig() const{ return m_manifestConfig; }
199 inline bool ManifestConfigHasBeenSet() const { return m_manifestConfigHasBeenSet; }
200 inline void SetManifestConfig(const ManifestConfig& value) { m_manifestConfigHasBeenSet = true; m_manifestConfig = value; }
201 inline void SetManifestConfig(ManifestConfig&& value) { m_manifestConfigHasBeenSet = true; m_manifestConfig = std::move(value); }
202 inline CreateTaskRequest& WithManifestConfig(const ManifestConfig& value) { SetManifestConfig(value); return *this;}
203 inline CreateTaskRequest& WithManifestConfig(ManifestConfig&& value) { SetManifestConfig(std::move(value)); return *this;}
205
207
217 inline const TaskReportConfig& GetTaskReportConfig() const{ return m_taskReportConfig; }
218 inline bool TaskReportConfigHasBeenSet() const { return m_taskReportConfigHasBeenSet; }
219 inline void SetTaskReportConfig(const TaskReportConfig& value) { m_taskReportConfigHasBeenSet = true; m_taskReportConfig = value; }
220 inline void SetTaskReportConfig(TaskReportConfig&& value) { m_taskReportConfigHasBeenSet = true; m_taskReportConfig = std::move(value); }
221 inline CreateTaskRequest& WithTaskReportConfig(const TaskReportConfig& value) { SetTaskReportConfig(value); return *this;}
222 inline CreateTaskRequest& WithTaskReportConfig(TaskReportConfig&& value) { SetTaskReportConfig(std::move(value)); return *this;}
224
226
241 inline const TaskMode& GetTaskMode() const{ return m_taskMode; }
242 inline bool TaskModeHasBeenSet() const { return m_taskModeHasBeenSet; }
243 inline void SetTaskMode(const TaskMode& value) { m_taskModeHasBeenSet = true; m_taskMode = value; }
244 inline void SetTaskMode(TaskMode&& value) { m_taskModeHasBeenSet = true; m_taskMode = std::move(value); }
245 inline CreateTaskRequest& WithTaskMode(const TaskMode& value) { SetTaskMode(value); return *this;}
246 inline CreateTaskRequest& WithTaskMode(TaskMode&& value) { SetTaskMode(std::move(value)); return *this;}
248 private:
249
250 Aws::String m_sourceLocationArn;
251 bool m_sourceLocationArnHasBeenSet = false;
252
253 Aws::String m_destinationLocationArn;
254 bool m_destinationLocationArnHasBeenSet = false;
255
256 Aws::String m_cloudWatchLogGroupArn;
257 bool m_cloudWatchLogGroupArnHasBeenSet = false;
258
259 Aws::String m_name;
260 bool m_nameHasBeenSet = false;
261
262 Options m_options;
263 bool m_optionsHasBeenSet = false;
264
265 Aws::Vector<FilterRule> m_excludes;
266 bool m_excludesHasBeenSet = false;
267
268 TaskSchedule m_schedule;
269 bool m_scheduleHasBeenSet = false;
270
272 bool m_tagsHasBeenSet = false;
273
274 Aws::Vector<FilterRule> m_includes;
275 bool m_includesHasBeenSet = false;
276
277 ManifestConfig m_manifestConfig;
278 bool m_manifestConfigHasBeenSet = false;
279
280 TaskReportConfig m_taskReportConfig;
281 bool m_taskReportConfigHasBeenSet = false;
282
283 TaskMode m_taskMode;
284 bool m_taskModeHasBeenSet = false;
285 };
286
287} // namespace Model
288} // namespace DataSync
289} // namespace Aws
void SetSourceLocationArn(const Aws::String &value)
CreateTaskRequest & WithName(const char *value)
CreateTaskRequest & WithTags(Aws::Vector< TagListEntry > &&value)
void SetTaskReportConfig(const TaskReportConfig &value)
CreateTaskRequest & WithDestinationLocationArn(Aws::String &&value)
void SetTags(Aws::Vector< TagListEntry > &&value)
CreateTaskRequest & WithOptions(const Options &value)
CreateTaskRequest & AddIncludes(const FilterRule &value)
void SetCloudWatchLogGroupArn(Aws::String &&value)
const TaskSchedule & GetSchedule() const
const TaskReportConfig & GetTaskReportConfig() const
CreateTaskRequest & WithSchedule(const TaskSchedule &value)
CreateTaskRequest & WithManifestConfig(ManifestConfig &&value)
CreateTaskRequest & WithIncludes(const Aws::Vector< FilterRule > &value)
void SetCloudWatchLogGroupArn(const Aws::String &value)
CreateTaskRequest & WithTaskReportConfig(const TaskReportConfig &value)
const Aws::String & GetSourceLocationArn() const
CreateTaskRequest & WithCloudWatchLogGroupArn(const char *value)
void SetManifestConfig(ManifestConfig &&value)
void SetExcludes(const Aws::Vector< FilterRule > &value)
CreateTaskRequest & AddIncludes(FilterRule &&value)
void SetSchedule(const TaskSchedule &value)
CreateTaskRequest & WithSchedule(TaskSchedule &&value)
CreateTaskRequest & AddExcludes(const FilterRule &value)
CreateTaskRequest & WithCloudWatchLogGroupArn(Aws::String &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
CreateTaskRequest & WithExcludes(Aws::Vector< FilterRule > &&value)
CreateTaskRequest & WithName(Aws::String &&value)
CreateTaskRequest & WithTags(const Aws::Vector< TagListEntry > &value)
void SetDestinationLocationArn(Aws::String &&value)
CreateTaskRequest & WithSourceLocationArn(const Aws::String &value)
const ManifestConfig & GetManifestConfig() const
const Aws::Vector< FilterRule > & GetIncludes() const
const Aws::Vector< FilterRule > & GetExcludes() const
CreateTaskRequest & WithCloudWatchLogGroupArn(const Aws::String &value)
CreateTaskRequest & WithDestinationLocationArn(const char *value)
CreateTaskRequest & WithName(const Aws::String &value)
void SetExcludes(Aws::Vector< FilterRule > &&value)
CreateTaskRequest & WithDestinationLocationArn(const Aws::String &value)
CreateTaskRequest & WithTaskMode(TaskMode &&value)
const Aws::Vector< TagListEntry > & GetTags() const
CreateTaskRequest & WithOptions(Options &&value)
void SetTags(const Aws::Vector< TagListEntry > &value)
const Aws::String & GetDestinationLocationArn() const
void SetManifestConfig(const ManifestConfig &value)
void SetTaskMode(const TaskMode &value)
CreateTaskRequest & WithManifestConfig(const ManifestConfig &value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTaskRequest & WithIncludes(Aws::Vector< FilterRule > &&value)
virtual const char * GetServiceRequestName() const override
CreateTaskRequest & WithSourceLocationArn(const char *value)
void SetName(const Aws::String &value)
CreateTaskRequest & AddTags(const TagListEntry &value)
void SetSourceLocationArn(Aws::String &&value)
void SetIncludes(const Aws::Vector< FilterRule > &value)
void SetDestinationLocationArn(const Aws::String &value)
const Aws::String & GetCloudWatchLogGroupArn() const
void SetDestinationLocationArn(const char *value)
void SetIncludes(Aws::Vector< FilterRule > &&value)
CreateTaskRequest & WithExcludes(const Aws::Vector< FilterRule > &value)
void SetCloudWatchLogGroupArn(const char *value)
CreateTaskRequest & AddTags(TagListEntry &&value)
CreateTaskRequest & AddExcludes(FilterRule &&value)
CreateTaskRequest & WithTaskMode(const TaskMode &value)
CreateTaskRequest & WithSourceLocationArn(Aws::String &&value)
void SetTaskReportConfig(TaskReportConfig &&value)
CreateTaskRequest & WithTaskReportConfig(TaskReportConfig &&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