AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTaskArn(const Aws::String& value) { m_taskArnHasBeenSet = true; m_taskArn = value; }
54 inline void SetTaskArn(Aws::String&& value) { m_taskArnHasBeenSet = true; m_taskArn = std::move(value); }
55 inline void SetTaskArn(const char* value) { m_taskArnHasBeenSet = true; m_taskArn.assign(value); }
56 inline StartTaskExecutionRequest& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;}
57 inline StartTaskExecutionRequest& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;}
58 inline StartTaskExecutionRequest& WithTaskArn(const char* value) { SetTaskArn(value); return *this;}
60
62
63 inline const Options& GetOverrideOptions() const{ return m_overrideOptions; }
64 inline bool OverrideOptionsHasBeenSet() const { return m_overrideOptionsHasBeenSet; }
65 inline void SetOverrideOptions(const Options& value) { m_overrideOptionsHasBeenSet = true; m_overrideOptions = value; }
66 inline void SetOverrideOptions(Options&& value) { m_overrideOptionsHasBeenSet = true; m_overrideOptions = std::move(value); }
67 inline StartTaskExecutionRequest& WithOverrideOptions(const Options& value) { SetOverrideOptions(value); return *this;}
68 inline StartTaskExecutionRequest& WithOverrideOptions(Options&& value) { SetOverrideOptions(std::move(value)); return *this;}
70
72
78 inline const Aws::Vector<FilterRule>& GetIncludes() const{ return m_includes; }
79 inline bool IncludesHasBeenSet() const { return m_includesHasBeenSet; }
80 inline void SetIncludes(const Aws::Vector<FilterRule>& value) { m_includesHasBeenSet = true; m_includes = value; }
81 inline void SetIncludes(Aws::Vector<FilterRule>&& value) { m_includesHasBeenSet = true; m_includes = std::move(value); }
82 inline StartTaskExecutionRequest& WithIncludes(const Aws::Vector<FilterRule>& value) { SetIncludes(value); return *this;}
83 inline StartTaskExecutionRequest& WithIncludes(Aws::Vector<FilterRule>&& value) { SetIncludes(std::move(value)); return *this;}
84 inline StartTaskExecutionRequest& AddIncludes(const FilterRule& value) { m_includesHasBeenSet = true; m_includes.push_back(value); return *this; }
85 inline StartTaskExecutionRequest& AddIncludes(FilterRule&& value) { m_includesHasBeenSet = true; m_includes.push_back(std::move(value)); return *this; }
87
89
95 inline const Aws::Vector<FilterRule>& GetExcludes() const{ return m_excludes; }
96 inline bool ExcludesHasBeenSet() const { return m_excludesHasBeenSet; }
97 inline void SetExcludes(const Aws::Vector<FilterRule>& value) { m_excludesHasBeenSet = true; m_excludes = value; }
98 inline void SetExcludes(Aws::Vector<FilterRule>&& value) { m_excludesHasBeenSet = true; m_excludes = std::move(value); }
99 inline StartTaskExecutionRequest& WithExcludes(const Aws::Vector<FilterRule>& value) { SetExcludes(value); return *this;}
100 inline StartTaskExecutionRequest& WithExcludes(Aws::Vector<FilterRule>&& value) { SetExcludes(std::move(value)); return *this;}
101 inline StartTaskExecutionRequest& AddExcludes(const FilterRule& value) { m_excludesHasBeenSet = true; m_excludes.push_back(value); return *this; }
102 inline StartTaskExecutionRequest& AddExcludes(FilterRule&& value) { m_excludesHasBeenSet = true; m_excludes.push_back(std::move(value)); return *this; }
104
106
117 inline const ManifestConfig& GetManifestConfig() const{ return m_manifestConfig; }
118 inline bool ManifestConfigHasBeenSet() const { return m_manifestConfigHasBeenSet; }
119 inline void SetManifestConfig(const ManifestConfig& value) { m_manifestConfigHasBeenSet = true; m_manifestConfig = value; }
120 inline void SetManifestConfig(ManifestConfig&& value) { m_manifestConfigHasBeenSet = true; m_manifestConfig = std::move(value); }
122 inline StartTaskExecutionRequest& WithManifestConfig(ManifestConfig&& value) { SetManifestConfig(std::move(value)); return *this;}
124
126
137 inline const TaskReportConfig& GetTaskReportConfig() const{ return m_taskReportConfig; }
138 inline bool TaskReportConfigHasBeenSet() const { return m_taskReportConfigHasBeenSet; }
139 inline void SetTaskReportConfig(const TaskReportConfig& value) { m_taskReportConfigHasBeenSet = true; m_taskReportConfig = value; }
140 inline void SetTaskReportConfig(TaskReportConfig&& value) { m_taskReportConfigHasBeenSet = true; m_taskReportConfig = std::move(value); }
142 inline StartTaskExecutionRequest& WithTaskReportConfig(TaskReportConfig&& value) { SetTaskReportConfig(std::move(value)); return *this;}
144
146
151 inline const Aws::Vector<TagListEntry>& GetTags() const{ return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 inline void SetTags(const Aws::Vector<TagListEntry>& value) { m_tagsHasBeenSet = true; m_tags = value; }
154 inline void SetTags(Aws::Vector<TagListEntry>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
155 inline StartTaskExecutionRequest& WithTags(const Aws::Vector<TagListEntry>& value) { SetTags(value); return *this;}
156 inline StartTaskExecutionRequest& WithTags(Aws::Vector<TagListEntry>&& value) { SetTags(std::move(value)); return *this;}
157 inline StartTaskExecutionRequest& AddTags(const TagListEntry& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
158 inline StartTaskExecutionRequest& AddTags(TagListEntry&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
160 private:
161
162 Aws::String m_taskArn;
163 bool m_taskArnHasBeenSet = false;
164
165 Options m_overrideOptions;
166 bool m_overrideOptionsHasBeenSet = false;
167
168 Aws::Vector<FilterRule> m_includes;
169 bool m_includesHasBeenSet = false;
170
171 Aws::Vector<FilterRule> m_excludes;
172 bool m_excludesHasBeenSet = false;
173
174 ManifestConfig m_manifestConfig;
175 bool m_manifestConfigHasBeenSet = false;
176
177 TaskReportConfig m_taskReportConfig;
178 bool m_taskReportConfigHasBeenSet = false;
179
181 bool m_tagsHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace DataSync
186} // namespace Aws
void SetIncludes(Aws::Vector< FilterRule > &&value)
StartTaskExecutionRequest & WithManifestConfig(ManifestConfig &&value)
StartTaskExecutionRequest & WithTaskReportConfig(const TaskReportConfig &value)
StartTaskExecutionRequest & WithExcludes(Aws::Vector< FilterRule > &&value)
StartTaskExecutionRequest & WithOverrideOptions(Options &&value)
StartTaskExecutionRequest & WithManifestConfig(const ManifestConfig &value)
StartTaskExecutionRequest & WithTaskArn(const Aws::String &value)
void SetTaskReportConfig(const TaskReportConfig &value)
StartTaskExecutionRequest & WithTags(const Aws::Vector< TagListEntry > &value)
StartTaskExecutionRequest & WithExcludes(const Aws::Vector< FilterRule > &value)
const Aws::Vector< FilterRule > & GetExcludes() const
StartTaskExecutionRequest & AddExcludes(const FilterRule &value)
void SetTags(Aws::Vector< TagListEntry > &&value)
const Aws::Vector< TagListEntry > & GetTags() const
StartTaskExecutionRequest & AddIncludes(FilterRule &&value)
StartTaskExecutionRequest & AddIncludes(const FilterRule &value)
StartTaskExecutionRequest & AddExcludes(FilterRule &&value)
StartTaskExecutionRequest & WithOverrideOptions(const Options &value)
StartTaskExecutionRequest & WithIncludes(Aws::Vector< FilterRule > &&value)
void SetExcludes(const Aws::Vector< FilterRule > &value)
StartTaskExecutionRequest & WithTaskReportConfig(TaskReportConfig &&value)
StartTaskExecutionRequest & WithTags(Aws::Vector< TagListEntry > &&value)
StartTaskExecutionRequest & AddTags(const TagListEntry &value)
void SetTags(const Aws::Vector< TagListEntry > &value)
StartTaskExecutionRequest & WithTaskArn(const char *value)
void SetExcludes(Aws::Vector< FilterRule > &&value)
StartTaskExecutionRequest & WithTaskArn(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartTaskExecutionRequest & AddTags(TagListEntry &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
const Aws::Vector< FilterRule > & GetIncludes() const
void SetIncludes(const Aws::Vector< FilterRule > &value)
StartTaskExecutionRequest & WithIncludes(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