AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerDefinitionInput.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/model/ContainerMemoryLimits.h>
10#include <aws/gamelift/model/ContainerPortConfiguration.h>
11#include <aws/gamelift/model/ContainerHealthCheck.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/gamelift/model/ContainerEnvironment.h>
14#include <aws/gamelift/model/ContainerDependency.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace GameLift
28{
29namespace Model
30{
31
46 {
47 public:
48 AWS_GAMELIFT_API ContainerDefinitionInput();
51 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
52
53
55
59 inline const Aws::String& GetContainerName() const{ return m_containerName; }
60 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
61 inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
62 inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
63 inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
64 inline ContainerDefinitionInput& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
65 inline ContainerDefinitionInput& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
66 inline ContainerDefinitionInput& WithContainerName(const char* value) { SetContainerName(value); return *this;}
68
70
85 inline const Aws::String& GetImageUri() const{ return m_imageUri; }
86 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
87 inline void SetImageUri(const Aws::String& value) { m_imageUriHasBeenSet = true; m_imageUri = value; }
88 inline void SetImageUri(Aws::String&& value) { m_imageUriHasBeenSet = true; m_imageUri = std::move(value); }
89 inline void SetImageUri(const char* value) { m_imageUriHasBeenSet = true; m_imageUri.assign(value); }
90 inline ContainerDefinitionInput& WithImageUri(const Aws::String& value) { SetImageUri(value); return *this;}
91 inline ContainerDefinitionInput& WithImageUri(Aws::String&& value) { SetImageUri(std::move(value)); return *this;}
92 inline ContainerDefinitionInput& WithImageUri(const char* value) { SetImageUri(value); return *this;}
94
96
102 inline const ContainerMemoryLimits& GetMemoryLimits() const{ return m_memoryLimits; }
103 inline bool MemoryLimitsHasBeenSet() const { return m_memoryLimitsHasBeenSet; }
104 inline void SetMemoryLimits(const ContainerMemoryLimits& value) { m_memoryLimitsHasBeenSet = true; m_memoryLimits = value; }
105 inline void SetMemoryLimits(ContainerMemoryLimits&& value) { m_memoryLimitsHasBeenSet = true; m_memoryLimits = std::move(value); }
107 inline ContainerDefinitionInput& WithMemoryLimits(ContainerMemoryLimits&& value) { SetMemoryLimits(std::move(value)); return *this;}
109
111
125 inline const ContainerPortConfiguration& GetPortConfiguration() const{ return m_portConfiguration; }
126 inline bool PortConfigurationHasBeenSet() const { return m_portConfigurationHasBeenSet; }
127 inline void SetPortConfiguration(const ContainerPortConfiguration& value) { m_portConfigurationHasBeenSet = true; m_portConfiguration = value; }
128 inline void SetPortConfiguration(ContainerPortConfiguration&& value) { m_portConfigurationHasBeenSet = true; m_portConfiguration = std::move(value); }
132
134
144 inline int GetCpu() const{ return m_cpu; }
145 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
146 inline void SetCpu(int value) { m_cpuHasBeenSet = true; m_cpu = value; }
147 inline ContainerDefinitionInput& WithCpu(int value) { SetCpu(value); return *this;}
149
151
159 inline const ContainerHealthCheck& GetHealthCheck() const{ return m_healthCheck; }
160 inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
161 inline void SetHealthCheck(const ContainerHealthCheck& value) { m_healthCheckHasBeenSet = true; m_healthCheck = value; }
162 inline void SetHealthCheck(ContainerHealthCheck&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::move(value); }
164 inline ContainerDefinitionInput& WithHealthCheck(ContainerHealthCheck&& value) { SetHealthCheck(std::move(value)); return *this;}
166
168
175 inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
176 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
177 inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
178 inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
179 inline ContainerDefinitionInput& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
180 inline ContainerDefinitionInput& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
181 inline ContainerDefinitionInput& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
182 inline ContainerDefinitionInput& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
183 inline ContainerDefinitionInput& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
185
187
201 inline bool GetEssential() const{ return m_essential; }
202 inline bool EssentialHasBeenSet() const { return m_essentialHasBeenSet; }
203 inline void SetEssential(bool value) { m_essentialHasBeenSet = true; m_essential = value; }
204 inline ContainerDefinitionInput& WithEssential(bool value) { SetEssential(value); return *this;}
206
208
214 inline const Aws::Vector<Aws::String>& GetEntryPoint() const{ return m_entryPoint; }
215 inline bool EntryPointHasBeenSet() const { return m_entryPointHasBeenSet; }
216 inline void SetEntryPoint(const Aws::Vector<Aws::String>& value) { m_entryPointHasBeenSet = true; m_entryPoint = value; }
217 inline void SetEntryPoint(Aws::Vector<Aws::String>&& value) { m_entryPointHasBeenSet = true; m_entryPoint = std::move(value); }
219 inline ContainerDefinitionInput& WithEntryPoint(Aws::Vector<Aws::String>&& value) { SetEntryPoint(std::move(value)); return *this;}
220 inline ContainerDefinitionInput& AddEntryPoint(const Aws::String& value) { m_entryPointHasBeenSet = true; m_entryPoint.push_back(value); return *this; }
221 inline ContainerDefinitionInput& AddEntryPoint(Aws::String&& value) { m_entryPointHasBeenSet = true; m_entryPoint.push_back(std::move(value)); return *this; }
222 inline ContainerDefinitionInput& AddEntryPoint(const char* value) { m_entryPointHasBeenSet = true; m_entryPoint.push_back(value); return *this; }
224
226
231 inline const Aws::String& GetWorkingDirectory() const{ return m_workingDirectory; }
232 inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
233 inline void SetWorkingDirectory(const Aws::String& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = value; }
234 inline void SetWorkingDirectory(Aws::String&& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = std::move(value); }
235 inline void SetWorkingDirectory(const char* value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory.assign(value); }
237 inline ContainerDefinitionInput& WithWorkingDirectory(Aws::String&& value) { SetWorkingDirectory(std::move(value)); return *this;}
238 inline ContainerDefinitionInput& WithWorkingDirectory(const char* value) { SetWorkingDirectory(value); return *this;}
240
242
248 inline const Aws::Vector<ContainerEnvironment>& GetEnvironment() const{ return m_environment; }
249 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
250 inline void SetEnvironment(const Aws::Vector<ContainerEnvironment>& value) { m_environmentHasBeenSet = true; m_environment = value; }
251 inline void SetEnvironment(Aws::Vector<ContainerEnvironment>&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
254 inline ContainerDefinitionInput& AddEnvironment(const ContainerEnvironment& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
255 inline ContainerDefinitionInput& AddEnvironment(ContainerEnvironment&& value) { m_environmentHasBeenSet = true; m_environment.push_back(std::move(value)); return *this; }
257
259
271 inline const Aws::Vector<ContainerDependency>& GetDependsOn() const{ return m_dependsOn; }
272 inline bool DependsOnHasBeenSet() const { return m_dependsOnHasBeenSet; }
273 inline void SetDependsOn(const Aws::Vector<ContainerDependency>& value) { m_dependsOnHasBeenSet = true; m_dependsOn = value; }
274 inline void SetDependsOn(Aws::Vector<ContainerDependency>&& value) { m_dependsOnHasBeenSet = true; m_dependsOn = std::move(value); }
276 inline ContainerDefinitionInput& WithDependsOn(Aws::Vector<ContainerDependency>&& value) { SetDependsOn(std::move(value)); return *this;}
277 inline ContainerDefinitionInput& AddDependsOn(const ContainerDependency& value) { m_dependsOnHasBeenSet = true; m_dependsOn.push_back(value); return *this; }
278 inline ContainerDefinitionInput& AddDependsOn(ContainerDependency&& value) { m_dependsOnHasBeenSet = true; m_dependsOn.push_back(std::move(value)); return *this; }
280 private:
281
282 Aws::String m_containerName;
283 bool m_containerNameHasBeenSet = false;
284
285 Aws::String m_imageUri;
286 bool m_imageUriHasBeenSet = false;
287
288 ContainerMemoryLimits m_memoryLimits;
289 bool m_memoryLimitsHasBeenSet = false;
290
291 ContainerPortConfiguration m_portConfiguration;
292 bool m_portConfigurationHasBeenSet = false;
293
294 int m_cpu;
295 bool m_cpuHasBeenSet = false;
296
297 ContainerHealthCheck m_healthCheck;
298 bool m_healthCheckHasBeenSet = false;
299
300 Aws::Vector<Aws::String> m_command;
301 bool m_commandHasBeenSet = false;
302
303 bool m_essential;
304 bool m_essentialHasBeenSet = false;
305
306 Aws::Vector<Aws::String> m_entryPoint;
307 bool m_entryPointHasBeenSet = false;
308
309 Aws::String m_workingDirectory;
310 bool m_workingDirectoryHasBeenSet = false;
311
313 bool m_environmentHasBeenSet = false;
314
316 bool m_dependsOnHasBeenSet = false;
317 };
318
319} // namespace Model
320} // namespace GameLift
321} // namespace Aws
const Aws::Vector< ContainerDependency > & GetDependsOn() const
ContainerDefinitionInput & WithCommand(Aws::Vector< Aws::String > &&value)
ContainerDefinitionInput & WithContainerName(const char *value)
ContainerDefinitionInput & AddCommand(const char *value)
ContainerDefinitionInput & WithDependsOn(const Aws::Vector< ContainerDependency > &value)
ContainerDefinitionInput & AddCommand(Aws::String &&value)
ContainerDefinitionInput & WithDependsOn(Aws::Vector< ContainerDependency > &&value)
void SetDependsOn(const Aws::Vector< ContainerDependency > &value)
void SetHealthCheck(const ContainerHealthCheck &value)
ContainerDefinitionInput & WithHealthCheck(ContainerHealthCheck &&value)
void SetEnvironment(const Aws::Vector< ContainerEnvironment > &value)
AWS_GAMELIFT_API ContainerDefinitionInput(Aws::Utils::Json::JsonView jsonValue)
ContainerDefinitionInput & WithContainerName(Aws::String &&value)
const Aws::Vector< ContainerEnvironment > & GetEnvironment() const
ContainerDefinitionInput & WithCommand(const Aws::Vector< Aws::String > &value)
ContainerDefinitionInput & AddEntryPoint(const Aws::String &value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCommand(const Aws::Vector< Aws::String > &value)
ContainerDefinitionInput & WithImageUri(const char *value)
ContainerDefinitionInput & WithEnvironment(const Aws::Vector< ContainerEnvironment > &value)
AWS_GAMELIFT_API ContainerDefinitionInput & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerDefinitionInput & WithImageUri(Aws::String &&value)
ContainerDefinitionInput & WithEntryPoint(Aws::Vector< Aws::String > &&value)
void SetPortConfiguration(ContainerPortConfiguration &&value)
ContainerDefinitionInput & WithContainerName(const Aws::String &value)
void SetMemoryLimits(ContainerMemoryLimits &&value)
void SetEntryPoint(const Aws::Vector< Aws::String > &value)
ContainerDefinitionInput & AddEnvironment(const ContainerEnvironment &value)
ContainerDefinitionInput & AddCommand(const Aws::String &value)
void SetPortConfiguration(const ContainerPortConfiguration &value)
const ContainerHealthCheck & GetHealthCheck() const
ContainerDefinitionInput & AddEnvironment(ContainerEnvironment &&value)
ContainerDefinitionInput & WithPortConfiguration(ContainerPortConfiguration &&value)
void SetDependsOn(Aws::Vector< ContainerDependency > &&value)
void SetEntryPoint(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetCommand() const
void SetEnvironment(Aws::Vector< ContainerEnvironment > &&value)
void SetCommand(Aws::Vector< Aws::String > &&value)
ContainerDefinitionInput & AddDependsOn(const ContainerDependency &value)
ContainerDefinitionInput & WithWorkingDirectory(const char *value)
ContainerDefinitionInput & WithPortConfiguration(const ContainerPortConfiguration &value)
ContainerDefinitionInput & WithWorkingDirectory(Aws::String &&value)
ContainerDefinitionInput & AddEntryPoint(const char *value)
ContainerDefinitionInput & WithHealthCheck(const ContainerHealthCheck &value)
ContainerDefinitionInput & WithEnvironment(Aws::Vector< ContainerEnvironment > &&value)
ContainerDefinitionInput & WithEssential(bool value)
const Aws::Vector< Aws::String > & GetEntryPoint() const
const ContainerPortConfiguration & GetPortConfiguration() const
ContainerDefinitionInput & WithWorkingDirectory(const Aws::String &value)
ContainerDefinitionInput & AddEntryPoint(Aws::String &&value)
ContainerDefinitionInput & AddDependsOn(ContainerDependency &&value)
ContainerDefinitionInput & WithMemoryLimits(const ContainerMemoryLimits &value)
ContainerDefinitionInput & WithEntryPoint(const Aws::Vector< Aws::String > &value)
ContainerDefinitionInput & WithImageUri(const Aws::String &value)
void SetMemoryLimits(const ContainerMemoryLimits &value)
ContainerDefinitionInput & WithMemoryLimits(ContainerMemoryLimits &&value)
const ContainerMemoryLimits & GetMemoryLimits() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue