AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
42 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Runtime& GetRuntime() const{ return m_runtime; }
51 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
52 inline void SetRuntime(const Runtime& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
53 inline void SetRuntime(Runtime&& value) { m_runtimeHasBeenSet = true; m_runtime = std::move(value); }
54 inline CodeConfigurationValues& WithRuntime(const Runtime& value) { SetRuntime(value); return *this;}
55 inline CodeConfigurationValues& WithRuntime(Runtime&& value) { SetRuntime(std::move(value)); return *this;}
57
59
62 inline const Aws::String& GetBuildCommand() const{ return m_buildCommand; }
63 inline bool BuildCommandHasBeenSet() const { return m_buildCommandHasBeenSet; }
64 inline void SetBuildCommand(const Aws::String& value) { m_buildCommandHasBeenSet = true; m_buildCommand = value; }
65 inline void SetBuildCommand(Aws::String&& value) { m_buildCommandHasBeenSet = true; m_buildCommand = std::move(value); }
66 inline void SetBuildCommand(const char* value) { m_buildCommandHasBeenSet = true; m_buildCommand.assign(value); }
67 inline CodeConfigurationValues& WithBuildCommand(const Aws::String& value) { SetBuildCommand(value); return *this;}
68 inline CodeConfigurationValues& WithBuildCommand(Aws::String&& value) { SetBuildCommand(std::move(value)); return *this;}
69 inline CodeConfigurationValues& WithBuildCommand(const char* value) { SetBuildCommand(value); return *this;}
71
73
76 inline const Aws::String& GetStartCommand() const{ return m_startCommand; }
77 inline bool StartCommandHasBeenSet() const { return m_startCommandHasBeenSet; }
78 inline void SetStartCommand(const Aws::String& value) { m_startCommandHasBeenSet = true; m_startCommand = value; }
79 inline void SetStartCommand(Aws::String&& value) { m_startCommandHasBeenSet = true; m_startCommand = std::move(value); }
80 inline void SetStartCommand(const char* value) { m_startCommandHasBeenSet = true; m_startCommand.assign(value); }
81 inline CodeConfigurationValues& WithStartCommand(const Aws::String& value) { SetStartCommand(value); return *this;}
82 inline CodeConfigurationValues& WithStartCommand(Aws::String&& value) { SetStartCommand(std::move(value)); return *this;}
83 inline CodeConfigurationValues& WithStartCommand(const char* value) { SetStartCommand(value); return *this;}
85
87
91 inline const Aws::String& GetPort() const{ return m_port; }
92 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
93 inline void SetPort(const Aws::String& value) { m_portHasBeenSet = true; m_port = value; }
94 inline void SetPort(Aws::String&& value) { m_portHasBeenSet = true; m_port = std::move(value); }
95 inline void SetPort(const char* value) { m_portHasBeenSet = true; m_port.assign(value); }
96 inline CodeConfigurationValues& WithPort(const Aws::String& value) { SetPort(value); return *this;}
97 inline CodeConfigurationValues& WithPort(Aws::String&& value) { SetPort(std::move(value)); return *this;}
98 inline CodeConfigurationValues& WithPort(const char* value) { SetPort(value); return *this;}
100
102
106 inline const Aws::Map<Aws::String, Aws::String>& GetRuntimeEnvironmentVariables() const{ return m_runtimeEnvironmentVariables; }
107 inline bool RuntimeEnvironmentVariablesHasBeenSet() const { return m_runtimeEnvironmentVariablesHasBeenSet; }
108 inline void SetRuntimeEnvironmentVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables = value; }
109 inline void SetRuntimeEnvironmentVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables = std::move(value); }
112 inline CodeConfigurationValues& AddRuntimeEnvironmentVariables(const Aws::String& key, const Aws::String& value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables.emplace(key, value); return *this; }
113 inline CodeConfigurationValues& AddRuntimeEnvironmentVariables(Aws::String&& key, const Aws::String& value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables.emplace(std::move(key), value); return *this; }
114 inline CodeConfigurationValues& AddRuntimeEnvironmentVariables(const Aws::String& key, Aws::String&& value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables.emplace(key, std::move(value)); return *this; }
115 inline CodeConfigurationValues& AddRuntimeEnvironmentVariables(Aws::String&& key, Aws::String&& value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables.emplace(std::move(key), std::move(value)); return *this; }
116 inline CodeConfigurationValues& AddRuntimeEnvironmentVariables(const char* key, Aws::String&& value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables.emplace(key, std::move(value)); return *this; }
117 inline CodeConfigurationValues& AddRuntimeEnvironmentVariables(Aws::String&& key, const char* value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables.emplace(std::move(key), value); return *this; }
118 inline CodeConfigurationValues& AddRuntimeEnvironmentVariables(const char* key, const char* value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables.emplace(key, value); return *this; }
120
122
135 inline const Aws::Map<Aws::String, Aws::String>& GetRuntimeEnvironmentSecrets() const{ return m_runtimeEnvironmentSecrets; }
136 inline bool RuntimeEnvironmentSecretsHasBeenSet() const { return m_runtimeEnvironmentSecretsHasBeenSet; }
137 inline void SetRuntimeEnvironmentSecrets(const Aws::Map<Aws::String, Aws::String>& value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets = value; }
138 inline void SetRuntimeEnvironmentSecrets(Aws::Map<Aws::String, Aws::String>&& value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets = std::move(value); }
141 inline CodeConfigurationValues& AddRuntimeEnvironmentSecrets(const Aws::String& key, const Aws::String& value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets.emplace(key, value); return *this; }
142 inline CodeConfigurationValues& AddRuntimeEnvironmentSecrets(Aws::String&& key, const Aws::String& value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets.emplace(std::move(key), value); return *this; }
143 inline CodeConfigurationValues& AddRuntimeEnvironmentSecrets(const Aws::String& key, Aws::String&& value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets.emplace(key, std::move(value)); return *this; }
144 inline CodeConfigurationValues& AddRuntimeEnvironmentSecrets(Aws::String&& key, Aws::String&& value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets.emplace(std::move(key), std::move(value)); return *this; }
145 inline CodeConfigurationValues& AddRuntimeEnvironmentSecrets(const char* key, Aws::String&& value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets.emplace(key, std::move(value)); return *this; }
146 inline CodeConfigurationValues& AddRuntimeEnvironmentSecrets(Aws::String&& key, const char* value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets.emplace(std::move(key), value); return *this; }
147 inline CodeConfigurationValues& AddRuntimeEnvironmentSecrets(const char* key, const char* value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets.emplace(key, value); return *this; }
149 private:
150
151 Runtime m_runtime;
152 bool m_runtimeHasBeenSet = false;
153
154 Aws::String m_buildCommand;
155 bool m_buildCommandHasBeenSet = false;
156
157 Aws::String m_startCommand;
158 bool m_startCommandHasBeenSet = false;
159
160 Aws::String m_port;
161 bool m_portHasBeenSet = false;
162
163 Aws::Map<Aws::String, Aws::String> m_runtimeEnvironmentVariables;
164 bool m_runtimeEnvironmentVariablesHasBeenSet = false;
165
166 Aws::Map<Aws::String, Aws::String> m_runtimeEnvironmentSecrets;
167 bool m_runtimeEnvironmentSecretsHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace AppRunner
172} // namespace Aws
CodeConfigurationValues & AddRuntimeEnvironmentSecrets(Aws::String &&key, Aws::String &&value)
CodeConfigurationValues & WithRuntimeEnvironmentSecrets(Aws::Map< Aws::String, Aws::String > &&value)
CodeConfigurationValues & WithPort(const Aws::String &value)
CodeConfigurationValues & AddRuntimeEnvironmentVariables(const Aws::String &key, Aws::String &&value)
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
CodeConfigurationValues & AddRuntimeEnvironmentVariables(const char *key, const char *value)
void SetRuntimeEnvironmentVariables(Aws::Map< Aws::String, Aws::String > &&value)
CodeConfigurationValues & AddRuntimeEnvironmentSecrets(Aws::String &&key, const Aws::String &value)
void SetRuntimeEnvironmentVariables(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetRuntimeEnvironmentVariables() const
CodeConfigurationValues & WithRuntime(Runtime &&value)
CodeConfigurationValues & AddRuntimeEnvironmentVariables(const Aws::String &key, const Aws::String &value)
CodeConfigurationValues & AddRuntimeEnvironmentVariables(Aws::String &&key, const Aws::String &value)
CodeConfigurationValues & WithBuildCommand(const Aws::String &value)
CodeConfigurationValues & WithStartCommand(const char *value)
CodeConfigurationValues & WithRuntimeEnvironmentSecrets(const Aws::Map< Aws::String, Aws::String > &value)
CodeConfigurationValues & WithRuntimeEnvironmentVariables(const Aws::Map< Aws::String, Aws::String > &value)
CodeConfigurationValues & WithBuildCommand(Aws::String &&value)
CodeConfigurationValues & AddRuntimeEnvironmentVariables(Aws::String &&key, Aws::String &&value)
CodeConfigurationValues & WithRuntime(const Runtime &value)
void SetRuntimeEnvironmentSecrets(const Aws::Map< Aws::String, Aws::String > &value)
CodeConfigurationValues & AddRuntimeEnvironmentSecrets(Aws::String &&key, const char *value)
AWS_APPRUNNER_API CodeConfigurationValues(Aws::Utils::Json::JsonView jsonValue)
CodeConfigurationValues & AddRuntimeEnvironmentSecrets(const Aws::String &key, const Aws::String &value)
CodeConfigurationValues & WithPort(Aws::String &&value)
CodeConfigurationValues & AddRuntimeEnvironmentVariables(Aws::String &&key, const char *value)
void SetRuntimeEnvironmentSecrets(Aws::Map< Aws::String, Aws::String > &&value)
CodeConfigurationValues & WithRuntimeEnvironmentVariables(Aws::Map< Aws::String, Aws::String > &&value)
AWS_APPRUNNER_API CodeConfigurationValues & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeConfigurationValues & AddRuntimeEnvironmentSecrets(const char *key, Aws::String &&value)
CodeConfigurationValues & AddRuntimeEnvironmentVariables(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetRuntimeEnvironmentSecrets() const
CodeConfigurationValues & AddRuntimeEnvironmentSecrets(const Aws::String &key, Aws::String &&value)
CodeConfigurationValues & WithPort(const char *value)
CodeConfigurationValues & WithBuildCommand(const char *value)
CodeConfigurationValues & WithStartCommand(Aws::String &&value)
CodeConfigurationValues & AddRuntimeEnvironmentSecrets(const char *key, const char *value)
CodeConfigurationValues & WithStartCommand(const Aws::String &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