AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRuntimeEnvironmentVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables = value; }
51 inline void SetRuntimeEnvironmentVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables = std::move(value); }
54 inline ImageConfiguration& AddRuntimeEnvironmentVariables(const Aws::String& key, const Aws::String& value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables.emplace(key, value); return *this; }
55 inline ImageConfiguration& AddRuntimeEnvironmentVariables(Aws::String&& key, const Aws::String& value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables.emplace(std::move(key), value); return *this; }
56 inline ImageConfiguration& AddRuntimeEnvironmentVariables(const Aws::String& key, Aws::String&& value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables.emplace(key, std::move(value)); return *this; }
57 inline ImageConfiguration& AddRuntimeEnvironmentVariables(Aws::String&& key, Aws::String&& value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables.emplace(std::move(key), std::move(value)); return *this; }
58 inline ImageConfiguration& AddRuntimeEnvironmentVariables(const char* key, Aws::String&& value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables.emplace(key, std::move(value)); return *this; }
59 inline ImageConfiguration& AddRuntimeEnvironmentVariables(Aws::String&& key, const char* value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables.emplace(std::move(key), value); return *this; }
60 inline ImageConfiguration& AddRuntimeEnvironmentVariables(const char* key, const char* value) { m_runtimeEnvironmentVariablesHasBeenSet = true; m_runtimeEnvironmentVariables.emplace(key, value); return *this; }
62
64
69 inline const Aws::String& GetStartCommand() const{ return m_startCommand; }
70 inline bool StartCommandHasBeenSet() const { return m_startCommandHasBeenSet; }
71 inline void SetStartCommand(const Aws::String& value) { m_startCommandHasBeenSet = true; m_startCommand = value; }
72 inline void SetStartCommand(Aws::String&& value) { m_startCommandHasBeenSet = true; m_startCommand = std::move(value); }
73 inline void SetStartCommand(const char* value) { m_startCommandHasBeenSet = true; m_startCommand.assign(value); }
74 inline ImageConfiguration& WithStartCommand(const Aws::String& value) { SetStartCommand(value); return *this;}
75 inline ImageConfiguration& WithStartCommand(Aws::String&& value) { SetStartCommand(std::move(value)); return *this;}
76 inline ImageConfiguration& WithStartCommand(const char* value) { SetStartCommand(value); return *this;}
78
80
84 inline const Aws::String& GetPort() const{ return m_port; }
85 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
86 inline void SetPort(const Aws::String& value) { m_portHasBeenSet = true; m_port = value; }
87 inline void SetPort(Aws::String&& value) { m_portHasBeenSet = true; m_port = std::move(value); }
88 inline void SetPort(const char* value) { m_portHasBeenSet = true; m_port.assign(value); }
89 inline ImageConfiguration& WithPort(const Aws::String& value) { SetPort(value); return *this;}
90 inline ImageConfiguration& WithPort(Aws::String&& value) { SetPort(std::move(value)); return *this;}
91 inline ImageConfiguration& WithPort(const char* value) { SetPort(value); return *this;}
93
95
108 inline const Aws::Map<Aws::String, Aws::String>& GetRuntimeEnvironmentSecrets() const{ return m_runtimeEnvironmentSecrets; }
109 inline bool RuntimeEnvironmentSecretsHasBeenSet() const { return m_runtimeEnvironmentSecretsHasBeenSet; }
110 inline void SetRuntimeEnvironmentSecrets(const Aws::Map<Aws::String, Aws::String>& value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets = value; }
111 inline void SetRuntimeEnvironmentSecrets(Aws::Map<Aws::String, Aws::String>&& value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets = std::move(value); }
114 inline ImageConfiguration& AddRuntimeEnvironmentSecrets(const Aws::String& key, const Aws::String& value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets.emplace(key, value); return *this; }
115 inline ImageConfiguration& AddRuntimeEnvironmentSecrets(Aws::String&& key, const Aws::String& value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets.emplace(std::move(key), value); return *this; }
116 inline ImageConfiguration& AddRuntimeEnvironmentSecrets(const Aws::String& key, Aws::String&& value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets.emplace(key, std::move(value)); return *this; }
117 inline ImageConfiguration& AddRuntimeEnvironmentSecrets(Aws::String&& key, Aws::String&& value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets.emplace(std::move(key), std::move(value)); return *this; }
118 inline ImageConfiguration& AddRuntimeEnvironmentSecrets(const char* key, Aws::String&& value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets.emplace(key, std::move(value)); return *this; }
119 inline ImageConfiguration& AddRuntimeEnvironmentSecrets(Aws::String&& key, const char* value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets.emplace(std::move(key), value); return *this; }
120 inline ImageConfiguration& AddRuntimeEnvironmentSecrets(const char* key, const char* value) { m_runtimeEnvironmentSecretsHasBeenSet = true; m_runtimeEnvironmentSecrets.emplace(key, value); return *this; }
122 private:
123
124 Aws::Map<Aws::String, Aws::String> m_runtimeEnvironmentVariables;
125 bool m_runtimeEnvironmentVariablesHasBeenSet = false;
126
127 Aws::String m_startCommand;
128 bool m_startCommandHasBeenSet = false;
129
130 Aws::String m_port;
131 bool m_portHasBeenSet = false;
132
133 Aws::Map<Aws::String, Aws::String> m_runtimeEnvironmentSecrets;
134 bool m_runtimeEnvironmentSecretsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace AppRunner
139} // namespace Aws
ImageConfiguration & AddRuntimeEnvironmentVariables(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetRuntimeEnvironmentVariables() const
ImageConfiguration & AddRuntimeEnvironmentVariables(const Aws::String &key, Aws::String &&value)
void SetStartCommand(const Aws::String &value)
ImageConfiguration & AddRuntimeEnvironmentSecrets(Aws::String &&key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetRuntimeEnvironmentSecrets() const
ImageConfiguration & AddRuntimeEnvironmentVariables(const Aws::String &key, const Aws::String &value)
ImageConfiguration & AddRuntimeEnvironmentSecrets(Aws::String &&key, const Aws::String &value)
ImageConfiguration & AddRuntimeEnvironmentSecrets(const char *key, Aws::String &&value)
void SetRuntimeEnvironmentSecrets(Aws::Map< Aws::String, Aws::String > &&value)
void SetPort(const Aws::String &value)
void SetRuntimeEnvironmentVariables(const Aws::Map< Aws::String, Aws::String > &value)
ImageConfiguration & WithStartCommand(const Aws::String &value)
void SetRuntimeEnvironmentSecrets(const Aws::Map< Aws::String, Aws::String > &value)
ImageConfiguration & AddRuntimeEnvironmentVariables(Aws::String &&key, const Aws::String &value)
void SetRuntimeEnvironmentVariables(Aws::Map< Aws::String, Aws::String > &&value)
ImageConfiguration & WithStartCommand(const char *value)
AWS_APPRUNNER_API ImageConfiguration(Aws::Utils::Json::JsonView jsonValue)
ImageConfiguration & WithRuntimeEnvironmentSecrets(const Aws::Map< Aws::String, Aws::String > &value)
ImageConfiguration & AddRuntimeEnvironmentSecrets(const Aws::String &key, Aws::String &&value)
ImageConfiguration & AddRuntimeEnvironmentSecrets(Aws::String &&key, Aws::String &&value)
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
ImageConfiguration & WithStartCommand(Aws::String &&value)
ImageConfiguration & WithPort(const Aws::String &value)
ImageConfiguration & AddRuntimeEnvironmentVariables(Aws::String &&key, const char *value)
ImageConfiguration & WithRuntimeEnvironmentVariables(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetStartCommand() const
ImageConfiguration & WithPort(const char *value)
ImageConfiguration & WithRuntimeEnvironmentVariables(Aws::Map< Aws::String, Aws::String > &&value)
AWS_APPRUNNER_API ImageConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageConfiguration & WithPort(Aws::String &&value)
ImageConfiguration & AddRuntimeEnvironmentVariables(const char *key, const char *value)
ImageConfiguration & AddRuntimeEnvironmentVariables(Aws::String &&key, Aws::String &&value)
ImageConfiguration & AddRuntimeEnvironmentSecrets(const char *key, const char *value)
ImageConfiguration & WithRuntimeEnvironmentSecrets(Aws::Map< Aws::String, Aws::String > &&value)
ImageConfiguration & AddRuntimeEnvironmentSecrets(const Aws::String &key, 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