AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerDefinition.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 ContainerDefinition();
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 ContainerDefinition& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
65 inline ContainerDefinition& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
66 inline ContainerDefinition& WithContainerName(const char* value) { SetContainerName(value); return *this;}
68
70
74 inline const Aws::String& GetImageUri() const{ return m_imageUri; }
75 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
76 inline void SetImageUri(const Aws::String& value) { m_imageUriHasBeenSet = true; m_imageUri = value; }
77 inline void SetImageUri(Aws::String&& value) { m_imageUriHasBeenSet = true; m_imageUri = std::move(value); }
78 inline void SetImageUri(const char* value) { m_imageUriHasBeenSet = true; m_imageUri.assign(value); }
79 inline ContainerDefinition& WithImageUri(const Aws::String& value) { SetImageUri(value); return *this;}
80 inline ContainerDefinition& WithImageUri(Aws::String&& value) { SetImageUri(std::move(value)); return *this;}
81 inline ContainerDefinition& WithImageUri(const char* value) { SetImageUri(value); return *this;}
83
85
90 inline const Aws::String& GetResolvedImageDigest() const{ return m_resolvedImageDigest; }
91 inline bool ResolvedImageDigestHasBeenSet() const { return m_resolvedImageDigestHasBeenSet; }
92 inline void SetResolvedImageDigest(const Aws::String& value) { m_resolvedImageDigestHasBeenSet = true; m_resolvedImageDigest = value; }
93 inline void SetResolvedImageDigest(Aws::String&& value) { m_resolvedImageDigestHasBeenSet = true; m_resolvedImageDigest = std::move(value); }
94 inline void SetResolvedImageDigest(const char* value) { m_resolvedImageDigestHasBeenSet = true; m_resolvedImageDigest.assign(value); }
96 inline ContainerDefinition& WithResolvedImageDigest(Aws::String&& value) { SetResolvedImageDigest(std::move(value)); return *this;}
97 inline ContainerDefinition& WithResolvedImageDigest(const char* value) { SetResolvedImageDigest(value); return *this;}
99
101
107 inline const ContainerMemoryLimits& GetMemoryLimits() const{ return m_memoryLimits; }
108 inline bool MemoryLimitsHasBeenSet() const { return m_memoryLimitsHasBeenSet; }
109 inline void SetMemoryLimits(const ContainerMemoryLimits& value) { m_memoryLimitsHasBeenSet = true; m_memoryLimits = value; }
110 inline void SetMemoryLimits(ContainerMemoryLimits&& value) { m_memoryLimitsHasBeenSet = true; m_memoryLimits = std::move(value); }
111 inline ContainerDefinition& WithMemoryLimits(const ContainerMemoryLimits& value) { SetMemoryLimits(value); return *this;}
112 inline ContainerDefinition& WithMemoryLimits(ContainerMemoryLimits&& value) { SetMemoryLimits(std::move(value)); return *this;}
114
116
124 inline const ContainerPortConfiguration& GetPortConfiguration() const{ return m_portConfiguration; }
125 inline bool PortConfigurationHasBeenSet() const { return m_portConfigurationHasBeenSet; }
126 inline void SetPortConfiguration(const ContainerPortConfiguration& value) { m_portConfigurationHasBeenSet = true; m_portConfiguration = value; }
127 inline void SetPortConfiguration(ContainerPortConfiguration&& value) { m_portConfigurationHasBeenSet = true; m_portConfiguration = std::move(value); }
131
133
139 inline int GetCpu() const{ return m_cpu; }
140 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
141 inline void SetCpu(int value) { m_cpuHasBeenSet = true; m_cpu = value; }
142 inline ContainerDefinition& WithCpu(int value) { SetCpu(value); return *this;}
144
146
154 inline const ContainerHealthCheck& GetHealthCheck() const{ return m_healthCheck; }
155 inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
156 inline void SetHealthCheck(const ContainerHealthCheck& value) { m_healthCheckHasBeenSet = true; m_healthCheck = value; }
157 inline void SetHealthCheck(ContainerHealthCheck&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::move(value); }
158 inline ContainerDefinition& WithHealthCheck(const ContainerHealthCheck& value) { SetHealthCheck(value); return *this;}
159 inline ContainerDefinition& WithHealthCheck(ContainerHealthCheck&& value) { SetHealthCheck(std::move(value)); return *this;}
161
163
169 inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
170 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
171 inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
172 inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
173 inline ContainerDefinition& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
174 inline ContainerDefinition& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
175 inline ContainerDefinition& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
176 inline ContainerDefinition& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
177 inline ContainerDefinition& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
179
181
185 inline bool GetEssential() const{ return m_essential; }
186 inline bool EssentialHasBeenSet() const { return m_essentialHasBeenSet; }
187 inline void SetEssential(bool value) { m_essentialHasBeenSet = true; m_essential = value; }
188 inline ContainerDefinition& WithEssential(bool value) { SetEssential(value); return *this;}
190
192
199 inline const Aws::Vector<Aws::String>& GetEntryPoint() const{ return m_entryPoint; }
200 inline bool EntryPointHasBeenSet() const { return m_entryPointHasBeenSet; }
201 inline void SetEntryPoint(const Aws::Vector<Aws::String>& value) { m_entryPointHasBeenSet = true; m_entryPoint = value; }
202 inline void SetEntryPoint(Aws::Vector<Aws::String>&& value) { m_entryPointHasBeenSet = true; m_entryPoint = std::move(value); }
203 inline ContainerDefinition& WithEntryPoint(const Aws::Vector<Aws::String>& value) { SetEntryPoint(value); return *this;}
204 inline ContainerDefinition& WithEntryPoint(Aws::Vector<Aws::String>&& value) { SetEntryPoint(std::move(value)); return *this;}
205 inline ContainerDefinition& AddEntryPoint(const Aws::String& value) { m_entryPointHasBeenSet = true; m_entryPoint.push_back(value); return *this; }
206 inline ContainerDefinition& AddEntryPoint(Aws::String&& value) { m_entryPointHasBeenSet = true; m_entryPoint.push_back(std::move(value)); return *this; }
207 inline ContainerDefinition& AddEntryPoint(const char* value) { m_entryPointHasBeenSet = true; m_entryPoint.push_back(value); return *this; }
209
211
216 inline const Aws::String& GetWorkingDirectory() const{ return m_workingDirectory; }
217 inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
218 inline void SetWorkingDirectory(const Aws::String& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = value; }
219 inline void SetWorkingDirectory(Aws::String&& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = std::move(value); }
220 inline void SetWorkingDirectory(const char* value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory.assign(value); }
221 inline ContainerDefinition& WithWorkingDirectory(const Aws::String& value) { SetWorkingDirectory(value); return *this;}
222 inline ContainerDefinition& WithWorkingDirectory(Aws::String&& value) { SetWorkingDirectory(std::move(value)); return *this;}
223 inline ContainerDefinition& WithWorkingDirectory(const char* value) { SetWorkingDirectory(value); return *this;}
225
227
233 inline const Aws::Vector<ContainerEnvironment>& GetEnvironment() const{ return m_environment; }
234 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
235 inline void SetEnvironment(const Aws::Vector<ContainerEnvironment>& value) { m_environmentHasBeenSet = true; m_environment = value; }
236 inline void SetEnvironment(Aws::Vector<ContainerEnvironment>&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
238 inline ContainerDefinition& WithEnvironment(Aws::Vector<ContainerEnvironment>&& value) { SetEnvironment(std::move(value)); return *this;}
239 inline ContainerDefinition& AddEnvironment(const ContainerEnvironment& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
240 inline ContainerDefinition& AddEnvironment(ContainerEnvironment&& value) { m_environmentHasBeenSet = true; m_environment.push_back(std::move(value)); return *this; }
242
244
249 inline const Aws::Vector<ContainerDependency>& GetDependsOn() const{ return m_dependsOn; }
250 inline bool DependsOnHasBeenSet() const { return m_dependsOnHasBeenSet; }
251 inline void SetDependsOn(const Aws::Vector<ContainerDependency>& value) { m_dependsOnHasBeenSet = true; m_dependsOn = value; }
252 inline void SetDependsOn(Aws::Vector<ContainerDependency>&& value) { m_dependsOnHasBeenSet = true; m_dependsOn = std::move(value); }
254 inline ContainerDefinition& WithDependsOn(Aws::Vector<ContainerDependency>&& value) { SetDependsOn(std::move(value)); return *this;}
255 inline ContainerDefinition& AddDependsOn(const ContainerDependency& value) { m_dependsOnHasBeenSet = true; m_dependsOn.push_back(value); return *this; }
256 inline ContainerDefinition& AddDependsOn(ContainerDependency&& value) { m_dependsOnHasBeenSet = true; m_dependsOn.push_back(std::move(value)); return *this; }
258 private:
259
260 Aws::String m_containerName;
261 bool m_containerNameHasBeenSet = false;
262
263 Aws::String m_imageUri;
264 bool m_imageUriHasBeenSet = false;
265
266 Aws::String m_resolvedImageDigest;
267 bool m_resolvedImageDigestHasBeenSet = false;
268
269 ContainerMemoryLimits m_memoryLimits;
270 bool m_memoryLimitsHasBeenSet = false;
271
272 ContainerPortConfiguration m_portConfiguration;
273 bool m_portConfigurationHasBeenSet = false;
274
275 int m_cpu;
276 bool m_cpuHasBeenSet = false;
277
278 ContainerHealthCheck m_healthCheck;
279 bool m_healthCheckHasBeenSet = false;
280
281 Aws::Vector<Aws::String> m_command;
282 bool m_commandHasBeenSet = false;
283
284 bool m_essential;
285 bool m_essentialHasBeenSet = false;
286
287 Aws::Vector<Aws::String> m_entryPoint;
288 bool m_entryPointHasBeenSet = false;
289
290 Aws::String m_workingDirectory;
291 bool m_workingDirectoryHasBeenSet = false;
292
294 bool m_environmentHasBeenSet = false;
295
297 bool m_dependsOnHasBeenSet = false;
298 };
299
300} // namespace Model
301} // namespace GameLift
302} // namespace Aws
void SetHealthCheck(ContainerHealthCheck &&value)
ContainerDefinition & WithCommand(Aws::Vector< Aws::String > &&value)
const Aws::String & GetWorkingDirectory() const
ContainerDefinition & WithContainerName(const char *value)
ContainerDefinition & WithWorkingDirectory(const Aws::String &value)
const Aws::Vector< Aws::String > & GetEntryPoint() const
void SetContainerName(const Aws::String &value)
void SetMemoryLimits(const ContainerMemoryLimits &value)
void SetEntryPoint(const Aws::Vector< Aws::String > &value)
void SetHealthCheck(const ContainerHealthCheck &value)
ContainerDefinition & WithMemoryLimits(ContainerMemoryLimits &&value)
void SetPortConfiguration(ContainerPortConfiguration &&value)
ContainerDefinition & WithResolvedImageDigest(const Aws::String &value)
void SetResolvedImageDigest(const Aws::String &value)
void SetPortConfiguration(const ContainerPortConfiguration &value)
ContainerDefinition & WithDependsOn(const Aws::Vector< ContainerDependency > &value)
ContainerDefinition & AddCommand(Aws::String &&value)
ContainerDefinition & AddCommand(const Aws::String &value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEnvironment(Aws::Vector< ContainerEnvironment > &&value)
void SetDependsOn(const Aws::Vector< ContainerDependency > &value)
ContainerDefinition & WithCommand(const Aws::Vector< Aws::String > &value)
void SetWorkingDirectory(const Aws::String &value)
ContainerDefinition & WithMemoryLimits(const ContainerMemoryLimits &value)
ContainerDefinition & WithEssential(bool value)
ContainerDefinition & AddEntryPoint(Aws::String &&value)
ContainerDefinition & WithWorkingDirectory(Aws::String &&value)
void SetCommand(const Aws::Vector< Aws::String > &value)
ContainerDefinition & WithImageUri(const Aws::String &value)
ContainerDefinition & WithWorkingDirectory(const char *value)
void SetEntryPoint(Aws::Vector< Aws::String > &&value)
void SetCommand(Aws::Vector< Aws::String > &&value)
const Aws::Vector< ContainerDependency > & GetDependsOn() const
const ContainerPortConfiguration & GetPortConfiguration() const
ContainerDefinition & AddCommand(const char *value)
ContainerDefinition & WithDependsOn(Aws::Vector< ContainerDependency > &&value)
ContainerDefinition & AddEnvironment(const ContainerEnvironment &value)
const ContainerHealthCheck & GetHealthCheck() const
void SetImageUri(const Aws::String &value)
ContainerDefinition & WithHealthCheck(ContainerHealthCheck &&value)
void SetDependsOn(Aws::Vector< ContainerDependency > &&value)
const ContainerMemoryLimits & GetMemoryLimits() const
void SetEnvironment(const Aws::Vector< ContainerEnvironment > &value)
ContainerDefinition & WithImageUri(Aws::String &&value)
ContainerDefinition & WithContainerName(Aws::String &&value)
const Aws::Vector< Aws::String > & GetCommand() const
ContainerDefinition & WithPortConfiguration(ContainerPortConfiguration &&value)
ContainerDefinition & WithResolvedImageDigest(const char *value)
ContainerDefinition & WithContainerName(const Aws::String &value)
ContainerDefinition & WithResolvedImageDigest(Aws::String &&value)
const Aws::Vector< ContainerEnvironment > & GetEnvironment() const
ContainerDefinition & AddEntryPoint(const Aws::String &value)
void SetMemoryLimits(ContainerMemoryLimits &&value)
ContainerDefinition & AddEnvironment(ContainerEnvironment &&value)
ContainerDefinition & AddDependsOn(ContainerDependency &&value)
ContainerDefinition & WithEntryPoint(const Aws::Vector< Aws::String > &value)
ContainerDefinition & AddEntryPoint(const char *value)
ContainerDefinition & WithEnvironment(const Aws::Vector< ContainerEnvironment > &value)
ContainerDefinition & WithCpu(int value)
ContainerDefinition & WithHealthCheck(const ContainerHealthCheck &value)
AWS_GAMELIFT_API ContainerDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerDefinition & AddDependsOn(const ContainerDependency &value)
ContainerDefinition & WithPortConfiguration(const ContainerPortConfiguration &value)
ContainerDefinition & WithEnvironment(Aws::Vector< ContainerEnvironment > &&value)
ContainerDefinition & WithEntryPoint(Aws::Vector< Aws::String > &&value)
ContainerDefinition & WithImageUri(const char *value)
AWS_GAMELIFT_API ContainerDefinition(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResolvedImageDigest() 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