AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateTaskRequest.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/FilterRule.h>
16#include <utility>
17
18namespace Aws
19{
20namespace DataSync
21{
22namespace Model
23{
24
31 {
32 public:
33 AWS_DATASYNC_API UpdateTaskRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "UpdateTask"; }
40
41 AWS_DATASYNC_API Aws::String SerializePayload() const override;
42
44
45
47
50 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
51 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
52 template<typename TaskArnT = Aws::String>
53 void SetTaskArn(TaskArnT&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::forward<TaskArnT>(value); }
54 template<typename TaskArnT = Aws::String>
55 UpdateTaskRequest& WithTaskArn(TaskArnT&& value) { SetTaskArn(std::forward<TaskArnT>(value)); return *this;}
57
59
60 inline const Options& GetOptions() const { return m_options; }
61 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
62 template<typename OptionsT = Options>
63 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
64 template<typename OptionsT = Options>
65 UpdateTaskRequest& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
67
69
76 inline const Aws::Vector<FilterRule>& GetExcludes() const { return m_excludes; }
77 inline bool ExcludesHasBeenSet() const { return m_excludesHasBeenSet; }
78 template<typename ExcludesT = Aws::Vector<FilterRule>>
79 void SetExcludes(ExcludesT&& value) { m_excludesHasBeenSet = true; m_excludes = std::forward<ExcludesT>(value); }
80 template<typename ExcludesT = Aws::Vector<FilterRule>>
81 UpdateTaskRequest& WithExcludes(ExcludesT&& value) { SetExcludes(std::forward<ExcludesT>(value)); return *this;}
82 template<typename ExcludesT = FilterRule>
83 UpdateTaskRequest& AddExcludes(ExcludesT&& value) { m_excludesHasBeenSet = true; m_excludes.emplace_back(std::forward<ExcludesT>(value)); return *this; }
85
87
93 inline const TaskSchedule& GetSchedule() const { return m_schedule; }
94 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
95 template<typename ScheduleT = TaskSchedule>
96 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
97 template<typename ScheduleT = TaskSchedule>
98 UpdateTaskRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
100
102
105 inline const Aws::String& GetName() const { return m_name; }
106 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
107 template<typename NameT = Aws::String>
108 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
109 template<typename NameT = Aws::String>
110 UpdateTaskRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
112
114
123 inline const Aws::String& GetCloudWatchLogGroupArn() const { return m_cloudWatchLogGroupArn; }
124 inline bool CloudWatchLogGroupArnHasBeenSet() const { return m_cloudWatchLogGroupArnHasBeenSet; }
125 template<typename CloudWatchLogGroupArnT = Aws::String>
126 void SetCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = std::forward<CloudWatchLogGroupArnT>(value); }
127 template<typename CloudWatchLogGroupArnT = Aws::String>
128 UpdateTaskRequest& WithCloudWatchLogGroupArn(CloudWatchLogGroupArnT&& value) { SetCloudWatchLogGroupArn(std::forward<CloudWatchLogGroupArnT>(value)); return *this;}
130
132
139 inline const Aws::Vector<FilterRule>& GetIncludes() const { return m_includes; }
140 inline bool IncludesHasBeenSet() const { return m_includesHasBeenSet; }
141 template<typename IncludesT = Aws::Vector<FilterRule>>
142 void SetIncludes(IncludesT&& value) { m_includesHasBeenSet = true; m_includes = std::forward<IncludesT>(value); }
143 template<typename IncludesT = Aws::Vector<FilterRule>>
144 UpdateTaskRequest& WithIncludes(IncludesT&& value) { SetIncludes(std::forward<IncludesT>(value)); return *this;}
145 template<typename IncludesT = FilterRule>
146 UpdateTaskRequest& AddIncludes(IncludesT&& value) { m_includesHasBeenSet = true; m_includes.emplace_back(std::forward<IncludesT>(value)); return *this; }
148
150
161 inline const ManifestConfig& GetManifestConfig() const { return m_manifestConfig; }
162 inline bool ManifestConfigHasBeenSet() const { return m_manifestConfigHasBeenSet; }
163 template<typename ManifestConfigT = ManifestConfig>
164 void SetManifestConfig(ManifestConfigT&& value) { m_manifestConfigHasBeenSet = true; m_manifestConfig = std::forward<ManifestConfigT>(value); }
165 template<typename ManifestConfigT = ManifestConfig>
166 UpdateTaskRequest& WithManifestConfig(ManifestConfigT&& value) { SetManifestConfig(std::forward<ManifestConfigT>(value)); return *this;}
168
170
181 inline const TaskReportConfig& GetTaskReportConfig() const { return m_taskReportConfig; }
182 inline bool TaskReportConfigHasBeenSet() const { return m_taskReportConfigHasBeenSet; }
183 template<typename TaskReportConfigT = TaskReportConfig>
184 void SetTaskReportConfig(TaskReportConfigT&& value) { m_taskReportConfigHasBeenSet = true; m_taskReportConfig = std::forward<TaskReportConfigT>(value); }
185 template<typename TaskReportConfigT = TaskReportConfig>
186 UpdateTaskRequest& WithTaskReportConfig(TaskReportConfigT&& value) { SetTaskReportConfig(std::forward<TaskReportConfigT>(value)); return *this;}
188 private:
189
190 Aws::String m_taskArn;
191 bool m_taskArnHasBeenSet = false;
192
193 Options m_options;
194 bool m_optionsHasBeenSet = false;
195
196 Aws::Vector<FilterRule> m_excludes;
197 bool m_excludesHasBeenSet = false;
198
199 TaskSchedule m_schedule;
200 bool m_scheduleHasBeenSet = false;
201
202 Aws::String m_name;
203 bool m_nameHasBeenSet = false;
204
205 Aws::String m_cloudWatchLogGroupArn;
206 bool m_cloudWatchLogGroupArnHasBeenSet = false;
207
208 Aws::Vector<FilterRule> m_includes;
209 bool m_includesHasBeenSet = false;
210
211 ManifestConfig m_manifestConfig;
212 bool m_manifestConfigHasBeenSet = false;
213
214 TaskReportConfig m_taskReportConfig;
215 bool m_taskReportConfigHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace DataSync
220} // 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