AWS SDK for C++

AWS SDK for C++ Version 1.11.851

Loading...
Searching...
No Matches
SupportContainerDefinitionInput.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
46 public:
47 AWS_GAMELIFT_API SupportContainerDefinitionInput() = default;
48 AWS_GAMELIFT_API SupportContainerDefinitionInput(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
49 AWS_GAMELIFT_API SupportContainerDefinitionInput& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
50 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
51
53
57 inline const Aws::String& GetContainerName() const { return m_containerName; }
58 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
59 template <typename ContainerNameT = Aws::String>
60 void SetContainerName(ContainerNameT&& value) {
61 m_containerNameHasBeenSet = true;
62 m_containerName = std::forward<ContainerNameT>(value);
63 }
64 template <typename ContainerNameT = Aws::String>
66 SetContainerName(std::forward<ContainerNameT>(value));
67 return *this;
68 }
70
72
83 inline const Aws::Vector<ContainerDependency>& GetDependsOn() const { return m_dependsOn; }
84 inline bool DependsOnHasBeenSet() const { return m_dependsOnHasBeenSet; }
85 template <typename DependsOnT = Aws::Vector<ContainerDependency>>
86 void SetDependsOn(DependsOnT&& value) {
87 m_dependsOnHasBeenSet = true;
88 m_dependsOn = std::forward<DependsOnT>(value);
89 }
90 template <typename DependsOnT = Aws::Vector<ContainerDependency>>
92 SetDependsOn(std::forward<DependsOnT>(value));
93 return *this;
94 }
95 template <typename DependsOnT = ContainerDependency>
97 m_dependsOnHasBeenSet = true;
98 m_dependsOn.emplace_back(std::forward<DependsOnT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::Vector<ContainerMountPoint>& GetMountPoints() const { return m_mountPoints; }
109 inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; }
110 template <typename MountPointsT = Aws::Vector<ContainerMountPoint>>
111 void SetMountPoints(MountPointsT&& value) {
112 m_mountPointsHasBeenSet = true;
113 m_mountPoints = std::forward<MountPointsT>(value);
114 }
115 template <typename MountPointsT = Aws::Vector<ContainerMountPoint>>
117 SetMountPoints(std::forward<MountPointsT>(value));
118 return *this;
119 }
120 template <typename MountPointsT = ContainerMountPoint>
122 m_mountPointsHasBeenSet = true;
123 m_mountPoints.emplace_back(std::forward<MountPointsT>(value));
124 return *this;
125 }
127
129
135 inline const Aws::Vector<ContainerEnvironment>& GetEnvironmentOverride() const { return m_environmentOverride; }
136 inline bool EnvironmentOverrideHasBeenSet() const { return m_environmentOverrideHasBeenSet; }
137 template <typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
138 void SetEnvironmentOverride(EnvironmentOverrideT&& value) {
139 m_environmentOverrideHasBeenSet = true;
140 m_environmentOverride = std::forward<EnvironmentOverrideT>(value);
141 }
142 template <typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
144 SetEnvironmentOverride(std::forward<EnvironmentOverrideT>(value));
145 return *this;
146 }
147 template <typename EnvironmentOverrideT = ContainerEnvironment>
149 m_environmentOverrideHasBeenSet = true;
150 m_environmentOverride.emplace_back(std::forward<EnvironmentOverrideT>(value));
151 return *this;
152 }
154
156
163 inline bool GetEssential() const { return m_essential; }
164 inline bool EssentialHasBeenSet() const { return m_essentialHasBeenSet; }
165 inline void SetEssential(bool value) {
166 m_essentialHasBeenSet = true;
167 m_essential = value;
168 }
170 SetEssential(value);
171 return *this;
172 }
174
176
182 inline const ContainerHealthCheck& GetHealthCheck() const { return m_healthCheck; }
183 inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
184 template <typename HealthCheckT = ContainerHealthCheck>
185 void SetHealthCheck(HealthCheckT&& value) {
186 m_healthCheckHasBeenSet = true;
187 m_healthCheck = std::forward<HealthCheckT>(value);
188 }
189 template <typename HealthCheckT = ContainerHealthCheck>
191 SetHealthCheck(std::forward<HealthCheckT>(value));
192 return *this;
193 }
195
197
212 inline const Aws::String& GetImageUri() const { return m_imageUri; }
213 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
214 template <typename ImageUriT = Aws::String>
215 void SetImageUri(ImageUriT&& value) {
216 m_imageUriHasBeenSet = true;
217 m_imageUri = std::forward<ImageUriT>(value);
218 }
219 template <typename ImageUriT = Aws::String>
221 SetImageUri(std::forward<ImageUriT>(value));
222 return *this;
223 }
225
227
235 inline int64_t GetMemoryHardLimitMebibytes() const { return m_memoryHardLimitMebibytes; }
236 inline bool MemoryHardLimitMebibytesHasBeenSet() const { return m_memoryHardLimitMebibytesHasBeenSet; }
237 inline void SetMemoryHardLimitMebibytes(int64_t value) {
238 m_memoryHardLimitMebibytesHasBeenSet = true;
239 m_memoryHardLimitMebibytes = value;
240 }
243 return *this;
244 }
246
248
259 inline const ContainerPortConfiguration& GetPortConfiguration() const { return m_portConfiguration; }
260 inline bool PortConfigurationHasBeenSet() const { return m_portConfigurationHasBeenSet; }
261 template <typename PortConfigurationT = ContainerPortConfiguration>
262 void SetPortConfiguration(PortConfigurationT&& value) {
263 m_portConfigurationHasBeenSet = true;
264 m_portConfiguration = std::forward<PortConfigurationT>(value);
265 }
266 template <typename PortConfigurationT = ContainerPortConfiguration>
268 SetPortConfiguration(std::forward<PortConfigurationT>(value));
269 return *this;
270 }
272
274
282 inline double GetVcpu() const { return m_vcpu; }
283 inline bool VcpuHasBeenSet() const { return m_vcpuHasBeenSet; }
284 inline void SetVcpu(double value) {
285 m_vcpuHasBeenSet = true;
286 m_vcpu = value;
287 }
289 SetVcpu(value);
290 return *this;
291 }
293
295
300 inline const LinuxCapabilities& GetLinuxCapabilities() const { return m_linuxCapabilities; }
301 inline bool LinuxCapabilitiesHasBeenSet() const { return m_linuxCapabilitiesHasBeenSet; }
302 template <typename LinuxCapabilitiesT = LinuxCapabilities>
303 void SetLinuxCapabilities(LinuxCapabilitiesT&& value) {
304 m_linuxCapabilitiesHasBeenSet = true;
305 m_linuxCapabilities = std::forward<LinuxCapabilitiesT>(value);
306 }
307 template <typename LinuxCapabilitiesT = LinuxCapabilities>
309 SetLinuxCapabilities(std::forward<LinuxCapabilitiesT>(value));
310 return *this;
311 }
313 private:
314 Aws::String m_containerName;
315
317
319
320 Aws::Vector<ContainerEnvironment> m_environmentOverride;
321
322 bool m_essential{false};
323
324 ContainerHealthCheck m_healthCheck;
325
326 Aws::String m_imageUri;
327
328 int64_t m_memoryHardLimitMebibytes{0};
329
330 ContainerPortConfiguration m_portConfiguration;
331
332 double m_vcpu{0.0};
333
334 LinuxCapabilities m_linuxCapabilities;
335 bool m_containerNameHasBeenSet = false;
336 bool m_dependsOnHasBeenSet = false;
337 bool m_mountPointsHasBeenSet = false;
338 bool m_environmentOverrideHasBeenSet = false;
339 bool m_essentialHasBeenSet = false;
340 bool m_healthCheckHasBeenSet = false;
341 bool m_imageUriHasBeenSet = false;
342 bool m_memoryHardLimitMebibytesHasBeenSet = false;
343 bool m_portConfigurationHasBeenSet = false;
344 bool m_vcpuHasBeenSet = false;
345 bool m_linuxCapabilitiesHasBeenSet = false;
346};
347
348} // namespace Model
349} // namespace GameLift
350} // namespace Aws
SupportContainerDefinitionInput & WithMemoryHardLimitMebibytes(int64_t value)
AWS_GAMELIFT_API SupportContainerDefinitionInput(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_GAMELIFT_API SupportContainerDefinitionInput & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SupportContainerDefinitionInput & AddMountPoints(MountPointsT &&value)
SupportContainerDefinitionInput & WithMountPoints(MountPointsT &&value)
SupportContainerDefinitionInput & WithImageUri(ImageUriT &&value)
SupportContainerDefinitionInput & WithEnvironmentOverride(EnvironmentOverrideT &&value)
SupportContainerDefinitionInput & WithLinuxCapabilities(LinuxCapabilitiesT &&value)
SupportContainerDefinitionInput & AddDependsOn(DependsOnT &&value)
SupportContainerDefinitionInput & WithVcpu(double value)
AWS_GAMELIFT_API SupportContainerDefinitionInput()=default
SupportContainerDefinitionInput & WithDependsOn(DependsOnT &&value)
SupportContainerDefinitionInput & WithEssential(bool value)
const Aws::Vector< ContainerEnvironment > & GetEnvironmentOverride() const
SupportContainerDefinitionInput & WithContainerName(ContainerNameT &&value)
const Aws::Vector< ContainerDependency > & GetDependsOn() const
SupportContainerDefinitionInput & WithHealthCheck(HealthCheckT &&value)
SupportContainerDefinitionInput & AddEnvironmentOverride(EnvironmentOverrideT &&value)
const Aws::Vector< ContainerMountPoint > & GetMountPoints() const
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
SupportContainerDefinitionInput & WithPortConfiguration(PortConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector