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>
65 inline void SetImage(
const char* value) { m_imageHasBeenSet =
true; m_image.assign(value); }
83 inline Container&
AddCommand(
const char* value) { m_commandHasBeenSet =
true; m_command.push_back(value);
return *
this; }
102 inline Container&
AddEnvironment(
const char* key,
const char* value) { m_environmentHasBeenSet =
true; m_environment.emplace(key, value);
return *
this; }
125 bool m_imageHasBeenSet =
false;
128 bool m_commandHasBeenSet =
false;
131 bool m_environmentHasBeenSet =
false;
134 bool m_portsHasBeenSet =
false;
Container & WithImage(const char *value)
bool CommandHasBeenSet() const
Container & AddEnvironment(Aws::String &&key, const char *value)
Container & AddCommand(const char *value)
Container & AddPorts(const char *key, ContainerServiceProtocol &&value)
Container & AddPorts(Aws::String &&key, const ContainerServiceProtocol &value)
Container & AddEnvironment(const Aws::String &key, Aws::String &&value)
void SetPorts(const Aws::Map< Aws::String, ContainerServiceProtocol > &value)
Container & WithPorts(const Aws::Map< Aws::String, ContainerServiceProtocol > &value)
void SetCommand(Aws::Vector< Aws::String > &&value)
AWS_LIGHTSAIL_API Container()
const Aws::Vector< Aws::String > & GetCommand() const
Container & WithPorts(Aws::Map< Aws::String, ContainerServiceProtocol > &&value)
const Aws::Map< Aws::String, ContainerServiceProtocol > & GetPorts() const
const Aws::String & GetImage() const
Container & AddEnvironment(Aws::String &&key, Aws::String &&value)
bool PortsHasBeenSet() const
bool EnvironmentHasBeenSet() const
AWS_LIGHTSAIL_API Container(Aws::Utils::Json::JsonView jsonValue)
Container & WithCommand(const Aws::Vector< Aws::String > &value)
void SetPorts(Aws::Map< Aws::String, ContainerServiceProtocol > &&value)
Container & AddPorts(const char *key, const ContainerServiceProtocol &value)
Container & WithImage(Aws::String &&value)
Container & AddPorts(const Aws::String &key, ContainerServiceProtocol &&value)
void SetCommand(const Aws::Vector< Aws::String > &value)
void SetImage(const char *value)
Container & AddEnvironment(const char *key, Aws::String &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetImage(Aws::String &&value)
Container & WithEnvironment(Aws::Map< Aws::String, Aws::String > &&value)
Container & AddPorts(const Aws::String &key, const ContainerServiceProtocol &value)
AWS_LIGHTSAIL_API Container & operator=(Aws::Utils::Json::JsonView jsonValue)
Container & AddPorts(Aws::String &&key, ContainerServiceProtocol &&value)
Container & WithCommand(Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironment() const
Container & WithEnvironment(const Aws::Map< Aws::String, Aws::String > &value)
void SetEnvironment(Aws::Map< Aws::String, Aws::String > &&value)
Container & AddEnvironment(const Aws::String &key, const Aws::String &value)
Container & AddCommand(Aws::String &&value)
Container & AddEnvironment(Aws::String &&key, const Aws::String &value)
void SetImage(const Aws::String &value)
Container & WithImage(const Aws::String &value)
Container & AddCommand(const Aws::String &value)
void SetEnvironment(const Aws::Map< Aws::String, Aws::String > &value)
Container & AddEnvironment(const char *key, const char *value)
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