AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
GameServerContainerDefinition.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/ContainerMountPoint.h>
14#include <aws/gamelift/model/ContainerPortConfiguration.h>
15#include <aws/gamelift/model/LinuxCapabilities.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Cbor {
22class CborValue;
23} // namespace Cbor
24} // namespace Utils
25namespace GameLift {
26namespace Model {
27
54 public:
55 AWS_GAMELIFT_API GameServerContainerDefinition() = default;
56 AWS_GAMELIFT_API GameServerContainerDefinition(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
57 AWS_GAMELIFT_API GameServerContainerDefinition& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
58 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
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) {
69 m_containerNameHasBeenSet = true;
70 m_containerName = std::forward<ContainerNameT>(value);
71 }
72 template <typename ContainerNameT = Aws::String>
74 SetContainerName(std::forward<ContainerNameT>(value));
75 return *this;
76 }
78
80
85 inline const Aws::Vector<ContainerDependency>& GetDependsOn() const { return m_dependsOn; }
86 inline bool DependsOnHasBeenSet() const { return m_dependsOnHasBeenSet; }
87 template <typename DependsOnT = Aws::Vector<ContainerDependency>>
88 void SetDependsOn(DependsOnT&& value) {
89 m_dependsOnHasBeenSet = true;
90 m_dependsOn = std::forward<DependsOnT>(value);
91 }
92 template <typename DependsOnT = Aws::Vector<ContainerDependency>>
94 SetDependsOn(std::forward<DependsOnT>(value));
95 return *this;
96 }
97 template <typename DependsOnT = ContainerDependency>
99 m_dependsOnHasBeenSet = true;
100 m_dependsOn.emplace_back(std::forward<DependsOnT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::Vector<ContainerMountPoint>& GetMountPoints() const { return m_mountPoints; }
111 inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; }
112 template <typename MountPointsT = Aws::Vector<ContainerMountPoint>>
113 void SetMountPoints(MountPointsT&& value) {
114 m_mountPointsHasBeenSet = true;
115 m_mountPoints = std::forward<MountPointsT>(value);
116 }
117 template <typename MountPointsT = Aws::Vector<ContainerMountPoint>>
119 SetMountPoints(std::forward<MountPointsT>(value));
120 return *this;
121 }
122 template <typename MountPointsT = ContainerMountPoint>
124 m_mountPointsHasBeenSet = true;
125 m_mountPoints.emplace_back(std::forward<MountPointsT>(value));
126 return *this;
127 }
129
131
137 inline const Aws::Vector<ContainerEnvironment>& GetEnvironmentOverride() const { return m_environmentOverride; }
138 inline bool EnvironmentOverrideHasBeenSet() const { return m_environmentOverrideHasBeenSet; }
139 template <typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
140 void SetEnvironmentOverride(EnvironmentOverrideT&& value) {
141 m_environmentOverrideHasBeenSet = true;
142 m_environmentOverride = std::forward<EnvironmentOverrideT>(value);
143 }
144 template <typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
146 SetEnvironmentOverride(std::forward<EnvironmentOverrideT>(value));
147 return *this;
148 }
149 template <typename EnvironmentOverrideT = ContainerEnvironment>
151 m_environmentOverrideHasBeenSet = true;
152 m_environmentOverride.emplace_back(std::forward<EnvironmentOverrideT>(value));
153 return *this;
154 }
156
158
163 inline const Aws::String& GetImageUri() const { return m_imageUri; }
164 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
165 template <typename ImageUriT = Aws::String>
166 void SetImageUri(ImageUriT&& value) {
167 m_imageUriHasBeenSet = true;
168 m_imageUri = std::forward<ImageUriT>(value);
169 }
170 template <typename ImageUriT = Aws::String>
172 SetImageUri(std::forward<ImageUriT>(value));
173 return *this;
174 }
176
178
186 inline const ContainerPortConfiguration& GetPortConfiguration() const { return m_portConfiguration; }
187 inline bool PortConfigurationHasBeenSet() const { return m_portConfigurationHasBeenSet; }
188 template <typename PortConfigurationT = ContainerPortConfiguration>
189 void SetPortConfiguration(PortConfigurationT&& value) {
190 m_portConfigurationHasBeenSet = true;
191 m_portConfiguration = std::forward<PortConfigurationT>(value);
192 }
193 template <typename PortConfigurationT = ContainerPortConfiguration>
195 SetPortConfiguration(std::forward<PortConfigurationT>(value));
196 return *this;
197 }
199
201
205 inline const Aws::String& GetResolvedImageDigest() const { return m_resolvedImageDigest; }
206 inline bool ResolvedImageDigestHasBeenSet() const { return m_resolvedImageDigestHasBeenSet; }
207 template <typename ResolvedImageDigestT = Aws::String>
208 void SetResolvedImageDigest(ResolvedImageDigestT&& value) {
209 m_resolvedImageDigestHasBeenSet = true;
210 m_resolvedImageDigest = std::forward<ResolvedImageDigestT>(value);
211 }
212 template <typename ResolvedImageDigestT = Aws::String>
214 SetResolvedImageDigest(std::forward<ResolvedImageDigestT>(value));
215 return *this;
216 }
218
220
225 inline const Aws::String& GetServerSdkVersion() const { return m_serverSdkVersion; }
226 inline bool ServerSdkVersionHasBeenSet() const { return m_serverSdkVersionHasBeenSet; }
227 template <typename ServerSdkVersionT = Aws::String>
228 void SetServerSdkVersion(ServerSdkVersionT&& value) {
229 m_serverSdkVersionHasBeenSet = true;
230 m_serverSdkVersion = std::forward<ServerSdkVersionT>(value);
231 }
232 template <typename ServerSdkVersionT = Aws::String>
234 SetServerSdkVersion(std::forward<ServerSdkVersionT>(value));
235 return *this;
236 }
238
240
245 inline const LinuxCapabilities& GetLinuxCapabilities() const { return m_linuxCapabilities; }
246 inline bool LinuxCapabilitiesHasBeenSet() const { return m_linuxCapabilitiesHasBeenSet; }
247 template <typename LinuxCapabilitiesT = LinuxCapabilities>
248 void SetLinuxCapabilities(LinuxCapabilitiesT&& value) {
249 m_linuxCapabilitiesHasBeenSet = true;
250 m_linuxCapabilities = std::forward<LinuxCapabilitiesT>(value);
251 }
252 template <typename LinuxCapabilitiesT = LinuxCapabilities>
254 SetLinuxCapabilities(std::forward<LinuxCapabilitiesT>(value));
255 return *this;
256 }
258 private:
259 Aws::String m_containerName;
260
262
264
265 Aws::Vector<ContainerEnvironment> m_environmentOverride;
266
267 Aws::String m_imageUri;
268
269 ContainerPortConfiguration m_portConfiguration;
270
271 Aws::String m_resolvedImageDigest;
272
273 Aws::String m_serverSdkVersion;
274
275 LinuxCapabilities m_linuxCapabilities;
276 bool m_containerNameHasBeenSet = false;
277 bool m_dependsOnHasBeenSet = false;
278 bool m_mountPointsHasBeenSet = false;
279 bool m_environmentOverrideHasBeenSet = false;
280 bool m_imageUriHasBeenSet = false;
281 bool m_portConfigurationHasBeenSet = false;
282 bool m_resolvedImageDigestHasBeenSet = false;
283 bool m_serverSdkVersionHasBeenSet = false;
284 bool m_linuxCapabilitiesHasBeenSet = false;
285};
286
287} // namespace Model
288} // namespace GameLift
289} // namespace Aws
AWS_GAMELIFT_API GameServerContainerDefinition()=default
const Aws::Vector< ContainerEnvironment > & GetEnvironmentOverride() const
const ContainerPortConfiguration & GetPortConfiguration() const
GameServerContainerDefinition & WithLinuxCapabilities(LinuxCapabilitiesT &&value)
GameServerContainerDefinition & WithImageUri(ImageUriT &&value)
const Aws::Vector< ContainerDependency > & GetDependsOn() const
GameServerContainerDefinition & WithPortConfiguration(PortConfigurationT &&value)
GameServerContainerDefinition & WithContainerName(ContainerNameT &&value)
GameServerContainerDefinition & WithEnvironmentOverride(EnvironmentOverrideT &&value)
GameServerContainerDefinition & AddEnvironmentOverride(EnvironmentOverrideT &&value)
GameServerContainerDefinition & AddDependsOn(DependsOnT &&value)
AWS_GAMELIFT_API GameServerContainerDefinition(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
GameServerContainerDefinition & WithMountPoints(MountPointsT &&value)
AWS_GAMELIFT_API GameServerContainerDefinition & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
GameServerContainerDefinition & WithResolvedImageDigest(ResolvedImageDigestT &&value)
const Aws::Vector< ContainerMountPoint > & GetMountPoints() const
GameServerContainerDefinition & WithDependsOn(DependsOnT &&value)
GameServerContainerDefinition & WithServerSdkVersion(ServerSdkVersionT &&value)
GameServerContainerDefinition & AddMountPoints(MountPointsT &&value)
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector