AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
Environment.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/Lambda_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lambda {
21namespace Model {
22
32 public:
33 AWS_LAMBDA_API Environment() = default;
34 AWS_LAMBDA_API Environment(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const { return m_variables; }
45 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
46 template <typename VariablesT = Aws::Map<Aws::String, Aws::String>>
47 void SetVariables(VariablesT&& value) {
48 m_variablesHasBeenSet = true;
49 m_variables = std::forward<VariablesT>(value);
50 }
51 template <typename VariablesT = Aws::Map<Aws::String, Aws::String>>
52 Environment& WithVariables(VariablesT&& value) {
53 SetVariables(std::forward<VariablesT>(value));
54 return *this;
55 }
56 template <typename VariablesKeyT = Aws::String, typename VariablesValueT = Aws::String>
57 Environment& AddVariables(VariablesKeyT&& key, VariablesValueT&& value) {
58 m_variablesHasBeenSet = true;
59 m_variables.emplace(std::forward<VariablesKeyT>(key), std::forward<VariablesValueT>(value));
60 return *this;
61 }
63 private:
65 bool m_variablesHasBeenSet = false;
66};
67
68} // namespace Model
69} // namespace Lambda
70} // namespace Aws
AWS_LAMBDA_API Environment & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetVariables() const
Definition Environment.h:44
AWS_LAMBDA_API Environment()=default
AWS_LAMBDA_API Environment(Aws::Utils::Json::JsonView jsonValue)
Environment & WithVariables(VariablesT &&value)
Definition Environment.h:52
void SetVariables(VariablesT &&value)
Definition Environment.h:47
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
Environment & AddVariables(VariablesKeyT &&key, VariablesValueT &&value)
Definition Environment.h:57
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue