AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
53 inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
54 inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
55 inline UpdateTaskRequest& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
56 inline UpdateTaskRequest& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
57 inline UpdateTaskRequest& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
59
61
62 inline const Options& GetOptions() const{ return m_options; }
63 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
64 inline void SetOptions(const Options& value) { m_optionsHasBeenSet = true; m_options = value; }
65 inline void SetOptions(Options&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
66 inline UpdateTaskRequest& WithOptions(const Options& value) { SetOptions(value); return *this;}
67 inline UpdateTaskRequest& WithOptions(Options&& value) { SetOptions(std::move(value)); return *this;}
69
71
78 inline const Aws::Vector<FilterRule>& GetExcludes() const{ return m_excludes; }
79 inline bool ExcludesHasBeenSet() const { return m_excludesHasBeenSet; }
80 inline void SetExcludes(const Aws::Vector<FilterRule>& value) { m_excludesHasBeenSet = true; m_excludes = value; }
81 inline void SetExcludes(Aws::Vector<FilterRule>&& value) { m_excludesHasBeenSet = true; m_excludes = std::move(value); }
82 inline UpdateTaskRequest& WithExcludes(const Aws::Vector<FilterRule>& value) { SetExcludes(value); return *this;}
83 inline UpdateTaskRequest& WithExcludes(Aws::Vector<FilterRule>&& value) { SetExcludes(std::move(value)); return *this;}
84 inline UpdateTaskRequest& AddExcludes(const FilterRule& value) { m_excludesHasBeenSet = true; m_excludes.push_back(value); return *this; }
85 inline UpdateTaskRequest& AddExcludes(FilterRule&& value) { m_excludesHasBeenSet = true; m_excludes.push_back(std::move(value)); return *this; }
87
89
95 inline const TaskSchedule& GetSchedule() const{ return m_schedule; }
96 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
97 inline void SetSchedule(const TaskSchedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
98 inline void SetSchedule(TaskSchedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
99 inline UpdateTaskRequest& WithSchedule(const TaskSchedule& value) { SetSchedule(value); return *this;}
100 inline UpdateTaskRequest& WithSchedule(TaskSchedule&& value) { SetSchedule(std::move(value)); return *this;}
102
104
107 inline const Aws::String& GetName() const{ return m_name; }
108 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
109 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
110 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
111 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
112 inline UpdateTaskRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
113 inline UpdateTaskRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
114 inline UpdateTaskRequest& WithName(const char* value) { SetName(value); return *this;}
116
118
127 inline const Aws::String& GetCloudWatchLogGroupArn() const{ return m_cloudWatchLogGroupArn; }
128 inline bool CloudWatchLogGroupArnHasBeenSet() const { return m_cloudWatchLogGroupArnHasBeenSet; }
129 inline void SetCloudWatchLogGroupArn(const Aws::String& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = value; }
130 inline void SetCloudWatchLogGroupArn(Aws::String&& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = std::move(value); }
131 inline void SetCloudWatchLogGroupArn(const char* value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn.assign(value); }
133 inline UpdateTaskRequest& WithCloudWatchLogGroupArn(Aws::String&& value) { SetCloudWatchLogGroupArn(std::move(value)); return *this;}
134 inline UpdateTaskRequest& WithCloudWatchLogGroupArn(const char* value) { SetCloudWatchLogGroupArn(value); return *this;}
136
138
145 inline const Aws::Vector<FilterRule>& GetIncludes() const{ return m_includes; }
146 inline bool IncludesHasBeenSet() const { return m_includesHasBeenSet; }
147 inline void SetIncludes(const Aws::Vector<FilterRule>& value) { m_includesHasBeenSet = true; m_includes = value; }
148 inline void SetIncludes(Aws::Vector<FilterRule>&& value) { m_includesHasBeenSet = true; m_includes = std::move(value); }
149 inline UpdateTaskRequest& WithIncludes(const Aws::Vector<FilterRule>& value) { SetIncludes(value); return *this;}
150 inline UpdateTaskRequest& WithIncludes(Aws::Vector<FilterRule>&& value) { SetIncludes(std::move(value)); return *this;}
151 inline UpdateTaskRequest& AddIncludes(const FilterRule& value) { m_includesHasBeenSet = true; m_includes.push_back(value); return *this; }
152 inline UpdateTaskRequest& AddIncludes(FilterRule&& value) { m_includesHasBeenSet = true; m_includes.push_back(std::move(value)); return *this; }
154
156
167 inline const ManifestConfig& GetManifestConfig() const{ return m_manifestConfig; }
168 inline bool ManifestConfigHasBeenSet() const { return m_manifestConfigHasBeenSet; }
169 inline void SetManifestConfig(const ManifestConfig& value) { m_manifestConfigHasBeenSet = true; m_manifestConfig = value; }
170 inline void SetManifestConfig(ManifestConfig&& value) { m_manifestConfigHasBeenSet = true; m_manifestConfig = std::move(value); }
171 inline UpdateTaskRequest& WithManifestConfig(const ManifestConfig& value) { SetManifestConfig(value); return *this;}
172 inline UpdateTaskRequest& WithManifestConfig(ManifestConfig&& value) { SetManifestConfig(std::move(value)); return *this;}
174
176
187 inline const TaskReportConfig& GetTaskReportConfig() const{ return m_taskReportConfig; }
188 inline bool TaskReportConfigHasBeenSet() const { return m_taskReportConfigHasBeenSet; }
189 inline void SetTaskReportConfig(const TaskReportConfig& value) { m_taskReportConfigHasBeenSet = true; m_taskReportConfig = value; }
190 inline void SetTaskReportConfig(TaskReportConfig&& value) { m_taskReportConfigHasBeenSet = true; m_taskReportConfig = std::move(value); }
191 inline UpdateTaskRequest& WithTaskReportConfig(const TaskReportConfig& value) { SetTaskReportConfig(value); return *this;}
192 inline UpdateTaskRequest& WithTaskReportConfig(TaskReportConfig&& value) { SetTaskReportConfig(std::move(value)); return *this;}
194 private:
195
196 Aws::String m_taskArn;
197 bool m_taskArnHasBeenSet = false;
198
199 Options m_options;
200 bool m_optionsHasBeenSet = false;
201
202 Aws::Vector<FilterRule> m_excludes;
203 bool m_excludesHasBeenSet = false;
204
205 TaskSchedule m_schedule;
206 bool m_scheduleHasBeenSet = false;
207
208 Aws::String m_name;
209 bool m_nameHasBeenSet = false;
210
211 Aws::String m_cloudWatchLogGroupArn;
212 bool m_cloudWatchLogGroupArnHasBeenSet = false;
213
214 Aws::Vector<FilterRule> m_includes;
215 bool m_includesHasBeenSet = false;
216
217 ManifestConfig m_manifestConfig;
218 bool m_manifestConfigHasBeenSet = false;
219
220 TaskReportConfig m_taskReportConfig;
221 bool m_taskReportConfigHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace DataSync
226} // namespace Aws
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateTaskRequest & WithTaskArn(const char *value)
void SetExcludes(Aws::Vector< FilterRule > &&value)
UpdateTaskRequest & WithCloudWatchLogGroupArn(Aws::String &&value)
void SetIncludes(Aws::Vector< FilterRule > &&value)
UpdateTaskRequest & WithCloudWatchLogGroupArn(const char *value)
UpdateTaskRequest & WithManifestConfig(const ManifestConfig &value)
UpdateTaskRequest & AddIncludes(FilterRule &&value)
const ManifestConfig & GetManifestConfig() const
UpdateTaskRequest & WithTaskArn(Aws::String &&value)
void SetManifestConfig(ManifestConfig &&value)
void SetIncludes(const Aws::Vector< FilterRule > &value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
const Aws::String & GetCloudWatchLogGroupArn() const
virtual const char * GetServiceRequestName() const override
UpdateTaskRequest & WithTaskReportConfig(const TaskReportConfig &value)
void SetTaskReportConfig(const TaskReportConfig &value)
const Aws::Vector< FilterRule > & GetExcludes() const
UpdateTaskRequest & WithIncludes(Aws::Vector< FilterRule > &&value)
void SetTaskReportConfig(TaskReportConfig &&value)
const TaskReportConfig & GetTaskReportConfig() const
void SetCloudWatchLogGroupArn(const Aws::String &value)
void SetCloudWatchLogGroupArn(const char *value)
UpdateTaskRequest & AddExcludes(const FilterRule &value)
UpdateTaskRequest & WithSchedule(const TaskSchedule &value)
UpdateTaskRequest & WithExcludes(Aws::Vector< FilterRule > &&value)
UpdateTaskRequest & WithName(const char *value)
UpdateTaskRequest & WithSchedule(TaskSchedule &&value)
void SetSchedule(const TaskSchedule &value)
UpdateTaskRequest & WithManifestConfig(ManifestConfig &&value)
UpdateTaskRequest & AddExcludes(FilterRule &&value)
void SetTaskArn(const Aws::String &value)
UpdateTaskRequest & AddIncludes(const FilterRule &value)
const Aws::String & GetTaskArn() const
void SetName(const Aws::String &value)
void SetManifestConfig(const ManifestConfig &value)
UpdateTaskRequest & WithIncludes(const Aws::Vector< FilterRule > &value)
UpdateTaskRequest & WithTaskReportConfig(TaskReportConfig &&value)
UpdateTaskRequest & WithTaskArn(const Aws::String &value)
UpdateTaskRequest & WithOptions(const Options &value)
void SetCloudWatchLogGroupArn(Aws::String &&value)
UpdateTaskRequest & WithOptions(Options &&value)
UpdateTaskRequest & WithName(const Aws::String &value)
UpdateTaskRequest & WithName(Aws::String &&value)
void SetExcludes(const Aws::Vector< FilterRule > &value)
const Aws::Vector< FilterRule > & GetIncludes() const
UpdateTaskRequest & WithCloudWatchLogGroupArn(const Aws::String &value)
const TaskSchedule & GetSchedule() const
UpdateTaskRequest & WithExcludes(const Aws::Vector< FilterRule > &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