AWS SDK for C++  1.9.161
AWS SDK for C++
CreateTaskRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace DataSync
20 {
21 namespace Model
22 {
23 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "CreateTask"; }
39 
40  Aws::String SerializePayload() const override;
41 
43 
44 
48  inline const Aws::String& GetSourceLocationArn() const{ return m_sourceLocationArn; }
49 
53  inline bool SourceLocationArnHasBeenSet() const { return m_sourceLocationArnHasBeenSet; }
54 
58  inline void SetSourceLocationArn(const Aws::String& value) { m_sourceLocationArnHasBeenSet = true; m_sourceLocationArn = value; }
59 
63  inline void SetSourceLocationArn(Aws::String&& value) { m_sourceLocationArnHasBeenSet = true; m_sourceLocationArn = std::move(value); }
64 
68  inline void SetSourceLocationArn(const char* value) { m_sourceLocationArnHasBeenSet = true; m_sourceLocationArn.assign(value); }
69 
73  inline CreateTaskRequest& WithSourceLocationArn(const Aws::String& value) { SetSourceLocationArn(value); return *this;}
74 
78  inline CreateTaskRequest& WithSourceLocationArn(Aws::String&& value) { SetSourceLocationArn(std::move(value)); return *this;}
79 
83  inline CreateTaskRequest& WithSourceLocationArn(const char* value) { SetSourceLocationArn(value); return *this;}
84 
85 
90  inline const Aws::String& GetDestinationLocationArn() const{ return m_destinationLocationArn; }
91 
96  inline bool DestinationLocationArnHasBeenSet() const { return m_destinationLocationArnHasBeenSet; }
97 
102  inline void SetDestinationLocationArn(const Aws::String& value) { m_destinationLocationArnHasBeenSet = true; m_destinationLocationArn = value; }
103 
108  inline void SetDestinationLocationArn(Aws::String&& value) { m_destinationLocationArnHasBeenSet = true; m_destinationLocationArn = std::move(value); }
109 
114  inline void SetDestinationLocationArn(const char* value) { m_destinationLocationArnHasBeenSet = true; m_destinationLocationArn.assign(value); }
115 
120  inline CreateTaskRequest& WithDestinationLocationArn(const Aws::String& value) { SetDestinationLocationArn(value); return *this;}
121 
126  inline CreateTaskRequest& WithDestinationLocationArn(Aws::String&& value) { SetDestinationLocationArn(std::move(value)); return *this;}
127 
132  inline CreateTaskRequest& WithDestinationLocationArn(const char* value) { SetDestinationLocationArn(value); return *this;}
133 
134 
139  inline const Aws::String& GetCloudWatchLogGroupArn() const{ return m_cloudWatchLogGroupArn; }
140 
145  inline bool CloudWatchLogGroupArnHasBeenSet() const { return m_cloudWatchLogGroupArnHasBeenSet; }
146 
151  inline void SetCloudWatchLogGroupArn(const Aws::String& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = value; }
152 
157  inline void SetCloudWatchLogGroupArn(Aws::String&& value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn = std::move(value); }
158 
163  inline void SetCloudWatchLogGroupArn(const char* value) { m_cloudWatchLogGroupArnHasBeenSet = true; m_cloudWatchLogGroupArn.assign(value); }
164 
169  inline CreateTaskRequest& WithCloudWatchLogGroupArn(const Aws::String& value) { SetCloudWatchLogGroupArn(value); return *this;}
170 
175  inline CreateTaskRequest& WithCloudWatchLogGroupArn(Aws::String&& value) { SetCloudWatchLogGroupArn(std::move(value)); return *this;}
176 
181  inline CreateTaskRequest& WithCloudWatchLogGroupArn(const char* value) { SetCloudWatchLogGroupArn(value); return *this;}
182 
183 
188  inline const Aws::String& GetName() const{ return m_name; }
189 
194  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
195 
200  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
201 
206  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
207 
212  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
213 
218  inline CreateTaskRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
219 
224  inline CreateTaskRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
225 
230  inline CreateTaskRequest& WithName(const char* value) { SetName(value); return *this;}
231 
232 
244  inline const Options& GetOptions() const{ return m_options; }
245 
257  inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
258 
270  inline void SetOptions(const Options& value) { m_optionsHasBeenSet = true; m_options = value; }
271 
283  inline void SetOptions(Options&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
284 
296  inline CreateTaskRequest& WithOptions(const Options& value) { SetOptions(value); return *this;}
297 
309  inline CreateTaskRequest& WithOptions(Options&& value) { SetOptions(std::move(value)); return *this;}
310 
311 
318  inline const Aws::Vector<FilterRule>& GetExcludes() const{ return m_excludes; }
319 
326  inline bool ExcludesHasBeenSet() const { return m_excludesHasBeenSet; }
327 
334  inline void SetExcludes(const Aws::Vector<FilterRule>& value) { m_excludesHasBeenSet = true; m_excludes = value; }
335 
342  inline void SetExcludes(Aws::Vector<FilterRule>&& value) { m_excludesHasBeenSet = true; m_excludes = std::move(value); }
343 
350  inline CreateTaskRequest& WithExcludes(const Aws::Vector<FilterRule>& value) { SetExcludes(value); return *this;}
351 
358  inline CreateTaskRequest& WithExcludes(Aws::Vector<FilterRule>&& value) { SetExcludes(std::move(value)); return *this;}
359 
366  inline CreateTaskRequest& AddExcludes(const FilterRule& value) { m_excludesHasBeenSet = true; m_excludes.push_back(value); return *this; }
367 
374  inline CreateTaskRequest& AddExcludes(FilterRule&& value) { m_excludesHasBeenSet = true; m_excludes.push_back(std::move(value)); return *this; }
375 
376 
384  inline const TaskSchedule& GetSchedule() const{ return m_schedule; }
385 
393  inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
394 
402  inline void SetSchedule(const TaskSchedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
403 
411  inline void SetSchedule(TaskSchedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
412 
420  inline CreateTaskRequest& WithSchedule(const TaskSchedule& value) { SetSchedule(value); return *this;}
421 
429  inline CreateTaskRequest& WithSchedule(TaskSchedule&& value) { SetSchedule(std::move(value)); return *this;}
430 
431 
436  inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
437 
442  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
443 
448  inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
449 
454  inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
455 
460  inline CreateTaskRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
461 
466  inline CreateTaskRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
467 
472  inline CreateTaskRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
473 
478  inline CreateTaskRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
479 
480 
487  inline const Aws::Vector<FilterRule>& GetIncludes() const{ return m_includes; }
488 
495  inline bool IncludesHasBeenSet() const { return m_includesHasBeenSet; }
496 
503  inline void SetIncludes(const Aws::Vector<FilterRule>& value) { m_includesHasBeenSet = true; m_includes = value; }
504 
511  inline void SetIncludes(Aws::Vector<FilterRule>&& value) { m_includesHasBeenSet = true; m_includes = std::move(value); }
512 
519  inline CreateTaskRequest& WithIncludes(const Aws::Vector<FilterRule>& value) { SetIncludes(value); return *this;}
520 
527  inline CreateTaskRequest& WithIncludes(Aws::Vector<FilterRule>&& value) { SetIncludes(std::move(value)); return *this;}
528 
535  inline CreateTaskRequest& AddIncludes(const FilterRule& value) { m_includesHasBeenSet = true; m_includes.push_back(value); return *this; }
536 
543  inline CreateTaskRequest& AddIncludes(FilterRule&& value) { m_includesHasBeenSet = true; m_includes.push_back(std::move(value)); return *this; }
544 
545  private:
546 
547  Aws::String m_sourceLocationArn;
548  bool m_sourceLocationArnHasBeenSet;
549 
550  Aws::String m_destinationLocationArn;
551  bool m_destinationLocationArnHasBeenSet;
552 
553  Aws::String m_cloudWatchLogGroupArn;
554  bool m_cloudWatchLogGroupArnHasBeenSet;
555 
556  Aws::String m_name;
557  bool m_nameHasBeenSet;
558 
559  Options m_options;
560  bool m_optionsHasBeenSet;
561 
562  Aws::Vector<FilterRule> m_excludes;
563  bool m_excludesHasBeenSet;
564 
565  TaskSchedule m_schedule;
566  bool m_scheduleHasBeenSet;
567 
569  bool m_tagsHasBeenSet;
570 
571  Aws::Vector<FilterRule> m_includes;
572  bool m_includesHasBeenSet;
573  };
574 
575 } // namespace Model
576 } // namespace DataSync
577 } // namespace Aws
Aws::DataSync::Model::CreateTaskRequest::WithOptions
CreateTaskRequest & WithOptions(const Options &value)
Definition: CreateTaskRequest.h:296
Aws::DataSync::Model::CreateTaskRequest::CloudWatchLogGroupArnHasBeenSet
bool CloudWatchLogGroupArnHasBeenSet() const
Definition: CreateTaskRequest.h:145
Aws::DataSync::Model::CreateTaskRequest::AddTags
CreateTaskRequest & AddTags(TagListEntry &&value)
Definition: CreateTaskRequest.h:478
Aws::DataSync::Model::CreateTaskRequest::GetSourceLocationArn
const Aws::String & GetSourceLocationArn() const
Definition: CreateTaskRequest.h:48
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::DataSync::Model::CreateTaskRequest::WithName
CreateTaskRequest & WithName(Aws::String &&value)
Definition: CreateTaskRequest.h:224
Aws::DataSync::Model::CreateTaskRequest::SetCloudWatchLogGroupArn
void SetCloudWatchLogGroupArn(const char *value)
Definition: CreateTaskRequest.h:163
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DataSync::Model::TagListEntry
Definition: TagListEntry.h:36
Aws::DataSync::Model::CreateTaskRequest::SetOptions
void SetOptions(const Options &value)
Definition: CreateTaskRequest.h:270
Aws::DataSync::Model::CreateTaskRequest::SetSchedule
void SetSchedule(const TaskSchedule &value)
Definition: CreateTaskRequest.h:402
Aws::DataSync::Model::CreateTaskRequest::SetSchedule
void SetSchedule(TaskSchedule &&value)
Definition: CreateTaskRequest.h:411
Aws::DataSync::Model::CreateTaskRequest::WithCloudWatchLogGroupArn
CreateTaskRequest & WithCloudWatchLogGroupArn(const Aws::String &value)
Definition: CreateTaskRequest.h:169
Aws::DataSync::Model::CreateTaskRequest::DestinationLocationArnHasBeenSet
bool DestinationLocationArnHasBeenSet() const
Definition: CreateTaskRequest.h:96
Aws::DataSync::Model::CreateTaskRequest::GetExcludes
const Aws::Vector< FilterRule > & GetExcludes() const
Definition: CreateTaskRequest.h:318
Aws::DataSync::Model::CreateTaskRequest::WithSourceLocationArn
CreateTaskRequest & WithSourceLocationArn(const char *value)
Definition: CreateTaskRequest.h:83
DataSyncRequest.h
Aws::DataSync::Model::CreateTaskRequest::SetSourceLocationArn
void SetSourceLocationArn(Aws::String &&value)
Definition: CreateTaskRequest.h:63
Aws::DataSync::Model::CreateTaskRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DataSync::Model::CreateTaskRequest::SetIncludes
void SetIncludes(Aws::Vector< FilterRule > &&value)
Definition: CreateTaskRequest.h:511
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DataSync::Model::CreateTaskRequest::SetIncludes
void SetIncludes(const Aws::Vector< FilterRule > &value)
Definition: CreateTaskRequest.h:503
Aws::DataSync::Model::CreateTaskRequest::SetDestinationLocationArn
void SetDestinationLocationArn(const Aws::String &value)
Definition: CreateTaskRequest.h:102
Aws::DataSync::Model::CreateTaskRequest::CreateTaskRequest
CreateTaskRequest()
Aws::DataSync::Model::CreateTaskRequest::SetCloudWatchLogGroupArn
void SetCloudWatchLogGroupArn(Aws::String &&value)
Definition: CreateTaskRequest.h:157
Aws::DataSync::Model::Options
Definition: Options.h:54
Aws::DataSync::Model::CreateTaskRequest::AddTags
CreateTaskRequest & AddTags(const TagListEntry &value)
Definition: CreateTaskRequest.h:472
Aws::DataSync::Model::CreateTaskRequest::SetDestinationLocationArn
void SetDestinationLocationArn(Aws::String &&value)
Definition: CreateTaskRequest.h:108
Aws::DataSync::Model::CreateTaskRequest::GetOptions
const Options & GetOptions() const
Definition: CreateTaskRequest.h:244
Aws::DataSync::Model::CreateTaskRequest::ScheduleHasBeenSet
bool ScheduleHasBeenSet() const
Definition: CreateTaskRequest.h:393
Aws::DataSync::Model::CreateTaskRequest::ExcludesHasBeenSet
bool ExcludesHasBeenSet() const
Definition: CreateTaskRequest.h:326
Aws::DataSync::Model::CreateTaskRequest::OptionsHasBeenSet
bool OptionsHasBeenSet() const
Definition: CreateTaskRequest.h:257
AWSVector.h
TaskSchedule.h
Aws::DataSync::Model::CreateTaskRequest::GetIncludes
const Aws::Vector< FilterRule > & GetIncludes() const
Definition: CreateTaskRequest.h:487
Aws::DataSync::Model::CreateTaskRequest::WithExcludes
CreateTaskRequest & WithExcludes(Aws::Vector< FilterRule > &&value)
Definition: CreateTaskRequest.h:358
Aws::DataSync::Model::CreateTaskRequest::WithDestinationLocationArn
CreateTaskRequest & WithDestinationLocationArn(Aws::String &&value)
Definition: CreateTaskRequest.h:126
Aws::DataSync::Model::CreateTaskRequest::WithTags
CreateTaskRequest & WithTags(const Aws::Vector< TagListEntry > &value)
Definition: CreateTaskRequest.h:460
Aws::DataSync::Model::CreateTaskRequest::SetExcludes
void SetExcludes(const Aws::Vector< FilterRule > &value)
Definition: CreateTaskRequest.h:334
Aws::DataSync::Model::CreateTaskRequest::SetSourceLocationArn
void SetSourceLocationArn(const Aws::String &value)
Definition: CreateTaskRequest.h:58
Aws::DataSync::Model::CreateTaskRequest::WithCloudWatchLogGroupArn
CreateTaskRequest & WithCloudWatchLogGroupArn(Aws::String &&value)
Definition: CreateTaskRequest.h:175
Aws::DataSync::Model::CreateTaskRequest::WithDestinationLocationArn
CreateTaskRequest & WithDestinationLocationArn(const Aws::String &value)
Definition: CreateTaskRequest.h:120
Aws::DataSync::Model::TaskSchedule
Definition: TaskSchedule.h:35
Aws::DataSync::Model::CreateTaskRequest::SetExcludes
void SetExcludes(Aws::Vector< FilterRule > &&value)
Definition: CreateTaskRequest.h:342
Aws::DataSync::Model::CreateTaskRequest::AddIncludes
CreateTaskRequest & AddIncludes(FilterRule &&value)
Definition: CreateTaskRequest.h:543
TagListEntry.h
Aws::DataSync::Model::CreateTaskRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DataSync::Model::CreateTaskRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateTaskRequest.h:194
Aws::DataSync::Model::CreateTaskRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateTaskRequest.h:200
Aws::DataSync::Model::CreateTaskRequest::SetTags
void SetTags(Aws::Vector< TagListEntry > &&value)
Definition: CreateTaskRequest.h:454
Aws::DataSync::Model::CreateTaskRequest::SetName
void SetName(const char *value)
Definition: CreateTaskRequest.h:212
AWSString.h
Aws::DataSync::Model::CreateTaskRequest::WithSchedule
CreateTaskRequest & WithSchedule(const TaskSchedule &value)
Definition: CreateTaskRequest.h:420
DataSync_EXPORTS.h
Aws::DataSync::Model::CreateTaskRequest::IncludesHasBeenSet
bool IncludesHasBeenSet() const
Definition: CreateTaskRequest.h:495
Aws::DataSync::Model::CreateTaskRequest::WithIncludes
CreateTaskRequest & WithIncludes(const Aws::Vector< FilterRule > &value)
Definition: CreateTaskRequest.h:519
Aws::DataSync::Model::FilterRule
Definition: FilterRule.h:34
FilterRule.h
Aws::DataSync::Model::CreateTaskRequest
Definition: CreateTaskRequest.h:30
Aws::DataSync::Model::CreateTaskRequest::WithDestinationLocationArn
CreateTaskRequest & WithDestinationLocationArn(const char *value)
Definition: CreateTaskRequest.h:132
Aws::DataSync::Model::CreateTaskRequest::SetDestinationLocationArn
void SetDestinationLocationArn(const char *value)
Definition: CreateTaskRequest.h:114
Aws::DataSync::Model::CreateTaskRequest::WithSourceLocationArn
CreateTaskRequest & WithSourceLocationArn(Aws::String &&value)
Definition: CreateTaskRequest.h:78
Aws::DataSync::Model::CreateTaskRequest::WithTags
CreateTaskRequest & WithTags(Aws::Vector< TagListEntry > &&value)
Definition: CreateTaskRequest.h:466
Aws::DataSync::Model::CreateTaskRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateTaskRequest.h:206
Aws::DataSync::Model::CreateTaskRequest::AddIncludes
CreateTaskRequest & AddIncludes(const FilterRule &value)
Definition: CreateTaskRequest.h:535
Aws::DataSync::Model::CreateTaskRequest::SetCloudWatchLogGroupArn
void SetCloudWatchLogGroupArn(const Aws::String &value)
Definition: CreateTaskRequest.h:151
Aws::DataSync::Model::CreateTaskRequest::GetTags
const Aws::Vector< TagListEntry > & GetTags() const
Definition: CreateTaskRequest.h:436
Aws::DataSync::Model::CreateTaskRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTaskRequest.h:38
Aws::DataSync::Model::CreateTaskRequest::SetSourceLocationArn
void SetSourceLocationArn(const char *value)
Definition: CreateTaskRequest.h:68
Aws::DataSync::Model::CreateTaskRequest::GetName
const Aws::String & GetName() const
Definition: CreateTaskRequest.h:188
Aws::DataSync::DataSyncRequest
Definition: DataSyncRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::CreateTaskRequest::SetOptions
void SetOptions(Options &&value)
Definition: CreateTaskRequest.h:283
Aws::DataSync::Model::CreateTaskRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateTaskRequest.h:442
Aws::DataSync::Model::CreateTaskRequest::WithName
CreateTaskRequest & WithName(const Aws::String &value)
Definition: CreateTaskRequest.h:218
Aws::DataSync::Model::CreateTaskRequest::GetDestinationLocationArn
const Aws::String & GetDestinationLocationArn() const
Definition: CreateTaskRequest.h:90
Aws::DataSync::Model::CreateTaskRequest::WithCloudWatchLogGroupArn
CreateTaskRequest & WithCloudWatchLogGroupArn(const char *value)
Definition: CreateTaskRequest.h:181
Aws::DataSync::Model::CreateTaskRequest::WithOptions
CreateTaskRequest & WithOptions(Options &&value)
Definition: CreateTaskRequest.h:309
Aws::DataSync::Model::CreateTaskRequest::AddExcludes
CreateTaskRequest & AddExcludes(const FilterRule &value)
Definition: CreateTaskRequest.h:366
Aws::DataSync::Model::CreateTaskRequest::WithSourceLocationArn
CreateTaskRequest & WithSourceLocationArn(const Aws::String &value)
Definition: CreateTaskRequest.h:73
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Options.h
Aws::DataSync::Model::CreateTaskRequest::WithExcludes
CreateTaskRequest & WithExcludes(const Aws::Vector< FilterRule > &value)
Definition: CreateTaskRequest.h:350
Aws::DataSync::Model::CreateTaskRequest::WithName
CreateTaskRequest & WithName(const char *value)
Definition: CreateTaskRequest.h:230
Aws::DataSync::Model::CreateTaskRequest::AddExcludes
CreateTaskRequest & AddExcludes(FilterRule &&value)
Definition: CreateTaskRequest.h:374
Aws::DataSync::Model::CreateTaskRequest::WithSchedule
CreateTaskRequest & WithSchedule(TaskSchedule &&value)
Definition: CreateTaskRequest.h:429
Aws::DataSync::Model::CreateTaskRequest::WithIncludes
CreateTaskRequest & WithIncludes(Aws::Vector< FilterRule > &&value)
Definition: CreateTaskRequest.h:527
Aws::DataSync::Model::CreateTaskRequest::SetTags
void SetTags(const Aws::Vector< TagListEntry > &value)
Definition: CreateTaskRequest.h:448
Aws::DataSync::Model::CreateTaskRequest::GetCloudWatchLogGroupArn
const Aws::String & GetCloudWatchLogGroupArn() const
Definition: CreateTaskRequest.h:139
Aws::DataSync::Model::CreateTaskRequest::GetSchedule
const TaskSchedule & GetSchedule() const
Definition: CreateTaskRequest.h:384
Aws::DataSync::Model::CreateTaskRequest::SourceLocationArnHasBeenSet
bool SourceLocationArnHasBeenSet() const
Definition: CreateTaskRequest.h:53