AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Container.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/lightsail/model/ContainerServiceProtocol.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_LIGHTSAIL_API Container();
40 AWS_LIGHTSAIL_API Container(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LIGHTSAIL_API Container& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
61 inline const Aws::String& GetImage() const{ return m_image; }
62 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
63 inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
64 inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
65 inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
66 inline Container& WithImage(const Aws::String& value) { SetImage(value); return *this;}
67 inline Container& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;}
68 inline Container& WithImage(const char* value) { SetImage(value); return *this;}
70
72
75 inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
76 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
77 inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
78 inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
79 inline Container& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
80 inline Container& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
81 inline Container& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
82 inline Container& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
83 inline Container& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
85
87
90 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const{ return m_environment; }
91 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
92 inline void SetEnvironment(const Aws::Map<Aws::String, Aws::String>& value) { m_environmentHasBeenSet = true; m_environment = value; }
93 inline void SetEnvironment(Aws::Map<Aws::String, Aws::String>&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
94 inline Container& WithEnvironment(const Aws::Map<Aws::String, Aws::String>& value) { SetEnvironment(value); return *this;}
95 inline Container& WithEnvironment(Aws::Map<Aws::String, Aws::String>&& value) { SetEnvironment(std::move(value)); return *this;}
96 inline Container& AddEnvironment(const Aws::String& key, const Aws::String& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, value); return *this; }
97 inline Container& AddEnvironment(Aws::String&& key, const Aws::String& value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), value); return *this; }
98 inline Container& AddEnvironment(const Aws::String& key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, std::move(value)); return *this; }
99 inline Container& AddEnvironment(Aws::String&& key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), std::move(value)); return *this; }
100 inline Container& AddEnvironment(const char* key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, std::move(value)); return *this; }
101 inline Container& AddEnvironment(Aws::String&& key, const char* value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), value); return *this; }
102 inline Container& AddEnvironment(const char* key, const char* value) { m_environmentHasBeenSet = true; m_environment.emplace(key, value); return *this; }
104
106
109 inline const Aws::Map<Aws::String, ContainerServiceProtocol>& GetPorts() const{ return m_ports; }
110 inline bool PortsHasBeenSet() const { return m_portsHasBeenSet; }
111 inline void SetPorts(const Aws::Map<Aws::String, ContainerServiceProtocol>& value) { m_portsHasBeenSet = true; m_ports = value; }
112 inline void SetPorts(Aws::Map<Aws::String, ContainerServiceProtocol>&& value) { m_portsHasBeenSet = true; m_ports = std::move(value); }
114 inline Container& WithPorts(Aws::Map<Aws::String, ContainerServiceProtocol>&& value) { SetPorts(std::move(value)); return *this;}
115 inline Container& AddPorts(const Aws::String& key, const ContainerServiceProtocol& value) { m_portsHasBeenSet = true; m_ports.emplace(key, value); return *this; }
116 inline Container& AddPorts(Aws::String&& key, const ContainerServiceProtocol& value) { m_portsHasBeenSet = true; m_ports.emplace(std::move(key), value); return *this; }
117 inline Container& AddPorts(const Aws::String& key, ContainerServiceProtocol&& value) { m_portsHasBeenSet = true; m_ports.emplace(key, std::move(value)); return *this; }
118 inline Container& AddPorts(Aws::String&& key, ContainerServiceProtocol&& value) { m_portsHasBeenSet = true; m_ports.emplace(std::move(key), std::move(value)); return *this; }
119 inline Container& AddPorts(const char* key, ContainerServiceProtocol&& value) { m_portsHasBeenSet = true; m_ports.emplace(key, std::move(value)); return *this; }
120 inline Container& AddPorts(const char* key, const ContainerServiceProtocol& value) { m_portsHasBeenSet = true; m_ports.emplace(key, value); return *this; }
122 private:
123
124 Aws::String m_image;
125 bool m_imageHasBeenSet = false;
126
127 Aws::Vector<Aws::String> m_command;
128 bool m_commandHasBeenSet = false;
129
131 bool m_environmentHasBeenSet = false;
132
134 bool m_portsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace Lightsail
139} // namespace Aws
Container & WithImage(const char *value)
Definition Container.h:68
Container & AddEnvironment(Aws::String &&key, const char *value)
Definition Container.h:101
Container & AddCommand(const char *value)
Definition Container.h:83
Container & AddPorts(const char *key, ContainerServiceProtocol &&value)
Definition Container.h:119
Container & AddPorts(Aws::String &&key, const ContainerServiceProtocol &value)
Definition Container.h:116
Container & AddEnvironment(const Aws::String &key, Aws::String &&value)
Definition Container.h:98
void SetPorts(const Aws::Map< Aws::String, ContainerServiceProtocol > &value)
Definition Container.h:111
Container & WithPorts(const Aws::Map< Aws::String, ContainerServiceProtocol > &value)
Definition Container.h:113
void SetCommand(Aws::Vector< Aws::String > &&value)
Definition Container.h:78
AWS_LIGHTSAIL_API Container()
const Aws::Vector< Aws::String > & GetCommand() const
Definition Container.h:75
Container & WithPorts(Aws::Map< Aws::String, ContainerServiceProtocol > &&value)
Definition Container.h:114
const Aws::Map< Aws::String, ContainerServiceProtocol > & GetPorts() const
Definition Container.h:109
const Aws::String & GetImage() const
Definition Container.h:61
Container & AddEnvironment(Aws::String &&key, Aws::String &&value)
Definition Container.h:99
AWS_LIGHTSAIL_API Container(Aws::Utils::Json::JsonView jsonValue)
Container & WithCommand(const Aws::Vector< Aws::String > &value)
Definition Container.h:79
void SetPorts(Aws::Map< Aws::String, ContainerServiceProtocol > &&value)
Definition Container.h:112
Container & AddPorts(const char *key, const ContainerServiceProtocol &value)
Definition Container.h:120
Container & WithImage(Aws::String &&value)
Definition Container.h:67
Container & AddPorts(const Aws::String &key, ContainerServiceProtocol &&value)
Definition Container.h:117
void SetCommand(const Aws::Vector< Aws::String > &value)
Definition Container.h:77
void SetImage(const char *value)
Definition Container.h:65
Container & AddEnvironment(const char *key, Aws::String &&value)
Definition Container.h:100
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetImage(Aws::String &&value)
Definition Container.h:64
Container & WithEnvironment(Aws::Map< Aws::String, Aws::String > &&value)
Definition Container.h:95
Container & AddPorts(const Aws::String &key, const ContainerServiceProtocol &value)
Definition Container.h:115
AWS_LIGHTSAIL_API Container & operator=(Aws::Utils::Json::JsonView jsonValue)
Container & AddPorts(Aws::String &&key, ContainerServiceProtocol &&value)
Definition Container.h:118
Container & WithCommand(Aws::Vector< Aws::String > &&value)
Definition Container.h:80
const Aws::Map< Aws::String, Aws::String > & GetEnvironment() const
Definition Container.h:90
Container & WithEnvironment(const Aws::Map< Aws::String, Aws::String > &value)
Definition Container.h:94
void SetEnvironment(Aws::Map< Aws::String, Aws::String > &&value)
Definition Container.h:93
Container & AddEnvironment(const Aws::String &key, const Aws::String &value)
Definition Container.h:96
Container & AddCommand(Aws::String &&value)
Definition Container.h:82
Container & AddEnvironment(Aws::String &&key, const Aws::String &value)
Definition Container.h:97
void SetImage(const Aws::String &value)
Definition Container.h:63
Container & WithImage(const Aws::String &value)
Definition Container.h:66
Container & AddCommand(const Aws::String &value)
Definition Container.h:81
void SetEnvironment(const Aws::Map< Aws::String, Aws::String > &value)
Definition Container.h:92
Container & AddEnvironment(const char *key, const char *value)
Definition Container.h:102
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue