AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CodeConfigurationValues.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/apprunner/model/Runtime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppRunner {
22namespace Model {
23
33 public:
34 AWS_APPRUNNER_API CodeConfigurationValues() = default;
37 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline Runtime GetRuntime() const { return m_runtime; }
45 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
46 inline void SetRuntime(Runtime value) {
47 m_runtimeHasBeenSet = true;
48 m_runtime = value;
49 }
51 SetRuntime(value);
52 return *this;
53 }
55
57
60 inline const Aws::String& GetBuildCommand() const { return m_buildCommand; }
61 inline bool BuildCommandHasBeenSet() const { return m_buildCommandHasBeenSet; }
62 template <typename BuildCommandT = Aws::String>
63 void SetBuildCommand(BuildCommandT&& value) {
64 m_buildCommandHasBeenSet = true;
65 m_buildCommand = std::forward<BuildCommandT>(value);
66 }
67 template <typename BuildCommandT = Aws::String>
68 CodeConfigurationValues& WithBuildCommand(BuildCommandT&& value) {
69 SetBuildCommand(std::forward<BuildCommandT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetStartCommand() const { return m_startCommand; }
79 inline bool StartCommandHasBeenSet() const { return m_startCommandHasBeenSet; }
80 template <typename StartCommandT = Aws::String>
81 void SetStartCommand(StartCommandT&& value) {
82 m_startCommandHasBeenSet = true;
83 m_startCommand = std::forward<StartCommandT>(value);
84 }
85 template <typename StartCommandT = Aws::String>
86 CodeConfigurationValues& WithStartCommand(StartCommandT&& value) {
87 SetStartCommand(std::forward<StartCommandT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetPort() const { return m_port; }
98 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
99 template <typename PortT = Aws::String>
100 void SetPort(PortT&& value) {
101 m_portHasBeenSet = true;
102 m_port = std::forward<PortT>(value);
103 }
104 template <typename PortT = Aws::String>
106 SetPort(std::forward<PortT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::Map<Aws::String, Aws::String>& GetRuntimeEnvironmentVariables() const { return m_runtimeEnvironmentVariables; }
117 inline bool RuntimeEnvironmentVariablesHasBeenSet() const { return m_runtimeEnvironmentVariablesHasBeenSet; }
118 template <typename RuntimeEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
119 void SetRuntimeEnvironmentVariables(RuntimeEnvironmentVariablesT&& value) {
120 m_runtimeEnvironmentVariablesHasBeenSet = true;
121 m_runtimeEnvironmentVariables = std::forward<RuntimeEnvironmentVariablesT>(value);
122 }
123 template <typename RuntimeEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
124 CodeConfigurationValues& WithRuntimeEnvironmentVariables(RuntimeEnvironmentVariablesT&& value) {
125 SetRuntimeEnvironmentVariables(std::forward<RuntimeEnvironmentVariablesT>(value));
126 return *this;
127 }
128 template <typename RuntimeEnvironmentVariablesKeyT = Aws::String, typename RuntimeEnvironmentVariablesValueT = Aws::String>
129 CodeConfigurationValues& AddRuntimeEnvironmentVariables(RuntimeEnvironmentVariablesKeyT&& key,
130 RuntimeEnvironmentVariablesValueT&& value) {
131 m_runtimeEnvironmentVariablesHasBeenSet = true;
132 m_runtimeEnvironmentVariables.emplace(std::forward<RuntimeEnvironmentVariablesKeyT>(key),
133 std::forward<RuntimeEnvironmentVariablesValueT>(value));
134 return *this;
135 }
137
139
152 inline const Aws::Map<Aws::String, Aws::String>& GetRuntimeEnvironmentSecrets() const { return m_runtimeEnvironmentSecrets; }
153 inline bool RuntimeEnvironmentSecretsHasBeenSet() const { return m_runtimeEnvironmentSecretsHasBeenSet; }
154 template <typename RuntimeEnvironmentSecretsT = Aws::Map<Aws::String, Aws::String>>
155 void SetRuntimeEnvironmentSecrets(RuntimeEnvironmentSecretsT&& value) {
156 m_runtimeEnvironmentSecretsHasBeenSet = true;
157 m_runtimeEnvironmentSecrets = std::forward<RuntimeEnvironmentSecretsT>(value);
158 }
159 template <typename RuntimeEnvironmentSecretsT = Aws::Map<Aws::String, Aws::String>>
160 CodeConfigurationValues& WithRuntimeEnvironmentSecrets(RuntimeEnvironmentSecretsT&& value) {
161 SetRuntimeEnvironmentSecrets(std::forward<RuntimeEnvironmentSecretsT>(value));
162 return *this;
163 }
164 template <typename RuntimeEnvironmentSecretsKeyT = Aws::String, typename RuntimeEnvironmentSecretsValueT = Aws::String>
165 CodeConfigurationValues& AddRuntimeEnvironmentSecrets(RuntimeEnvironmentSecretsKeyT&& key, RuntimeEnvironmentSecretsValueT&& value) {
166 m_runtimeEnvironmentSecretsHasBeenSet = true;
167 m_runtimeEnvironmentSecrets.emplace(std::forward<RuntimeEnvironmentSecretsKeyT>(key),
168 std::forward<RuntimeEnvironmentSecretsValueT>(value));
169 return *this;
170 }
172 private:
173 Runtime m_runtime{Runtime::NOT_SET};
174
175 Aws::String m_buildCommand;
176
177 Aws::String m_startCommand;
178
179 Aws::String m_port;
180
181 Aws::Map<Aws::String, Aws::String> m_runtimeEnvironmentVariables;
182
183 Aws::Map<Aws::String, Aws::String> m_runtimeEnvironmentSecrets;
184 bool m_runtimeHasBeenSet = false;
185 bool m_buildCommandHasBeenSet = false;
186 bool m_startCommandHasBeenSet = false;
187 bool m_portHasBeenSet = false;
188 bool m_runtimeEnvironmentVariablesHasBeenSet = false;
189 bool m_runtimeEnvironmentSecretsHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace AppRunner
194} // namespace Aws
void SetRuntimeEnvironmentVariables(RuntimeEnvironmentVariablesT &&value)
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRuntimeEnvironmentSecrets(RuntimeEnvironmentSecretsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetRuntimeEnvironmentVariables() const
CodeConfigurationValues & WithRuntimeEnvironmentSecrets(RuntimeEnvironmentSecretsT &&value)
CodeConfigurationValues & WithRuntime(Runtime value)
CodeConfigurationValues & WithStartCommand(StartCommandT &&value)
CodeConfigurationValues & WithBuildCommand(BuildCommandT &&value)
AWS_APPRUNNER_API CodeConfigurationValues()=default
AWS_APPRUNNER_API CodeConfigurationValues(Aws::Utils::Json::JsonView jsonValue)
CodeConfigurationValues & AddRuntimeEnvironmentVariables(RuntimeEnvironmentVariablesKeyT &&key, RuntimeEnvironmentVariablesValueT &&value)
CodeConfigurationValues & AddRuntimeEnvironmentSecrets(RuntimeEnvironmentSecretsKeyT &&key, RuntimeEnvironmentSecretsValueT &&value)
AWS_APPRUNNER_API CodeConfigurationValues & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetRuntimeEnvironmentSecrets() const
CodeConfigurationValues & WithRuntimeEnvironmentVariables(RuntimeEnvironmentVariablesT &&value)
CodeConfigurationValues & WithPort(PortT &&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