AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TaskOverride.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecs/model/EphemeralStorage.h>
11#include <aws/ecs/model/ContainerOverride.h>
12#include <aws/ecs/model/InferenceAcceleratorOverride.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ECS
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_ECS_API TaskOverride();
42
43
45
48 inline const Aws::Vector<ContainerOverride>& GetContainerOverrides() const{ return m_containerOverrides; }
49 inline bool ContainerOverridesHasBeenSet() const { return m_containerOverridesHasBeenSet; }
50 inline void SetContainerOverrides(const Aws::Vector<ContainerOverride>& value) { m_containerOverridesHasBeenSet = true; m_containerOverrides = value; }
51 inline void SetContainerOverrides(Aws::Vector<ContainerOverride>&& value) { m_containerOverridesHasBeenSet = true; m_containerOverrides = std::move(value); }
54 inline TaskOverride& AddContainerOverrides(const ContainerOverride& value) { m_containerOverridesHasBeenSet = true; m_containerOverrides.push_back(value); return *this; }
55 inline TaskOverride& AddContainerOverrides(ContainerOverride&& value) { m_containerOverridesHasBeenSet = true; m_containerOverrides.push_back(std::move(value)); return *this; }
57
59
62 inline const Aws::String& GetCpu() const{ return m_cpu; }
63 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
64 inline void SetCpu(const Aws::String& value) { m_cpuHasBeenSet = true; m_cpu = value; }
65 inline void SetCpu(Aws::String&& value) { m_cpuHasBeenSet = true; m_cpu = std::move(value); }
66 inline void SetCpu(const char* value) { m_cpuHasBeenSet = true; m_cpu.assign(value); }
67 inline TaskOverride& WithCpu(const Aws::String& value) { SetCpu(value); return *this;}
68 inline TaskOverride& WithCpu(Aws::String&& value) { SetCpu(std::move(value)); return *this;}
69 inline TaskOverride& WithCpu(const char* value) { SetCpu(value); return *this;}
71
73
76 inline const Aws::Vector<InferenceAcceleratorOverride>& GetInferenceAcceleratorOverrides() const{ return m_inferenceAcceleratorOverrides; }
77 inline bool InferenceAcceleratorOverridesHasBeenSet() const { return m_inferenceAcceleratorOverridesHasBeenSet; }
78 inline void SetInferenceAcceleratorOverrides(const Aws::Vector<InferenceAcceleratorOverride>& value) { m_inferenceAcceleratorOverridesHasBeenSet = true; m_inferenceAcceleratorOverrides = value; }
79 inline void SetInferenceAcceleratorOverrides(Aws::Vector<InferenceAcceleratorOverride>&& value) { m_inferenceAcceleratorOverridesHasBeenSet = true; m_inferenceAcceleratorOverrides = std::move(value); }
82 inline TaskOverride& AddInferenceAcceleratorOverrides(const InferenceAcceleratorOverride& value) { m_inferenceAcceleratorOverridesHasBeenSet = true; m_inferenceAcceleratorOverrides.push_back(value); return *this; }
83 inline TaskOverride& AddInferenceAcceleratorOverrides(InferenceAcceleratorOverride&& value) { m_inferenceAcceleratorOverridesHasBeenSet = true; m_inferenceAcceleratorOverrides.push_back(std::move(value)); return *this; }
85
87
94 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
95 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
96 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
97 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
98 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
99 inline TaskOverride& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
100 inline TaskOverride& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
101 inline TaskOverride& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
103
105
108 inline const Aws::String& GetMemory() const{ return m_memory; }
109 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
110 inline void SetMemory(const Aws::String& value) { m_memoryHasBeenSet = true; m_memory = value; }
111 inline void SetMemory(Aws::String&& value) { m_memoryHasBeenSet = true; m_memory = std::move(value); }
112 inline void SetMemory(const char* value) { m_memoryHasBeenSet = true; m_memory.assign(value); }
113 inline TaskOverride& WithMemory(const Aws::String& value) { SetMemory(value); return *this;}
114 inline TaskOverride& WithMemory(Aws::String&& value) { SetMemory(std::move(value)); return *this;}
115 inline TaskOverride& WithMemory(const char* value) { SetMemory(value); return *this;}
117
119
127 inline const Aws::String& GetTaskRoleArn() const{ return m_taskRoleArn; }
128 inline bool TaskRoleArnHasBeenSet() const { return m_taskRoleArnHasBeenSet; }
129 inline void SetTaskRoleArn(const Aws::String& value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn = value; }
130 inline void SetTaskRoleArn(Aws::String&& value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn = std::move(value); }
131 inline void SetTaskRoleArn(const char* value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn.assign(value); }
132 inline TaskOverride& WithTaskRoleArn(const Aws::String& value) { SetTaskRoleArn(value); return *this;}
133 inline TaskOverride& WithTaskRoleArn(Aws::String&& value) { SetTaskRoleArn(std::move(value)); return *this;}
134 inline TaskOverride& WithTaskRoleArn(const char* value) { SetTaskRoleArn(value); return *this;}
136
138
145 inline const EphemeralStorage& GetEphemeralStorage() const{ return m_ephemeralStorage; }
146 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
147 inline void SetEphemeralStorage(const EphemeralStorage& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = value; }
148 inline void SetEphemeralStorage(EphemeralStorage&& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = std::move(value); }
149 inline TaskOverride& WithEphemeralStorage(const EphemeralStorage& value) { SetEphemeralStorage(value); return *this;}
150 inline TaskOverride& WithEphemeralStorage(EphemeralStorage&& value) { SetEphemeralStorage(std::move(value)); return *this;}
152 private:
153
154 Aws::Vector<ContainerOverride> m_containerOverrides;
155 bool m_containerOverridesHasBeenSet = false;
156
157 Aws::String m_cpu;
158 bool m_cpuHasBeenSet = false;
159
160 Aws::Vector<InferenceAcceleratorOverride> m_inferenceAcceleratorOverrides;
161 bool m_inferenceAcceleratorOverridesHasBeenSet = false;
162
163 Aws::String m_executionRoleArn;
164 bool m_executionRoleArnHasBeenSet = false;
165
166 Aws::String m_memory;
167 bool m_memoryHasBeenSet = false;
168
169 Aws::String m_taskRoleArn;
170 bool m_taskRoleArnHasBeenSet = false;
171
172 EphemeralStorage m_ephemeralStorage;
173 bool m_ephemeralStorageHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace ECS
178} // namespace Aws
void SetExecutionRoleArn(const char *value)
void SetExecutionRoleArn(const Aws::String &value)
void SetTaskRoleArn(Aws::String &&value)
TaskOverride & AddInferenceAcceleratorOverrides(InferenceAcceleratorOverride &&value)
TaskOverride & WithTaskRoleArn(Aws::String &&value)
TaskOverride & AddInferenceAcceleratorOverrides(const InferenceAcceleratorOverride &value)
void SetMemory(Aws::String &&value)
bool EphemeralStorageHasBeenSet() const
TaskOverride & WithContainerOverrides(Aws::Vector< ContainerOverride > &&value)
const Aws::String & GetExecutionRoleArn() const
void SetMemory(const Aws::String &value)
TaskOverride & WithExecutionRoleArn(const Aws::String &value)
TaskOverride & WithTaskRoleArn(const Aws::String &value)
const Aws::Vector< InferenceAcceleratorOverride > & GetInferenceAcceleratorOverrides() const
void SetCpu(Aws::String &&value)
TaskOverride & WithTaskRoleArn(const char *value)
TaskOverride & WithInferenceAcceleratorOverrides(Aws::Vector< InferenceAcceleratorOverride > &&value)
void SetEphemeralStorage(EphemeralStorage &&value)
void SetContainerOverrides(Aws::Vector< ContainerOverride > &&value)
TaskOverride & WithEphemeralStorage(EphemeralStorage &&value)
TaskOverride & WithMemory(Aws::String &&value)
TaskOverride & WithCpu(const Aws::String &value)
TaskOverride & AddContainerOverrides(ContainerOverride &&value)
void SetTaskRoleArn(const Aws::String &value)
bool ExecutionRoleArnHasBeenSet() const
TaskOverride & WithContainerOverrides(const Aws::Vector< ContainerOverride > &value)
bool ContainerOverridesHasBeenSet() const
void SetMemory(const char *value)
TaskOverride & WithExecutionRoleArn(Aws::String &&value)
void SetEphemeralStorage(const EphemeralStorage &value)
AWS_ECS_API TaskOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
TaskOverride & WithEphemeralStorage(const EphemeralStorage &value)
TaskOverride & AddContainerOverrides(const ContainerOverride &value)
void SetCpu(const Aws::String &value)
TaskOverride & WithCpu(const char *value)
void SetInferenceAcceleratorOverrides(Aws::Vector< InferenceAcceleratorOverride > &&value)
const Aws::Vector< ContainerOverride > & GetContainerOverrides() const
TaskOverride & WithCpu(Aws::String &&value)
TaskOverride & WithMemory(const Aws::String &value)
TaskOverride & WithExecutionRoleArn(const char *value)
const Aws::String & GetTaskRoleArn() const
void SetTaskRoleArn(const char *value)
const EphemeralStorage & GetEphemeralStorage() const
TaskOverride & WithInferenceAcceleratorOverrides(const Aws::Vector< InferenceAcceleratorOverride > &value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExecutionRoleArn(Aws::String &&value)
AWS_ECS_API TaskOverride(Aws::Utils::Json::JsonView jsonValue)
bool InferenceAcceleratorOverridesHasBeenSet() const
TaskOverride & WithMemory(const char *value)
const Aws::String & GetMemory() const
void SetContainerOverrides(const Aws::Vector< ContainerOverride > &value)
void SetInferenceAcceleratorOverrides(const Aws::Vector< InferenceAcceleratorOverride > &value)
const Aws::String & GetCpu() const
void SetCpu(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue