AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerGroupDefinition.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/DateTime.h>
10#include <aws/gamelift/model/ContainerOperatingSystem.h>
11#include <aws/gamelift/model/ContainerSchedulingStrategy.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/gamelift/model/ContainerGroupDefinitionStatus.h>
14#include <aws/gamelift/model/ContainerDefinition.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace GameLift
28{
29namespace Model
30{
31
44 {
45 public:
46 AWS_GAMELIFT_API ContainerGroupDefinition();
49 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
62 inline const Aws::String& GetContainerGroupDefinitionArn() const{ return m_containerGroupDefinitionArn; }
63 inline bool ContainerGroupDefinitionArnHasBeenSet() const { return m_containerGroupDefinitionArnHasBeenSet; }
64 inline void SetContainerGroupDefinitionArn(const Aws::String& value) { m_containerGroupDefinitionArnHasBeenSet = true; m_containerGroupDefinitionArn = value; }
65 inline void SetContainerGroupDefinitionArn(Aws::String&& value) { m_containerGroupDefinitionArnHasBeenSet = true; m_containerGroupDefinitionArn = std::move(value); }
66 inline void SetContainerGroupDefinitionArn(const char* value) { m_containerGroupDefinitionArnHasBeenSet = true; m_containerGroupDefinitionArn.assign(value); }
71
73
78 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
79 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
80 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
81 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
83 inline ContainerGroupDefinition& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
85
87
98 inline const ContainerOperatingSystem& GetOperatingSystem() const{ return m_operatingSystem; }
99 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
100 inline void SetOperatingSystem(const ContainerOperatingSystem& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
101 inline void SetOperatingSystem(ContainerOperatingSystem&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); }
105
107
111 inline const Aws::String& GetName() const{ return m_name; }
112 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
113 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
114 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
115 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
116 inline ContainerGroupDefinition& WithName(const Aws::String& value) { SetName(value); return *this;}
117 inline ContainerGroupDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
118 inline ContainerGroupDefinition& WithName(const char* value) { SetName(value); return *this;}
120
122
127 inline const ContainerSchedulingStrategy& GetSchedulingStrategy() const{ return m_schedulingStrategy; }
128 inline bool SchedulingStrategyHasBeenSet() const { return m_schedulingStrategyHasBeenSet; }
129 inline void SetSchedulingStrategy(const ContainerSchedulingStrategy& value) { m_schedulingStrategyHasBeenSet = true; m_schedulingStrategy = value; }
130 inline void SetSchedulingStrategy(ContainerSchedulingStrategy&& value) { m_schedulingStrategyHasBeenSet = true; m_schedulingStrategy = std::move(value); }
134
136
148 inline int GetTotalMemoryLimit() const{ return m_totalMemoryLimit; }
149 inline bool TotalMemoryLimitHasBeenSet() const { return m_totalMemoryLimitHasBeenSet; }
150 inline void SetTotalMemoryLimit(int value) { m_totalMemoryLimitHasBeenSet = true; m_totalMemoryLimit = value; }
151 inline ContainerGroupDefinition& WithTotalMemoryLimit(int value) { SetTotalMemoryLimit(value); return *this;}
153
155
166 inline int GetTotalCpuLimit() const{ return m_totalCpuLimit; }
167 inline bool TotalCpuLimitHasBeenSet() const { return m_totalCpuLimitHasBeenSet; }
168 inline void SetTotalCpuLimit(int value) { m_totalCpuLimitHasBeenSet = true; m_totalCpuLimit = value; }
169 inline ContainerGroupDefinition& WithTotalCpuLimit(int value) { SetTotalCpuLimit(value); return *this;}
171
173
177 inline const Aws::Vector<ContainerDefinition>& GetContainerDefinitions() const{ return m_containerDefinitions; }
178 inline bool ContainerDefinitionsHasBeenSet() const { return m_containerDefinitionsHasBeenSet; }
179 inline void SetContainerDefinitions(const Aws::Vector<ContainerDefinition>& value) { m_containerDefinitionsHasBeenSet = true; m_containerDefinitions = value; }
180 inline void SetContainerDefinitions(Aws::Vector<ContainerDefinition>&& value) { m_containerDefinitionsHasBeenSet = true; m_containerDefinitions = std::move(value); }
183 inline ContainerGroupDefinition& AddContainerDefinitions(const ContainerDefinition& value) { m_containerDefinitionsHasBeenSet = true; m_containerDefinitions.push_back(value); return *this; }
184 inline ContainerGroupDefinition& AddContainerDefinitions(ContainerDefinition&& value) { m_containerDefinitionsHasBeenSet = true; m_containerDefinitions.push_back(std::move(value)); return *this; }
186
188
201 inline const ContainerGroupDefinitionStatus& GetStatus() const{ return m_status; }
202 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
203 inline void SetStatus(const ContainerGroupDefinitionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
204 inline void SetStatus(ContainerGroupDefinitionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
206 inline ContainerGroupDefinition& WithStatus(ContainerGroupDefinitionStatus&& value) { SetStatus(std::move(value)); return *this;}
208
210
230 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
231 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
232 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
233 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
234 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
235 inline ContainerGroupDefinition& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
236 inline ContainerGroupDefinition& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
237 inline ContainerGroupDefinition& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
239 private:
240
241 Aws::String m_containerGroupDefinitionArn;
242 bool m_containerGroupDefinitionArnHasBeenSet = false;
243
244 Aws::Utils::DateTime m_creationTime;
245 bool m_creationTimeHasBeenSet = false;
246
247 ContainerOperatingSystem m_operatingSystem;
248 bool m_operatingSystemHasBeenSet = false;
249
250 Aws::String m_name;
251 bool m_nameHasBeenSet = false;
252
253 ContainerSchedulingStrategy m_schedulingStrategy;
254 bool m_schedulingStrategyHasBeenSet = false;
255
256 int m_totalMemoryLimit;
257 bool m_totalMemoryLimitHasBeenSet = false;
258
259 int m_totalCpuLimit;
260 bool m_totalCpuLimitHasBeenSet = false;
261
262 Aws::Vector<ContainerDefinition> m_containerDefinitions;
263 bool m_containerDefinitionsHasBeenSet = false;
264
266 bool m_statusHasBeenSet = false;
267
268 Aws::String m_statusReason;
269 bool m_statusReasonHasBeenSet = false;
270 };
271
272} // namespace Model
273} // namespace GameLift
274} // namespace Aws
const Aws::Utils::DateTime & GetCreationTime() const
ContainerGroupDefinition & WithName(const Aws::String &value)
ContainerGroupDefinition & WithContainerGroupDefinitionArn(const char *value)
const Aws::Vector< ContainerDefinition > & GetContainerDefinitions() const
void SetCreationTime(const Aws::Utils::DateTime &value)
ContainerGroupDefinition & WithContainerDefinitions(Aws::Vector< ContainerDefinition > &&value)
void SetContainerGroupDefinitionArn(const Aws::String &value)
ContainerGroupDefinition & WithStatusReason(const char *value)
ContainerGroupDefinition & WithStatus(ContainerGroupDefinitionStatus &&value)
void SetContainerDefinitions(const Aws::Vector< ContainerDefinition > &value)
const ContainerSchedulingStrategy & GetSchedulingStrategy() const
void SetOperatingSystem(const ContainerOperatingSystem &value)
ContainerGroupDefinition & WithOperatingSystem(const ContainerOperatingSystem &value)
ContainerGroupDefinition & WithContainerDefinitions(const Aws::Vector< ContainerDefinition > &value)
ContainerGroupDefinition & WithSchedulingStrategy(ContainerSchedulingStrategy &&value)
ContainerGroupDefinition & WithStatusReason(const Aws::String &value)
ContainerGroupDefinition & AddContainerDefinitions(ContainerDefinition &&value)
ContainerGroupDefinition & WithTotalMemoryLimit(int value)
ContainerGroupDefinition & WithTotalCpuLimit(int value)
void SetStatus(ContainerGroupDefinitionStatus &&value)
ContainerGroupDefinition & AddContainerDefinitions(const ContainerDefinition &value)
ContainerGroupDefinition & WithOperatingSystem(ContainerOperatingSystem &&value)
ContainerGroupDefinition & WithStatusReason(Aws::String &&value)
const ContainerOperatingSystem & GetOperatingSystem() const
ContainerGroupDefinition & WithCreationTime(const Aws::Utils::DateTime &value)
ContainerGroupDefinition & WithContainerGroupDefinitionArn(const Aws::String &value)
void SetContainerDefinitions(Aws::Vector< ContainerDefinition > &&value)
void SetSchedulingStrategy(ContainerSchedulingStrategy &&value)
const ContainerGroupDefinitionStatus & GetStatus() const
ContainerGroupDefinition & WithCreationTime(Aws::Utils::DateTime &&value)
ContainerGroupDefinition & WithName(Aws::String &&value)
ContainerGroupDefinition & WithName(const char *value)
AWS_GAMELIFT_API ContainerGroupDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API ContainerGroupDefinition(Aws::Utils::Json::JsonView jsonValue)
ContainerGroupDefinition & WithSchedulingStrategy(const ContainerSchedulingStrategy &value)
void SetSchedulingStrategy(const ContainerSchedulingStrategy &value)
void SetOperatingSystem(ContainerOperatingSystem &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(const ContainerGroupDefinitionStatus &value)
ContainerGroupDefinition & WithStatus(const ContainerGroupDefinitionStatus &value)
ContainerGroupDefinition & WithContainerGroupDefinitionArn(Aws::String &&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