AWS SDK for C++  1.9.156
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 
174  inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
175 
183  inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
184 
192  inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
193 
201  inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
202 
210  inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
211 
219  inline TaskOverride& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
220 
228  inline TaskOverride& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
229 
237  inline TaskOverride& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
238 
239 
243  inline const Aws::String& GetMemory() const{ return m_memory; }
244 
248  inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
249 
253  inline void SetMemory(const Aws::String& value) { m_memoryHasBeenSet = true; m_memory = value; }
254 
258  inline void SetMemory(Aws::String&& value) { m_memoryHasBeenSet = true; m_memory = std::move(value); }
259 
263  inline void SetMemory(const char* value) { m_memoryHasBeenSet = true; m_memory.assign(value); }
264 
268  inline TaskOverride& WithMemory(const Aws::String& value) { SetMemory(value); return *this;}
269 
273  inline TaskOverride& WithMemory(Aws::String&& value) { SetMemory(std::move(value)); return *this;}
274 
278  inline TaskOverride& WithMemory(const char* value) { SetMemory(value); return *this;}
279 
280 
289  inline const Aws::String& GetTaskRoleArn() const{ return m_taskRoleArn; }
290 
299  inline bool TaskRoleArnHasBeenSet() const { return m_taskRoleArnHasBeenSet; }
300 
309  inline void SetTaskRoleArn(const Aws::String& value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn = value; }
310 
319  inline void SetTaskRoleArn(Aws::String&& value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn = std::move(value); }
320 
329  inline void SetTaskRoleArn(const char* value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn.assign(value); }
330 
339  inline TaskOverride& WithTaskRoleArn(const Aws::String& value) { SetTaskRoleArn(value); return *this;}
340 
349  inline TaskOverride& WithTaskRoleArn(Aws::String&& value) { SetTaskRoleArn(std::move(value)); return *this;}
350 
359  inline TaskOverride& WithTaskRoleArn(const char* value) { SetTaskRoleArn(value); return *this;}
360 
361 
369  inline const EphemeralStorage& GetEphemeralStorage() const{ return m_ephemeralStorage; }
370 
378  inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
379 
387  inline void SetEphemeralStorage(const EphemeralStorage& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = value; }
388 
396  inline void SetEphemeralStorage(EphemeralStorage&& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = std::move(value); }
397 
405  inline TaskOverride& WithEphemeralStorage(const EphemeralStorage& value) { SetEphemeralStorage(value); return *this;}
406 
414  inline TaskOverride& WithEphemeralStorage(EphemeralStorage&& value) { SetEphemeralStorage(std::move(value)); return *this;}
415 
416  private:
417 
418  Aws::Vector<ContainerOverride> m_containerOverrides;
419  bool m_containerOverridesHasBeenSet;
420 
421  Aws::String m_cpu;
422  bool m_cpuHasBeenSet;
423 
424  Aws::Vector<InferenceAcceleratorOverride> m_inferenceAcceleratorOverrides;
425  bool m_inferenceAcceleratorOverridesHasBeenSet;
426 
427  Aws::String m_executionRoleArn;
428  bool m_executionRoleArnHasBeenSet;
429 
430  Aws::String m_memory;
431  bool m_memoryHasBeenSet;
432 
433  Aws::String m_taskRoleArn;
434  bool m_taskRoleArnHasBeenSet;
435 
436  EphemeralStorage m_ephemeralStorage;
437  bool m_ephemeralStorageHasBeenSet;
438  };
439 
440 } // namespace Model
441 } // namespace ECS
442 } // namespace Aws
Aws::ECS::Model::TaskOverride::WithTaskRoleArn
TaskOverride & WithTaskRoleArn(const Aws::String &value)
Definition: TaskOverride.h:339
Aws::ECS::Model::TaskOverride::WithEphemeralStorage
TaskOverride & WithEphemeralStorage(EphemeralStorage &&value)
Definition: TaskOverride.h:414
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:228
Aws::ECS::Model::TaskOverride::WithExecutionRoleArn
TaskOverride & WithExecutionRoleArn(const Aws::String &value)
Definition: TaskOverride.h:219
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:396
Aws::ECS::Model::TaskOverride::SetExecutionRoleArn
void SetExecutionRoleArn(Aws::String &&value)
Definition: TaskOverride.h:201
Aws::ECS::Model::TaskOverride::SetMemory
void SetMemory(const char *value)
Definition: TaskOverride.h:263
Aws::ECS::Model::TaskOverride::SetExecutionRoleArn
void SetExecutionRoleArn(const char *value)
Definition: TaskOverride.h:210
Aws::ECS::Model::TaskOverride::WithExecutionRoleArn
TaskOverride & WithExecutionRoleArn(const char *value)
Definition: TaskOverride.h:237
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:369
Aws::ECS::Model::TaskOverride::SetTaskRoleArn
void SetTaskRoleArn(Aws::String &&value)
Definition: TaskOverride.h:319
Aws::ECS::Model::TaskOverride::SetMemory
void SetMemory(const Aws::String &value)
Definition: TaskOverride.h:253
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:349
Aws::ECS::Model::TaskOverride::WithMemory
TaskOverride & WithMemory(const char *value)
Definition: TaskOverride.h:278
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:329
Aws::ECS::Model::TaskOverride::GetExecutionRoleArn
const Aws::String & GetExecutionRoleArn() const
Definition: TaskOverride.h:174
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:359
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:309
Aws::ECS::Model::TaskOverride::GetTaskRoleArn
const Aws::String & GetTaskRoleArn() const
Definition: TaskOverride.h:289
Aws::ECS::Model::TaskOverride::ExecutionRoleArnHasBeenSet
bool ExecutionRoleArnHasBeenSet() const
Definition: TaskOverride.h:183
Aws::ECS::Model::TaskOverride::SetMemory
void SetMemory(Aws::String &&value)
Definition: TaskOverride.h:258
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:387
Aws::ECS::Model::EphemeralStorage
Definition: EphemeralStorage.h:38
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:273
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:235
Aws::ECS::Model::TaskOverride::EphemeralStorageHasBeenSet
bool EphemeralStorageHasBeenSet() const
Definition: TaskOverride.h:378
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
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:192
Aws::ECS::Model::TaskOverride::WithEphemeralStorage
TaskOverride & WithEphemeralStorage(const EphemeralStorage &value)
Definition: TaskOverride.h:405
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:299
Aws::ECS::Model::TaskOverride::AddContainerOverrides
TaskOverride & AddContainerOverrides(const ContainerOverride &value)
Definition: TaskOverride.h:77
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
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:268
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:248
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:243