AWS SDK for C++  1.9.159
AWS SDK for C++
UpdateTaskRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace DataSync
19 {
20 namespace Model
21 {
22 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "UpdateTask"; }
38 
39  Aws::String SerializePayload() const override;
40 
42 
43 
48  inline const Aws::String& GetTaskArn() const{ return m_taskArn; }
49 
54  inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
55 
60  inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
61 
66  inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
67 
72  inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
73 
78  inline UpdateTaskRequest& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
79 
84  inline UpdateTaskRequest& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
85 
90  inline UpdateTaskRequest& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
91 
92 
93 
94  inline const Options& GetOptions() const{ return m_options; }
95 
96 
97  inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
98 
99 
100  inline void SetOptions(const Options& value) { m_optionsHasBeenSet = true; m_options = value; }
101 
102 
103  inline void SetOptions(Options&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
104 
105 
106  inline UpdateTaskRequest& WithOptions(const Options& value) { SetOptions(value); return *this;}
107 
108 
109  inline UpdateTaskRequest& WithOptions(Options&& value) { SetOptions(std::move(value)); return *this;}
110 
111 
118  inline const Aws::Vector<FilterRule>& GetExcludes() const{ return m_excludes; }
119 
126  inline bool ExcludesHasBeenSet() const { return m_excludesHasBeenSet; }
127 
134  inline void SetExcludes(const Aws::Vector<FilterRule>& value) { m_excludesHasBeenSet = true; m_excludes = value; }
135 
142  inline void SetExcludes(Aws::Vector<FilterRule>&& value) { m_excludesHasBeenSet = true; m_excludes = std::move(value); }
143 
150  inline UpdateTaskRequest& WithExcludes(const Aws::Vector<FilterRule>& value) { SetExcludes(value); return *this;}
151 
158  inline UpdateTaskRequest& WithExcludes(Aws::Vector<FilterRule>&& value) { SetExcludes(std::move(value)); return *this;}
159 
166  inline UpdateTaskRequest& AddExcludes(const FilterRule& value) { m_excludesHasBeenSet = true; m_excludes.push_back(value); return *this; }
167 
174  inline UpdateTaskRequest& AddExcludes(FilterRule&& value) { m_excludesHasBeenSet = true; m_excludes.push_back(std::move(value)); return *this; }
175 
176 
186  inline const TaskSchedule& GetSchedule() const{ return m_schedule; }
187 
197  inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
198 
208  inline void SetSchedule(const TaskSchedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
209 
219  inline void SetSchedule(TaskSchedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
220 
230  inline UpdateTaskRequest& WithSchedule(const TaskSchedule& value) { SetSchedule(value); return *this;}
231 
241  inline UpdateTaskRequest& WithSchedule(TaskSchedule&& value) { SetSchedule(std::move(value)); return *this;}
242 
243 
247  inline const Aws::String& GetName() const{ return m_name; }
248 
252  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
253 
257  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
258 
262  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
263 
267  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
268 
272  inline UpdateTaskRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
273 
277  inline UpdateTaskRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
278 
282  inline UpdateTaskRequest& WithName(const char* value) { SetName(value); return *this;}
283 
284 
289  inline const Aws::String& GetCloudWatchLogGroupArn() const{ return m_cloudWatchLogGroupArn; }
290 
295  inline bool CloudWatchLogGroupArnHasBeenSet() const { return m_cloudWatchLogGroupArnHasBeenSet; }
296 
301  inline void SetCloudWatchLogGroupArn(const Aws::String& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = value; }
302 
307  inline void SetCloudWatchLogGroupArn(Aws::String&& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = std::move(value); }
308 
313  inline void SetCloudWatchLogGroupArn(const char* value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn.assign(value); }
314 
319  inline UpdateTaskRequest& WithCloudWatchLogGroupArn(const Aws::String& value) { SetCloudWatchLogGroupArn(value); return *this;}
320 
325  inline UpdateTaskRequest& WithCloudWatchLogGroupArn(Aws::String&& value) { SetCloudWatchLogGroupArn(std::move(value)); return *this;}
326 
331  inline UpdateTaskRequest& WithCloudWatchLogGroupArn(const char* value) { SetCloudWatchLogGroupArn(value); return *this;}
332 
333 
340  inline const Aws::Vector<FilterRule>& GetIncludes() const{ return m_includes; }
341 
348  inline bool IncludesHasBeenSet() const { return m_includesHasBeenSet; }
349 
356  inline void SetIncludes(const Aws::Vector<FilterRule>& value) { m_includesHasBeenSet = true; m_includes = value; }
357 
364  inline void SetIncludes(Aws::Vector<FilterRule>&& value) { m_includesHasBeenSet = true; m_includes = std::move(value); }
365 
372  inline UpdateTaskRequest& WithIncludes(const Aws::Vector<FilterRule>& value) { SetIncludes(value); return *this;}
373 
380  inline UpdateTaskRequest& WithIncludes(Aws::Vector<FilterRule>&& value) { SetIncludes(std::move(value)); return *this;}
381 
388  inline UpdateTaskRequest& AddIncludes(const FilterRule& value) { m_includesHasBeenSet = true; m_includes.push_back(value); return *this; }
389 
396  inline UpdateTaskRequest& AddIncludes(FilterRule&& value) { m_includesHasBeenSet = true; m_includes.push_back(std::move(value)); return *this; }
397 
398  private:
399 
400  Aws::String m_taskArn;
401  bool m_taskArnHasBeenSet;
402 
403  Options m_options;
404  bool m_optionsHasBeenSet;
405 
406  Aws::Vector<FilterRule> m_excludes;
407  bool m_excludesHasBeenSet;
408 
409  TaskSchedule m_schedule;
410  bool m_scheduleHasBeenSet;
411 
412  Aws::String m_name;
413  bool m_nameHasBeenSet;
414 
415  Aws::String m_cloudWatchLogGroupArn;
416  bool m_cloudWatchLogGroupArnHasBeenSet;
417 
418  Aws::Vector<FilterRule> m_includes;
419  bool m_includesHasBeenSet;
420  };
421 
422 } // namespace Model
423 } // namespace DataSync
424 } // namespace Aws
Aws::DataSync::Model::UpdateTaskRequest::SetSchedule
void SetSchedule(TaskSchedule &&value)
Definition: UpdateTaskRequest.h:219
Aws::DataSync::Model::UpdateTaskRequest::CloudWatchLogGroupArnHasBeenSet
bool CloudWatchLogGroupArnHasBeenSet() const
Definition: UpdateTaskRequest.h:295
Aws::DataSync::Model::UpdateTaskRequest::WithSchedule
UpdateTaskRequest & WithSchedule(const TaskSchedule &value)
Definition: UpdateTaskRequest.h:230
Aws::DataSync::Model::UpdateTaskRequest::SetOptions
void SetOptions(Options &&value)
Definition: UpdateTaskRequest.h:103
Aws::DataSync::Model::UpdateTaskRequest::AddIncludes
UpdateTaskRequest & AddIncludes(const FilterRule &value)
Definition: UpdateTaskRequest.h:388
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DataSync::Model::UpdateTaskRequest::TaskArnHasBeenSet
bool TaskArnHasBeenSet() const
Definition: UpdateTaskRequest.h:54
Aws::DataSync::Model::UpdateTaskRequest::GetExcludes
const Aws::Vector< FilterRule > & GetExcludes() const
Definition: UpdateTaskRequest.h:118
Aws::DataSync::Model::UpdateTaskRequest::WithName
UpdateTaskRequest & WithName(Aws::String &&value)
Definition: UpdateTaskRequest.h:277
Aws::DataSync::Model::UpdateTaskRequest::GetSchedule
const TaskSchedule & GetSchedule() const
Definition: UpdateTaskRequest.h:186
Aws::DataSync::Model::UpdateTaskRequest::SetOptions
void SetOptions(const Options &value)
Definition: UpdateTaskRequest.h:100
Aws::DataSync::Model::UpdateTaskRequest::SetIncludes
void SetIncludes(const Aws::Vector< FilterRule > &value)
Definition: UpdateTaskRequest.h:356
DataSyncRequest.h
Aws::DataSync::Model::UpdateTaskRequest::SetTaskArn
void SetTaskArn(const Aws::String &value)
Definition: UpdateTaskRequest.h:60
Aws::DataSync::Model::UpdateTaskRequest::WithTaskArn
UpdateTaskRequest & WithTaskArn(const Aws::String &value)
Definition: UpdateTaskRequest.h:78
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DataSync::Model::UpdateTaskRequest::WithExcludes
UpdateTaskRequest & WithExcludes(Aws::Vector< FilterRule > &&value)
Definition: UpdateTaskRequest.h:158
Aws::DataSync::Model::UpdateTaskRequest::OptionsHasBeenSet
bool OptionsHasBeenSet() const
Definition: UpdateTaskRequest.h:97
Aws::DataSync::Model::UpdateTaskRequest::WithSchedule
UpdateTaskRequest & WithSchedule(TaskSchedule &&value)
Definition: UpdateTaskRequest.h:241
Aws::DataSync::Model::Options
Definition: Options.h:54
AWSVector.h
TaskSchedule.h
Aws::DataSync::Model::UpdateTaskRequest::SetCloudWatchLogGroupArn
void SetCloudWatchLogGroupArn(const Aws::String &value)
Definition: UpdateTaskRequest.h:301
Aws::DataSync::Model::UpdateTaskRequest::WithName
UpdateTaskRequest & WithName(const Aws::String &value)
Definition: UpdateTaskRequest.h:272
Aws::DataSync::Model::UpdateTaskRequest::WithIncludes
UpdateTaskRequest & WithIncludes(Aws::Vector< FilterRule > &&value)
Definition: UpdateTaskRequest.h:380
Aws::DataSync::Model::UpdateTaskRequest::WithTaskArn
UpdateTaskRequest & WithTaskArn(Aws::String &&value)
Definition: UpdateTaskRequest.h:84
Aws::DataSync::Model::UpdateTaskRequest::WithCloudWatchLogGroupArn
UpdateTaskRequest & WithCloudWatchLogGroupArn(const Aws::String &value)
Definition: UpdateTaskRequest.h:319
Aws::DataSync::Model::UpdateTaskRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DataSync::Model::TaskSchedule
Definition: TaskSchedule.h:35
Aws::DataSync::Model::UpdateTaskRequest::AddExcludes
UpdateTaskRequest & AddExcludes(const FilterRule &value)
Definition: UpdateTaskRequest.h:166
Aws::DataSync::Model::UpdateTaskRequest::SetTaskArn
void SetTaskArn(Aws::String &&value)
Definition: UpdateTaskRequest.h:66
Aws::DataSync::Model::UpdateTaskRequest::SetName
void SetName(const char *value)
Definition: UpdateTaskRequest.h:267
Aws::DataSync::Model::UpdateTaskRequest::WithExcludes
UpdateTaskRequest & WithExcludes(const Aws::Vector< FilterRule > &value)
Definition: UpdateTaskRequest.h:150
AWSString.h
Aws::DataSync::Model::UpdateTaskRequest::WithCloudWatchLogGroupArn
UpdateTaskRequest & WithCloudWatchLogGroupArn(const char *value)
Definition: UpdateTaskRequest.h:331
Aws::DataSync::Model::UpdateTaskRequest::SetSchedule
void SetSchedule(const TaskSchedule &value)
Definition: UpdateTaskRequest.h:208
Aws::DataSync::Model::UpdateTaskRequest
Definition: UpdateTaskRequest.h:29
DataSync_EXPORTS.h
Aws::DataSync::Model::UpdateTaskRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateTaskRequest.h:257
Aws::DataSync::Model::FilterRule
Definition: FilterRule.h:34
FilterRule.h
Aws::DataSync::Model::UpdateTaskRequest::WithName
UpdateTaskRequest & WithName(const char *value)
Definition: UpdateTaskRequest.h:282
Aws::DataSync::Model::UpdateTaskRequest::AddExcludes
UpdateTaskRequest & AddExcludes(FilterRule &&value)
Definition: UpdateTaskRequest.h:174
Aws::DataSync::Model::UpdateTaskRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateTaskRequest.h:37
Aws::DataSync::Model::UpdateTaskRequest::ScheduleHasBeenSet
bool ScheduleHasBeenSet() const
Definition: UpdateTaskRequest.h:197
Aws::DataSync::Model::UpdateTaskRequest::SetCloudWatchLogGroupArn
void SetCloudWatchLogGroupArn(const char *value)
Definition: UpdateTaskRequest.h:313
Aws::DataSync::Model::UpdateTaskRequest::WithTaskArn
UpdateTaskRequest & WithTaskArn(const char *value)
Definition: UpdateTaskRequest.h:90
Aws::DataSync::Model::UpdateTaskRequest::WithIncludes
UpdateTaskRequest & WithIncludes(const Aws::Vector< FilterRule > &value)
Definition: UpdateTaskRequest.h:372
Aws::DataSync::DataSyncRequest
Definition: DataSyncRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::UpdateTaskRequest::GetName
const Aws::String & GetName() const
Definition: UpdateTaskRequest.h:247
Aws::DataSync::Model::UpdateTaskRequest::SetCloudWatchLogGroupArn
void SetCloudWatchLogGroupArn(Aws::String &&value)
Definition: UpdateTaskRequest.h:307
Aws::DataSync::Model::UpdateTaskRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateTaskRequest.h:252
Aws::DataSync::Model::UpdateTaskRequest::GetOptions
const Options & GetOptions() const
Definition: UpdateTaskRequest.h:94
Aws::DataSync::Model::UpdateTaskRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateTaskRequest.h:262
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::UpdateTaskRequest::WithOptions
UpdateTaskRequest & WithOptions(Options &&value)
Definition: UpdateTaskRequest.h:109
Aws::DataSync::Model::UpdateTaskRequest::SetTaskArn
void SetTaskArn(const char *value)
Definition: UpdateTaskRequest.h:72
Options.h
Aws::DataSync::Model::UpdateTaskRequest::SetIncludes
void SetIncludes(Aws::Vector< FilterRule > &&value)
Definition: UpdateTaskRequest.h:364
Aws::DataSync::Model::UpdateTaskRequest::IncludesHasBeenSet
bool IncludesHasBeenSet() const
Definition: UpdateTaskRequest.h:348
Aws::DataSync::Model::UpdateTaskRequest::ExcludesHasBeenSet
bool ExcludesHasBeenSet() const
Definition: UpdateTaskRequest.h:126
Aws::DataSync::Model::UpdateTaskRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DataSync::Model::UpdateTaskRequest::SetExcludes
void SetExcludes(Aws::Vector< FilterRule > &&value)
Definition: UpdateTaskRequest.h:142
Aws::DataSync::Model::UpdateTaskRequest::WithCloudWatchLogGroupArn
UpdateTaskRequest & WithCloudWatchLogGroupArn(Aws::String &&value)
Definition: UpdateTaskRequest.h:325
Aws::DataSync::Model::UpdateTaskRequest::UpdateTaskRequest
UpdateTaskRequest()
Aws::DataSync::Model::UpdateTaskRequest::GetIncludes
const Aws::Vector< FilterRule > & GetIncludes() const
Definition: UpdateTaskRequest.h:340
Aws::DataSync::Model::UpdateTaskRequest::GetTaskArn
const Aws::String & GetTaskArn() const
Definition: UpdateTaskRequest.h:48
Aws::DataSync::Model::UpdateTaskRequest::GetCloudWatchLogGroupArn
const Aws::String & GetCloudWatchLogGroupArn() const
Definition: UpdateTaskRequest.h:289
Aws::DataSync::Model::UpdateTaskRequest::AddIncludes
UpdateTaskRequest & AddIncludes(FilterRule &&value)
Definition: UpdateTaskRequest.h:396
Aws::DataSync::Model::UpdateTaskRequest::WithOptions
UpdateTaskRequest & WithOptions(const Options &value)
Definition: UpdateTaskRequest.h:106
Aws::DataSync::Model::UpdateTaskRequest::SetExcludes
void SetExcludes(const Aws::Vector< FilterRule > &value)
Definition: UpdateTaskRequest.h:134