AWS SDK for C++

AWS SDK for C++ Version 1.11.906

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
82 inline int GetMaxConcurrencyPerEnvironment() const { return m_maxConcurrencyPerEnvironment; }
83 inline bool MaxConcurrencyPerEnvironmentHasBeenSet() const { return m_maxConcurrencyPerEnvironmentHasBeenSet; }
84 inline void SetMaxConcurrencyPerEnvironment(int value) {
85 m_maxConcurrencyPerEnvironmentHasBeenSet = true;
86 m_maxConcurrencyPerEnvironment = value;
87 }
90 return *this;
91 }
93
95
99 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
100 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
101 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
102 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
103 m_environmentVariablesHasBeenSet = true;
104 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
105 }
106 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
107 ServiceConfig& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
108 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
109 return *this;
110 }
111 template <typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
112 ServiceConfig& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
113 m_environmentVariablesHasBeenSet = true;
114 m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
115 return *this;
116 }
118
120
124 inline const TelemetryConfig& GetTelemetryConfig() const { return m_telemetryConfig; }
125 inline bool TelemetryConfigHasBeenSet() const { return m_telemetryConfigHasBeenSet; }
126 template <typename TelemetryConfigT = TelemetryConfig>
127 void SetTelemetryConfig(TelemetryConfigT&& value) {
128 m_telemetryConfigHasBeenSet = true;
129 m_telemetryConfig = std::forward<TelemetryConfigT>(value);
130 }
131 template <typename TelemetryConfigT = TelemetryConfig>
132 ServiceConfig& WithTelemetryConfig(TelemetryConfigT&& value) {
133 SetTelemetryConfig(std::forward<TelemetryConfigT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_executionRoleArn;
139
140 int m_timeoutSeconds{0};
141
142 int m_maxConcurrencyPerEnvironment{0};
143
144 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
145
146 TelemetryConfig m_telemetryConfig;
147 bool m_executionRoleArnHasBeenSet = false;
148 bool m_timeoutSecondsHasBeenSet = false;
149 bool m_maxConcurrencyPerEnvironmentHasBeenSet = false;
150 bool m_environmentVariablesHasBeenSet = false;
151 bool m_telemetryConfigHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace LambdaWeb
156} // namespace Aws
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)
void SetMaxConcurrencyPerEnvironment(int value)
ServiceConfig & WithTimeoutSeconds(int value)
AWS_LAMBDAWEB_API ServiceConfig(Aws::Utils::Json::JsonView jsonValue)
ServiceConfig & WithTelemetryConfig(TelemetryConfigT &&value)
ServiceConfig & WithMaxConcurrencyPerEnvironment(int value)
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