AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateTaskRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datasync/DataSyncRequest.h>
10#include <aws/datasync/DataSync_EXPORTS.h>
11#include <aws/datasync/model/FilterRule.h>
12#include <aws/datasync/model/ManifestConfig.h>
13#include <aws/datasync/model/Options.h>
14#include <aws/datasync/model/TaskReportConfig.h>
15#include <aws/datasync/model/TaskSchedule.h>
16
17#include <utility>
18
19namespace Aws {
20namespace DataSync {
21namespace Model {
22
29 public:
30 AWS_DATASYNC_API UpdateTaskRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateTask"; }
37
38 AWS_DATASYNC_API Aws::String SerializePayload() const override;
39
41
43
46 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
47 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
48 template <typename TaskArnT = Aws::String>
49 void SetTaskArn(TaskArnT&& value) {
50 m_taskArnHasBeenSet = true;
51 m_taskArn = std::forward<TaskArnT>(value);
52 }
53 template <typename TaskArnT = Aws::String>
54 UpdateTaskRequest& WithTaskArn(TaskArnT&& value) {
55 SetTaskArn(std::forward<TaskArnT>(value));
56 return *this;
57 }
59
61
62 inline const Options& GetOptions() const { return m_options; }
63 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
64 template <typename OptionsT = Options>
65 void SetOptions(OptionsT&& value) {
66 m_optionsHasBeenSet = true;
67 m_options = std::forward<OptionsT>(value);
68 }
69 template <typename OptionsT = Options>
70 UpdateTaskRequest& WithOptions(OptionsT&& value) {
71 SetOptions(std::forward<OptionsT>(value));
72 return *this;
73 }
75
77
84 inline const Aws::Vector<FilterRule>& GetExcludes() const { return m_excludes; }
85 inline bool ExcludesHasBeenSet() const { return m_excludesHasBeenSet; }
86 template <typename ExcludesT = Aws::Vector<FilterRule>>
87 void SetExcludes(ExcludesT&& value) {
88 m_excludesHasBeenSet = true;
89 m_excludes = std::forward<ExcludesT>(value);
90 }
91 template <typename ExcludesT = Aws::Vector<FilterRule>>
92 UpdateTaskRequest& WithExcludes(ExcludesT&& value) {
93 SetExcludes(std::forward<ExcludesT>(value));
94 return *this;
95 }
96 template <typename ExcludesT = FilterRule>
97 UpdateTaskRequest& AddExcludes(ExcludesT&& value) {
98 m_excludesHasBeenSet = true;
99 m_excludes.emplace_back(std::forward<ExcludesT>(value));
100 return *this;
101 }
103
105
111 inline const TaskSchedule& GetSchedule() const { return m_schedule; }
112 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
113 template <typename ScheduleT = TaskSchedule>
114 void SetSchedule(ScheduleT&& value) {
115 m_scheduleHasBeenSet = true;
116 m_schedule = std::forward<ScheduleT>(value);
117 }
118 template <typename ScheduleT = TaskSchedule>
119 UpdateTaskRequest& WithSchedule(ScheduleT&& value) {
120 SetSchedule(std::forward<ScheduleT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetName() const { return m_name; }
130 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
131 template <typename NameT = Aws::String>
132 void SetName(NameT&& value) {
133 m_nameHasBeenSet = true;
134 m_name = std::forward<NameT>(value);
135 }
136 template <typename NameT = Aws::String>
137 UpdateTaskRequest& WithName(NameT&& value) {
138 SetName(std::forward<NameT>(value));
139 return *this;
140 }
142
144
153 inline const Aws::String& GetCloudWatchLogGroupArn() const { return m_cloudWatchLogGroupArn; }
154 inline bool CloudWatchLogGroupArnHasBeenSet() const { return m_cloudWatchLogGroupArnHasBeenSet; }
155 template <typename CloudWatchLogGroupArnT = Aws::String>
156 void SetCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) {
157 m_cloudWatchLogGroupArnHasBeenSet = true;
158 m_cloudWatchLogGroupArn = std::forward<CloudWatchLogGroupArnT>(value);
159 }
160 template <typename CloudWatchLogGroupArnT = Aws::String>
161 UpdateTaskRequest& WithCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) {
162 SetCloudWatchLogGroupArn(std::forward<CloudWatchLogGroupArnT>(value));
163 return *this;
164 }
166
168
175 inline const Aws::Vector<FilterRule>& GetIncludes() const { return m_includes; }
176 inline bool IncludesHasBeenSet() const { return m_includesHasBeenSet; }
177 template <typename IncludesT = Aws::Vector<FilterRule>>
178 void SetIncludes(IncludesT&& value) {
179 m_includesHasBeenSet = true;
180 m_includes = std::forward<IncludesT>(value);
181 }
182 template <typename IncludesT = Aws::Vector<FilterRule>>
183 UpdateTaskRequest& WithIncludes(IncludesT&& value) {
184 SetIncludes(std::forward<IncludesT>(value));
185 return *this;
186 }
187 template <typename IncludesT = FilterRule>
188 UpdateTaskRequest& AddIncludes(IncludesT&& value) {
189 m_includesHasBeenSet = true;
190 m_includes.emplace_back(std::forward<IncludesT>(value));
191 return *this;
192 }
194
196
207 inline const ManifestConfig& GetManifestConfig() const { return m_manifestConfig; }
208 inline bool ManifestConfigHasBeenSet() const { return m_manifestConfigHasBeenSet; }
209 template <typename ManifestConfigT = ManifestConfig>
210 void SetManifestConfig(ManifestConfigT&& value) {
211 m_manifestConfigHasBeenSet = true;
212 m_manifestConfig = std::forward<ManifestConfigT>(value);
213 }
214 template <typename ManifestConfigT = ManifestConfig>
215 UpdateTaskRequest& WithManifestConfig(ManifestConfigT&& value) {
216 SetManifestConfig(std::forward<ManifestConfigT>(value));
217 return *this;
218 }
220
222
233 inline const TaskReportConfig& GetTaskReportConfig() const { return m_taskReportConfig; }
234 inline bool TaskReportConfigHasBeenSet() const { return m_taskReportConfigHasBeenSet; }
235 template <typename TaskReportConfigT = TaskReportConfig>
236 void SetTaskReportConfig(TaskReportConfigT&& value) {
237 m_taskReportConfigHasBeenSet = true;
238 m_taskReportConfig = std::forward<TaskReportConfigT>(value);
239 }
240 template <typename TaskReportConfigT = TaskReportConfig>
241 UpdateTaskRequest& WithTaskReportConfig(TaskReportConfigT&& value) {
242 SetTaskReportConfig(std::forward<TaskReportConfigT>(value));
243 return *this;
244 }
246 private:
247 Aws::String m_taskArn;
248
249 Options m_options;
250
251 Aws::Vector<FilterRule> m_excludes;
252
253 TaskSchedule m_schedule;
254
255 Aws::String m_name;
256
257 Aws::String m_cloudWatchLogGroupArn;
258
259 Aws::Vector<FilterRule> m_includes;
260
261 ManifestConfig m_manifestConfig;
262
263 TaskReportConfig m_taskReportConfig;
264 bool m_taskArnHasBeenSet = false;
265 bool m_optionsHasBeenSet = false;
266 bool m_excludesHasBeenSet = false;
267 bool m_scheduleHasBeenSet = false;
268 bool m_nameHasBeenSet = false;
269 bool m_cloudWatchLogGroupArnHasBeenSet = false;
270 bool m_includesHasBeenSet = false;
271 bool m_manifestConfigHasBeenSet = false;
272 bool m_taskReportConfigHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace DataSync
277} // namespace Aws
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateTaskRequest & WithTaskReportConfig(TaskReportConfigT &&value)
void SetTaskReportConfig(TaskReportConfigT &&value)
const ManifestConfig & GetManifestConfig() const
UpdateTaskRequest & WithExcludes(ExcludesT &&value)
UpdateTaskRequest & WithIncludes(IncludesT &&value)
UpdateTaskRequest & WithSchedule(ScheduleT &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
const Aws::String & GetCloudWatchLogGroupArn() const
virtual const char * GetServiceRequestName() const override
const Aws::Vector< FilterRule > & GetExcludes() const
const TaskReportConfig & GetTaskReportConfig() const
UpdateTaskRequest & WithCloudWatchLogGroupArn(CloudWatchLogGroupArnT &&value)
void SetCloudWatchLogGroupArn(CloudWatchLogGroupArnT &&value)
UpdateTaskRequest & WithOptions(OptionsT &&value)
UpdateTaskRequest & AddIncludes(IncludesT &&value)
const Aws::String & GetTaskArn() const
UpdateTaskRequest & WithName(NameT &&value)
void SetManifestConfig(ManifestConfigT &&value)
UpdateTaskRequest & AddExcludes(ExcludesT &&value)
UpdateTaskRequest & WithTaskArn(TaskArnT &&value)
const Aws::Vector< FilterRule > & GetIncludes() const
const TaskSchedule & GetSchedule() const
UpdateTaskRequest & WithManifestConfig(ManifestConfigT &&value)
AWS_DATASYNC_API UpdateTaskRequest()=default
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