AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EcsTaskOverride.h
1
6#pragma once
7#include <aws/pipes/Pipes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/pipes/model/EcsEphemeralStorage.h>
11#include <aws/pipes/model/EcsContainerOverride.h>
12#include <aws/pipes/model/EcsInferenceAcceleratorOverride.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 Pipes
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_PIPES_API EcsTaskOverride();
41 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<EcsContainerOverride>& GetContainerOverrides() const{ return m_containerOverrides; }
49 inline bool ContainerOverridesHasBeenSet() const { return m_containerOverridesHasBeenSet; }
50 inline void SetContainerOverrides(const Aws::Vector<EcsContainerOverride>& value) { m_containerOverridesHasBeenSet = true; m_containerOverrides = value; }
51 inline void SetContainerOverrides(Aws::Vector<EcsContainerOverride>&& value) { m_containerOverridesHasBeenSet = true; m_containerOverrides = std::move(value); }
54 inline EcsTaskOverride& AddContainerOverrides(const EcsContainerOverride& value) { m_containerOverridesHasBeenSet = true; m_containerOverrides.push_back(value); return *this; }
55 inline EcsTaskOverride& AddContainerOverrides(EcsContainerOverride&& 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 EcsTaskOverride& WithCpu(const Aws::String& value) { SetCpu(value); return *this;}
68 inline EcsTaskOverride& WithCpu(Aws::String&& value) { SetCpu(std::move(value)); return *this;}
69 inline EcsTaskOverride& WithCpu(const char* value) { SetCpu(value); return *this;}
71
73
80 inline const EcsEphemeralStorage& GetEphemeralStorage() const{ return m_ephemeralStorage; }
81 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
82 inline void SetEphemeralStorage(const EcsEphemeralStorage& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = value; }
83 inline void SetEphemeralStorage(EcsEphemeralStorage&& value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = std::move(value); }
84 inline EcsTaskOverride& WithEphemeralStorage(const EcsEphemeralStorage& value) { SetEphemeralStorage(value); return *this;}
85 inline EcsTaskOverride& WithEphemeralStorage(EcsEphemeralStorage&& value) { SetEphemeralStorage(std::move(value)); return *this;}
87
89
96 inline const Aws::String& GetExecutionRoleArn() const{ return m_executionRoleArn; }
97 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
98 inline void SetExecutionRoleArn(const Aws::String& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = value; }
99 inline void SetExecutionRoleArn(Aws::String&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::move(value); }
100 inline void SetExecutionRoleArn(const char* value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn.assign(value); }
101 inline EcsTaskOverride& WithExecutionRoleArn(const Aws::String& value) { SetExecutionRoleArn(value); return *this;}
102 inline EcsTaskOverride& WithExecutionRoleArn(Aws::String&& value) { SetExecutionRoleArn(std::move(value)); return *this;}
103 inline EcsTaskOverride& WithExecutionRoleArn(const char* value) { SetExecutionRoleArn(value); return *this;}
105
107
110 inline const Aws::Vector<EcsInferenceAcceleratorOverride>& GetInferenceAcceleratorOverrides() const{ return m_inferenceAcceleratorOverrides; }
111 inline bool InferenceAcceleratorOverridesHasBeenSet() const { return m_inferenceAcceleratorOverridesHasBeenSet; }
112 inline void SetInferenceAcceleratorOverrides(const Aws::Vector<EcsInferenceAcceleratorOverride>& value) { m_inferenceAcceleratorOverridesHasBeenSet = true; m_inferenceAcceleratorOverrides = value; }
113 inline void SetInferenceAcceleratorOverrides(Aws::Vector<EcsInferenceAcceleratorOverride>&& value) { m_inferenceAcceleratorOverridesHasBeenSet = true; m_inferenceAcceleratorOverrides = std::move(value); }
116 inline EcsTaskOverride& AddInferenceAcceleratorOverrides(const EcsInferenceAcceleratorOverride& value) { m_inferenceAcceleratorOverridesHasBeenSet = true; m_inferenceAcceleratorOverrides.push_back(value); return *this; }
117 inline EcsTaskOverride& AddInferenceAcceleratorOverrides(EcsInferenceAcceleratorOverride&& value) { m_inferenceAcceleratorOverridesHasBeenSet = true; m_inferenceAcceleratorOverrides.push_back(std::move(value)); return *this; }
119
121
124 inline const Aws::String& GetMemory() const{ return m_memory; }
125 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
126 inline void SetMemory(const Aws::String& value) { m_memoryHasBeenSet = true; m_memory = value; }
127 inline void SetMemory(Aws::String&& value) { m_memoryHasBeenSet = true; m_memory = std::move(value); }
128 inline void SetMemory(const char* value) { m_memoryHasBeenSet = true; m_memory.assign(value); }
129 inline EcsTaskOverride& WithMemory(const Aws::String& value) { SetMemory(value); return *this;}
130 inline EcsTaskOverride& WithMemory(Aws::String&& value) { SetMemory(std::move(value)); return *this;}
131 inline EcsTaskOverride& WithMemory(const char* value) { SetMemory(value); return *this;}
133
135
143 inline const Aws::String& GetTaskRoleArn() const{ return m_taskRoleArn; }
144 inline bool TaskRoleArnHasBeenSet() const { return m_taskRoleArnHasBeenSet; }
145 inline void SetTaskRoleArn(const Aws::String& value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn = value; }
146 inline void SetTaskRoleArn(Aws::String&& value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn = std::move(value); }
147 inline void SetTaskRoleArn(const char* value) { m_taskRoleArnHasBeenSet = true; m_taskRoleArn.assign(value); }
148 inline EcsTaskOverride& WithTaskRoleArn(const Aws::String& value) { SetTaskRoleArn(value); return *this;}
149 inline EcsTaskOverride& WithTaskRoleArn(Aws::String&& value) { SetTaskRoleArn(std::move(value)); return *this;}
150 inline EcsTaskOverride& WithTaskRoleArn(const char* value) { SetTaskRoleArn(value); return *this;}
152 private:
153
154 Aws::Vector<EcsContainerOverride> m_containerOverrides;
155 bool m_containerOverridesHasBeenSet = false;
156
157 Aws::String m_cpu;
158 bool m_cpuHasBeenSet = false;
159
160 EcsEphemeralStorage m_ephemeralStorage;
161 bool m_ephemeralStorageHasBeenSet = false;
162
163 Aws::String m_executionRoleArn;
164 bool m_executionRoleArnHasBeenSet = false;
165
166 Aws::Vector<EcsInferenceAcceleratorOverride> m_inferenceAcceleratorOverrides;
167 bool m_inferenceAcceleratorOverridesHasBeenSet = false;
168
169 Aws::String m_memory;
170 bool m_memoryHasBeenSet = false;
171
172 Aws::String m_taskRoleArn;
173 bool m_taskRoleArnHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace Pipes
178} // namespace Aws
EcsTaskOverride & WithEphemeralStorage(const EcsEphemeralStorage &value)
EcsTaskOverride & WithCpu(const char *value)
void SetExecutionRoleArn(Aws::String &&value)
EcsTaskOverride & WithMemory(Aws::String &&value)
void SetInferenceAcceleratorOverrides(Aws::Vector< EcsInferenceAcceleratorOverride > &&value)
const Aws::String & GetExecutionRoleArn() const
EcsTaskOverride & WithMemory(const Aws::String &value)
EcsTaskOverride & WithExecutionRoleArn(Aws::String &&value)
AWS_PIPES_API EcsTaskOverride(Aws::Utils::Json::JsonView jsonValue)
void SetEphemeralStorage(EcsEphemeralStorage &&value)
EcsTaskOverride & AddContainerOverrides(const EcsContainerOverride &value)
void SetExecutionRoleArn(const Aws::String &value)
void SetCpu(Aws::String &&value)
void SetMemory(const Aws::String &value)
const Aws::Vector< EcsContainerOverride > & GetContainerOverrides() const
EcsTaskOverride & WithTaskRoleArn(const Aws::String &value)
AWS_PIPES_API EcsTaskOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
EcsTaskOverride & WithTaskRoleArn(Aws::String &&value)
void SetMemory(Aws::String &&value)
EcsTaskOverride & WithTaskRoleArn(const char *value)
void SetCpu(const Aws::String &value)
void SetExecutionRoleArn(const char *value)
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< EcsInferenceAcceleratorOverride > & GetInferenceAcceleratorOverrides() const
void SetInferenceAcceleratorOverrides(const Aws::Vector< EcsInferenceAcceleratorOverride > &value)
void SetContainerOverrides(const Aws::Vector< EcsContainerOverride > &value)
EcsTaskOverride & WithInferenceAcceleratorOverrides(const Aws::Vector< EcsInferenceAcceleratorOverride > &value)
EcsTaskOverride & WithCpu(Aws::String &&value)
const Aws::String & GetTaskRoleArn() const
void SetEphemeralStorage(const EcsEphemeralStorage &value)
void SetTaskRoleArn(const char *value)
EcsTaskOverride & AddInferenceAcceleratorOverrides(const EcsInferenceAcceleratorOverride &value)
const EcsEphemeralStorage & GetEphemeralStorage() const
const Aws::String & GetMemory() const
EcsTaskOverride & WithCpu(const Aws::String &value)
EcsTaskOverride & AddContainerOverrides(EcsContainerOverride &&value)
EcsTaskOverride & WithEphemeralStorage(EcsEphemeralStorage &&value)
const Aws::String & GetCpu() const
EcsTaskOverride & WithMemory(const char *value)
void SetContainerOverrides(Aws::Vector< EcsContainerOverride > &&value)
EcsTaskOverride & AddInferenceAcceleratorOverrides(EcsInferenceAcceleratorOverride &&value)
EcsTaskOverride & WithExecutionRoleArn(const char *value)
EcsTaskOverride & WithContainerOverrides(Aws::Vector< EcsContainerOverride > &&value)
void SetTaskRoleArn(Aws::String &&value)
EcsTaskOverride & WithContainerOverrides(const Aws::Vector< EcsContainerOverride > &value)
EcsTaskOverride & WithInferenceAcceleratorOverrides(Aws::Vector< EcsInferenceAcceleratorOverride > &&value)
void SetTaskRoleArn(const Aws::String &value)
void SetMemory(const char *value)
EcsTaskOverride & WithExecutionRoleArn(const Aws::String &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