AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppRunner
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_APPRUNNER_API ImageConfiguration() = default;
38 AWS_APPRUNNER_API ImageConfiguration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Map<Aws::String, Aws::String>& GetRuntimeEnvironmentVariables() const { return m_runtimeEnvironmentVariables; }
49 inline bool RuntimeEnvironmentVariablesHasBeenSet() const { return m_runtimeEnvironmentVariablesHasBeenSet; }
50 template<typename RuntimeEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
51 void SetRuntimeEnvironmentVariables(RuntimeEnvironmentVariablesT&& value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables = std::forward<RuntimeEnvironmentVariablesT>(value); }
52 template<typename RuntimeEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
53 ImageConfiguration& WithRuntimeEnvironmentVariables(RuntimeEnvironmentVariablesT&& value) { SetRuntimeEnvironmentVariables(std::forward<RuntimeEnvironmentVariablesT>(value)); return *this;}
54 template<typename RuntimeEnvironmentVariablesKeyT = Aws::String, typename RuntimeEnvironmentVariablesValueT = Aws::String>
55 ImageConfiguration& AddRuntimeEnvironmentVariables(RuntimeEnvironmentVariablesKeyT&& key, RuntimeEnvironmentVariablesValueT&& value) {
56 m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables.emplace(std::forward<RuntimeEnvironmentVariablesKeyT>(key), std::forward<RuntimeEnvironmentVariablesValueT>(value)); return *this;
57 }
59
61
66 inline const Aws::String& GetStartCommand() const { return m_startCommand; }
67 inline bool StartCommandHasBeenSet() const { return m_startCommandHasBeenSet; }
68 template<typename StartCommandT = Aws::String>
69 void SetStartCommand(StartCommandT&& value) { m_startCommandHasBeenSet = true; m_startCommand = std::forward<StartCommandT>(value); }
70 template<typename StartCommandT = Aws::String>
71 ImageConfiguration& WithStartCommand(StartCommandT&& value) { SetStartCommand(std::forward<StartCommandT>(value)); return *this;}
73
75
79 inline const Aws::String& GetPort() const { return m_port; }
80 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
81 template<typename PortT = Aws::String>
82 void SetPort(PortT&& value) { m_portHasBeenSet = true; m_port = std::forward<PortT>(value); }
83 template<typename PortT = Aws::String>
84 ImageConfiguration& WithPort(PortT&& value) { SetPort(std::forward<PortT>(value)); return *this;}
86
88
101 inline const Aws::Map<Aws::String, Aws::String>& GetRuntimeEnvironmentSecrets() const { return m_runtimeEnvironmentSecrets; }
102 inline bool RuntimeEnvironmentSecretsHasBeenSet() const { return m_runtimeEnvironmentSecretsHasBeenSet; }
103 template<typename RuntimeEnvironmentSecretsT = Aws::Map<Aws::String, Aws::String>>
104 void SetRuntimeEnvironmentSecrets(RuntimeEnvironmentSecretsT&& value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets = std::forward<RuntimeEnvironmentSecretsT>(value); }
105 template<typename RuntimeEnvironmentSecretsT = Aws::Map<Aws::String, Aws::String>>
106 ImageConfiguration& WithRuntimeEnvironmentSecrets(RuntimeEnvironmentSecretsT&& value) { SetRuntimeEnvironmentSecrets(std::forward<RuntimeEnvironmentSecretsT>(value)); return *this;}
107 template<typename RuntimeEnvironmentSecretsKeyT = Aws::String, typename RuntimeEnvironmentSecretsValueT = Aws::String>
108 ImageConfiguration& AddRuntimeEnvironmentSecrets(RuntimeEnvironmentSecretsKeyT&& key, RuntimeEnvironmentSecretsValueT&& value) {
109 m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets.emplace(std::forward<RuntimeEnvironmentSecretsKeyT>(key), std::forward<RuntimeEnvironmentSecretsValueT>(value)); return *this;
110 }
112 private:
113
114 Aws::Map<Aws::String, Aws::String> m_runtimeEnvironmentVariables;
115 bool m_runtimeEnvironmentVariablesHasBeenSet = false;
116
117 Aws::String m_startCommand;
118 bool m_startCommandHasBeenSet = false;
119
120 Aws::String m_port;
121 bool m_portHasBeenSet = false;
122
123 Aws::Map<Aws::String, Aws::String> m_runtimeEnvironmentSecrets;
124 bool m_runtimeEnvironmentSecretsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace AppRunner
129} // 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