AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Environment.h
1
6#pragma once
7#include <aws/lambda/Lambda_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 Lambda
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_LAMBDA_API Environment() = default;
39 AWS_LAMBDA_API Environment(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const { return m_variables; }
51 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
52 template<typename VariablesT = Aws::Map<Aws::String, Aws::String>>
53 void SetVariables(VariablesT&& value) { m_variablesHasBeenSet = true; m_variables = std::forward<VariablesT>(value); }
54 template<typename VariablesT = Aws::Map<Aws::String, Aws::String>>
55 Environment& WithVariables(VariablesT&& value) { SetVariables(std::forward<VariablesT>(value)); return *this;}
56 template<typename VariablesKeyT = Aws::String, typename VariablesValueT = Aws::String>
57 Environment& AddVariables(VariablesKeyT&& key, VariablesValueT&& value) {
58 m_variablesHasBeenSet = true; m_variables.emplace(std::forward<VariablesKeyT>(key), std::forward<VariablesValueT>(value)); return *this;
59 }
61 private:
62
64 bool m_variablesHasBeenSet = false;
65 };
66
67} // namespace Model
68} // namespace Lambda
69} // namespace Aws
AWS_LAMBDA_API Environment & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetVariables() const
Definition Environment.h:50
AWS_LAMBDA_API Environment()=default
AWS_LAMBDA_API Environment(Aws::Utils::Json::JsonView jsonValue)
Environment & WithVariables(VariablesT &&value)
Definition Environment.h:55
void SetVariables(VariablesT &&value)
Definition Environment.h:53
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