AWS SDK for C++  1.9.40
AWS SDK for C++
TaskOverride.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace ECS
26 {
27 namespace Model
28 {
29 
36  {
37  public:
42 
43 
47  inline const Aws::Vector<ContainerOverride>& GetContainerOverrides() const{ return m_containerOverrides; }
48 
52  inline bool ContainerOverridesHasBeenSet() const { return m_containerOverridesHasBeenSet; }
53 
57  inline void SetContainerOverrides(const Aws::Vector<ContainerOverride>& value) { m_containerOverridesHasBeenSet = true; m_containerOverrides = value; }
58 
62  inline void SetContainerOverrides(Aws::Vector<ContainerOverride>&& value) { m_containerOverridesHasBeenSet = true; m_containerOverrides = std::move(value); }
63 
67  inline TaskOverride& WithContainerOverrides(const Aws::Vector<ContainerOverride>& value) { SetContainerOverrides(value); return *this;}
68 
72  inline TaskOverride& WithContainerOverrides(Aws::Vector<ContainerOverride>&& value) { SetContainerOverrides(std::move(value)); return *this;}
73 
77  inline TaskOverride& AddContainerOverrides(const ContainerOverride& value) { m_containerOverridesHasBeenSet = true; m_containerOverrides.push_back(value); return *this; }
78 
82  inline TaskOverride& AddContainerOverrides(ContainerOverride&& value) { m_containerOverridesHasBeenSet = true; m_containerOverrides.push_back(std::move(value)); return *this; }
83 
84 
88  inline const Aws::String& GetCpu() const{ return m_cpu; }
89 
93  inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
94 
98  inline void SetCpu(const Aws::String& value) { m_cpuHasBeenSet = true; m_cpu = value; }
99 
103  inline void SetCpu(Aws::String&& value) { m_cpuHasBeenSet = true; m_cpu = std::move(value); }
104 
108  inline void SetCpu(const char* value) { m_cpuHasBeenSet = true; m_cpu.assign(value); }
109 
113  inline TaskOverride& WithCpu(const Aws::String& value) { SetCpu(value); return *this;}
114 
118  inline TaskOverride& WithCpu(Aws::String&& value) { SetCpu(std::move(value)); return *this;}
119 
123  inline TaskOverride& WithCpu(const char* value) { SetCpu(value); return *this;}
124 
125 
129  inline const Aws::Vector<InferenceAcceleratorOverride>& GetInferenceAcceleratorOverrides() const{ return m_inferenceAcceleratorOverrides; }
130 
134  inline bool InferenceAcceleratorOverridesHasBeenSet() const { return m_inferenceAcceleratorOverridesHasBeenSet; }
135 
139  inline void SetInferenceAcceleratorOverrides(const Aws::Vector<InferenceAcceleratorOverride>& value) { m_inferenceAcceleratorOverridesHasBeenSet = true; m_inferenceAcceleratorOverrides = value; }
140 
144  inline void SetInferenceAcceleratorOverrides(Aws::Vector<InferenceAcceleratorOverride>&& value) { m_inferenceAcceleratorOverridesHasBeenSet = true; m_inferenceAcceleratorOverrides = std::move(value); }
145 
149  inline TaskOverride& WithInferenceAcceleratorOverrides(const Aws::Vector<InferenceAcceleratorOverride>& value) { SetInferenceAcceleratorOverrides(value); return *this;}
150 
154  inline TaskOverride& WithInferenceAcceleratorOverrides(Aws::Vector<InferenceAcceleratorOverride>&& value) { SetInferenceAcceleratorOverrides(std::move(value)); return *this;}
155 
159  inline TaskOverride& AddInferenceAcceleratorOverrides(const InferenceAcceleratorOverride& value) { m_inferenceAcceleratorOverridesHasBeenSet = true; m_inferenceAcceleratorOverrides.push_back(value); return *this; }
160 
164  inline TaskOverride& AddInferenceAcceleratorOverrides(InferenceAcceleratorOverride&& value) { m_inferenceAcceleratorOverridesHasBeenSet = true; m_inferenceAcceleratorOverrides.push_back(std::move(value)); return *this; }
165 
166 
171  inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
172 
177  inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
178 
183  inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
184 
189  inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
190 
195  inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
196 
201  inline TaskOverride& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
202 
207  inline TaskOverride& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
208 
213  inline TaskOverride& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
214 
215 
219  inline const Aws::String& GetMemory() const{ return m_memory; }
220 
224  inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
225 
229  inline void SetMemory(const Aws::String& value) { m_memoryHasBeenSet = true; m_memory = value; }
230 
234  inline void SetMemory(Aws::String&& value) { m_memoryHasBeenSet = true; m_memory = std::move(value); }
235 
239  inline void SetMemory(const char* value) { m_memoryHasBeenSet = true; m_memory.assign(value); }
240 
244  inline TaskOverride& WithMemory(const Aws::String& value) { SetMemory(value); return *this;}
245 
249  inline TaskOverride& WithMemory(Aws::String&& value) { SetMemory(std::move(value)); return *this;}
250 
254  inline TaskOverride& WithMemory(const char* value) { SetMemory(value); return *this;}
255 
256 
262  inline const Aws::String& GetTaskRoleArn() const{ return m_taskRoleArn; }
263 
269  inline bool TaskRoleArnHasBeenSet() const { return m_taskRoleArnHasBeenSet; }
270 
276  inline void SetTaskRoleArn(const Aws::String& value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn = value; }
277 
283  inline void SetTaskRoleArn(Aws::String&& value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn = std::move(value); }
284 
290  inline void SetTaskRoleArn(const char* value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn.assign(value); }
291 
297  inline TaskOverride& WithTaskRoleArn(const Aws::String& value) { SetTaskRoleArn(value); return *this;}
298 
304  inline TaskOverride& WithTaskRoleArn(Aws::String&& value) { SetTaskRoleArn(std::move(value)); return *this;}
305 
311  inline TaskOverride& WithTaskRoleArn(const char* value) { SetTaskRoleArn(value); return *this;}
312 
313 
319  inline const EphemeralStorage& GetEphemeralStorage() const{ return m_ephemeralStorage; }
320 
326  inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
327 
333  inline void SetEphemeralStorage(const EphemeralStorage& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = value; }
334 
340  inline void SetEphemeralStorage(EphemeralStorage&& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = std::move(value); }
341 
347  inline TaskOverride& WithEphemeralStorage(const EphemeralStorage& value) { SetEphemeralStorage(value); return *this;}
348 
354  inline TaskOverride& WithEphemeralStorage(EphemeralStorage&& value) { SetEphemeralStorage(std::move(value)); return *this;}
355 
356  private:
357 
358  Aws::Vector<ContainerOverride> m_containerOverrides;
359  bool m_containerOverridesHasBeenSet;
360 
361  Aws::String m_cpu;
362  bool m_cpuHasBeenSet;
363 
364  Aws::Vector<InferenceAcceleratorOverride> m_inferenceAcceleratorOverrides;
365  bool m_inferenceAcceleratorOverridesHasBeenSet;
366 
367  Aws::String m_executionRoleArn;
368  bool m_executionRoleArnHasBeenSet;
369 
370  Aws::String m_memory;
371  bool m_memoryHasBeenSet;
372 
373  Aws::String m_taskRoleArn;
374  bool m_taskRoleArnHasBeenSet;
375 
376  EphemeralStorage m_ephemeralStorage;
377  bool m_ephemeralStorageHasBeenSet;
378  };
379 
380 } // namespace Model
381 } // namespace ECS
382 } // namespace Aws
Aws::ECS::Model::TaskOverride::WithTaskRoleArn
TaskOverride & WithTaskRoleArn(const Aws::String &value)
Definition: TaskOverride.h:297
Aws::ECS::Model::TaskOverride::WithEphemeralStorage
TaskOverride & WithEphemeralStorage(EphemeralStorage &&value)
Definition: TaskOverride.h:354
Aws::ECS::Model::InferenceAcceleratorOverride
Definition: InferenceAcceleratorOverride.h:37
Aws::ECS::Model::TaskOverride::SetContainerOverrides
void SetContainerOverrides(const Aws::Vector< ContainerOverride > &value)
Definition: TaskOverride.h:57
Aws::ECS::Model::TaskOverride::WithExecutionRoleArn
TaskOverride & WithExecutionRoleArn(Aws::String &&value)
Definition: TaskOverride.h:207
Aws::ECS::Model::TaskOverride::WithExecutionRoleArn
TaskOverride & WithExecutionRoleArn(const Aws::String &value)
Definition: TaskOverride.h:201
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::TaskOverride::AddContainerOverrides
TaskOverride & AddContainerOverrides(ContainerOverride &&value)
Definition: TaskOverride.h:82
Aws::ECS::Model::TaskOverride::SetEphemeralStorage
void SetEphemeralStorage(EphemeralStorage &&value)
Definition: TaskOverride.h:340
Aws::ECS::Model::TaskOverride::SetExecutionRoleArn
void SetExecutionRoleArn(Aws::String &&value)
Definition: TaskOverride.h:189
Aws::ECS::Model::TaskOverride::SetMemory
void SetMemory(const char *value)
Definition: TaskOverride.h:239
Aws::ECS::Model::TaskOverride::SetExecutionRoleArn
void SetExecutionRoleArn(const char *value)
Definition: TaskOverride.h:195
Aws::ECS::Model::TaskOverride::WithExecutionRoleArn
TaskOverride & WithExecutionRoleArn(const char *value)
Definition: TaskOverride.h:213
InferenceAcceleratorOverride.h
Aws::ECS::Model::TaskOverride::SetCpu
void SetCpu(const char *value)
Definition: TaskOverride.h:108
Aws::ECS::Model::TaskOverride::GetEphemeralStorage
const EphemeralStorage & GetEphemeralStorage() const
Definition: TaskOverride.h:319
Aws::ECS::Model::TaskOverride::SetTaskRoleArn
void SetTaskRoleArn(Aws::String &&value)
Definition: TaskOverride.h:283
Aws::ECS::Model::TaskOverride::SetMemory
void SetMemory(const Aws::String &value)
Definition: TaskOverride.h:229
Aws::ECS::Model::TaskOverride::AddInferenceAcceleratorOverrides
TaskOverride & AddInferenceAcceleratorOverrides(const InferenceAcceleratorOverride &value)
Definition: TaskOverride.h:159
Aws::ECS::Model::TaskOverride::WithTaskRoleArn
TaskOverride & WithTaskRoleArn(Aws::String &&value)
Definition: TaskOverride.h:304
Aws::ECS::Model::TaskOverride::WithMemory
TaskOverride & WithMemory(const char *value)
Definition: TaskOverride.h:254
Aws::ECS::Model::TaskOverride
Definition: TaskOverride.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::TaskOverride::WithInferenceAcceleratorOverrides
TaskOverride & WithInferenceAcceleratorOverrides(const Aws::Vector< InferenceAcceleratorOverride > &value)
Definition: TaskOverride.h:149
Aws::ECS::Model::TaskOverride::SetTaskRoleArn
void SetTaskRoleArn(const char *value)
Definition: TaskOverride.h:290
Aws::ECS::Model::TaskOverride::GetExecutionRoleArn
const Aws::String & GetExecutionRoleArn() const
Definition: TaskOverride.h:171
AWSVector.h
Aws::ECS::Model::TaskOverride::TaskOverride
TaskOverride(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::TaskOverride::TaskOverride
TaskOverride()
Aws::ECS::Model::TaskOverride::WithTaskRoleArn
TaskOverride & WithTaskRoleArn(const char *value)
Definition: TaskOverride.h:311
Aws::ECS::Model::TaskOverride::SetInferenceAcceleratorOverrides
void SetInferenceAcceleratorOverrides(Aws::Vector< InferenceAcceleratorOverride > &&value)
Definition: TaskOverride.h:144
Aws::ECS::Model::TaskOverride::SetTaskRoleArn
void SetTaskRoleArn(const Aws::String &value)
Definition: TaskOverride.h:276
Aws::ECS::Model::TaskOverride::GetTaskRoleArn
const Aws::String & GetTaskRoleArn() const
Definition: TaskOverride.h:262
Aws::ECS::Model::TaskOverride::ExecutionRoleArnHasBeenSet
bool ExecutionRoleArnHasBeenSet() const
Definition: TaskOverride.h:177
Aws::ECS::Model::TaskOverride::SetMemory
void SetMemory(Aws::String &&value)
Definition: TaskOverride.h:234
Aws::ECS::Model::ContainerOverride
Definition: ContainerOverride.h:40
Aws::ECS::Model::TaskOverride::GetContainerOverrides
const Aws::Vector< ContainerOverride > & GetContainerOverrides() const
Definition: TaskOverride.h:47
Aws::ECS::Model::TaskOverride::SetEphemeralStorage
void SetEphemeralStorage(const EphemeralStorage &value)
Definition: TaskOverride.h:333
Aws::ECS::Model::EphemeralStorage
Definition: EphemeralStorage.h:37
Aws::ECS::Model::TaskOverride::ContainerOverridesHasBeenSet
bool ContainerOverridesHasBeenSet() const
Definition: TaskOverride.h:52
Aws::ECS::Model::TaskOverride::WithMemory
TaskOverride & WithMemory(Aws::String &&value)
Definition: TaskOverride.h:249
Aws::ECS::Model::TaskOverride::GetInferenceAcceleratorOverrides
const Aws::Vector< InferenceAcceleratorOverride > & GetInferenceAcceleratorOverrides() const
Definition: TaskOverride.h:129
Aws::ECS::Model::TaskOverride::WithContainerOverrides
TaskOverride & WithContainerOverrides(Aws::Vector< ContainerOverride > &&value)
Definition: TaskOverride.h:72
Aws::ECS::Model::TaskOverride::WithContainerOverrides
TaskOverride & WithContainerOverrides(const Aws::Vector< ContainerOverride > &value)
Definition: TaskOverride.h:67
Aws::ECS::Model::TaskOverride::WithCpu
TaskOverride & WithCpu(const Aws::String &value)
Definition: TaskOverride.h:113
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::ECS::Model::TaskOverride::EphemeralStorageHasBeenSet
bool EphemeralStorageHasBeenSet() const
Definition: TaskOverride.h:326
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::ECS::Model::TaskOverride::SetInferenceAcceleratorOverrides
void SetInferenceAcceleratorOverrides(const Aws::Vector< InferenceAcceleratorOverride > &value)
Definition: TaskOverride.h:139
Aws::ECS::Model::TaskOverride::GetCpu
const Aws::String & GetCpu() const
Definition: TaskOverride.h:88
Aws::ECS::Model::TaskOverride::SetCpu
void SetCpu(Aws::String &&value)
Definition: TaskOverride.h:103
Aws::ECS::Model::TaskOverride::SetContainerOverrides
void SetContainerOverrides(Aws::Vector< ContainerOverride > &&value)
Definition: TaskOverride.h:62
Aws::ECS::Model::TaskOverride::operator=
TaskOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
EphemeralStorage.h
Aws::ECS::Model::TaskOverride::WithCpu
TaskOverride & WithCpu(Aws::String &&value)
Definition: TaskOverride.h:118
Aws::ECS::Model::TaskOverride::SetExecutionRoleArn
void SetExecutionRoleArn(const Aws::String &value)
Definition: TaskOverride.h:183
Aws::ECS::Model::TaskOverride::WithEphemeralStorage
TaskOverride & WithEphemeralStorage(const EphemeralStorage &value)
Definition: TaskOverride.h:347
Aws::ECS::Model::TaskOverride::WithCpu
TaskOverride & WithCpu(const char *value)
Definition: TaskOverride.h:123
Aws::ECS::Model::TaskOverride::AddInferenceAcceleratorOverrides
TaskOverride & AddInferenceAcceleratorOverrides(InferenceAcceleratorOverride &&value)
Definition: TaskOverride.h:164
Aws::ECS::Model::TaskOverride::TaskRoleArnHasBeenSet
bool TaskRoleArnHasBeenSet() const
Definition: TaskOverride.h:269
Aws::ECS::Model::TaskOverride::AddContainerOverrides
TaskOverride & AddContainerOverrides(const ContainerOverride &value)
Definition: TaskOverride.h:77
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::TaskOverride::WithInferenceAcceleratorOverrides
TaskOverride & WithInferenceAcceleratorOverrides(Aws::Vector< InferenceAcceleratorOverride > &&value)
Definition: TaskOverride.h:154
Aws::ECS::Model::TaskOverride::WithMemory
TaskOverride & WithMemory(const Aws::String &value)
Definition: TaskOverride.h:244
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::TaskOverride::MemoryHasBeenSet
bool MemoryHasBeenSet() const
Definition: TaskOverride.h:224
Aws::ECS::Model::TaskOverride::SetCpu
void SetCpu(const Aws::String &value)
Definition: TaskOverride.h:98
Aws::ECS::Model::TaskOverride::CpuHasBeenSet
bool CpuHasBeenSet() const
Definition: TaskOverride.h:93
ECS_EXPORTS.h
Aws::ECS::Model::TaskOverride::InferenceAcceleratorOverridesHasBeenSet
bool InferenceAcceleratorOverridesHasBeenSet() const
Definition: TaskOverride.h:134
ContainerOverride.h
Aws::ECS::Model::TaskOverride::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::TaskOverride::GetMemory
const Aws::String & GetMemory() const
Definition: TaskOverride.h:219