AWS SDK for C++

AWS SDK for C++ Version 1.11.913

Loading...
Searching...
No Matches
ServiceConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda-web/LambdaWeb_EXPORTS.h>
10#include <aws/lambda-web/model/TelemetryConfig.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LambdaWeb {
22namespace Model {
23
32 public:
33 AWS_LAMBDAWEB_API ServiceConfig() = default;
34 AWS_LAMBDAWEB_API ServiceConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LAMBDAWEB_API ServiceConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LAMBDAWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
44 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
45 template <typename ExecutionRoleArnT = Aws::String>
46 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
47 m_executionRoleArnHasBeenSet = true;
48 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
49 }
50 template <typename ExecutionRoleArnT = Aws::String>
51 ServiceConfig& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
52 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
53 return *this;
54 }
56
58
64 inline int GetTimeoutSeconds() const { return m_timeoutSeconds; }
65 inline bool TimeoutSecondsHasBeenSet() const { return m_timeoutSecondsHasBeenSet; }
66 inline void SetTimeoutSeconds(int value) {
67 m_timeoutSecondsHasBeenSet = true;
68 m_timeoutSeconds = value;
69 }
70 inline ServiceConfig& WithTimeoutSeconds(int value) {
71 SetTimeoutSeconds(value);
72 return *this;
73 }
75
77
86 inline const Aws::String& GetEgressNetworkConnectorArn() const { return m_egressNetworkConnectorArn; }
87 inline bool EgressNetworkConnectorArnHasBeenSet() const { return m_egressNetworkConnectorArnHasBeenSet; }
88 template <typename EgressNetworkConnectorArnT = Aws::String>
89 void SetEgressNetworkConnectorArn(EgressNetworkConnectorArnT&& value) {
90 m_egressNetworkConnectorArnHasBeenSet = true;
91 m_egressNetworkConnectorArn = std::forward<EgressNetworkConnectorArnT>(value);
92 }
93 template <typename EgressNetworkConnectorArnT = Aws::String>
94 ServiceConfig& WithEgressNetworkConnectorArn(EgressNetworkConnectorArnT&& value) {
95 SetEgressNetworkConnectorArn(std::forward<EgressNetworkConnectorArnT>(value));
96 return *this;
97 }
99
101
106 inline int GetMaxConcurrencyPerEnvironment() const { return m_maxConcurrencyPerEnvironment; }
107 inline bool MaxConcurrencyPerEnvironmentHasBeenSet() const { return m_maxConcurrencyPerEnvironmentHasBeenSet; }
108 inline void SetMaxConcurrencyPerEnvironment(int value) {
109 m_maxConcurrencyPerEnvironmentHasBeenSet = true;
110 m_maxConcurrencyPerEnvironment = value;
111 }
114 return *this;
115 }
117
119
123 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
124 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
125 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
126 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
127 m_environmentVariablesHasBeenSet = true;
128 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
129 }
130 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
131 ServiceConfig& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
132 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
133 return *this;
134 }
135 template <typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
136 ServiceConfig& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
137 m_environmentVariablesHasBeenSet = true;
138 m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
139 return *this;
140 }
142
144
148 inline const TelemetryConfig& GetTelemetryConfig() const { return m_telemetryConfig; }
149 inline bool TelemetryConfigHasBeenSet() const { return m_telemetryConfigHasBeenSet; }
150 template <typename TelemetryConfigT = TelemetryConfig>
151 void SetTelemetryConfig(TelemetryConfigT&& value) {
152 m_telemetryConfigHasBeenSet = true;
153 m_telemetryConfig = std::forward<TelemetryConfigT>(value);
154 }
155 template <typename TelemetryConfigT = TelemetryConfig>
156 ServiceConfig& WithTelemetryConfig(TelemetryConfigT&& value) {
157 SetTelemetryConfig(std::forward<TelemetryConfigT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_executionRoleArn;
163
164 int m_timeoutSeconds{0};
165
166 Aws::String m_egressNetworkConnectorArn;
167
168 int m_maxConcurrencyPerEnvironment{0};
169
170 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
171
172 TelemetryConfig m_telemetryConfig;
173 bool m_executionRoleArnHasBeenSet = false;
174 bool m_timeoutSecondsHasBeenSet = false;
175 bool m_egressNetworkConnectorArnHasBeenSet = false;
176 bool m_maxConcurrencyPerEnvironmentHasBeenSet = false;
177 bool m_environmentVariablesHasBeenSet = false;
178 bool m_telemetryConfigHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace LambdaWeb
183} // namespace Aws
void SetEgressNetworkConnectorArn(EgressNetworkConnectorArnT &&value)
const TelemetryConfig & GetTelemetryConfig() const
ServiceConfig & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
AWS_LAMBDAWEB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
ServiceConfig & WithEnvironmentVariables(EnvironmentVariablesT &&value)
void SetTelemetryConfig(TelemetryConfigT &&value)
ServiceConfig & WithEgressNetworkConnectorArn(EgressNetworkConnectorArnT &&value)
ServiceConfig & WithTimeoutSeconds(int value)
AWS_LAMBDAWEB_API ServiceConfig(Aws::Utils::Json::JsonView jsonValue)
ServiceConfig & WithTelemetryConfig(TelemetryConfigT &&value)
ServiceConfig & WithMaxConcurrencyPerEnvironment(int value)
const Aws::String & GetEgressNetworkConnectorArn() const
ServiceConfig & WithExecutionRoleArn(ExecutionRoleArnT &&value)
const Aws::String & GetExecutionRoleArn() const
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
AWS_LAMBDAWEB_API ServiceConfig()=default
AWS_LAMBDAWEB_API ServiceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
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