AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
RegisterDaemonTaskDefinitionRequest.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/ecs/ECSRequest.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/DaemonContainerDefinition.h>
12#include <aws/ecs/model/DaemonVolume.h>
13#include <aws/ecs/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ECS {
19namespace Model {
20
24 public:
25 AWS_ECS_API RegisterDaemonTaskDefinitionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "RegisterDaemonTaskDefinition"; }
32
33 AWS_ECS_API Aws::String SerializePayload() const override;
34
36
38
43 inline const Aws::String& GetFamily() const { return m_family; }
44 inline bool FamilyHasBeenSet() const { return m_familyHasBeenSet; }
45 template <typename FamilyT = Aws::String>
46 void SetFamily(FamilyT&& value) {
47 m_familyHasBeenSet = true;
48 m_family = std::forward<FamilyT>(value);
49 }
50 template <typename FamilyT = Aws::String>
52 SetFamily(std::forward<FamilyT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetTaskRoleArn() const { return m_taskRoleArn; }
64 inline bool TaskRoleArnHasBeenSet() const { return m_taskRoleArnHasBeenSet; }
65 template <typename TaskRoleArnT = Aws::String>
66 void SetTaskRoleArn(TaskRoleArnT&& value) {
67 m_taskRoleArnHasBeenSet = true;
68 m_taskRoleArn = std::forward<TaskRoleArnT>(value);
69 }
70 template <typename TaskRoleArnT = Aws::String>
72 SetTaskRoleArn(std::forward<TaskRoleArnT>(value));
73 return *this;
74 }
76
78
84 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
85 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
86 template <typename ExecutionRoleArnT = Aws::String>
87 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
88 m_executionRoleArnHasBeenSet = true;
89 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
90 }
91 template <typename ExecutionRoleArnT = Aws::String>
93 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::Vector<DaemonContainerDefinition>& GetContainerDefinitions() const { return m_containerDefinitions; }
104 inline bool ContainerDefinitionsHasBeenSet() const { return m_containerDefinitionsHasBeenSet; }
105 template <typename ContainerDefinitionsT = Aws::Vector<DaemonContainerDefinition>>
106 void SetContainerDefinitions(ContainerDefinitionsT&& value) {
107 m_containerDefinitionsHasBeenSet = true;
108 m_containerDefinitions = std::forward<ContainerDefinitionsT>(value);
109 }
110 template <typename ContainerDefinitionsT = Aws::Vector<DaemonContainerDefinition>>
112 SetContainerDefinitions(std::forward<ContainerDefinitionsT>(value));
113 return *this;
114 }
115 template <typename ContainerDefinitionsT = DaemonContainerDefinition>
117 m_containerDefinitionsHasBeenSet = true;
118 m_containerDefinitions.emplace_back(std::forward<ContainerDefinitionsT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::String& GetCpu() const { return m_cpu; }
129 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
130 template <typename CpuT = Aws::String>
131 void SetCpu(CpuT&& value) {
132 m_cpuHasBeenSet = true;
133 m_cpu = std::forward<CpuT>(value);
134 }
135 template <typename CpuT = Aws::String>
137 SetCpu(std::forward<CpuT>(value));
138 return *this;
139 }
141
143
147 inline const Aws::String& GetMemory() const { return m_memory; }
148 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
149 template <typename MemoryT = Aws::String>
150 void SetMemory(MemoryT&& value) {
151 m_memoryHasBeenSet = true;
152 m_memory = std::forward<MemoryT>(value);
153 }
154 template <typename MemoryT = Aws::String>
156 SetMemory(std::forward<MemoryT>(value));
157 return *this;
158 }
160
162
166 inline const Aws::Vector<DaemonVolume>& GetVolumes() const { return m_volumes; }
167 inline bool VolumesHasBeenSet() const { return m_volumesHasBeenSet; }
168 template <typename VolumesT = Aws::Vector<DaemonVolume>>
169 void SetVolumes(VolumesT&& value) {
170 m_volumesHasBeenSet = true;
171 m_volumes = std::forward<VolumesT>(value);
172 }
173 template <typename VolumesT = Aws::Vector<DaemonVolume>>
175 SetVolumes(std::forward<VolumesT>(value));
176 return *this;
177 }
178 template <typename VolumesT = DaemonVolume>
180 m_volumesHasBeenSet = true;
181 m_volumes.emplace_back(std::forward<VolumesT>(value));
182 return *this;
183 }
185
187
206 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
207 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
208 template <typename TagsT = Aws::Vector<Tag>>
209 void SetTags(TagsT&& value) {
210 m_tagsHasBeenSet = true;
211 m_tags = std::forward<TagsT>(value);
212 }
213 template <typename TagsT = Aws::Vector<Tag>>
215 SetTags(std::forward<TagsT>(value));
216 return *this;
217 }
218 template <typename TagsT = Tag>
220 m_tagsHasBeenSet = true;
221 m_tags.emplace_back(std::forward<TagsT>(value));
222 return *this;
223 }
225 private:
226 Aws::String m_family;
227
228 Aws::String m_taskRoleArn;
229
230 Aws::String m_executionRoleArn;
231
232 Aws::Vector<DaemonContainerDefinition> m_containerDefinitions;
233
234 Aws::String m_cpu;
235
236 Aws::String m_memory;
237
239
240 Aws::Vector<Tag> m_tags;
241 bool m_familyHasBeenSet = false;
242 bool m_taskRoleArnHasBeenSet = false;
243 bool m_executionRoleArnHasBeenSet = false;
244 bool m_containerDefinitionsHasBeenSet = false;
245 bool m_cpuHasBeenSet = false;
246 bool m_memoryHasBeenSet = false;
247 bool m_volumesHasBeenSet = false;
248 bool m_tagsHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace ECS
253} // namespace Aws
RegisterDaemonTaskDefinitionRequest & WithMemory(MemoryT &&value)
RegisterDaemonTaskDefinitionRequest & AddContainerDefinitions(ContainerDefinitionsT &&value)
const Aws::Vector< DaemonContainerDefinition > & GetContainerDefinitions() const
RegisterDaemonTaskDefinitionRequest & AddVolumes(VolumesT &&value)
RegisterDaemonTaskDefinitionRequest & AddTags(TagsT &&value)
RegisterDaemonTaskDefinitionRequest & WithCpu(CpuT &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RegisterDaemonTaskDefinitionRequest & WithTags(TagsT &&value)
RegisterDaemonTaskDefinitionRequest & WithTaskRoleArn(TaskRoleArnT &&value)
AWS_ECS_API Aws::String SerializePayload() const override
RegisterDaemonTaskDefinitionRequest & WithVolumes(VolumesT &&value)
RegisterDaemonTaskDefinitionRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
RegisterDaemonTaskDefinitionRequest & WithFamily(FamilyT &&value)
RegisterDaemonTaskDefinitionRequest & WithContainerDefinitions(ContainerDefinitionsT &&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