7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11#include <aws/lightsail/model/ContainerServiceProtocol.h>
57 template <
typename ImageT = Aws::String>
59 m_imageHasBeenSet =
true;
60 m_image = std::forward<ImageT>(value);
62 template <
typename ImageT = Aws::String>
64 SetImage(std::forward<ImageT>(value));
75 template <
typename CommandT = Aws::Vector<Aws::String>>
77 m_commandHasBeenSet =
true;
78 m_command = std::forward<CommandT>(value);
80 template <
typename CommandT = Aws::Vector<Aws::String>>
85 template <
typename CommandT = Aws::String>
87 m_commandHasBeenSet =
true;
88 m_command.emplace_back(std::forward<CommandT>(value));
99 template <
typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
101 m_environmentHasBeenSet =
true;
102 m_environment = std::forward<EnvironmentT>(value);
104 template <
typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
109 template <
typename EnvironmentKeyT = Aws::String,
typename EnvironmentValueT = Aws::String>
111 m_environmentHasBeenSet =
true;
112 m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value));
123 template <
typename PortsT = Aws::Map<Aws::String, ContainerServiceProtocol>>
125 m_portsHasBeenSet =
true;
126 m_ports = std::forward<PortsT>(value);
128 template <
typename PortsT = Aws::Map<Aws::String, ContainerServiceProtocol>>
130 SetPorts(std::forward<PortsT>(value));
134 m_portsHasBeenSet =
true;
135 m_ports.emplace(key, value);
147 bool m_imageHasBeenSet =
false;
148 bool m_commandHasBeenSet =
false;
149 bool m_environmentHasBeenSet =
false;
150 bool m_portsHasBeenSet =
false;
bool CommandHasBeenSet() const
const Aws::Vector< Aws::String > & GetCommand() const
const Aws::Map< Aws::String, ContainerServiceProtocol > & GetPorts() const
const Aws::String & GetImage() const
bool PortsHasBeenSet() const
bool EnvironmentHasBeenSet() const
AWS_LIGHTSAIL_API Container(Aws::Utils::Json::JsonView jsonValue)
Container & AddEnvironment(EnvironmentKeyT &&key, EnvironmentValueT &&value)
void SetEnvironment(EnvironmentT &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Container & WithImage(ImageT &&value)
void SetPorts(PortsT &&value)
AWS_LIGHTSAIL_API Container & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetImage(ImageT &&value)
Container & AddCommand(CommandT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironment() const
Container & AddPorts(Aws::String key, ContainerServiceProtocol value)
Container & WithPorts(PortsT &&value)
void SetCommand(CommandT &&value)
Container & WithEnvironment(EnvironmentT &&value)
Container & WithCommand(CommandT &&value)
AWS_LIGHTSAIL_API Container()=default
bool ImageHasBeenSet() const
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