AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SupportContainerDefinition.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/gamelift/model/ContainerHealthCheck.h>
11#include <aws/gamelift/model/ContainerPortConfiguration.h>
12#include <aws/gamelift/model/ContainerDependency.h>
13#include <aws/gamelift/model/ContainerMountPoint.h>
14#include <aws/gamelift/model/ContainerEnvironment.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
52 {
53 public:
54 AWS_GAMELIFT_API SupportContainerDefinition() = default;
57 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
58
59
61
65 inline const Aws::String& GetContainerName() const { return m_containerName; }
66 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
67 template<typename ContainerNameT = Aws::String>
68 void SetContainerName(ContainerNameT&& value) { m_containerNameHasBeenSet = true; m_containerName = std::forward<ContainerNameT>(value); }
69 template<typename ContainerNameT = Aws::String>
70 SupportContainerDefinition& WithContainerName(ContainerNameT&& value) { SetContainerName(std::forward<ContainerNameT>(value)); return *this;}
72
74
79 inline const Aws::Vector<ContainerDependency>& GetDependsOn() const { return m_dependsOn; }
80 inline bool DependsOnHasBeenSet() const { return m_dependsOnHasBeenSet; }
81 template<typename DependsOnT = Aws::Vector<ContainerDependency>>
82 void SetDependsOn(DependsOnT&& value) { m_dependsOnHasBeenSet = true; m_dependsOn = std::forward<DependsOnT>(value); }
83 template<typename DependsOnT = Aws::Vector<ContainerDependency>>
84 SupportContainerDefinition& WithDependsOn(DependsOnT&& value) { SetDependsOn(std::forward<DependsOnT>(value)); return *this;}
85 template<typename DependsOnT = ContainerDependency>
86 SupportContainerDefinition& AddDependsOn(DependsOnT&& value) { m_dependsOnHasBeenSet = true; m_dependsOn.emplace_back(std::forward<DependsOnT>(value)); return *this; }
88
90
94 inline const Aws::Vector<ContainerMountPoint>& GetMountPoints() const { return m_mountPoints; }
95 inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; }
96 template<typename MountPointsT = Aws::Vector<ContainerMountPoint>>
97 void SetMountPoints(MountPointsT&& value) { m_mountPointsHasBeenSet = true; m_mountPoints = std::forward<MountPointsT>(value); }
98 template<typename MountPointsT = Aws::Vector<ContainerMountPoint>>
99 SupportContainerDefinition& WithMountPoints(MountPointsT&& value) { SetMountPoints(std::forward<MountPointsT>(value)); return *this;}
100 template<typename MountPointsT = ContainerMountPoint>
101 SupportContainerDefinition& AddMountPoints(MountPointsT&& value) { m_mountPointsHasBeenSet = true; m_mountPoints.emplace_back(std::forward<MountPointsT>(value)); return *this; }
103
105
111 inline const Aws::Vector<ContainerEnvironment>& GetEnvironmentOverride() const { return m_environmentOverride; }
112 inline bool EnvironmentOverrideHasBeenSet() const { return m_environmentOverrideHasBeenSet; }
113 template<typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
114 void SetEnvironmentOverride(EnvironmentOverrideT&& value) { m_environmentOverrideHasBeenSet = true; m_environmentOverride = std::forward<EnvironmentOverrideT>(value); }
115 template<typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
116 SupportContainerDefinition& WithEnvironmentOverride(EnvironmentOverrideT&& value) { SetEnvironmentOverride(std::forward<EnvironmentOverrideT>(value)); return *this;}
117 template<typename EnvironmentOverrideT = ContainerEnvironment>
118 SupportContainerDefinition& AddEnvironmentOverride(EnvironmentOverrideT&& value) { m_environmentOverrideHasBeenSet = true; m_environmentOverride.emplace_back(std::forward<EnvironmentOverrideT>(value)); return *this; }
120
122
126 inline bool GetEssential() const { return m_essential; }
127 inline bool EssentialHasBeenSet() const { return m_essentialHasBeenSet; }
128 inline void SetEssential(bool value) { m_essentialHasBeenSet = true; m_essential = value; }
129 inline SupportContainerDefinition& WithEssential(bool value) { SetEssential(value); return *this;}
131
133
138 inline const ContainerHealthCheck& GetHealthCheck() const { return m_healthCheck; }
139 inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
140 template<typename HealthCheckT = ContainerHealthCheck>
141 void SetHealthCheck(HealthCheckT&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::forward<HealthCheckT>(value); }
142 template<typename HealthCheckT = ContainerHealthCheck>
143 SupportContainerDefinition& WithHealthCheck(HealthCheckT&& value) { SetHealthCheck(std::forward<HealthCheckT>(value)); return *this;}
145
147
152 inline const Aws::String& GetImageUri() const { return m_imageUri; }
153 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
154 template<typename ImageUriT = Aws::String>
155 void SetImageUri(ImageUriT&& value) { m_imageUriHasBeenSet = true; m_imageUri = std::forward<ImageUriT>(value); }
156 template<typename ImageUriT = Aws::String>
157 SupportContainerDefinition& WithImageUri(ImageUriT&& value) { SetImageUri(std::forward<ImageUriT>(value)); return *this;}
159
161
169 inline int GetMemoryHardLimitMebibytes() const { return m_memoryHardLimitMebibytes; }
170 inline bool MemoryHardLimitMebibytesHasBeenSet() const { return m_memoryHardLimitMebibytesHasBeenSet; }
171 inline void SetMemoryHardLimitMebibytes(int value) { m_memoryHardLimitMebibytesHasBeenSet = true; m_memoryHardLimitMebibytes = value; }
174
176
184 inline const ContainerPortConfiguration& GetPortConfiguration() const { return m_portConfiguration; }
185 inline bool PortConfigurationHasBeenSet() const { return m_portConfigurationHasBeenSet; }
186 template<typename PortConfigurationT = ContainerPortConfiguration>
187 void SetPortConfiguration(PortConfigurationT&& value) { m_portConfigurationHasBeenSet = true; m_portConfiguration = std::forward<PortConfigurationT>(value); }
188 template<typename PortConfigurationT = ContainerPortConfiguration>
189 SupportContainerDefinition& WithPortConfiguration(PortConfigurationT&& value) { SetPortConfiguration(std::forward<PortConfigurationT>(value)); return *this;}
191
193
197 inline const Aws::String& GetResolvedImageDigest() const { return m_resolvedImageDigest; }
198 inline bool ResolvedImageDigestHasBeenSet() const { return m_resolvedImageDigestHasBeenSet; }
199 template<typename ResolvedImageDigestT = Aws::String>
200 void SetResolvedImageDigest(ResolvedImageDigestT&& value) { m_resolvedImageDigestHasBeenSet = true; m_resolvedImageDigest = std::forward<ResolvedImageDigestT>(value); }
201 template<typename ResolvedImageDigestT = Aws::String>
202 SupportContainerDefinition& WithResolvedImageDigest(ResolvedImageDigestT&& value) { SetResolvedImageDigest(std::forward<ResolvedImageDigestT>(value)); return *this;}
204
206
213 inline double GetVcpu() const { return m_vcpu; }
214 inline bool VcpuHasBeenSet() const { return m_vcpuHasBeenSet; }
215 inline void SetVcpu(double value) { m_vcpuHasBeenSet = true; m_vcpu = value; }
216 inline SupportContainerDefinition& WithVcpu(double value) { SetVcpu(value); return *this;}
218 private:
219
220 Aws::String m_containerName;
221 bool m_containerNameHasBeenSet = false;
222
224 bool m_dependsOnHasBeenSet = false;
225
227 bool m_mountPointsHasBeenSet = false;
228
229 Aws::Vector<ContainerEnvironment> m_environmentOverride;
230 bool m_environmentOverrideHasBeenSet = false;
231
232 bool m_essential{false};
233 bool m_essentialHasBeenSet = false;
234
235 ContainerHealthCheck m_healthCheck;
236 bool m_healthCheckHasBeenSet = false;
237
238 Aws::String m_imageUri;
239 bool m_imageUriHasBeenSet = false;
240
241 int m_memoryHardLimitMebibytes{0};
242 bool m_memoryHardLimitMebibytesHasBeenSet = false;
243
244 ContainerPortConfiguration m_portConfiguration;
245 bool m_portConfigurationHasBeenSet = false;
246
247 Aws::String m_resolvedImageDigest;
248 bool m_resolvedImageDigestHasBeenSet = false;
249
250 double m_vcpu{0.0};
251 bool m_vcpuHasBeenSet = false;
252 };
253
254} // namespace Model
255} // namespace GameLift
256} // 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)
AWS_GAMELIFT_API SupportContainerDefinition(Aws::Utils::Json::JsonView jsonValue)
SupportContainerDefinition & WithPortConfiguration(PortConfigurationT &&value)
AWS_GAMELIFT_API SupportContainerDefinition()=default
SupportContainerDefinition & WithImageUri(ImageUriT &&value)
SupportContainerDefinition & WithMountPoints(MountPointsT &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API SupportContainerDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
const ContainerPortConfiguration & GetPortConfiguration() const
const Aws::Vector< ContainerDependency > & GetDependsOn() const
SupportContainerDefinition & WithMemoryHardLimitMebibytes(int value)
SupportContainerDefinition & WithEnvironmentOverride(EnvironmentOverrideT &&value)
const Aws::Vector< ContainerEnvironment > & GetEnvironmentOverride() 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
Aws::Utils::Json::JsonValue JsonValue