AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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/gamelift/GameLift_EXPORTS.h>
10#include <aws/gamelift/model/ContainerDependency.h>
11#include <aws/gamelift/model/ContainerEnvironment.h>
12#include <aws/gamelift/model/ContainerHealthCheck.h>
13#include <aws/gamelift/model/ContainerMountPoint.h>
14#include <aws/gamelift/model/ContainerPortConfiguration.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace GameLift {
26namespace Model {
27
48 public:
49 AWS_GAMELIFT_API SupportContainerDefinition() = default;
52 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
53
55
59 inline const Aws::String& GetContainerName() const { return m_containerName; }
60 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
61 template <typename ContainerNameT = Aws::String>
62 void SetContainerName(ContainerNameT&& value) {
63 m_containerNameHasBeenSet = true;
64 m_containerName = std::forward<ContainerNameT>(value);
65 }
66 template <typename ContainerNameT = Aws::String>
68 SetContainerName(std::forward<ContainerNameT>(value));
69 return *this;
70 }
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) {
83 m_dependsOnHasBeenSet = true;
84 m_dependsOn = std::forward<DependsOnT>(value);
85 }
86 template <typename DependsOnT = Aws::Vector<ContainerDependency>>
88 SetDependsOn(std::forward<DependsOnT>(value));
89 return *this;
90 }
91 template <typename DependsOnT = ContainerDependency>
93 m_dependsOnHasBeenSet = true;
94 m_dependsOn.emplace_back(std::forward<DependsOnT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::Vector<ContainerMountPoint>& GetMountPoints() const { return m_mountPoints; }
105 inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; }
106 template <typename MountPointsT = Aws::Vector<ContainerMountPoint>>
107 void SetMountPoints(MountPointsT&& value) {
108 m_mountPointsHasBeenSet = true;
109 m_mountPoints = std::forward<MountPointsT>(value);
110 }
111 template <typename MountPointsT = Aws::Vector<ContainerMountPoint>>
113 SetMountPoints(std::forward<MountPointsT>(value));
114 return *this;
115 }
116 template <typename MountPointsT = ContainerMountPoint>
118 m_mountPointsHasBeenSet = true;
119 m_mountPoints.emplace_back(std::forward<MountPointsT>(value));
120 return *this;
121 }
123
125
131 inline const Aws::Vector<ContainerEnvironment>& GetEnvironmentOverride() const { return m_environmentOverride; }
132 inline bool EnvironmentOverrideHasBeenSet() const { return m_environmentOverrideHasBeenSet; }
133 template <typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
134 void SetEnvironmentOverride(EnvironmentOverrideT&& value) {
135 m_environmentOverrideHasBeenSet = true;
136 m_environmentOverride = std::forward<EnvironmentOverrideT>(value);
137 }
138 template <typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
140 SetEnvironmentOverride(std::forward<EnvironmentOverrideT>(value));
141 return *this;
142 }
143 template <typename EnvironmentOverrideT = ContainerEnvironment>
144 SupportContainerDefinition& AddEnvironmentOverride(EnvironmentOverrideT&& value) {
145 m_environmentOverrideHasBeenSet = true;
146 m_environmentOverride.emplace_back(std::forward<EnvironmentOverrideT>(value));
147 return *this;
148 }
150
152
156 inline bool GetEssential() const { return m_essential; }
157 inline bool EssentialHasBeenSet() const { return m_essentialHasBeenSet; }
158 inline void SetEssential(bool value) {
159 m_essentialHasBeenSet = true;
160 m_essential = value;
161 }
163 SetEssential(value);
164 return *this;
165 }
167
169
174 inline const ContainerHealthCheck& GetHealthCheck() const { return m_healthCheck; }
175 inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
176 template <typename HealthCheckT = ContainerHealthCheck>
177 void SetHealthCheck(HealthCheckT&& value) {
178 m_healthCheckHasBeenSet = true;
179 m_healthCheck = std::forward<HealthCheckT>(value);
180 }
181 template <typename HealthCheckT = ContainerHealthCheck>
183 SetHealthCheck(std::forward<HealthCheckT>(value));
184 return *this;
185 }
187
189
194 inline const Aws::String& GetImageUri() const { return m_imageUri; }
195 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
196 template <typename ImageUriT = Aws::String>
197 void SetImageUri(ImageUriT&& value) {
198 m_imageUriHasBeenSet = true;
199 m_imageUri = std::forward<ImageUriT>(value);
200 }
201 template <typename ImageUriT = Aws::String>
203 SetImageUri(std::forward<ImageUriT>(value));
204 return *this;
205 }
207
209
217 inline int GetMemoryHardLimitMebibytes() const { return m_memoryHardLimitMebibytes; }
218 inline bool MemoryHardLimitMebibytesHasBeenSet() const { return m_memoryHardLimitMebibytesHasBeenSet; }
219 inline void SetMemoryHardLimitMebibytes(int value) {
220 m_memoryHardLimitMebibytesHasBeenSet = true;
221 m_memoryHardLimitMebibytes = value;
222 }
225 return *this;
226 }
228
230
238 inline const ContainerPortConfiguration& GetPortConfiguration() const { return m_portConfiguration; }
239 inline bool PortConfigurationHasBeenSet() const { return m_portConfigurationHasBeenSet; }
240 template <typename PortConfigurationT = ContainerPortConfiguration>
241 void SetPortConfiguration(PortConfigurationT&& value) {
242 m_portConfigurationHasBeenSet = true;
243 m_portConfiguration = std::forward<PortConfigurationT>(value);
244 }
245 template <typename PortConfigurationT = ContainerPortConfiguration>
247 SetPortConfiguration(std::forward<PortConfigurationT>(value));
248 return *this;
249 }
251
253
257 inline const Aws::String& GetResolvedImageDigest() const { return m_resolvedImageDigest; }
258 inline bool ResolvedImageDigestHasBeenSet() const { return m_resolvedImageDigestHasBeenSet; }
259 template <typename ResolvedImageDigestT = Aws::String>
260 void SetResolvedImageDigest(ResolvedImageDigestT&& value) {
261 m_resolvedImageDigestHasBeenSet = true;
262 m_resolvedImageDigest = std::forward<ResolvedImageDigestT>(value);
263 }
264 template <typename ResolvedImageDigestT = Aws::String>
266 SetResolvedImageDigest(std::forward<ResolvedImageDigestT>(value));
267 return *this;
268 }
270
272
279 inline double GetVcpu() const { return m_vcpu; }
280 inline bool VcpuHasBeenSet() const { return m_vcpuHasBeenSet; }
281 inline void SetVcpu(double value) {
282 m_vcpuHasBeenSet = true;
283 m_vcpu = value;
284 }
285 inline SupportContainerDefinition& WithVcpu(double value) {
286 SetVcpu(value);
287 return *this;
288 }
290 private:
291 Aws::String m_containerName;
292
294
296
297 Aws::Vector<ContainerEnvironment> m_environmentOverride;
298
299 bool m_essential{false};
300
301 ContainerHealthCheck m_healthCheck;
302
303 Aws::String m_imageUri;
304
305 int m_memoryHardLimitMebibytes{0};
306
307 ContainerPortConfiguration m_portConfiguration;
308
309 Aws::String m_resolvedImageDigest;
310
311 double m_vcpu{0.0};
312 bool m_containerNameHasBeenSet = false;
313 bool m_dependsOnHasBeenSet = false;
314 bool m_mountPointsHasBeenSet = false;
315 bool m_environmentOverrideHasBeenSet = false;
316 bool m_essentialHasBeenSet = false;
317 bool m_healthCheckHasBeenSet = false;
318 bool m_imageUriHasBeenSet = false;
319 bool m_memoryHardLimitMebibytesHasBeenSet = false;
320 bool m_portConfigurationHasBeenSet = false;
321 bool m_resolvedImageDigestHasBeenSet = false;
322 bool m_vcpuHasBeenSet = false;
323};
324
325} // namespace Model
326} // namespace GameLift
327} // 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