AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SupportContainerDefinitionInput.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
49 {
50 public:
51 AWS_GAMELIFT_API SupportContainerDefinitionInput() = default;
54 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
55
56
58
62 inline const Aws::String& GetContainerName() const { return m_containerName; }
63 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
64 template<typename ContainerNameT = Aws::String>
65 void SetContainerName(ContainerNameT&& value) { m_containerNameHasBeenSet = true; m_containerName = std::forward<ContainerNameT>(value); }
66 template<typename ContainerNameT = Aws::String>
67 SupportContainerDefinitionInput& WithContainerName(ContainerNameT&& value) { SetContainerName(std::forward<ContainerNameT>(value)); return *this;}
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) { m_dependsOnHasBeenSet = true; m_dependsOn = std::forward<DependsOnT>(value); }
86 template<typename DependsOnT = Aws::Vector<ContainerDependency>>
87 SupportContainerDefinitionInput& WithDependsOn(DependsOnT&& value) { SetDependsOn(std::forward<DependsOnT>(value)); return *this;}
88 template<typename DependsOnT = ContainerDependency>
89 SupportContainerDefinitionInput& AddDependsOn(DependsOnT&& value) { m_dependsOnHasBeenSet = true; m_dependsOn.emplace_back(std::forward<DependsOnT>(value)); return *this; }
91
93
97 inline const Aws::Vector<ContainerMountPoint>& GetMountPoints() const { return m_mountPoints; }
98 inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; }
99 template<typename MountPointsT = Aws::Vector<ContainerMountPoint>>
100 void SetMountPoints(MountPointsT&& value) { m_mountPointsHasBeenSet = true; m_mountPoints = std::forward<MountPointsT>(value); }
101 template<typename MountPointsT = Aws::Vector<ContainerMountPoint>>
102 SupportContainerDefinitionInput& WithMountPoints(MountPointsT&& value) { SetMountPoints(std::forward<MountPointsT>(value)); return *this;}
103 template<typename MountPointsT = ContainerMountPoint>
104 SupportContainerDefinitionInput& AddMountPoints(MountPointsT&& value) { m_mountPointsHasBeenSet = true; m_mountPoints.emplace_back(std::forward<MountPointsT>(value)); return *this; }
106
108
114 inline const Aws::Vector<ContainerEnvironment>& GetEnvironmentOverride() const { return m_environmentOverride; }
115 inline bool EnvironmentOverrideHasBeenSet() const { return m_environmentOverrideHasBeenSet; }
116 template<typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
117 void SetEnvironmentOverride(EnvironmentOverrideT&& value) { m_environmentOverrideHasBeenSet = true; m_environmentOverride = std::forward<EnvironmentOverrideT>(value); }
118 template<typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
119 SupportContainerDefinitionInput& WithEnvironmentOverride(EnvironmentOverrideT&& value) { SetEnvironmentOverride(std::forward<EnvironmentOverrideT>(value)); return *this;}
120 template<typename EnvironmentOverrideT = ContainerEnvironment>
121 SupportContainerDefinitionInput& AddEnvironmentOverride(EnvironmentOverrideT&& value) { m_environmentOverrideHasBeenSet = true; m_environmentOverride.emplace_back(std::forward<EnvironmentOverrideT>(value)); return *this; }
123
125
132 inline bool GetEssential() const { return m_essential; }
133 inline bool EssentialHasBeenSet() const { return m_essentialHasBeenSet; }
134 inline void SetEssential(bool value) { m_essentialHasBeenSet = true; m_essential = value; }
135 inline SupportContainerDefinitionInput& WithEssential(bool value) { SetEssential(value); return *this;}
137
139
145 inline const ContainerHealthCheck& GetHealthCheck() const { return m_healthCheck; }
146 inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; }
147 template<typename HealthCheckT = ContainerHealthCheck>
148 void SetHealthCheck(HealthCheckT&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::forward<HealthCheckT>(value); }
149 template<typename HealthCheckT = ContainerHealthCheck>
150 SupportContainerDefinitionInput& WithHealthCheck(HealthCheckT&& value) { SetHealthCheck(std::forward<HealthCheckT>(value)); return *this;}
152
154
169 inline const Aws::String& GetImageUri() const { return m_imageUri; }
170 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
171 template<typename ImageUriT = Aws::String>
172 void SetImageUri(ImageUriT&& value) { m_imageUriHasBeenSet = true; m_imageUri = std::forward<ImageUriT>(value); }
173 template<typename ImageUriT = Aws::String>
174 SupportContainerDefinitionInput& WithImageUri(ImageUriT&& value) { SetImageUri(std::forward<ImageUriT>(value)); return *this;}
176
178
186 inline int GetMemoryHardLimitMebibytes() const { return m_memoryHardLimitMebibytes; }
187 inline bool MemoryHardLimitMebibytesHasBeenSet() const { return m_memoryHardLimitMebibytesHasBeenSet; }
188 inline void SetMemoryHardLimitMebibytes(int value) { m_memoryHardLimitMebibytesHasBeenSet = true; m_memoryHardLimitMebibytes = value; }
191
193
204 inline const ContainerPortConfiguration& GetPortConfiguration() const { return m_portConfiguration; }
205 inline bool PortConfigurationHasBeenSet() const { return m_portConfigurationHasBeenSet; }
206 template<typename PortConfigurationT = ContainerPortConfiguration>
207 void SetPortConfiguration(PortConfigurationT&& value) { m_portConfigurationHasBeenSet = true; m_portConfiguration = std::forward<PortConfigurationT>(value); }
208 template<typename PortConfigurationT = ContainerPortConfiguration>
209 SupportContainerDefinitionInput& WithPortConfiguration(PortConfigurationT&& value) { SetPortConfiguration(std::forward<PortConfigurationT>(value)); return *this;}
211
213
221 inline double GetVcpu() const { return m_vcpu; }
222 inline bool VcpuHasBeenSet() const { return m_vcpuHasBeenSet; }
223 inline void SetVcpu(double value) { m_vcpuHasBeenSet = true; m_vcpu = value; }
224 inline SupportContainerDefinitionInput& WithVcpu(double value) { SetVcpu(value); return *this;}
226 private:
227
228 Aws::String m_containerName;
229 bool m_containerNameHasBeenSet = false;
230
232 bool m_dependsOnHasBeenSet = false;
233
235 bool m_mountPointsHasBeenSet = false;
236
237 Aws::Vector<ContainerEnvironment> m_environmentOverride;
238 bool m_environmentOverrideHasBeenSet = false;
239
240 bool m_essential{false};
241 bool m_essentialHasBeenSet = false;
242
243 ContainerHealthCheck m_healthCheck;
244 bool m_healthCheckHasBeenSet = false;
245
246 Aws::String m_imageUri;
247 bool m_imageUriHasBeenSet = false;
248
249 int m_memoryHardLimitMebibytes{0};
250 bool m_memoryHardLimitMebibytesHasBeenSet = false;
251
252 ContainerPortConfiguration m_portConfiguration;
253 bool m_portConfigurationHasBeenSet = false;
254
255 double m_vcpu{0.0};
256 bool m_vcpuHasBeenSet = false;
257 };
258
259} // namespace Model
260} // namespace GameLift
261} // 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