AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
CreateContainerGroupDefinitionRequest.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/GameLiftRequest.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/ContainerGroupType.h>
12#include <aws/gamelift/model/ContainerOperatingSystem.h>
13#include <aws/gamelift/model/GameServerContainerDefinitionInput.h>
14#include <aws/gamelift/model/SupportContainerDefinitionInput.h>
15#include <aws/gamelift/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace GameLift {
21namespace Model {
22
26 public:
27 AWS_GAMELIFT_API CreateContainerGroupDefinitionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateContainerGroupDefinition"; }
34
35 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
36
38
40
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
64 inline ContainerGroupType GetContainerGroupType() const { return m_containerGroupType; }
65 inline bool ContainerGroupTypeHasBeenSet() const { return m_containerGroupTypeHasBeenSet; }
67 m_containerGroupTypeHasBeenSet = true;
68 m_containerGroupType = value;
69 }
72 return *this;
73 }
75
77
83 inline int GetTotalMemoryLimitMebibytes() const { return m_totalMemoryLimitMebibytes; }
84 inline bool TotalMemoryLimitMebibytesHasBeenSet() const { return m_totalMemoryLimitMebibytesHasBeenSet; }
85 inline void SetTotalMemoryLimitMebibytes(int value) {
86 m_totalMemoryLimitMebibytesHasBeenSet = true;
87 m_totalMemoryLimitMebibytes = value;
88 }
91 return *this;
92 }
94
96
103 inline double GetTotalVcpuLimit() const { return m_totalVcpuLimit; }
104 inline bool TotalVcpuLimitHasBeenSet() const { return m_totalVcpuLimitHasBeenSet; }
105 inline void SetTotalVcpuLimit(double value) {
106 m_totalVcpuLimitHasBeenSet = true;
107 m_totalVcpuLimit = value;
108 }
110 SetTotalVcpuLimit(value);
111 return *this;
112 }
114
116
122 inline const GameServerContainerDefinitionInput& GetGameServerContainerDefinition() const { return m_gameServerContainerDefinition; }
123 inline bool GameServerContainerDefinitionHasBeenSet() const { return m_gameServerContainerDefinitionHasBeenSet; }
124 template <typename GameServerContainerDefinitionT = GameServerContainerDefinitionInput>
125 void SetGameServerContainerDefinition(GameServerContainerDefinitionT&& value) {
126 m_gameServerContainerDefinitionHasBeenSet = true;
127 m_gameServerContainerDefinition = std::forward<GameServerContainerDefinitionT>(value);
128 }
129 template <typename GameServerContainerDefinitionT = GameServerContainerDefinitionInput>
131 SetGameServerContainerDefinition(std::forward<GameServerContainerDefinitionT>(value));
132 return *this;
133 }
135
137
143 return m_supportContainerDefinitions;
144 }
145 inline bool SupportContainerDefinitionsHasBeenSet() const { return m_supportContainerDefinitionsHasBeenSet; }
146 template <typename SupportContainerDefinitionsT = Aws::Vector<SupportContainerDefinitionInput>>
147 void SetSupportContainerDefinitions(SupportContainerDefinitionsT&& value) {
148 m_supportContainerDefinitionsHasBeenSet = true;
149 m_supportContainerDefinitions = std::forward<SupportContainerDefinitionsT>(value);
150 }
151 template <typename SupportContainerDefinitionsT = Aws::Vector<SupportContainerDefinitionInput>>
153 SetSupportContainerDefinitions(std::forward<SupportContainerDefinitionsT>(value));
154 return *this;
155 }
156 template <typename SupportContainerDefinitionsT = SupportContainerDefinitionInput>
158 m_supportContainerDefinitionsHasBeenSet = true;
159 m_supportContainerDefinitions.emplace_back(std::forward<SupportContainerDefinitionsT>(value));
160 return *this;
161 }
163
165
177 inline ContainerOperatingSystem GetOperatingSystem() const { return m_operatingSystem; }
178 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
180 m_operatingSystemHasBeenSet = true;
181 m_operatingSystem = value;
182 }
184 SetOperatingSystem(value);
185 return *this;
186 }
188
190
194 inline const Aws::String& GetVersionDescription() const { return m_versionDescription; }
195 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
196 template <typename VersionDescriptionT = Aws::String>
197 void SetVersionDescription(VersionDescriptionT&& value) {
198 m_versionDescriptionHasBeenSet = true;
199 m_versionDescription = std::forward<VersionDescriptionT>(value);
200 }
201 template <typename VersionDescriptionT = Aws::String>
203 SetVersionDescription(std::forward<VersionDescriptionT>(value));
204 return *this;
205 }
207
209
218 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
219 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
220 template <typename TagsT = Aws::Vector<Tag>>
221 void SetTags(TagsT&& value) {
222 m_tagsHasBeenSet = true;
223 m_tags = std::forward<TagsT>(value);
224 }
225 template <typename TagsT = Aws::Vector<Tag>>
227 SetTags(std::forward<TagsT>(value));
228 return *this;
229 }
230 template <typename TagsT = Tag>
232 m_tagsHasBeenSet = true;
233 m_tags.emplace_back(std::forward<TagsT>(value));
234 return *this;
235 }
237 private:
238 Aws::String m_name;
239 bool m_nameHasBeenSet = false;
240
242 bool m_containerGroupTypeHasBeenSet = false;
243
244 int m_totalMemoryLimitMebibytes{0};
245 bool m_totalMemoryLimitMebibytesHasBeenSet = false;
246
247 double m_totalVcpuLimit{0.0};
248 bool m_totalVcpuLimitHasBeenSet = false;
249
250 GameServerContainerDefinitionInput m_gameServerContainerDefinition;
251 bool m_gameServerContainerDefinitionHasBeenSet = false;
252
253 Aws::Vector<SupportContainerDefinitionInput> m_supportContainerDefinitions;
254 bool m_supportContainerDefinitionsHasBeenSet = false;
255
257 bool m_operatingSystemHasBeenSet = false;
258
259 Aws::String m_versionDescription;
260 bool m_versionDescriptionHasBeenSet = false;
261
262 Aws::Vector<Tag> m_tags;
263 bool m_tagsHasBeenSet = false;
264};
265
266} // namespace Model
267} // namespace GameLift
268} // namespace Aws
CreateContainerGroupDefinitionRequest & WithContainerGroupType(ContainerGroupType value)
const GameServerContainerDefinitionInput & GetGameServerContainerDefinition() const
CreateContainerGroupDefinitionRequest & WithName(NameT &&value)
CreateContainerGroupDefinitionRequest & WithOperatingSystem(ContainerOperatingSystem value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateContainerGroupDefinitionRequest & WithTotalMemoryLimitMebibytes(int value)
CreateContainerGroupDefinitionRequest & AddSupportContainerDefinitions(SupportContainerDefinitionsT &&value)
CreateContainerGroupDefinitionRequest & WithGameServerContainerDefinition(GameServerContainerDefinitionT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
const Aws::Vector< SupportContainerDefinitionInput > & GetSupportContainerDefinitions() const
CreateContainerGroupDefinitionRequest & WithSupportContainerDefinitions(SupportContainerDefinitionsT &&value)
CreateContainerGroupDefinitionRequest & WithTotalVcpuLimit(double value)
CreateContainerGroupDefinitionRequest & WithVersionDescription(VersionDescriptionT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector