AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GameServerContainerDefinitionInput.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/ContainerPortConfiguration.h>
11#include <aws/gamelift/model/ContainerDependency.h>
12#include <aws/gamelift/model/ContainerMountPoint.h>
13#include <aws/gamelift/model/ContainerEnvironment.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace GameLift
27{
28namespace Model
29{
30
48 {
49 public:
50 AWS_GAMELIFT_API GameServerContainerDefinitionInput() = default;
53 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
54
55
57
61 inline const Aws::String& GetContainerName() const { return m_containerName; }
62 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
63 template<typename ContainerNameT = Aws::String>
64 void SetContainerName(ContainerNameT&& value) { m_containerNameHasBeenSet = true; m_containerName = std::forward<ContainerNameT>(value); }
65 template<typename ContainerNameT = Aws::String>
66 GameServerContainerDefinitionInput& WithContainerName(ContainerNameT&& value) { SetContainerName(std::forward<ContainerNameT>(value)); return *this;}
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) { m_dependsOnHasBeenSet = true; m_dependsOn = std::forward<DependsOnT>(value); }
85 template<typename DependsOnT = Aws::Vector<ContainerDependency>>
86 GameServerContainerDefinitionInput& WithDependsOn(DependsOnT&& value) { SetDependsOn(std::forward<DependsOnT>(value)); return *this;}
87 template<typename DependsOnT = ContainerDependency>
88 GameServerContainerDefinitionInput& AddDependsOn(DependsOnT&& value) { m_dependsOnHasBeenSet = true; m_dependsOn.emplace_back(std::forward<DependsOnT>(value)); return *this; }
90
92
96 inline const Aws::Vector<ContainerMountPoint>& GetMountPoints() const { return m_mountPoints; }
97 inline bool MountPointsHasBeenSet() const { return m_mountPointsHasBeenSet; }
98 template<typename MountPointsT = Aws::Vector<ContainerMountPoint>>
99 void SetMountPoints(MountPointsT&& value) { m_mountPointsHasBeenSet = true; m_mountPoints = std::forward<MountPointsT>(value); }
100 template<typename MountPointsT = Aws::Vector<ContainerMountPoint>>
101 GameServerContainerDefinitionInput& WithMountPoints(MountPointsT&& value) { SetMountPoints(std::forward<MountPointsT>(value)); return *this;}
102 template<typename MountPointsT = ContainerMountPoint>
103 GameServerContainerDefinitionInput& AddMountPoints(MountPointsT&& value) { m_mountPointsHasBeenSet = true; m_mountPoints.emplace_back(std::forward<MountPointsT>(value)); return *this; }
105
107
113 inline const Aws::Vector<ContainerEnvironment>& GetEnvironmentOverride() const { return m_environmentOverride; }
114 inline bool EnvironmentOverrideHasBeenSet() const { return m_environmentOverrideHasBeenSet; }
115 template<typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
116 void SetEnvironmentOverride(EnvironmentOverrideT&& value) { m_environmentOverrideHasBeenSet = true; m_environmentOverride = std::forward<EnvironmentOverrideT>(value); }
117 template<typename EnvironmentOverrideT = Aws::Vector<ContainerEnvironment>>
118 GameServerContainerDefinitionInput& WithEnvironmentOverride(EnvironmentOverrideT&& value) { SetEnvironmentOverride(std::forward<EnvironmentOverrideT>(value)); return *this;}
119 template<typename EnvironmentOverrideT = ContainerEnvironment>
120 GameServerContainerDefinitionInput& AddEnvironmentOverride(EnvironmentOverrideT&& value) { m_environmentOverrideHasBeenSet = true; m_environmentOverride.emplace_back(std::forward<EnvironmentOverrideT>(value)); return *this; }
122
124
139 inline const Aws::String& GetImageUri() const { return m_imageUri; }
140 inline bool ImageUriHasBeenSet() const { return m_imageUriHasBeenSet; }
141 template<typename ImageUriT = Aws::String>
142 void SetImageUri(ImageUriT&& value) { m_imageUriHasBeenSet = true; m_imageUri = std::forward<ImageUriT>(value); }
143 template<typename ImageUriT = Aws::String>
144 GameServerContainerDefinitionInput& WithImageUri(ImageUriT&& value) { SetImageUri(std::forward<ImageUriT>(value)); return *this;}
146
148
160 inline const ContainerPortConfiguration& GetPortConfiguration() const { return m_portConfiguration; }
161 inline bool PortConfigurationHasBeenSet() const { return m_portConfigurationHasBeenSet; }
162 template<typename PortConfigurationT = ContainerPortConfiguration>
163 void SetPortConfiguration(PortConfigurationT&& value) { m_portConfigurationHasBeenSet = true; m_portConfiguration = std::forward<PortConfigurationT>(value); }
164 template<typename PortConfigurationT = ContainerPortConfiguration>
165 GameServerContainerDefinitionInput& WithPortConfiguration(PortConfigurationT&& value) { SetPortConfiguration(std::forward<PortConfigurationT>(value)); return *this;}
167
169
174 inline const Aws::String& GetServerSdkVersion() const { return m_serverSdkVersion; }
175 inline bool ServerSdkVersionHasBeenSet() const { return m_serverSdkVersionHasBeenSet; }
176 template<typename ServerSdkVersionT = Aws::String>
177 void SetServerSdkVersion(ServerSdkVersionT&& value) { m_serverSdkVersionHasBeenSet = true; m_serverSdkVersion = std::forward<ServerSdkVersionT>(value); }
178 template<typename ServerSdkVersionT = Aws::String>
179 GameServerContainerDefinitionInput& WithServerSdkVersion(ServerSdkVersionT&& value) { SetServerSdkVersion(std::forward<ServerSdkVersionT>(value)); return *this;}
181 private:
182
183 Aws::String m_containerName;
184 bool m_containerNameHasBeenSet = false;
185
187 bool m_dependsOnHasBeenSet = false;
188
190 bool m_mountPointsHasBeenSet = false;
191
192 Aws::Vector<ContainerEnvironment> m_environmentOverride;
193 bool m_environmentOverrideHasBeenSet = false;
194
195 Aws::String m_imageUri;
196 bool m_imageUriHasBeenSet = false;
197
198 ContainerPortConfiguration m_portConfiguration;
199 bool m_portConfigurationHasBeenSet = false;
200
201 Aws::String m_serverSdkVersion;
202 bool m_serverSdkVersionHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace GameLift
207} // 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