AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
SupportContainerDefinition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/ContainerDependency.h>
12#include <aws/gamelift/model/ContainerEnvironment.h>
13#include <aws/gamelift/model/ContainerHealthCheck.h>
14#include <aws/gamelift/model/ContainerMountPoint.h>
15#include <aws/gamelift/model/ContainerPortConfiguration.h>
16#include <aws/gamelift/model/LinuxCapabilities.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Cbor {
23class CborValue;
24} // namespace Cbor
25} // namespace Utils
26namespace GameLift {
27namespace Model {
28
53 public:
54 AWS_GAMELIFT_API SupportContainerDefinition() = default;
55 AWS_GAMELIFT_API SupportContainerDefinition(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
56 AWS_GAMELIFT_API SupportContainerDefinition& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
57 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
58
60
64 inline const Aws::String& GetContainerName() const { return m_containerName; }
65 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
66 template <typename ContainerNameT = Aws::String>
67 void SetContainerName(ContainerNameT&& value) {
68 m_containerNameHasBeenSet = true;
69 m_containerName = std::forward<ContainerNameT>(value);
70 }
71 template <typename ContainerNameT = Aws::String>
73 SetContainerName(std::forward<ContainerNameT>(value));
74 return *this;
75 }
77
79
84 inline const Aws::Vector<ContainerDependency>& GetDependsOn() const { return m_dependsOn; }
85 inline bool DependsOnHasBeenSet() const { return m_dependsOnHasBeenSet; }
86 template <typename DependsOnT = Aws::Vector<ContainerDependency>>
87 void SetDependsOn(DependsOnT&& value) {
88 m_dependsOnHasBeenSet = true;
89 m_dependsOn = std::forward<DependsOnT>(value);
90 }
91 template <typename DependsOnT = Aws::Vector<ContainerDependency>>
93 SetDependsOn(std::forward<DependsOnT>(value));
94 return *this;
95 }
96 template <typename DependsOnT = ContainerDependency>
98 m_dependsOnHasBeenSet = true;
99 m_dependsOn.emplace_back(std::forward<DependsOnT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::Vector<ContainerMountPoint>& GetMountPoints() const { return m_mountPoints; }
110 inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; }
111 template <typename MountPointsT = Aws::Vector<ContainerMountPoint>>
112 void SetMountPoints(MountPointsT&& value) {
113 m_mountPointsHasBeenSet = true;
114 m_mountPoints = std::forward<MountPointsT>(value);
115 }
116 template <typename MountPointsT = Aws::Vector<ContainerMountPoint>>
118 SetMountPoints(std::forward<MountPointsT>(value));
119 return *this;
120 }
121 template <typename MountPointsT = ContainerMountPoint>
123 m_mountPointsHasBeenSet = true;
124 m_mountPoints.emplace_back(std::forward<MountPointsT>(value));
125 return *this;
126 }
128
130
136 inline const Aws::Vector<ContainerEnvironment>& GetEnvironmentOverride() const { return m_environmentOverride; }
137 inline bool EnvironmentOverrideHasBeenSet() const { return m_environmentOverrideHasBeenSet; }
138 template <typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
139 void SetEnvironmentOverride(EnvironmentOverrideT&& value) {
140 m_environmentOverrideHasBeenSet = true;
141 m_environmentOverride = std::forward<EnvironmentOverrideT>(value);
142 }
143 template <typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
145 SetEnvironmentOverride(std::forward<EnvironmentOverrideT>(value));
146 return *this;
147 }
148 template <typename EnvironmentOverrideT = ContainerEnvironment>
149 SupportContainerDefinition& AddEnvironmentOverride(EnvironmentOverrideT&& value) {
150 m_environmentOverrideHasBeenSet = true;
151 m_environmentOverride.emplace_back(std::forward<EnvironmentOverrideT>(value));
152 return *this;
153 }
155
157
161 inline bool GetEssential() const { return m_essential; }
162 inline bool EssentialHasBeenSet() const { return m_essentialHasBeenSet; }
163 inline void SetEssential(bool value) {
164 m_essentialHasBeenSet = true;
165 m_essential = value;
166 }
168 SetEssential(value);
169 return *this;
170 }
172
174
179 inline const ContainerHealthCheck& GetHealthCheck() const { return m_healthCheck; }
180 inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
181 template <typename HealthCheckT = ContainerHealthCheck>
182 void SetHealthCheck(HealthCheckT&& value) {
183 m_healthCheckHasBeenSet = true;
184 m_healthCheck = std::forward<HealthCheckT>(value);
185 }
186 template <typename HealthCheckT = ContainerHealthCheck>
188 SetHealthCheck(std::forward<HealthCheckT>(value));
189 return *this;
190 }
192
194
199 inline const Aws::String& GetImageUri() const { return m_imageUri; }
200 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
201 template <typename ImageUriT = Aws::String>
202 void SetImageUri(ImageUriT&& value) {
203 m_imageUriHasBeenSet = true;
204 m_imageUri = std::forward<ImageUriT>(value);
205 }
206 template <typename ImageUriT = Aws::String>
208 SetImageUri(std::forward<ImageUriT>(value));
209 return *this;
210 }
212
214
222 inline int64_t GetMemoryHardLimitMebibytes() const { return m_memoryHardLimitMebibytes; }
223 inline bool MemoryHardLimitMebibytesHasBeenSet() const { return m_memoryHardLimitMebibytesHasBeenSet; }
224 inline void SetMemoryHardLimitMebibytes(int64_t value) {
225 m_memoryHardLimitMebibytesHasBeenSet = true;
226 m_memoryHardLimitMebibytes = value;
227 }
230 return *this;
231 }
233
235
243 inline const ContainerPortConfiguration& GetPortConfiguration() const { return m_portConfiguration; }
244 inline bool PortConfigurationHasBeenSet() const { return m_portConfigurationHasBeenSet; }
245 template <typename PortConfigurationT = ContainerPortConfiguration>
246 void SetPortConfiguration(PortConfigurationT&& value) {
247 m_portConfigurationHasBeenSet = true;
248 m_portConfiguration = std::forward<PortConfigurationT>(value);
249 }
250 template <typename PortConfigurationT = ContainerPortConfiguration>
252 SetPortConfiguration(std::forward<PortConfigurationT>(value));
253 return *this;
254 }
256
258
262 inline const Aws::String& GetResolvedImageDigest() const { return m_resolvedImageDigest; }
263 inline bool ResolvedImageDigestHasBeenSet() const { return m_resolvedImageDigestHasBeenSet; }
264 template <typename ResolvedImageDigestT = Aws::String>
265 void SetResolvedImageDigest(ResolvedImageDigestT&& value) {
266 m_resolvedImageDigestHasBeenSet = true;
267 m_resolvedImageDigest = std::forward<ResolvedImageDigestT>(value);
268 }
269 template <typename ResolvedImageDigestT = Aws::String>
271 SetResolvedImageDigest(std::forward<ResolvedImageDigestT>(value));
272 return *this;
273 }
275
277
284 inline double GetVcpu() const { return m_vcpu; }
285 inline bool VcpuHasBeenSet() const { return m_vcpuHasBeenSet; }
286 inline void SetVcpu(double value) {
287 m_vcpuHasBeenSet = true;
288 m_vcpu = value;
289 }
290 inline SupportContainerDefinition& WithVcpu(double value) {
291 SetVcpu(value);
292 return *this;
293 }
295
297
302 inline const LinuxCapabilities& GetLinuxCapabilities() const { return m_linuxCapabilities; }
303 inline bool LinuxCapabilitiesHasBeenSet() const { return m_linuxCapabilitiesHasBeenSet; }
304 template <typename LinuxCapabilitiesT = LinuxCapabilities>
305 void SetLinuxCapabilities(LinuxCapabilitiesT&& value) {
306 m_linuxCapabilitiesHasBeenSet = true;
307 m_linuxCapabilities = std::forward<LinuxCapabilitiesT>(value);
308 }
309 template <typename LinuxCapabilitiesT = LinuxCapabilities>
311 SetLinuxCapabilities(std::forward<LinuxCapabilitiesT>(value));
312 return *this;
313 }
315 private:
316 Aws::String m_containerName;
317
319
321
322 Aws::Vector<ContainerEnvironment> m_environmentOverride;
323
324 bool m_essential{false};
325
326 ContainerHealthCheck m_healthCheck;
327
328 Aws::String m_imageUri;
329
330 int64_t m_memoryHardLimitMebibytes{0};
331
332 ContainerPortConfiguration m_portConfiguration;
333
334 Aws::String m_resolvedImageDigest;
335
336 double m_vcpu{0.0};
337
338 LinuxCapabilities m_linuxCapabilities;
339 bool m_containerNameHasBeenSet = false;
340 bool m_dependsOnHasBeenSet = false;
341 bool m_mountPointsHasBeenSet = false;
342 bool m_environmentOverrideHasBeenSet = false;
343 bool m_essentialHasBeenSet = false;
344 bool m_healthCheckHasBeenSet = false;
345 bool m_imageUriHasBeenSet = false;
346 bool m_memoryHardLimitMebibytesHasBeenSet = false;
347 bool m_portConfigurationHasBeenSet = false;
348 bool m_resolvedImageDigestHasBeenSet = false;
349 bool m_vcpuHasBeenSet = false;
350 bool m_linuxCapabilitiesHasBeenSet = false;
351};
352
353} // namespace Model
354} // namespace GameLift
355} // namespace Aws
SupportContainerDefinition & AddEnvironmentOverride(EnvironmentOverrideT &&value)
SupportContainerDefinition & WithEssential(bool value)
SupportContainerDefinition & WithHealthCheck(HealthCheckT &&value)
SupportContainerDefinition & WithVcpu(double value)
SupportContainerDefinition & WithContainerName(ContainerNameT &&value)
SupportContainerDefinition & WithResolvedImageDigest(ResolvedImageDigestT &&value)
SupportContainerDefinition & AddMountPoints(MountPointsT &&value)
SupportContainerDefinition & WithDependsOn(DependsOnT &&value)
SupportContainerDefinition & WithPortConfiguration(PortConfigurationT &&value)
AWS_GAMELIFT_API SupportContainerDefinition()=default
SupportContainerDefinition & WithImageUri(ImageUriT &&value)
SupportContainerDefinition & WithMountPoints(MountPointsT &&value)
AWS_GAMELIFT_API SupportContainerDefinition & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const ContainerPortConfiguration & GetPortConfiguration() const
const Aws::Vector< ContainerDependency > & GetDependsOn() const
SupportContainerDefinition & WithEnvironmentOverride(EnvironmentOverrideT &&value)
AWS_GAMELIFT_API SupportContainerDefinition(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SupportContainerDefinition & WithMemoryHardLimitMebibytes(int64_t value)
const Aws::Vector< ContainerEnvironment > & GetEnvironmentOverride() const
SupportContainerDefinition & WithLinuxCapabilities(LinuxCapabilitiesT &&value)
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
SupportContainerDefinition & AddDependsOn(DependsOnT &&value)
const Aws::Vector< ContainerMountPoint > & GetMountPoints() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector