AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ContainerOverride.h
Go to the documentation of this file.
1
6#pragma once
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
40 {
41 public:
46
47
52 inline const Aws::String& GetName() const{ return m_name; }
53
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59
64 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
65
70 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
71
76 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
77
82 inline ContainerOverride& WithName(const Aws::String& value) { SetName(value); return *this;}
83
88 inline ContainerOverride& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
89
94 inline ContainerOverride& WithName(const char* value) { SetName(value); return *this;}
95
96
102 inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
103
109 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
110
116 inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
117
123 inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
124
130 inline ContainerOverride& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
131
137 inline ContainerOverride& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
138
144 inline ContainerOverride& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
145
151 inline ContainerOverride& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
152
158 inline ContainerOverride& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
159
160
167 inline const Aws::Vector<KeyValuePair>& GetEnvironment() const{ return m_environment; }
168
175 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
176
183 inline void SetEnvironment(const Aws::Vector<KeyValuePair>& value) { m_environmentHasBeenSet = true; m_environment = value; }
184
191 inline void SetEnvironment(Aws::Vector<KeyValuePair>&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
192
199 inline ContainerOverride& WithEnvironment(const Aws::Vector<KeyValuePair>& value) { SetEnvironment(value); return *this;}
200
207 inline ContainerOverride& WithEnvironment(Aws::Vector<KeyValuePair>&& value) { SetEnvironment(std::move(value)); return *this;}
208
215 inline ContainerOverride& AddEnvironment(const KeyValuePair& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
216
223 inline ContainerOverride& AddEnvironment(KeyValuePair&& value) { m_environmentHasBeenSet = true; m_environment.push_back(std::move(value)); return *this; }
224
225
230 inline const Aws::Vector<EnvironmentFile>& GetEnvironmentFiles() const{ return m_environmentFiles; }
231
236 inline bool EnvironmentFilesHasBeenSet() const { return m_environmentFilesHasBeenSet; }
237
242 inline void SetEnvironmentFiles(const Aws::Vector<EnvironmentFile>& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles = value; }
243
248 inline void SetEnvironmentFiles(Aws::Vector<EnvironmentFile>&& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles = std::move(value); }
249
255
261
266 inline ContainerOverride& AddEnvironmentFiles(const EnvironmentFile& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles.push_back(value); return *this; }
267
272 inline ContainerOverride& AddEnvironmentFiles(EnvironmentFile&& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles.push_back(std::move(value)); return *this; }
273
274
280 inline int GetCpu() const{ return m_cpu; }
281
287 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
288
294 inline void SetCpu(int value) { m_cpuHasBeenSet = true; m_cpu = value; }
295
301 inline ContainerOverride& WithCpu(int value) { SetCpu(value); return *this;}
302
303
310 inline int GetMemory() const{ return m_memory; }
311
318 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
319
326 inline void SetMemory(int value) { m_memoryHasBeenSet = true; m_memory = value; }
327
334 inline ContainerOverride& WithMemory(int value) { SetMemory(value); return *this;}
335
336
342 inline int GetMemoryReservation() const{ return m_memoryReservation; }
343
349 inline bool MemoryReservationHasBeenSet() const { return m_memoryReservationHasBeenSet; }
350
356 inline void SetMemoryReservation(int value) { m_memoryReservationHasBeenSet = true; m_memoryReservation = value; }
357
363 inline ContainerOverride& WithMemoryReservation(int value) { SetMemoryReservation(value); return *this;}
364
365
371 inline const Aws::Vector<ResourceRequirement>& GetResourceRequirements() const{ return m_resourceRequirements; }
372
378 inline bool ResourceRequirementsHasBeenSet() const { return m_resourceRequirementsHasBeenSet; }
379
385 inline void SetResourceRequirements(const Aws::Vector<ResourceRequirement>& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = value; }
386
392 inline void SetResourceRequirements(Aws::Vector<ResourceRequirement>&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = std::move(value); }
393
400
407
413 inline ContainerOverride& AddResourceRequirements(const ResourceRequirement& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(value); return *this; }
414
420 inline ContainerOverride& AddResourceRequirements(ResourceRequirement&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(std::move(value)); return *this; }
421
422 private:
423
424 Aws::String m_name;
425 bool m_nameHasBeenSet = false;
426
427 Aws::Vector<Aws::String> m_command;
428 bool m_commandHasBeenSet = false;
429
430 Aws::Vector<KeyValuePair> m_environment;
431 bool m_environmentHasBeenSet = false;
432
433 Aws::Vector<EnvironmentFile> m_environmentFiles;
434 bool m_environmentFilesHasBeenSet = false;
435
436 int m_cpu;
437 bool m_cpuHasBeenSet = false;
438
439 int m_memory;
440 bool m_memoryHasBeenSet = false;
441
442 int m_memoryReservation;
443 bool m_memoryReservationHasBeenSet = false;
444
445 Aws::Vector<ResourceRequirement> m_resourceRequirements;
446 bool m_resourceRequirementsHasBeenSet = false;
447 };
448
449} // namespace Model
450} // namespace ECS
451} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
void SetCommand(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetCommand() const
ContainerOverride & WithCommand(Aws::Vector< Aws::String > &&value)
void SetEnvironment(const Aws::Vector< KeyValuePair > &value)
void SetEnvironment(Aws::Vector< KeyValuePair > &&value)
void SetResourceRequirements(const Aws::Vector< ResourceRequirement > &value)
void SetEnvironmentFiles(const Aws::Vector< EnvironmentFile > &value)
ContainerOverride & AddEnvironment(const KeyValuePair &value)
void SetEnvironmentFiles(Aws::Vector< EnvironmentFile > &&value)
ContainerOverride & AddEnvironment(KeyValuePair &&value)
AWS_ECS_API ContainerOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerOverride & WithName(const char *value)
ContainerOverride & AddCommand(const Aws::String &value)
void SetName(Aws::String &&value)
const Aws::String & GetName() const
ContainerOverride & AddEnvironmentFiles(const EnvironmentFile &value)
ContainerOverride & AddEnvironmentFiles(EnvironmentFile &&value)
ContainerOverride & AddResourceRequirements(ResourceRequirement &&value)
ContainerOverride & WithName(Aws::String &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< EnvironmentFile > & GetEnvironmentFiles() const
ContainerOverride & AddResourceRequirements(const ResourceRequirement &value)
ContainerOverride & WithResourceRequirements(Aws::Vector< ResourceRequirement > &&value)
ContainerOverride & WithName(const Aws::String &value)
ContainerOverride & WithEnvironmentFiles(const Aws::Vector< EnvironmentFile > &value)
const Aws::Vector< ResourceRequirement > & GetResourceRequirements() const
AWS_ECS_API ContainerOverride(Aws::Utils::Json::JsonView jsonValue)
ContainerOverride & WithCpu(int value)
ContainerOverride & WithResourceRequirements(const Aws::Vector< ResourceRequirement > &value)
ContainerOverride & AddCommand(const char *value)
ContainerOverride & WithEnvironmentFiles(Aws::Vector< EnvironmentFile > &&value)
ContainerOverride & AddCommand(Aws::String &&value)
void SetCommand(Aws::Vector< Aws::String > &&value)
ContainerOverride & WithMemory(int value)
ContainerOverride & WithEnvironment(const Aws::Vector< KeyValuePair > &value)
ContainerOverride & WithMemoryReservation(int value)
void SetName(const Aws::String &value)
void SetResourceRequirements(Aws::Vector< ResourceRequirement > &&value)
ContainerOverride & WithCommand(const Aws::Vector< Aws::String > &value)
const Aws::Vector< KeyValuePair > & GetEnvironment() const
ContainerOverride & WithEnvironment(Aws::Vector< KeyValuePair > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector