AWS SDK for C++

AWS SDK for C++ Version 1.11.851

Loading...
Searching...
No Matches
GameServerContainerDefinitionInput.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
45 public:
46 AWS_GAMELIFT_API GameServerContainerDefinitionInput() = default;
47 AWS_GAMELIFT_API GameServerContainerDefinitionInput(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
48 AWS_GAMELIFT_API GameServerContainerDefinitionInput& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
49 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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
170 inline const Aws::String& GetImageUri() const { return m_imageUri; }
171 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
172 template <typename ImageUriT = Aws::String>
173 void SetImageUri(ImageUriT&& value) {
174 m_imageUriHasBeenSet = true;
175 m_imageUri = std::forward<ImageUriT>(value);
176 }
177 template <typename ImageUriT = Aws::String>
179 SetImageUri(std::forward<ImageUriT>(value));
180 return *this;
181 }
183
185
197 inline const ContainerPortConfiguration& GetPortConfiguration() const { return m_portConfiguration; }
198 inline bool PortConfigurationHasBeenSet() const { return m_portConfigurationHasBeenSet; }
199 template <typename PortConfigurationT = ContainerPortConfiguration>
200 void SetPortConfiguration(PortConfigurationT&& value) {
201 m_portConfigurationHasBeenSet = true;
202 m_portConfiguration = std::forward<PortConfigurationT>(value);
203 }
204 template <typename PortConfigurationT = ContainerPortConfiguration>
206 SetPortConfiguration(std::forward<PortConfigurationT>(value));
207 return *this;
208 }
210
212
217 inline const Aws::String& GetServerSdkVersion() const { return m_serverSdkVersion; }
218 inline bool ServerSdkVersionHasBeenSet() const { return m_serverSdkVersionHasBeenSet; }
219 template <typename ServerSdkVersionT = Aws::String>
220 void SetServerSdkVersion(ServerSdkVersionT&& value) {
221 m_serverSdkVersionHasBeenSet = true;
222 m_serverSdkVersion = std::forward<ServerSdkVersionT>(value);
223 }
224 template <typename ServerSdkVersionT = Aws::String>
226 SetServerSdkVersion(std::forward<ServerSdkVersionT>(value));
227 return *this;
228 }
230
232
237 inline const LinuxCapabilities& GetLinuxCapabilities() const { return m_linuxCapabilities; }
238 inline bool LinuxCapabilitiesHasBeenSet() const { return m_linuxCapabilitiesHasBeenSet; }
239 template <typename LinuxCapabilitiesT = LinuxCapabilities>
240 void SetLinuxCapabilities(LinuxCapabilitiesT&& value) {
241 m_linuxCapabilitiesHasBeenSet = true;
242 m_linuxCapabilities = std::forward<LinuxCapabilitiesT>(value);
243 }
244 template <typename LinuxCapabilitiesT = LinuxCapabilities>
246 SetLinuxCapabilities(std::forward<LinuxCapabilitiesT>(value));
247 return *this;
248 }
250 private:
251 Aws::String m_containerName;
252
254
256
257 Aws::Vector<ContainerEnvironment> m_environmentOverride;
258
259 Aws::String m_imageUri;
260
261 ContainerPortConfiguration m_portConfiguration;
262
263 Aws::String m_serverSdkVersion;
264
265 LinuxCapabilities m_linuxCapabilities;
266 bool m_containerNameHasBeenSet = false;
267 bool m_dependsOnHasBeenSet = false;
268 bool m_mountPointsHasBeenSet = false;
269 bool m_environmentOverrideHasBeenSet = false;
270 bool m_imageUriHasBeenSet = false;
271 bool m_portConfigurationHasBeenSet = false;
272 bool m_serverSdkVersionHasBeenSet = false;
273 bool m_linuxCapabilitiesHasBeenSet = false;
274};
275
276} // namespace Model
277} // namespace GameLift
278} // namespace Aws
AWS_GAMELIFT_API GameServerContainerDefinitionInput & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
GameServerContainerDefinitionInput & WithPortConfiguration(PortConfigurationT &&value)
GameServerContainerDefinitionInput & WithLinuxCapabilities(LinuxCapabilitiesT &&value)
GameServerContainerDefinitionInput & WithMountPoints(MountPointsT &&value)
GameServerContainerDefinitionInput & WithServerSdkVersion(ServerSdkVersionT &&value)
GameServerContainerDefinitionInput & WithDependsOn(DependsOnT &&value)
GameServerContainerDefinitionInput & AddEnvironmentOverride(EnvironmentOverrideT &&value)
GameServerContainerDefinitionInput & WithContainerName(ContainerNameT &&value)
GameServerContainerDefinitionInput & WithEnvironmentOverride(EnvironmentOverrideT &&value)
GameServerContainerDefinitionInput & WithImageUri(ImageUriT &&value)
const Aws::Vector< ContainerMountPoint > & GetMountPoints() const
GameServerContainerDefinitionInput & AddDependsOn(DependsOnT &&value)
const Aws::Vector< ContainerEnvironment > & GetEnvironmentOverride() const
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_GAMELIFT_API GameServerContainerDefinitionInput(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
GameServerContainerDefinitionInput & AddMountPoints(MountPointsT &&value)
const Aws::Vector< ContainerDependency > & GetDependsOn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector