AWS SDK for C++

AWS SDK for C++ Version 1.11.756

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/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
45 public:
46 AWS_GAMELIFT_API SupportContainerDefinitionInput() = default;
49 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
50
52
56 inline const Aws::String& GetContainerName() const { return m_containerName; }
57 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
58 template <typename ContainerNameT = Aws::String>
59 void SetContainerName(ContainerNameT&& value) {
60 m_containerNameHasBeenSet = true;
61 m_containerName = std::forward<ContainerNameT>(value);
62 }
63 template <typename ContainerNameT = Aws::String>
65 SetContainerName(std::forward<ContainerNameT>(value));
66 return *this;
67 }
69
71
82 inline const Aws::Vector<ContainerDependency>& GetDependsOn() const { return m_dependsOn; }
83 inline bool DependsOnHasBeenSet() const { return m_dependsOnHasBeenSet; }
84 template <typename DependsOnT = Aws::Vector<ContainerDependency>>
85 void SetDependsOn(DependsOnT&& value) {
86 m_dependsOnHasBeenSet = true;
87 m_dependsOn = std::forward<DependsOnT>(value);
88 }
89 template <typename DependsOnT = Aws::Vector<ContainerDependency>>
91 SetDependsOn(std::forward<DependsOnT>(value));
92 return *this;
93 }
94 template <typename DependsOnT = ContainerDependency>
96 m_dependsOnHasBeenSet = true;
97 m_dependsOn.emplace_back(std::forward<DependsOnT>(value));
98 return *this;
99 }
101
103
107 inline const Aws::Vector<ContainerMountPoint>& GetMountPoints() const { return m_mountPoints; }
108 inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; }
109 template <typename MountPointsT = Aws::Vector<ContainerMountPoint>>
110 void SetMountPoints(MountPointsT&& value) {
111 m_mountPointsHasBeenSet = true;
112 m_mountPoints = std::forward<MountPointsT>(value);
113 }
114 template <typename MountPointsT = Aws::Vector<ContainerMountPoint>>
116 SetMountPoints(std::forward<MountPointsT>(value));
117 return *this;
118 }
119 template <typename MountPointsT = ContainerMountPoint>
121 m_mountPointsHasBeenSet = true;
122 m_mountPoints.emplace_back(std::forward<MountPointsT>(value));
123 return *this;
124 }
126
128
134 inline const Aws::Vector<ContainerEnvironment>& GetEnvironmentOverride() const { return m_environmentOverride; }
135 inline bool EnvironmentOverrideHasBeenSet() const { return m_environmentOverrideHasBeenSet; }
136 template <typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
137 void SetEnvironmentOverride(EnvironmentOverrideT&& value) {
138 m_environmentOverrideHasBeenSet = true;
139 m_environmentOverride = std::forward<EnvironmentOverrideT>(value);
140 }
141 template <typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
143 SetEnvironmentOverride(std::forward<EnvironmentOverrideT>(value));
144 return *this;
145 }
146 template <typename EnvironmentOverrideT = ContainerEnvironment>
148 m_environmentOverrideHasBeenSet = true;
149 m_environmentOverride.emplace_back(std::forward<EnvironmentOverrideT>(value));
150 return *this;
151 }
153
155
162 inline bool GetEssential() const { return m_essential; }
163 inline bool EssentialHasBeenSet() const { return m_essentialHasBeenSet; }
164 inline void SetEssential(bool value) {
165 m_essentialHasBeenSet = true;
166 m_essential = value;
167 }
169 SetEssential(value);
170 return *this;
171 }
173
175
181 inline const ContainerHealthCheck& GetHealthCheck() const { return m_healthCheck; }
182 inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
183 template <typename HealthCheckT = ContainerHealthCheck>
184 void SetHealthCheck(HealthCheckT&& value) {
185 m_healthCheckHasBeenSet = true;
186 m_healthCheck = std::forward<HealthCheckT>(value);
187 }
188 template <typename HealthCheckT = ContainerHealthCheck>
190 SetHealthCheck(std::forward<HealthCheckT>(value));
191 return *this;
192 }
194
196
211 inline const Aws::String& GetImageUri() const { return m_imageUri; }
212 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
213 template <typename ImageUriT = Aws::String>
214 void SetImageUri(ImageUriT&& value) {
215 m_imageUriHasBeenSet = true;
216 m_imageUri = std::forward<ImageUriT>(value);
217 }
218 template <typename ImageUriT = Aws::String>
220 SetImageUri(std::forward<ImageUriT>(value));
221 return *this;
222 }
224
226
234 inline int GetMemoryHardLimitMebibytes() const { return m_memoryHardLimitMebibytes; }
235 inline bool MemoryHardLimitMebibytesHasBeenSet() const { return m_memoryHardLimitMebibytesHasBeenSet; }
236 inline void SetMemoryHardLimitMebibytes(int value) {
237 m_memoryHardLimitMebibytesHasBeenSet = true;
238 m_memoryHardLimitMebibytes = value;
239 }
242 return *this;
243 }
245
247
258 inline const ContainerPortConfiguration& GetPortConfiguration() const { return m_portConfiguration; }
259 inline bool PortConfigurationHasBeenSet() const { return m_portConfigurationHasBeenSet; }
260 template <typename PortConfigurationT = ContainerPortConfiguration>
261 void SetPortConfiguration(PortConfigurationT&& value) {
262 m_portConfigurationHasBeenSet = true;
263 m_portConfiguration = std::forward<PortConfigurationT>(value);
264 }
265 template <typename PortConfigurationT = ContainerPortConfiguration>
267 SetPortConfiguration(std::forward<PortConfigurationT>(value));
268 return *this;
269 }
271
273
281 inline double GetVcpu() const { return m_vcpu; }
282 inline bool VcpuHasBeenSet() const { return m_vcpuHasBeenSet; }
283 inline void SetVcpu(double value) {
284 m_vcpuHasBeenSet = true;
285 m_vcpu = value;
286 }
288 SetVcpu(value);
289 return *this;
290 }
292 private:
293 Aws::String m_containerName;
294
296
298
299 Aws::Vector<ContainerEnvironment> m_environmentOverride;
300
301 bool m_essential{false};
302
303 ContainerHealthCheck m_healthCheck;
304
305 Aws::String m_imageUri;
306
307 int m_memoryHardLimitMebibytes{0};
308
309 ContainerPortConfiguration m_portConfiguration;
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_vcpuHasBeenSet = false;
322};
323
324} // namespace Model
325} // namespace GameLift
326} // namespace Aws
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
SupportContainerDefinitionInput & WithMemoryHardLimitMebibytes(int value)
AWS_GAMELIFT_API SupportContainerDefinitionInput & operator=(Aws::Utils::Json::JsonView jsonValue)
SupportContainerDefinitionInput & AddMountPoints(MountPointsT &&value)
SupportContainerDefinitionInput & WithMountPoints(MountPointsT &&value)
SupportContainerDefinitionInput & WithImageUri(ImageUriT &&value)
SupportContainerDefinitionInput & WithEnvironmentOverride(EnvironmentOverrideT &&value)
SupportContainerDefinitionInput & AddDependsOn(DependsOnT &&value)
SupportContainerDefinitionInput & WithVcpu(double value)
AWS_GAMELIFT_API SupportContainerDefinitionInput(Aws::Utils::Json::JsonView jsonValue)
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
SupportContainerDefinitionInput & WithPortConfiguration(PortConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue