AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppRunner
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_APPRUNNER_API CodeConfigurationValues() = default;
42 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline Runtime GetRuntime() const { return m_runtime; }
51 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
52 inline void SetRuntime(Runtime value) { m_runtimeHasBeenSet = true; m_runtime = value; }
53 inline CodeConfigurationValues& WithRuntime(Runtime value) { SetRuntime(value); return *this;}
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) { m_buildCommandHasBeenSet = true; m_buildCommand = std::forward<BuildCommandT>(value); }
64 template<typename BuildCommandT = Aws::String>
65 CodeConfigurationValues& WithBuildCommand(BuildCommandT&& value) { SetBuildCommand(std::forward<BuildCommandT>(value)); return *this;}
67
69
72 inline const Aws::String& GetStartCommand() const { return m_startCommand; }
73 inline bool StartCommandHasBeenSet() const { return m_startCommandHasBeenSet; }
74 template<typename StartCommandT = Aws::String>
75 void SetStartCommand(StartCommandT&& value) { m_startCommandHasBeenSet = true; m_startCommand = std::forward<StartCommandT>(value); }
76 template<typename StartCommandT = Aws::String>
77 CodeConfigurationValues& WithStartCommand(StartCommandT&& value) { SetStartCommand(std::forward<StartCommandT>(value)); return *this;}
79
81
85 inline const Aws::String& GetPort() const { return m_port; }
86 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
87 template<typename PortT = Aws::String>
88 void SetPort(PortT&& value) { m_portHasBeenSet = true; m_port = std::forward<PortT>(value); }
89 template<typename PortT = Aws::String>
90 CodeConfigurationValues& WithPort(PortT&& value) { SetPort(std::forward<PortT>(value)); return *this;}
92
94
98 inline const Aws::Map<Aws::String, Aws::String>& GetRuntimeEnvironmentVariables() const { return m_runtimeEnvironmentVariables; }
99 inline bool RuntimeEnvironmentVariablesHasBeenSet() const { return m_runtimeEnvironmentVariablesHasBeenSet; }
100 template<typename RuntimeEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
101 void SetRuntimeEnvironmentVariables(RuntimeEnvironmentVariablesT&& value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables = std::forward<RuntimeEnvironmentVariablesT>(value); }
102 template<typename RuntimeEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
103 CodeConfigurationValues& WithRuntimeEnvironmentVariables(RuntimeEnvironmentVariablesT&& value) { SetRuntimeEnvironmentVariables(std::forward<RuntimeEnvironmentVariablesT>(value)); return *this;}
104 template<typename RuntimeEnvironmentVariablesKeyT = Aws::String, typename RuntimeEnvironmentVariablesValueT = Aws::String>
105 CodeConfigurationValues& AddRuntimeEnvironmentVariables(RuntimeEnvironmentVariablesKeyT&& key, RuntimeEnvironmentVariablesValueT&& value) {
106 m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables.emplace(std::forward<RuntimeEnvironmentVariablesKeyT>(key), std::forward<RuntimeEnvironmentVariablesValueT>(value)); return *this;
107 }
109
111
124 inline const Aws::Map<Aws::String, Aws::String>& GetRuntimeEnvironmentSecrets() const { return m_runtimeEnvironmentSecrets; }
125 inline bool RuntimeEnvironmentSecretsHasBeenSet() const { return m_runtimeEnvironmentSecretsHasBeenSet; }
126 template<typename RuntimeEnvironmentSecretsT = Aws::Map<Aws::String, Aws::String>>
127 void SetRuntimeEnvironmentSecrets(RuntimeEnvironmentSecretsT&& value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets = std::forward<RuntimeEnvironmentSecretsT>(value); }
128 template<typename RuntimeEnvironmentSecretsT = Aws::Map<Aws::String, Aws::String>>
129 CodeConfigurationValues& WithRuntimeEnvironmentSecrets(RuntimeEnvironmentSecretsT&& value) { SetRuntimeEnvironmentSecrets(std::forward<RuntimeEnvironmentSecretsT>(value)); return *this;}
130 template<typename RuntimeEnvironmentSecretsKeyT = Aws::String, typename RuntimeEnvironmentSecretsValueT = Aws::String>
131 CodeConfigurationValues& AddRuntimeEnvironmentSecrets(RuntimeEnvironmentSecretsKeyT&& key, RuntimeEnvironmentSecretsValueT&& value) {
132 m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets.emplace(std::forward<RuntimeEnvironmentSecretsKeyT>(key), std::forward<RuntimeEnvironmentSecretsValueT>(value)); return *this;
133 }
135 private:
136
137 Runtime m_runtime{Runtime::NOT_SET};
138 bool m_runtimeHasBeenSet = false;
139
140 Aws::String m_buildCommand;
141 bool m_buildCommandHasBeenSet = false;
142
143 Aws::String m_startCommand;
144 bool m_startCommandHasBeenSet = false;
145
146 Aws::String m_port;
147 bool m_portHasBeenSet = false;
148
149 Aws::Map<Aws::String, Aws::String> m_runtimeEnvironmentVariables;
150 bool m_runtimeEnvironmentVariablesHasBeenSet = false;
151
152 Aws::Map<Aws::String, Aws::String> m_runtimeEnvironmentSecrets;
153 bool m_runtimeEnvironmentSecretsHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace AppRunner
158} // 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