AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartTaskExecutionRequest.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/ManifestConfig.h>
13#include <aws/datasync/model/TaskReportConfig.h>
14#include <aws/datasync/model/FilterRule.h>
15#include <aws/datasync/model/TagListEntry.h>
16#include <utility>
17
18namespace Aws
19{
20namespace DataSync
21{
22namespace Model
23{
24
31 {
32 public:
33 AWS_DATASYNC_API StartTaskExecutionRequest() = 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 "StartTaskExecution"; }
40
41 AWS_DATASYNC_API Aws::String SerializePayload() const override;
42
44
45
47
51 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
52 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
53 template<typename TaskArnT = Aws::String>
54 void SetTaskArn(TaskArnT&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::forward<TaskArnT>(value); }
55 template<typename TaskArnT = Aws::String>
56 StartTaskExecutionRequest& WithTaskArn(TaskArnT&& value) { SetTaskArn(std::forward<TaskArnT>(value)); return *this;}
58
60
61 inline const Options& GetOverrideOptions() const { return m_overrideOptions; }
62 inline bool OverrideOptionsHasBeenSet() const { return m_overrideOptionsHasBeenSet; }
63 template<typename OverrideOptionsT = Options>
64 void SetOverrideOptions(OverrideOptionsT&& value) { m_overrideOptionsHasBeenSet = true; m_overrideOptions = std::forward<OverrideOptionsT>(value); }
65 template<typename OverrideOptionsT = Options>
66 StartTaskExecutionRequest& WithOverrideOptions(OverrideOptionsT&& value) { SetOverrideOptions(std::forward<OverrideOptionsT>(value)); return *this;}
68
70
76 inline const Aws::Vector<FilterRule>& GetIncludes() const { return m_includes; }
77 inline bool IncludesHasBeenSet() const { return m_includesHasBeenSet; }
78 template<typename IncludesT = Aws::Vector<FilterRule>>
79 void SetIncludes(IncludesT&& value) { m_includesHasBeenSet = true; m_includes = std::forward<IncludesT>(value); }
80 template<typename IncludesT = Aws::Vector<FilterRule>>
81 StartTaskExecutionRequest& WithIncludes(IncludesT&& value) { SetIncludes(std::forward<IncludesT>(value)); return *this;}
82 template<typename IncludesT = FilterRule>
83 StartTaskExecutionRequest& AddIncludes(IncludesT&& value) { m_includesHasBeenSet = true; m_includes.emplace_back(std::forward<IncludesT>(value)); return *this; }
85
87
93 inline const Aws::Vector<FilterRule>& GetExcludes() const { return m_excludes; }
94 inline bool ExcludesHasBeenSet() const { return m_excludesHasBeenSet; }
95 template<typename ExcludesT = Aws::Vector<FilterRule>>
96 void SetExcludes(ExcludesT&& value) { m_excludesHasBeenSet = true; m_excludes = std::forward<ExcludesT>(value); }
97 template<typename ExcludesT = Aws::Vector<FilterRule>>
98 StartTaskExecutionRequest& WithExcludes(ExcludesT&& value) { SetExcludes(std::forward<ExcludesT>(value)); return *this;}
99 template<typename ExcludesT = FilterRule>
100 StartTaskExecutionRequest& AddExcludes(ExcludesT&& value) { m_excludesHasBeenSet = true; m_excludes.emplace_back(std::forward<ExcludesT>(value)); return *this; }
102
104
115 inline const ManifestConfig& GetManifestConfig() const { return m_manifestConfig; }
116 inline bool ManifestConfigHasBeenSet() const { return m_manifestConfigHasBeenSet; }
117 template<typename ManifestConfigT = ManifestConfig>
118 void SetManifestConfig(ManifestConfigT&& value) { m_manifestConfigHasBeenSet = true; m_manifestConfig = std::forward<ManifestConfigT>(value); }
119 template<typename ManifestConfigT = ManifestConfig>
120 StartTaskExecutionRequest& WithManifestConfig(ManifestConfigT&& value) { SetManifestConfig(std::forward<ManifestConfigT>(value)); return *this;}
122
124
135 inline const TaskReportConfig& GetTaskReportConfig() const { return m_taskReportConfig; }
136 inline bool TaskReportConfigHasBeenSet() const { return m_taskReportConfigHasBeenSet; }
137 template<typename TaskReportConfigT = TaskReportConfig>
138 void SetTaskReportConfig(TaskReportConfigT&& value) { m_taskReportConfigHasBeenSet = true; m_taskReportConfig = std::forward<TaskReportConfigT>(value); }
139 template<typename TaskReportConfigT = TaskReportConfig>
140 StartTaskExecutionRequest& WithTaskReportConfig(TaskReportConfigT&& value) { SetTaskReportConfig(std::forward<TaskReportConfigT>(value)); return *this;}
142
144
149 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 template<typename TagsT = Aws::Vector<TagListEntry>>
152 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
153 template<typename TagsT = Aws::Vector<TagListEntry>>
154 StartTaskExecutionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
155 template<typename TagsT = TagListEntry>
156 StartTaskExecutionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
158 private:
159
160 Aws::String m_taskArn;
161 bool m_taskArnHasBeenSet = false;
162
163 Options m_overrideOptions;
164 bool m_overrideOptionsHasBeenSet = false;
165
166 Aws::Vector<FilterRule> m_includes;
167 bool m_includesHasBeenSet = false;
168
169 Aws::Vector<FilterRule> m_excludes;
170 bool m_excludesHasBeenSet = false;
171
172 ManifestConfig m_manifestConfig;
173 bool m_manifestConfigHasBeenSet = false;
174
175 TaskReportConfig m_taskReportConfig;
176 bool m_taskReportConfigHasBeenSet = false;
177
179 bool m_tagsHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace DataSync
184} // namespace Aws
const Aws::Vector< FilterRule > & GetExcludes() const
StartTaskExecutionRequest & AddExcludes(ExcludesT &&value)
AWS_DATASYNC_API StartTaskExecutionRequest()=default
const Aws::Vector< TagListEntry > & GetTags() const
StartTaskExecutionRequest & WithTaskArn(TaskArnT &&value)
StartTaskExecutionRequest & WithExcludes(ExcludesT &&value)
StartTaskExecutionRequest & WithOverrideOptions(OverrideOptionsT &&value)
StartTaskExecutionRequest & WithIncludes(IncludesT &&value)
StartTaskExecutionRequest & WithTaskReportConfig(TaskReportConfigT &&value)
StartTaskExecutionRequest & WithManifestConfig(ManifestConfigT &&value)
StartTaskExecutionRequest & AddTags(TagsT &&value)
StartTaskExecutionRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartTaskExecutionRequest & AddIncludes(IncludesT &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
const Aws::Vector< FilterRule > & GetIncludes() const
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