AWS SDK for C++  1.9.159
AWS SDK for C++
ContainerOverride.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 
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 
254  inline ContainerOverride& WithEnvironmentFiles(const Aws::Vector<EnvironmentFile>& value) { SetEnvironmentFiles(value); return *this;}
255 
260  inline ContainerOverride& WithEnvironmentFiles(Aws::Vector<EnvironmentFile>&& value) { SetEnvironmentFiles(std::move(value)); return *this;}
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 
399  inline ContainerOverride& WithResourceRequirements(const Aws::Vector<ResourceRequirement>& value) { SetResourceRequirements(value); return *this;}
400 
406  inline ContainerOverride& WithResourceRequirements(Aws::Vector<ResourceRequirement>&& value) { SetResourceRequirements(std::move(value)); return *this;}
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;
426 
427  Aws::Vector<Aws::String> m_command;
428  bool m_commandHasBeenSet;
429 
430  Aws::Vector<KeyValuePair> m_environment;
431  bool m_environmentHasBeenSet;
432 
433  Aws::Vector<EnvironmentFile> m_environmentFiles;
434  bool m_environmentFilesHasBeenSet;
435 
436  int m_cpu;
437  bool m_cpuHasBeenSet;
438 
439  int m_memory;
440  bool m_memoryHasBeenSet;
441 
442  int m_memoryReservation;
443  bool m_memoryReservationHasBeenSet;
444 
445  Aws::Vector<ResourceRequirement> m_resourceRequirements;
446  bool m_resourceRequirementsHasBeenSet;
447  };
448 
449 } // namespace Model
450 } // namespace ECS
451 } // namespace Aws
Aws::ECS::Model::ContainerOverride::CpuHasBeenSet
bool CpuHasBeenSet() const
Definition: ContainerOverride.h:287
Aws::ECS::Model::ContainerOverride::SetEnvironmentFiles
void SetEnvironmentFiles(const Aws::Vector< EnvironmentFile > &value)
Definition: ContainerOverride.h:242
Aws::ECS::Model::ContainerOverride::WithName
ContainerOverride & WithName(Aws::String &&value)
Definition: ContainerOverride.h:88
Aws::ECS::Model::ContainerOverride::WithResourceRequirements
ContainerOverride & WithResourceRequirements(const Aws::Vector< ResourceRequirement > &value)
Definition: ContainerOverride.h:399
Aws::ECS::Model::ContainerOverride::SetEnvironment
void SetEnvironment(Aws::Vector< KeyValuePair > &&value)
Definition: ContainerOverride.h:191
Aws::ECS::Model::ContainerOverride::GetResourceRequirements
const Aws::Vector< ResourceRequirement > & GetResourceRequirements() const
Definition: ContainerOverride.h:371
Aws::ECS::Model::ContainerOverride::GetMemoryReservation
int GetMemoryReservation() const
Definition: ContainerOverride.h:342
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::ContainerOverride::WithCommand
ContainerOverride & WithCommand(Aws::Vector< Aws::String > &&value)
Definition: ContainerOverride.h:137
Aws::ECS::Model::ContainerOverride::ContainerOverride
ContainerOverride()
ResourceRequirement.h
Aws::ECS::Model::ContainerOverride::EnvironmentFilesHasBeenSet
bool EnvironmentFilesHasBeenSet() const
Definition: ContainerOverride.h:236
Aws::ECS::Model::ContainerOverride::AddCommand
ContainerOverride & AddCommand(Aws::String &&value)
Definition: ContainerOverride.h:151
Aws::ECS::Model::ContainerOverride::AddEnvironment
ContainerOverride & AddEnvironment(KeyValuePair &&value)
Definition: ContainerOverride.h:223
Aws::ECS::Model::ContainerOverride::AddEnvironmentFiles
ContainerOverride & AddEnvironmentFiles(const EnvironmentFile &value)
Definition: ContainerOverride.h:266
Aws::ECS::Model::ContainerOverride::AddCommand
ContainerOverride & AddCommand(const Aws::String &value)
Definition: ContainerOverride.h:144
Aws::ECS::Model::ContainerOverride::WithCpu
ContainerOverride & WithCpu(int value)
Definition: ContainerOverride.h:301
Aws::ECS::Model::ContainerOverride::WithEnvironmentFiles
ContainerOverride & WithEnvironmentFiles(const Aws::Vector< EnvironmentFile > &value)
Definition: ContainerOverride.h:254
Aws::ECS::Model::ContainerOverride::GetEnvironmentFiles
const Aws::Vector< EnvironmentFile > & GetEnvironmentFiles() const
Definition: ContainerOverride.h:230
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::ContainerOverride::WithEnvironment
ContainerOverride & WithEnvironment(const Aws::Vector< KeyValuePair > &value)
Definition: ContainerOverride.h:199
Aws::ECS::Model::ContainerOverride::WithEnvironment
ContainerOverride & WithEnvironment(Aws::Vector< KeyValuePair > &&value)
Definition: ContainerOverride.h:207
KeyValuePair.h
Aws::ECS::Model::ContainerOverride::AddResourceRequirements
ContainerOverride & AddResourceRequirements(const ResourceRequirement &value)
Definition: ContainerOverride.h:413
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::ContainerOverride::SetCommand
void SetCommand(Aws::Vector< Aws::String > &&value)
Definition: ContainerOverride.h:123
Aws::ECS::Model::EnvironmentFile
Definition: EnvironmentFile.h:51
Aws::ECS::Model::ContainerOverride::AddEnvironmentFiles
ContainerOverride & AddEnvironmentFiles(EnvironmentFile &&value)
Definition: ContainerOverride.h:272
Aws::ECS::Model::ContainerOverride::WithName
ContainerOverride & WithName(const Aws::String &value)
Definition: ContainerOverride.h:82
Aws::ECS::Model::ContainerOverride
Definition: ContainerOverride.h:40
Aws::ECS::Model::ContainerOverride::EnvironmentHasBeenSet
bool EnvironmentHasBeenSet() const
Definition: ContainerOverride.h:175
Aws::ECS::Model::ContainerOverride::WithCommand
ContainerOverride & WithCommand(const Aws::Vector< Aws::String > &value)
Definition: ContainerOverride.h:130
Aws::ECS::Model::ContainerOverride::ResourceRequirementsHasBeenSet
bool ResourceRequirementsHasBeenSet() const
Definition: ContainerOverride.h:378
Aws::ECS::Model::ContainerOverride::WithMemoryReservation
ContainerOverride & WithMemoryReservation(int value)
Definition: ContainerOverride.h:363
Aws::ECS::Model::ContainerOverride::SetMemory
void SetMemory(int value)
Definition: ContainerOverride.h:326
Aws::ECS::Model::ContainerOverride::AddEnvironment
ContainerOverride & AddEnvironment(const KeyValuePair &value)
Definition: ContainerOverride.h:215
Aws::ECS::Model::ContainerOverride::GetName
const Aws::String & GetName() const
Definition: ContainerOverride.h:52
Aws::ECS::Model::ContainerOverride::SetEnvironment
void SetEnvironment(const Aws::Vector< KeyValuePair > &value)
Definition: ContainerOverride.h:183
Aws::ECS::Model::ContainerOverride::AddResourceRequirements
ContainerOverride & AddResourceRequirements(ResourceRequirement &&value)
Definition: ContainerOverride.h:420
Aws::ECS::Model::ContainerOverride::AddCommand
ContainerOverride & AddCommand(const char *value)
Definition: ContainerOverride.h:158
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::ContainerOverride::WithMemory
ContainerOverride & WithMemory(int value)
Definition: ContainerOverride.h:334
Aws::ECS::Model::ContainerOverride::operator=
ContainerOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::ContainerOverride::MemoryReservationHasBeenSet
bool MemoryReservationHasBeenSet() const
Definition: ContainerOverride.h:349
Aws::ECS::Model::ContainerOverride::SetName
void SetName(const Aws::String &value)
Definition: ContainerOverride.h:64
Aws::ECS::Model::ContainerOverride::GetCommand
const Aws::Vector< Aws::String > & GetCommand() const
Definition: ContainerOverride.h:102
Aws::ECS::Model::ContainerOverride::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ContainerOverride.h:58
Aws::ECS::Model::ContainerOverride::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::ContainerOverride::SetCpu
void SetCpu(int value)
Definition: ContainerOverride.h:294
Aws::ECS::Model::ContainerOverride::ContainerOverride
ContainerOverride(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::KeyValuePair
Definition: KeyValuePair.h:32
Aws::ECS::Model::ContainerOverride::SetName
void SetName(Aws::String &&value)
Definition: ContainerOverride.h:70
Aws::ECS::Model::ContainerOverride::SetEnvironmentFiles
void SetEnvironmentFiles(Aws::Vector< EnvironmentFile > &&value)
Definition: ContainerOverride.h:248
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::ContainerOverride::SetResourceRequirements
void SetResourceRequirements(const Aws::Vector< ResourceRequirement > &value)
Definition: ContainerOverride.h:385
Aws::ECS::Model::ContainerOverride::GetEnvironment
const Aws::Vector< KeyValuePair > & GetEnvironment() const
Definition: ContainerOverride.h:167
Aws::ECS::Model::ContainerOverride::SetMemoryReservation
void SetMemoryReservation(int value)
Definition: ContainerOverride.h:356
Aws::ECS::Model::ContainerOverride::SetResourceRequirements
void SetResourceRequirements(Aws::Vector< ResourceRequirement > &&value)
Definition: ContainerOverride.h:392
Aws::ECS::Model::ContainerOverride::SetName
void SetName(const char *value)
Definition: ContainerOverride.h:76
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::ContainerOverride::SetCommand
void SetCommand(const Aws::Vector< Aws::String > &value)
Definition: ContainerOverride.h:116
Aws::ECS::Model::ContainerOverride::WithResourceRequirements
ContainerOverride & WithResourceRequirements(Aws::Vector< ResourceRequirement > &&value)
Definition: ContainerOverride.h:406
Aws::ECS::Model::ContainerOverride::CommandHasBeenSet
bool CommandHasBeenSet() const
Definition: ContainerOverride.h:109
Aws::ECS::Model::ContainerOverride::GetMemory
int GetMemory() const
Definition: ContainerOverride.h:310
Aws::ECS::Model::ContainerOverride::GetCpu
int GetCpu() const
Definition: ContainerOverride.h:280
ECS_EXPORTS.h
Aws::ECS::Model::ContainerOverride::MemoryHasBeenSet
bool MemoryHasBeenSet() const
Definition: ContainerOverride.h:318
Aws::ECS::Model::ResourceRequirement
Definition: ResourceRequirement.h:40
Aws::ECS::Model::ContainerOverride::WithName
ContainerOverride & WithName(const char *value)
Definition: ContainerOverride.h:94
EnvironmentFile.h
Aws::ECS::Model::ContainerOverride::WithEnvironmentFiles
ContainerOverride & WithEnvironmentFiles(Aws::Vector< EnvironmentFile > &&value)
Definition: ContainerOverride.h:260