AWS SDK for C++  1.9.104
AWS SDK for C++
Container.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Lightsail
25 {
26 namespace Model
27 {
28 
37  {
38  public:
43 
44 
53  inline const Aws::String& GetImage() const{ return m_image; }
54 
63  inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
64 
73  inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
74 
83  inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
84 
93  inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
94 
103  inline Container& WithImage(const Aws::String& value) { SetImage(value); return *this;}
104 
113  inline Container& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;}
114 
123  inline Container& WithImage(const char* value) { SetImage(value); return *this;}
124 
125 
129  inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
130 
134  inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
135 
139  inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
140 
144  inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
145 
149  inline Container& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
150 
154  inline Container& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
155 
159  inline Container& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
160 
164  inline Container& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
165 
169  inline Container& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
170 
171 
175  inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const{ return m_environment; }
176 
180  inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
181 
185  inline void SetEnvironment(const Aws::Map<Aws::String, Aws::String>& value) { m_environmentHasBeenSet = true; m_environment = value; }
186 
190  inline void SetEnvironment(Aws::Map<Aws::String, Aws::String>&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
191 
195  inline Container& WithEnvironment(const Aws::Map<Aws::String, Aws::String>& value) { SetEnvironment(value); return *this;}
196 
200  inline Container& WithEnvironment(Aws::Map<Aws::String, Aws::String>&& value) { SetEnvironment(std::move(value)); return *this;}
201 
205  inline Container& AddEnvironment(const Aws::String& key, const Aws::String& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, value); return *this; }
206 
210  inline Container& AddEnvironment(Aws::String&& key, const Aws::String& value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), value); return *this; }
211 
215  inline Container& AddEnvironment(const Aws::String& key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, std::move(value)); return *this; }
216 
220  inline Container& AddEnvironment(Aws::String&& key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), std::move(value)); return *this; }
221 
225  inline Container& AddEnvironment(const char* key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, std::move(value)); return *this; }
226 
230  inline Container& AddEnvironment(Aws::String&& key, const char* value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), value); return *this; }
231 
235  inline Container& AddEnvironment(const char* key, const char* value) { m_environmentHasBeenSet = true; m_environment.emplace(key, value); return *this; }
236 
237 
241  inline const Aws::Map<Aws::String, ContainerServiceProtocol>& GetPorts() const{ return m_ports; }
242 
246  inline bool PortsHasBeenSet() const { return m_portsHasBeenSet; }
247 
251  inline void SetPorts(const Aws::Map<Aws::String, ContainerServiceProtocol>& value) { m_portsHasBeenSet = true; m_ports = value; }
252 
256  inline void SetPorts(Aws::Map<Aws::String, ContainerServiceProtocol>&& value) { m_portsHasBeenSet = true; m_ports = std::move(value); }
257 
261  inline Container& WithPorts(const Aws::Map<Aws::String, ContainerServiceProtocol>& value) { SetPorts(value); return *this;}
262 
266  inline Container& WithPorts(Aws::Map<Aws::String, ContainerServiceProtocol>&& value) { SetPorts(std::move(value)); return *this;}
267 
271  inline Container& AddPorts(const Aws::String& key, const ContainerServiceProtocol& value) { m_portsHasBeenSet = true; m_ports.emplace(key, value); return *this; }
272 
276  inline Container& AddPorts(Aws::String&& key, const ContainerServiceProtocol& value) { m_portsHasBeenSet = true; m_ports.emplace(std::move(key), value); return *this; }
277 
281  inline Container& AddPorts(const Aws::String& key, ContainerServiceProtocol&& value) { m_portsHasBeenSet = true; m_ports.emplace(key, std::move(value)); return *this; }
282 
286  inline Container& AddPorts(Aws::String&& key, ContainerServiceProtocol&& value) { m_portsHasBeenSet = true; m_ports.emplace(std::move(key), std::move(value)); return *this; }
287 
291  inline Container& AddPorts(const char* key, ContainerServiceProtocol&& value) { m_portsHasBeenSet = true; m_ports.emplace(key, std::move(value)); return *this; }
292 
296  inline Container& AddPorts(const char* key, const ContainerServiceProtocol& value) { m_portsHasBeenSet = true; m_ports.emplace(key, value); return *this; }
297 
298  private:
299 
300  Aws::String m_image;
301  bool m_imageHasBeenSet;
302 
303  Aws::Vector<Aws::String> m_command;
304  bool m_commandHasBeenSet;
305 
307  bool m_environmentHasBeenSet;
308 
310  bool m_portsHasBeenSet;
311  };
312 
313 } // namespace Model
314 } // namespace Lightsail
315 } // namespace Aws
Aws::Lightsail::Model::Container::AddPorts
Container & AddPorts(const char *key, const ContainerServiceProtocol &value)
Definition: Container.h:296
Aws::Lightsail::Model::Container::GetEnvironment
const Aws::Map< Aws::String, Aws::String > & GetEnvironment() const
Definition: Container.h:175
Aws::Lightsail::Model::Container::WithPorts
Container & WithPorts(const Aws::Map< Aws::String, ContainerServiceProtocol > &value)
Definition: Container.h:261
Aws::Lightsail::Model::Container::AddEnvironment
Container & AddEnvironment(const char *key, Aws::String &&value)
Definition: Container.h:225
Aws::Lightsail::Model::Container::operator=
Container & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::Container
Definition: Container.h:37
Aws::Lightsail::Model::Container::GetPorts
const Aws::Map< Aws::String, ContainerServiceProtocol > & GetPorts() const
Definition: Container.h:241
Aws::Lightsail::Model::Container::AddEnvironment
Container & AddEnvironment(Aws::String &&key, Aws::String &&value)
Definition: Container.h:220
Aws::Lightsail::Model::Container::AddCommand
Container & AddCommand(const Aws::String &value)
Definition: Container.h:159
Aws::Lightsail::Model::ContainerServiceProtocol
ContainerServiceProtocol
Definition: ContainerServiceProtocol.h:17
Aws::Lightsail::Model::Container::AddEnvironment
Container & AddEnvironment(Aws::String &&key, const char *value)
Definition: Container.h:230
Aws::Lightsail::Model::Container::AddEnvironment
Container & AddEnvironment(const char *key, const char *value)
Definition: Container.h:235
Aws::Lightsail::Model::Container::AddEnvironment
Container & AddEnvironment(const Aws::String &key, Aws::String &&value)
Definition: Container.h:215
Aws::Lightsail::Model::Container::PortsHasBeenSet
bool PortsHasBeenSet() const
Definition: Container.h:246
Aws::Lightsail::Model::Container::Container
Container(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::Container::WithImage
Container & WithImage(const char *value)
Definition: Container.h:123
Aws::Lightsail::Model::Container::WithCommand
Container & WithCommand(Aws::Vector< Aws::String > &&value)
Definition: Container.h:154
Aws::Lightsail::Model::Container::EnvironmentHasBeenSet
bool EnvironmentHasBeenSet() const
Definition: Container.h:180
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::Container::SetImage
void SetImage(const Aws::String &value)
Definition: Container.h:73
AWSVector.h
Aws::Lightsail::Model::Container::Container
Container()
Aws::Lightsail::Model::Container::WithEnvironment
Container & WithEnvironment(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Container.h:195
Aws::Lightsail::Model::Container::WithPorts
Container & WithPorts(Aws::Map< Aws::String, ContainerServiceProtocol > &&value)
Definition: Container.h:266
Aws::Lightsail::Model::Container::SetPorts
void SetPorts(const Aws::Map< Aws::String, ContainerServiceProtocol > &value)
Definition: Container.h:251
Aws::Lightsail::Model::Container::SetImage
void SetImage(Aws::String &&value)
Definition: Container.h:83
Aws::Lightsail::Model::Container::CommandHasBeenSet
bool CommandHasBeenSet() const
Definition: Container.h:134
Aws::Lightsail::Model::Container::AddCommand
Container & AddCommand(const char *value)
Definition: Container.h:169
Aws::Lightsail::Model::Container::WithImage
Container & WithImage(const Aws::String &value)
Definition: Container.h:103
Aws::Lightsail::Model::Container::ImageHasBeenSet
bool ImageHasBeenSet() const
Definition: Container.h:63
Aws::Lightsail::Model::Container::AddPorts
Container & AddPorts(const Aws::String &key, const ContainerServiceProtocol &value)
Definition: Container.h:271
Aws::Lightsail::Model::Container::AddEnvironment
Container & AddEnvironment(const Aws::String &key, const Aws::String &value)
Definition: Container.h:205
Aws::Lightsail::Model::Container::WithEnvironment
Container & WithEnvironment(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Container.h:200
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Lightsail::Model::Container::GetImage
const Aws::String & GetImage() const
Definition: Container.h:53
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::Container::SetEnvironment
void SetEnvironment(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Container.h:190
Aws::Lightsail::Model::Container::SetEnvironment
void SetEnvironment(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Container.h:185
Lightsail_EXPORTS.h
Aws::Lightsail::Model::Container::SetImage
void SetImage(const char *value)
Definition: Container.h:93
Aws::Lightsail::Model::Container::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::Container::AddPorts
Container & AddPorts(Aws::String &&key, const ContainerServiceProtocol &value)
Definition: Container.h:276
Aws::Lightsail::Model::Container::SetCommand
void SetCommand(Aws::Vector< Aws::String > &&value)
Definition: Container.h:144
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::Container::WithCommand
Container & WithCommand(const Aws::Vector< Aws::String > &value)
Definition: Container.h:149
ContainerServiceProtocol.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::Container::AddEnvironment
Container & AddEnvironment(Aws::String &&key, const Aws::String &value)
Definition: Container.h:210
Aws::Lightsail::Model::Container::SetCommand
void SetCommand(const Aws::Vector< Aws::String > &value)
Definition: Container.h:139
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::Container::AddPorts
Container & AddPorts(const Aws::String &key, ContainerServiceProtocol &&value)
Definition: Container.h:281
Aws::Lightsail::Model::Container::AddPorts
Container & AddPorts(const char *key, ContainerServiceProtocol &&value)
Definition: Container.h:291
Aws::Lightsail::Model::Container::GetCommand
const Aws::Vector< Aws::String > & GetCommand() const
Definition: Container.h:129
AWSMap.h
Aws::Lightsail::Model::Container::AddCommand
Container & AddCommand(Aws::String &&value)
Definition: Container.h:164
Aws::Lightsail::Model::Container::SetPorts
void SetPorts(Aws::Map< Aws::String, ContainerServiceProtocol > &&value)
Definition: Container.h:256
Aws::Lightsail::Model::Container::AddPorts
Container & AddPorts(Aws::String &&key, ContainerServiceProtocol &&value)
Definition: Container.h:286
Aws::Lightsail::Model::Container::WithImage
Container & WithImage(Aws::String &&value)
Definition: Container.h:113
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19