AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EcsContainerOverride.h
1
6#pragma once
7#include <aws/pipes/Pipes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/pipes/model/EcsEnvironmentVariable.h>
11#include <aws/pipes/model/EcsEnvironmentFile.h>
12#include <aws/pipes/model/EcsResourceRequirement.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Pipes
26{
27namespace Model
28{
29
40 {
41 public:
42 AWS_PIPES_API EcsContainerOverride();
45 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
54 inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
55 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
56 inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
57 inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
58 inline EcsContainerOverride& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
59 inline EcsContainerOverride& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
60 inline EcsContainerOverride& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
61 inline EcsContainerOverride& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
62 inline EcsContainerOverride& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
64
66
71 inline int GetCpu() const{ return m_cpu; }
72 inline bool CpuHasBeenSet() const { return m_cpuHasBeenSet; }
73 inline void SetCpu(int value) { m_cpuHasBeenSet = true; m_cpu = value; }
74 inline EcsContainerOverride& WithCpu(int value) { SetCpu(value); return *this;}
76
78
84 inline const Aws::Vector<EcsEnvironmentVariable>& GetEnvironment() const{ return m_environment; }
85 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
86 inline void SetEnvironment(const Aws::Vector<EcsEnvironmentVariable>& value) { m_environmentHasBeenSet = true; m_environment = value; }
87 inline void SetEnvironment(Aws::Vector<EcsEnvironmentVariable>&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
90 inline EcsContainerOverride& AddEnvironment(const EcsEnvironmentVariable& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
91 inline EcsContainerOverride& AddEnvironment(EcsEnvironmentVariable&& value) { m_environmentHasBeenSet = true; m_environment.push_back(std::move(value)); return *this; }
93
95
99 inline const Aws::Vector<EcsEnvironmentFile>& GetEnvironmentFiles() const{ return m_environmentFiles; }
100 inline bool EnvironmentFilesHasBeenSet() const { return m_environmentFilesHasBeenSet; }
101 inline void SetEnvironmentFiles(const Aws::Vector<EcsEnvironmentFile>& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles = value; }
102 inline void SetEnvironmentFiles(Aws::Vector<EcsEnvironmentFile>&& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles = std::move(value); }
105 inline EcsContainerOverride& AddEnvironmentFiles(const EcsEnvironmentFile& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles.push_back(value); return *this; }
106 inline EcsContainerOverride& AddEnvironmentFiles(EcsEnvironmentFile&& value) { m_environmentFilesHasBeenSet = true; m_environmentFiles.push_back(std::move(value)); return *this; }
108
110
116 inline int GetMemory() const{ return m_memory; }
117 inline bool MemoryHasBeenSet() const { return m_memoryHasBeenSet; }
118 inline void SetMemory(int value) { m_memoryHasBeenSet = true; m_memory = value; }
119 inline EcsContainerOverride& WithMemory(int value) { SetMemory(value); return *this;}
121
123
128 inline int GetMemoryReservation() const{ return m_memoryReservation; }
129 inline bool MemoryReservationHasBeenSet() const { return m_memoryReservationHasBeenSet; }
130 inline void SetMemoryReservation(int value) { m_memoryReservationHasBeenSet = true; m_memoryReservation = value; }
131 inline EcsContainerOverride& WithMemoryReservation(int value) { SetMemoryReservation(value); return *this;}
133
135
139 inline const Aws::String& GetName() const{ return m_name; }
140 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
141 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
142 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
143 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
144 inline EcsContainerOverride& WithName(const Aws::String& value) { SetName(value); return *this;}
145 inline EcsContainerOverride& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
146 inline EcsContainerOverride& WithName(const char* value) { SetName(value); return *this;}
148
150
155 inline const Aws::Vector<EcsResourceRequirement>& GetResourceRequirements() const{ return m_resourceRequirements; }
156 inline bool ResourceRequirementsHasBeenSet() const { return m_resourceRequirementsHasBeenSet; }
157 inline void SetResourceRequirements(const Aws::Vector<EcsResourceRequirement>& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = value; }
158 inline void SetResourceRequirements(Aws::Vector<EcsResourceRequirement>&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = std::move(value); }
161 inline EcsContainerOverride& AddResourceRequirements(const EcsResourceRequirement& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(value); return *this; }
162 inline EcsContainerOverride& AddResourceRequirements(EcsResourceRequirement&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(std::move(value)); return *this; }
164 private:
165
166 Aws::Vector<Aws::String> m_command;
167 bool m_commandHasBeenSet = false;
168
169 int m_cpu;
170 bool m_cpuHasBeenSet = false;
171
173 bool m_environmentHasBeenSet = false;
174
175 Aws::Vector<EcsEnvironmentFile> m_environmentFiles;
176 bool m_environmentFilesHasBeenSet = false;
177
178 int m_memory;
179 bool m_memoryHasBeenSet = false;
180
181 int m_memoryReservation;
182 bool m_memoryReservationHasBeenSet = false;
183
184 Aws::String m_name;
185 bool m_nameHasBeenSet = false;
186
187 Aws::Vector<EcsResourceRequirement> m_resourceRequirements;
188 bool m_resourceRequirementsHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace Pipes
193} // namespace Aws
EcsContainerOverride & AddResourceRequirements(EcsResourceRequirement &&value)
EcsContainerOverride & AddEnvironmentFiles(EcsEnvironmentFile &&value)
const Aws::Vector< EcsResourceRequirement > & GetResourceRequirements() const
EcsContainerOverride & AddEnvironment(EcsEnvironmentVariable &&value)
EcsContainerOverride & WithEnvironmentFiles(const Aws::Vector< EcsEnvironmentFile > &value)
EcsContainerOverride & WithName(const char *value)
const Aws::Vector< Aws::String > & GetCommand() const
void SetEnvironment(Aws::Vector< EcsEnvironmentVariable > &&value)
void SetEnvironmentFiles(const Aws::Vector< EcsEnvironmentFile > &value)
EcsContainerOverride & WithEnvironment(Aws::Vector< EcsEnvironmentVariable > &&value)
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
EcsContainerOverride & WithResourceRequirements(const Aws::Vector< EcsResourceRequirement > &value)
EcsContainerOverride & AddEnvironmentFiles(const EcsEnvironmentFile &value)
EcsContainerOverride & AddEnvironment(const EcsEnvironmentVariable &value)
EcsContainerOverride & WithEnvironment(const Aws::Vector< EcsEnvironmentVariable > &value)
EcsContainerOverride & WithCommand(Aws::Vector< Aws::String > &&value)
EcsContainerOverride & AddResourceRequirements(const EcsResourceRequirement &value)
EcsContainerOverride & WithResourceRequirements(Aws::Vector< EcsResourceRequirement > &&value)
EcsContainerOverride & WithCpu(int value)
EcsContainerOverride & AddCommand(Aws::String &&value)
EcsContainerOverride & AddCommand(const char *value)
const Aws::Vector< EcsEnvironmentVariable > & GetEnvironment() const
EcsContainerOverride & WithEnvironmentFiles(Aws::Vector< EcsEnvironmentFile > &&value)
void SetResourceRequirements(const Aws::Vector< EcsResourceRequirement > &value)
void SetCommand(Aws::Vector< Aws::String > &&value)
EcsContainerOverride & WithCommand(const Aws::Vector< Aws::String > &value)
void SetCommand(const Aws::Vector< Aws::String > &value)
EcsContainerOverride & AddCommand(const Aws::String &value)
EcsContainerOverride & WithMemoryReservation(int value)
AWS_PIPES_API EcsContainerOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
EcsContainerOverride & WithName(Aws::String &&value)
void SetResourceRequirements(Aws::Vector< EcsResourceRequirement > &&value)
void SetEnvironmentFiles(Aws::Vector< EcsEnvironmentFile > &&value)
const Aws::Vector< EcsEnvironmentFile > & GetEnvironmentFiles() const
EcsContainerOverride & WithName(const Aws::String &value)
EcsContainerOverride & WithMemory(int value)
AWS_PIPES_API EcsContainerOverride(Aws::Utils::Json::JsonView jsonValue)
void SetEnvironment(const Aws::Vector< EcsEnvironmentVariable > &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