AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ImageConfiguration.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppRunner {
21namespace Model {
22
31 public:
32 AWS_APPRUNNER_API ImageConfiguration() = default;
33 AWS_APPRUNNER_API ImageConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Map<Aws::String, Aws::String>& GetRuntimeEnvironmentVariables() const { return m_runtimeEnvironmentVariables; }
43 inline bool RuntimeEnvironmentVariablesHasBeenSet() const { return m_runtimeEnvironmentVariablesHasBeenSet; }
44 template <typename RuntimeEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
45 void SetRuntimeEnvironmentVariables(RuntimeEnvironmentVariablesT&& value) {
46 m_runtimeEnvironmentVariablesHasBeenSet = true;
47 m_runtimeEnvironmentVariables = std::forward<RuntimeEnvironmentVariablesT>(value);
48 }
49 template <typename RuntimeEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
50 ImageConfiguration& WithRuntimeEnvironmentVariables(RuntimeEnvironmentVariablesT&& value) {
51 SetRuntimeEnvironmentVariables(std::forward<RuntimeEnvironmentVariablesT>(value));
52 return *this;
53 }
54 template <typename RuntimeEnvironmentVariablesKeyT = Aws::String, typename RuntimeEnvironmentVariablesValueT = Aws::String>
55 ImageConfiguration& AddRuntimeEnvironmentVariables(RuntimeEnvironmentVariablesKeyT&& key, RuntimeEnvironmentVariablesValueT&& value) {
56 m_runtimeEnvironmentVariablesHasBeenSet = true;
57 m_runtimeEnvironmentVariables.emplace(std::forward<RuntimeEnvironmentVariablesKeyT>(key),
58 std::forward<RuntimeEnvironmentVariablesValueT>(value));
59 return *this;
60 }
62
64
69 inline const Aws::String& GetStartCommand() const { return m_startCommand; }
70 inline bool StartCommandHasBeenSet() const { return m_startCommandHasBeenSet; }
71 template <typename StartCommandT = Aws::String>
72 void SetStartCommand(StartCommandT&& value) {
73 m_startCommandHasBeenSet = true;
74 m_startCommand = std::forward<StartCommandT>(value);
75 }
76 template <typename StartCommandT = Aws::String>
77 ImageConfiguration& WithStartCommand(StartCommandT&& value) {
78 SetStartCommand(std::forward<StartCommandT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetPort() const { return m_port; }
89 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
90 template <typename PortT = Aws::String>
91 void SetPort(PortT&& value) {
92 m_portHasBeenSet = true;
93 m_port = std::forward<PortT>(value);
94 }
95 template <typename PortT = Aws::String>
96 ImageConfiguration& WithPort(PortT&& value) {
97 SetPort(std::forward<PortT>(value));
98 return *this;
99 }
101
103
116 inline const Aws::Map<Aws::String, Aws::String>& GetRuntimeEnvironmentSecrets() const { return m_runtimeEnvironmentSecrets; }
117 inline bool RuntimeEnvironmentSecretsHasBeenSet() const { return m_runtimeEnvironmentSecretsHasBeenSet; }
118 template <typename RuntimeEnvironmentSecretsT = Aws::Map<Aws::String, Aws::String>>
119 void SetRuntimeEnvironmentSecrets(RuntimeEnvironmentSecretsT&& value) {
120 m_runtimeEnvironmentSecretsHasBeenSet = true;
121 m_runtimeEnvironmentSecrets = std::forward<RuntimeEnvironmentSecretsT>(value);
122 }
123 template <typename RuntimeEnvironmentSecretsT = Aws::Map<Aws::String, Aws::String>>
124 ImageConfiguration& WithRuntimeEnvironmentSecrets(RuntimeEnvironmentSecretsT&& value) {
125 SetRuntimeEnvironmentSecrets(std::forward<RuntimeEnvironmentSecretsT>(value));
126 return *this;
127 }
128 template <typename RuntimeEnvironmentSecretsKeyT = Aws::String, typename RuntimeEnvironmentSecretsValueT = Aws::String>
129 ImageConfiguration& AddRuntimeEnvironmentSecrets(RuntimeEnvironmentSecretsKeyT&& key, RuntimeEnvironmentSecretsValueT&& value) {
130 m_runtimeEnvironmentSecretsHasBeenSet = true;
131 m_runtimeEnvironmentSecrets.emplace(std::forward<RuntimeEnvironmentSecretsKeyT>(key),
132 std::forward<RuntimeEnvironmentSecretsValueT>(value));
133 return *this;
134 }
136 private:
137 Aws::Map<Aws::String, Aws::String> m_runtimeEnvironmentVariables;
138
139 Aws::String m_startCommand;
140
141 Aws::String m_port;
142
143 Aws::Map<Aws::String, Aws::String> m_runtimeEnvironmentSecrets;
144 bool m_runtimeEnvironmentVariablesHasBeenSet = false;
145 bool m_startCommandHasBeenSet = false;
146 bool m_portHasBeenSet = false;
147 bool m_runtimeEnvironmentSecretsHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace AppRunner
152} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetRuntimeEnvironmentVariables() const
const Aws::Map< Aws::String, Aws::String > & GetRuntimeEnvironmentSecrets() const
ImageConfiguration & WithRuntimeEnvironmentVariables(RuntimeEnvironmentVariablesT &&value)
ImageConfiguration & WithStartCommand(StartCommandT &&value)
ImageConfiguration & AddRuntimeEnvironmentSecrets(RuntimeEnvironmentSecretsKeyT &&key, RuntimeEnvironmentSecretsValueT &&value)
void SetRuntimeEnvironmentSecrets(RuntimeEnvironmentSecretsT &&value)
ImageConfiguration & AddRuntimeEnvironmentVariables(RuntimeEnvironmentVariablesKeyT &&key, RuntimeEnvironmentVariablesValueT &&value)
ImageConfiguration & WithPort(PortT &&value)
AWS_APPRUNNER_API ImageConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRuntimeEnvironmentVariables(RuntimeEnvironmentVariablesT &&value)
void SetStartCommand(StartCommandT &&value)
const Aws::String & GetStartCommand() const
AWS_APPRUNNER_API ImageConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPRUNNER_API ImageConfiguration()=default
ImageConfiguration & WithRuntimeEnvironmentSecrets(RuntimeEnvironmentSecretsT &&value)
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
Aws::Utils::Json::JsonValue JsonValue