AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateContainerGroupDefinitionRequest.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/gamelift/model/ContainerSchedulingStrategy.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/gamelift/model/ContainerOperatingSystem.h>
13#include <aws/gamelift/model/ContainerDefinitionInput.h>
14#include <aws/gamelift/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace GameLift
20{
21namespace Model
22{
23
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateContainerGroupDefinition"; }
36
37 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
38
40
41
43
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline CreateContainerGroupDefinitionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline CreateContainerGroupDefinitionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline CreateContainerGroupDefinitionRequest& WithName(const char* value) { SetName(value); return *this;}
56
58
64 inline const ContainerSchedulingStrategy& GetSchedulingStrategy() const{ return m_schedulingStrategy; }
65 inline bool SchedulingStrategyHasBeenSet() const { return m_schedulingStrategyHasBeenSet; }
66 inline void SetSchedulingStrategy(const ContainerSchedulingStrategy& value) { m_schedulingStrategyHasBeenSet = true; m_schedulingStrategy = value; }
67 inline void SetSchedulingStrategy(ContainerSchedulingStrategy&& value) { m_schedulingStrategyHasBeenSet = true; m_schedulingStrategy = std::move(value); }
71
73
81 inline int GetTotalMemoryLimit() const{ return m_totalMemoryLimit; }
82 inline bool TotalMemoryLimitHasBeenSet() const { return m_totalMemoryLimitHasBeenSet; }
83 inline void SetTotalMemoryLimit(int value) { m_totalMemoryLimitHasBeenSet = true; m_totalMemoryLimit = value; }
86
88
96 inline int GetTotalCpuLimit() const{ return m_totalCpuLimit; }
97 inline bool TotalCpuLimitHasBeenSet() const { return m_totalCpuLimitHasBeenSet; }
98 inline void SetTotalCpuLimit(int value) { m_totalCpuLimitHasBeenSet = true; m_totalCpuLimit = value; }
101
103
110 inline const Aws::Vector<ContainerDefinitionInput>& GetContainerDefinitions() const{ return m_containerDefinitions; }
111 inline bool ContainerDefinitionsHasBeenSet() const { return m_containerDefinitionsHasBeenSet; }
112 inline void SetContainerDefinitions(const Aws::Vector<ContainerDefinitionInput>& value) { m_containerDefinitionsHasBeenSet = true; m_containerDefinitions = value; }
113 inline void SetContainerDefinitions(Aws::Vector<ContainerDefinitionInput>&& value) { m_containerDefinitionsHasBeenSet = true; m_containerDefinitions = std::move(value); }
116 inline CreateContainerGroupDefinitionRequest& AddContainerDefinitions(const ContainerDefinitionInput& value) { m_containerDefinitionsHasBeenSet = true; m_containerDefinitions.push_back(value); return *this; }
117 inline CreateContainerGroupDefinitionRequest& AddContainerDefinitions(ContainerDefinitionInput&& value) { m_containerDefinitionsHasBeenSet = true; m_containerDefinitions.push_back(std::move(value)); return *this; }
119
121
132 inline const ContainerOperatingSystem& GetOperatingSystem() const{ return m_operatingSystem; }
133 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
134 inline void SetOperatingSystem(const ContainerOperatingSystem& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
135 inline void SetOperatingSystem(ContainerOperatingSystem&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); }
139
141
150 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
153 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
154 inline CreateContainerGroupDefinitionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
155 inline CreateContainerGroupDefinitionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
156 inline CreateContainerGroupDefinitionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
157 inline CreateContainerGroupDefinitionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
159 private:
160
161 Aws::String m_name;
162 bool m_nameHasBeenSet = false;
163
164 ContainerSchedulingStrategy m_schedulingStrategy;
165 bool m_schedulingStrategyHasBeenSet = false;
166
167 int m_totalMemoryLimit;
168 bool m_totalMemoryLimitHasBeenSet = false;
169
170 int m_totalCpuLimit;
171 bool m_totalCpuLimitHasBeenSet = false;
172
173 Aws::Vector<ContainerDefinitionInput> m_containerDefinitions;
174 bool m_containerDefinitionsHasBeenSet = false;
175
176 ContainerOperatingSystem m_operatingSystem;
177 bool m_operatingSystemHasBeenSet = false;
178
179 Aws::Vector<Tag> m_tags;
180 bool m_tagsHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace GameLift
185} // namespace Aws
CreateContainerGroupDefinitionRequest & WithName(Aws::String &&value)
CreateContainerGroupDefinitionRequest & AddTags(const Tag &value)
CreateContainerGroupDefinitionRequest & AddContainerDefinitions(const ContainerDefinitionInput &value)
CreateContainerGroupDefinitionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateContainerGroupDefinitionRequest & AddContainerDefinitions(ContainerDefinitionInput &&value)
const Aws::Vector< ContainerDefinitionInput > & GetContainerDefinitions() const
CreateContainerGroupDefinitionRequest & WithTotalMemoryLimit(int value)
CreateContainerGroupDefinitionRequest & WithName(const Aws::String &value)
CreateContainerGroupDefinitionRequest & WithContainerDefinitions(Aws::Vector< ContainerDefinitionInput > &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetContainerDefinitions(Aws::Vector< ContainerDefinitionInput > &&value)
CreateContainerGroupDefinitionRequest & WithName(const char *value)
CreateContainerGroupDefinitionRequest & WithContainerDefinitions(const Aws::Vector< ContainerDefinitionInput > &value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
CreateContainerGroupDefinitionRequest & WithTags(Aws::Vector< Tag > &&value)
void SetContainerDefinitions(const Aws::Vector< ContainerDefinitionInput > &value)
CreateContainerGroupDefinitionRequest & WithSchedulingStrategy(ContainerSchedulingStrategy &&value)
CreateContainerGroupDefinitionRequest & WithOperatingSystem(ContainerOperatingSystem &&value)
CreateContainerGroupDefinitionRequest & WithOperatingSystem(const ContainerOperatingSystem &value)
CreateContainerGroupDefinitionRequest & WithSchedulingStrategy(const ContainerSchedulingStrategy &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