AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
StartTaskExecutionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datasync/DataSyncRequest.h>
10#include <aws/datasync/DataSync_EXPORTS.h>
11#include <aws/datasync/model/FilterRule.h>
12#include <aws/datasync/model/ManifestConfig.h>
13#include <aws/datasync/model/Options.h>
14#include <aws/datasync/model/TagListEntry.h>
15#include <aws/datasync/model/TaskReportConfig.h>
16
17#include <utility>
18
19namespace Aws {
20namespace DataSync {
21namespace Model {
22
29 public:
30 AWS_DATASYNC_API StartTaskExecutionRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "StartTaskExecution"; }
37
38 AWS_DATASYNC_API Aws::String SerializePayload() const override;
39
41
43
47 inline const Aws::String& GetTaskArn() const { return m_taskArn; }
48 inline bool TaskArnHasBeenSet() const { return m_taskArnHasBeenSet; }
49 template <typename TaskArnT = Aws::String>
50 void SetTaskArn(TaskArnT&& value) {
51 m_taskArnHasBeenSet = true;
52 m_taskArn = std::forward<TaskArnT>(value);
53 }
54 template <typename TaskArnT = Aws::String>
56 SetTaskArn(std::forward<TaskArnT>(value));
57 return *this;
58 }
60
62
63 inline const Options& GetOverrideOptions() const { return m_overrideOptions; }
64 inline bool OverrideOptionsHasBeenSet() const { return m_overrideOptionsHasBeenSet; }
65 template <typename OverrideOptionsT = Options>
66 void SetOverrideOptions(OverrideOptionsT&& value) {
67 m_overrideOptionsHasBeenSet = true;
68 m_overrideOptions = std::forward<OverrideOptionsT>(value);
69 }
70 template <typename OverrideOptionsT = Options>
72 SetOverrideOptions(std::forward<OverrideOptionsT>(value));
73 return *this;
74 }
76
78
84 inline const Aws::Vector<FilterRule>& GetIncludes() const { return m_includes; }
85 inline bool IncludesHasBeenSet() const { return m_includesHasBeenSet; }
86 template <typename IncludesT = Aws::Vector<FilterRule>>
87 void SetIncludes(IncludesT&& value) {
88 m_includesHasBeenSet = true;
89 m_includes = std::forward<IncludesT>(value);
90 }
91 template <typename IncludesT = Aws::Vector<FilterRule>>
93 SetIncludes(std::forward<IncludesT>(value));
94 return *this;
95 }
96 template <typename IncludesT = FilterRule>
98 m_includesHasBeenSet = true;
99 m_includes.emplace_back(std::forward<IncludesT>(value));
100 return *this;
101 }
103
105
111 inline const Aws::Vector<FilterRule>& GetExcludes() const { return m_excludes; }
112 inline bool ExcludesHasBeenSet() const { return m_excludesHasBeenSet; }
113 template <typename ExcludesT = Aws::Vector<FilterRule>>
114 void SetExcludes(ExcludesT&& value) {
115 m_excludesHasBeenSet = true;
116 m_excludes = std::forward<ExcludesT>(value);
117 }
118 template <typename ExcludesT = Aws::Vector<FilterRule>>
120 SetExcludes(std::forward<ExcludesT>(value));
121 return *this;
122 }
123 template <typename ExcludesT = FilterRule>
125 m_excludesHasBeenSet = true;
126 m_excludes.emplace_back(std::forward<ExcludesT>(value));
127 return *this;
128 }
130
132
143 inline const ManifestConfig& GetManifestConfig() const { return m_manifestConfig; }
144 inline bool ManifestConfigHasBeenSet() const { return m_manifestConfigHasBeenSet; }
145 template <typename ManifestConfigT = ManifestConfig>
146 void SetManifestConfig(ManifestConfigT&& value) {
147 m_manifestConfigHasBeenSet = true;
148 m_manifestConfig = std::forward<ManifestConfigT>(value);
149 }
150 template <typename ManifestConfigT = ManifestConfig>
152 SetManifestConfig(std::forward<ManifestConfigT>(value));
153 return *this;
154 }
156
158
169 inline const TaskReportConfig& GetTaskReportConfig() const { return m_taskReportConfig; }
170 inline bool TaskReportConfigHasBeenSet() const { return m_taskReportConfigHasBeenSet; }
171 template <typename TaskReportConfigT = TaskReportConfig>
172 void SetTaskReportConfig(TaskReportConfigT&& value) {
173 m_taskReportConfigHasBeenSet = true;
174 m_taskReportConfig = std::forward<TaskReportConfigT>(value);
175 }
176 template <typename TaskReportConfigT = TaskReportConfig>
178 SetTaskReportConfig(std::forward<TaskReportConfigT>(value));
179 return *this;
180 }
182
184
189 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
190 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
191 template <typename TagsT = Aws::Vector<TagListEntry>>
192 void SetTags(TagsT&& value) {
193 m_tagsHasBeenSet = true;
194 m_tags = std::forward<TagsT>(value);
195 }
196 template <typename TagsT = Aws::Vector<TagListEntry>>
198 SetTags(std::forward<TagsT>(value));
199 return *this;
200 }
201 template <typename TagsT = TagListEntry>
203 m_tagsHasBeenSet = true;
204 m_tags.emplace_back(std::forward<TagsT>(value));
205 return *this;
206 }
208 private:
209 Aws::String m_taskArn;
210
211 Options m_overrideOptions;
212
213 Aws::Vector<FilterRule> m_includes;
214
215 Aws::Vector<FilterRule> m_excludes;
216
217 ManifestConfig m_manifestConfig;
218
219 TaskReportConfig m_taskReportConfig;
220
222 bool m_taskArnHasBeenSet = false;
223 bool m_overrideOptionsHasBeenSet = false;
224 bool m_includesHasBeenSet = false;
225 bool m_excludesHasBeenSet = false;
226 bool m_manifestConfigHasBeenSet = false;
227 bool m_taskReportConfigHasBeenSet = false;
228 bool m_tagsHasBeenSet = false;
229};
230
231} // namespace Model
232} // namespace DataSync
233} // 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