AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerOverride.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/model/KeyValuePair.h>
11#include <aws/ecs/model/EnvironmentFile.h>
12#include <aws/ecs/model/ResourceRequirement.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
44 {
45 public:
46 AWS_ECS_API ContainerOverride();
50
51
53
57 inline const Aws::String& GetName() const{ return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 inline ContainerOverride& WithName(const Aws::String& value) { SetName(value); return *this;}
63 inline ContainerOverride& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
64 inline ContainerOverride& WithName(const char* value) { SetName(value); return *this;}
66
68
73 inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
74 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
75 inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
76 inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
77 inline ContainerOverride& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
78 inline ContainerOverride& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
79 inline ContainerOverride& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
80 inline ContainerOverride& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
81 inline ContainerOverride& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
83
85
91 inline const Aws::Vector<KeyValuePair>& GetEnvironment() const{ return m_environment; }
92 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
93 inline void SetEnvironment(const Aws::Vector<KeyValuePair>& value) { m_environmentHasBeenSet = true; m_environment = value; }
94 inline void SetEnvironment(Aws::Vector<KeyValuePair>&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
95 inline ContainerOverride& WithEnvironment(const Aws::Vector<KeyValuePair>& value) { SetEnvironment(value); return *this;}
96 inline ContainerOverride& WithEnvironment(Aws::Vector<KeyValuePair>&& value) { SetEnvironment(std::move(value)); return *this;}
97 inline ContainerOverride& AddEnvironment(const KeyValuePair& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
98 inline ContainerOverride& AddEnvironment(KeyValuePair&& value) { m_environmentHasBeenSet = true; m_environment.push_back(std::move(value)); return *this; }
100
102
106 inline const Aws::Vector<EnvironmentFile>& GetEnvironmentFiles() const{ return m_environmentFiles; }
107 inline bool EnvironmentFilesHasBeenSet() const { return m_environmentFilesHasBeenSet; }
108 inline void SetEnvironmentFiles(const Aws::Vector<EnvironmentFile>& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles = value; }
109 inline void SetEnvironmentFiles(Aws::Vector<EnvironmentFile>&& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles = std::move(value); }
112 inline ContainerOverride& AddEnvironmentFiles(const EnvironmentFile& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles.push_back(value); return *this; }
113 inline ContainerOverride& AddEnvironmentFiles(EnvironmentFile&& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles.push_back(std::move(value)); return *this; }
115
117
122 inline int GetCpu() const{ return m_cpu; }
123 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
124 inline void SetCpu(int value) { m_cpuHasBeenSet = true; m_cpu = value; }
125 inline ContainerOverride& WithCpu(int value) { SetCpu(value); return *this;}
127
129
135 inline int GetMemory() const{ return m_memory; }
136 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
137 inline void SetMemory(int value) { m_memoryHasBeenSet = true; m_memory = value; }
138 inline ContainerOverride& WithMemory(int value) { SetMemory(value); return *this;}
140
142
147 inline int GetMemoryReservation() const{ return m_memoryReservation; }
148 inline bool MemoryReservationHasBeenSet() const { return m_memoryReservationHasBeenSet; }
149 inline void SetMemoryReservation(int value) { m_memoryReservationHasBeenSet = true; m_memoryReservation = value; }
150 inline ContainerOverride& WithMemoryReservation(int value) { SetMemoryReservation(value); return *this;}
152
154
159 inline const Aws::Vector<ResourceRequirement>& GetResourceRequirements() const{ return m_resourceRequirements; }
160 inline bool ResourceRequirementsHasBeenSet() const { return m_resourceRequirementsHasBeenSet; }
161 inline void SetResourceRequirements(const Aws::Vector<ResourceRequirement>& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = value; }
162 inline void SetResourceRequirements(Aws::Vector<ResourceRequirement>&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = std::move(value); }
165 inline ContainerOverride& AddResourceRequirements(const ResourceRequirement& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(value); return *this; }
166 inline ContainerOverride& AddResourceRequirements(ResourceRequirement&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(std::move(value)); return *this; }
168 private:
169
170 Aws::String m_name;
171 bool m_nameHasBeenSet = false;
172
173 Aws::Vector<Aws::String> m_command;
174 bool m_commandHasBeenSet = false;
175
176 Aws::Vector<KeyValuePair> m_environment;
177 bool m_environmentHasBeenSet = false;
178
179 Aws::Vector<EnvironmentFile> m_environmentFiles;
180 bool m_environmentFilesHasBeenSet = false;
181
182 int m_cpu;
183 bool m_cpuHasBeenSet = false;
184
185 int m_memory;
186 bool m_memoryHasBeenSet = false;
187
188 int m_memoryReservation;
189 bool m_memoryReservationHasBeenSet = false;
190
191 Aws::Vector<ResourceRequirement> m_resourceRequirements;
192 bool m_resourceRequirementsHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace ECS
197} // namespace Aws
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
Aws::Utils::Json::JsonValue JsonValue