AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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/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
44 public:
45 AWS_GAMELIFT_API GameServerContainerDefinitionInput() = default;
48 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
49
51
55 inline const Aws::String& GetContainerName() const { return m_containerName; }
56 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
57 template <typename ContainerNameT = Aws::String>
58 void SetContainerName(ContainerNameT&& value) {
59 m_containerNameHasBeenSet = true;
60 m_containerName = std::forward<ContainerNameT>(value);
61 }
62 template <typename ContainerNameT = Aws::String>
64 SetContainerName(std::forward<ContainerNameT>(value));
65 return *this;
66 }
68
70
81 inline const Aws::Vector<ContainerDependency>& GetDependsOn() const { return m_dependsOn; }
82 inline bool DependsOnHasBeenSet() const { return m_dependsOnHasBeenSet; }
83 template <typename DependsOnT = Aws::Vector<ContainerDependency>>
84 void SetDependsOn(DependsOnT&& value) {
85 m_dependsOnHasBeenSet = true;
86 m_dependsOn = std::forward<DependsOnT>(value);
87 }
88 template <typename DependsOnT = Aws::Vector<ContainerDependency>>
90 SetDependsOn(std::forward<DependsOnT>(value));
91 return *this;
92 }
93 template <typename DependsOnT = ContainerDependency>
95 m_dependsOnHasBeenSet = true;
96 m_dependsOn.emplace_back(std::forward<DependsOnT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::Vector<ContainerMountPoint>& GetMountPoints() const { return m_mountPoints; }
107 inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; }
108 template <typename MountPointsT = Aws::Vector<ContainerMountPoint>>
109 void SetMountPoints(MountPointsT&& value) {
110 m_mountPointsHasBeenSet = true;
111 m_mountPoints = std::forward<MountPointsT>(value);
112 }
113 template <typename MountPointsT = Aws::Vector<ContainerMountPoint>>
115 SetMountPoints(std::forward<MountPointsT>(value));
116 return *this;
117 }
118 template <typename MountPointsT = ContainerMountPoint>
120 m_mountPointsHasBeenSet = true;
121 m_mountPoints.emplace_back(std::forward<MountPointsT>(value));
122 return *this;
123 }
125
127
133 inline const Aws::Vector<ContainerEnvironment>& GetEnvironmentOverride() const { return m_environmentOverride; }
134 inline bool EnvironmentOverrideHasBeenSet() const { return m_environmentOverrideHasBeenSet; }
135 template <typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
136 void SetEnvironmentOverride(EnvironmentOverrideT&& value) {
137 m_environmentOverrideHasBeenSet = true;
138 m_environmentOverride = std::forward<EnvironmentOverrideT>(value);
139 }
140 template <typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
142 SetEnvironmentOverride(std::forward<EnvironmentOverrideT>(value));
143 return *this;
144 }
145 template <typename EnvironmentOverrideT = ContainerEnvironment>
147 m_environmentOverrideHasBeenSet = true;
148 m_environmentOverride.emplace_back(std::forward<EnvironmentOverrideT>(value));
149 return *this;
150 }
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) {
173 m_imageUriHasBeenSet = true;
174 m_imageUri = std::forward<ImageUriT>(value);
175 }
176 template <typename ImageUriT = Aws::String>
178 SetImageUri(std::forward<ImageUriT>(value));
179 return *this;
180 }
182
184
196 inline const ContainerPortConfiguration& GetPortConfiguration() const { return m_portConfiguration; }
197 inline bool PortConfigurationHasBeenSet() const { return m_portConfigurationHasBeenSet; }
198 template <typename PortConfigurationT = ContainerPortConfiguration>
199 void SetPortConfiguration(PortConfigurationT&& value) {
200 m_portConfigurationHasBeenSet = true;
201 m_portConfiguration = std::forward<PortConfigurationT>(value);
202 }
203 template <typename PortConfigurationT = ContainerPortConfiguration>
205 SetPortConfiguration(std::forward<PortConfigurationT>(value));
206 return *this;
207 }
209
211
216 inline const Aws::String& GetServerSdkVersion() const { return m_serverSdkVersion; }
217 inline bool ServerSdkVersionHasBeenSet() const { return m_serverSdkVersionHasBeenSet; }
218 template <typename ServerSdkVersionT = Aws::String>
219 void SetServerSdkVersion(ServerSdkVersionT&& value) {
220 m_serverSdkVersionHasBeenSet = true;
221 m_serverSdkVersion = std::forward<ServerSdkVersionT>(value);
222 }
223 template <typename ServerSdkVersionT = Aws::String>
225 SetServerSdkVersion(std::forward<ServerSdkVersionT>(value));
226 return *this;
227 }
229 private:
230 Aws::String m_containerName;
231
233
235
236 Aws::Vector<ContainerEnvironment> m_environmentOverride;
237
238 Aws::String m_imageUri;
239
240 ContainerPortConfiguration m_portConfiguration;
241
242 Aws::String m_serverSdkVersion;
243 bool m_containerNameHasBeenSet = false;
244 bool m_dependsOnHasBeenSet = false;
245 bool m_mountPointsHasBeenSet = false;
246 bool m_environmentOverrideHasBeenSet = false;
247 bool m_imageUriHasBeenSet = false;
248 bool m_portConfigurationHasBeenSet = false;
249 bool m_serverSdkVersionHasBeenSet = false;
250};
251
252} // namespace Model
253} // namespace GameLift
254} // namespace Aws
AWS_GAMELIFT_API GameServerContainerDefinitionInput & operator=(Aws::Utils::Json::JsonView jsonValue)
GameServerContainerDefinitionInput & WithPortConfiguration(PortConfigurationT &&value)
GameServerContainerDefinitionInput & WithMountPoints(MountPointsT &&value)
GameServerContainerDefinitionInput & WithServerSdkVersion(ServerSdkVersionT &&value)
AWS_GAMELIFT_API GameServerContainerDefinitionInput(Aws::Utils::Json::JsonView jsonValue)
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
GameServerContainerDefinitionInput & AddMountPoints(MountPointsT &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
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
Aws::Utils::Json::JsonValue JsonValue