AWS SDK for C++

AWS SDK for C++ Version 1.11.686

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/gamelift/GameLift_EXPORTS.h>
10#include <aws/gamelift/model/ContainerDependency.h>
11#include <aws/gamelift/model/ContainerEnvironment.h>
12#include <aws/gamelift/model/ContainerMountPoint.h>
13#include <aws/gamelift/model/ContainerPortConfiguration.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GameLift {
25namespace Model {
26
49 public:
50 AWS_GAMELIFT_API GameServerContainerDefinition() = default;
53 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
54
56
60 inline const Aws::String& GetContainerName() const { return m_containerName; }
61 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
62 template <typename ContainerNameT = Aws::String>
63 void SetContainerName(ContainerNameT&& value) {
64 m_containerNameHasBeenSet = true;
65 m_containerName = std::forward<ContainerNameT>(value);
66 }
67 template <typename ContainerNameT = Aws::String>
69 SetContainerName(std::forward<ContainerNameT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::Vector<ContainerDependency>& GetDependsOn() const { return m_dependsOn; }
81 inline bool DependsOnHasBeenSet() const { return m_dependsOnHasBeenSet; }
82 template <typename DependsOnT = Aws::Vector<ContainerDependency>>
83 void SetDependsOn(DependsOnT&& value) {
84 m_dependsOnHasBeenSet = true;
85 m_dependsOn = std::forward<DependsOnT>(value);
86 }
87 template <typename DependsOnT = Aws::Vector<ContainerDependency>>
89 SetDependsOn(std::forward<DependsOnT>(value));
90 return *this;
91 }
92 template <typename DependsOnT = ContainerDependency>
94 m_dependsOnHasBeenSet = true;
95 m_dependsOn.emplace_back(std::forward<DependsOnT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::Vector<ContainerMountPoint>& GetMountPoints() const { return m_mountPoints; }
106 inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; }
107 template <typename MountPointsT = Aws::Vector<ContainerMountPoint>>
108 void SetMountPoints(MountPointsT&& value) {
109 m_mountPointsHasBeenSet = true;
110 m_mountPoints = std::forward<MountPointsT>(value);
111 }
112 template <typename MountPointsT = Aws::Vector<ContainerMountPoint>>
114 SetMountPoints(std::forward<MountPointsT>(value));
115 return *this;
116 }
117 template <typename MountPointsT = ContainerMountPoint>
119 m_mountPointsHasBeenSet = true;
120 m_mountPoints.emplace_back(std::forward<MountPointsT>(value));
121 return *this;
122 }
124
126
132 inline const Aws::Vector<ContainerEnvironment>& GetEnvironmentOverride() const { return m_environmentOverride; }
133 inline bool EnvironmentOverrideHasBeenSet() const { return m_environmentOverrideHasBeenSet; }
134 template <typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
135 void SetEnvironmentOverride(EnvironmentOverrideT&& value) {
136 m_environmentOverrideHasBeenSet = true;
137 m_environmentOverride = std::forward<EnvironmentOverrideT>(value);
138 }
139 template <typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
141 SetEnvironmentOverride(std::forward<EnvironmentOverrideT>(value));
142 return *this;
143 }
144 template <typename EnvironmentOverrideT = ContainerEnvironment>
146 m_environmentOverrideHasBeenSet = true;
147 m_environmentOverride.emplace_back(std::forward<EnvironmentOverrideT>(value));
148 return *this;
149 }
151
153
158 inline const Aws::String& GetImageUri() const { return m_imageUri; }
159 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
160 template <typename ImageUriT = Aws::String>
161 void SetImageUri(ImageUriT&& value) {
162 m_imageUriHasBeenSet = true;
163 m_imageUri = std::forward<ImageUriT>(value);
164 }
165 template <typename ImageUriT = Aws::String>
167 SetImageUri(std::forward<ImageUriT>(value));
168 return *this;
169 }
171
173
181 inline const ContainerPortConfiguration& GetPortConfiguration() const { return m_portConfiguration; }
182 inline bool PortConfigurationHasBeenSet() const { return m_portConfigurationHasBeenSet; }
183 template <typename PortConfigurationT = ContainerPortConfiguration>
184 void SetPortConfiguration(PortConfigurationT&& value) {
185 m_portConfigurationHasBeenSet = true;
186 m_portConfiguration = std::forward<PortConfigurationT>(value);
187 }
188 template <typename PortConfigurationT = ContainerPortConfiguration>
190 SetPortConfiguration(std::forward<PortConfigurationT>(value));
191 return *this;
192 }
194
196
200 inline const Aws::String& GetResolvedImageDigest() const { return m_resolvedImageDigest; }
201 inline bool ResolvedImageDigestHasBeenSet() const { return m_resolvedImageDigestHasBeenSet; }
202 template <typename ResolvedImageDigestT = Aws::String>
203 void SetResolvedImageDigest(ResolvedImageDigestT&& value) {
204 m_resolvedImageDigestHasBeenSet = true;
205 m_resolvedImageDigest = std::forward<ResolvedImageDigestT>(value);
206 }
207 template <typename ResolvedImageDigestT = Aws::String>
209 SetResolvedImageDigest(std::forward<ResolvedImageDigestT>(value));
210 return *this;
211 }
213
215
220 inline const Aws::String& GetServerSdkVersion() const { return m_serverSdkVersion; }
221 inline bool ServerSdkVersionHasBeenSet() const { return m_serverSdkVersionHasBeenSet; }
222 template <typename ServerSdkVersionT = Aws::String>
223 void SetServerSdkVersion(ServerSdkVersionT&& value) {
224 m_serverSdkVersionHasBeenSet = true;
225 m_serverSdkVersion = std::forward<ServerSdkVersionT>(value);
226 }
227 template <typename ServerSdkVersionT = Aws::String>
229 SetServerSdkVersion(std::forward<ServerSdkVersionT>(value));
230 return *this;
231 }
233 private:
234 Aws::String m_containerName;
235 bool m_containerNameHasBeenSet = false;
236
238 bool m_dependsOnHasBeenSet = false;
239
241 bool m_mountPointsHasBeenSet = false;
242
243 Aws::Vector<ContainerEnvironment> m_environmentOverride;
244 bool m_environmentOverrideHasBeenSet = false;
245
246 Aws::String m_imageUri;
247 bool m_imageUriHasBeenSet = false;
248
249 ContainerPortConfiguration m_portConfiguration;
250 bool m_portConfigurationHasBeenSet = false;
251
252 Aws::String m_resolvedImageDigest;
253 bool m_resolvedImageDigestHasBeenSet = false;
254
255 Aws::String m_serverSdkVersion;
256 bool m_serverSdkVersionHasBeenSet = false;
257};
258
259} // namespace Model
260} // namespace GameLift
261} // namespace Aws
AWS_GAMELIFT_API GameServerContainerDefinition()=default
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< ContainerEnvironment > & GetEnvironmentOverride() const
const ContainerPortConfiguration & GetPortConfiguration() const
GameServerContainerDefinition & WithImageUri(ImageUriT &&value)
const Aws::Vector< ContainerDependency > & GetDependsOn() const
GameServerContainerDefinition & WithPortConfiguration(PortConfigurationT &&value)
AWS_GAMELIFT_API GameServerContainerDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
GameServerContainerDefinition & WithContainerName(ContainerNameT &&value)
GameServerContainerDefinition & WithEnvironmentOverride(EnvironmentOverrideT &&value)
AWS_GAMELIFT_API GameServerContainerDefinition(Aws::Utils::Json::JsonView jsonValue)
GameServerContainerDefinition & AddEnvironmentOverride(EnvironmentOverrideT &&value)
GameServerContainerDefinition & AddDependsOn(DependsOnT &&value)
GameServerContainerDefinition & WithMountPoints(MountPointsT &&value)
GameServerContainerDefinition & WithResolvedImageDigest(ResolvedImageDigestT &&value)
const Aws::Vector< ContainerMountPoint > & GetMountPoints() const
GameServerContainerDefinition & WithDependsOn(DependsOnT &&value)
GameServerContainerDefinition & WithServerSdkVersion(ServerSdkVersionT &&value)
GameServerContainerDefinition & AddMountPoints(MountPointsT &&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