AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
LambdaFunctionMetadata.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector2/Inspector2_EXPORTS.h>
11#include <aws/inspector2/model/Runtime.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector2 {
23namespace Model {
24
32 public:
33 AWS_INSPECTOR2_API LambdaFunctionMetadata() = default;
36 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Map<Aws::String, Aws::String>& GetFunctionTags() const { return m_functionTags; }
43 inline bool FunctionTagsHasBeenSet() const { return m_functionTagsHasBeenSet; }
44 template <typename FunctionTagsT = Aws::Map<Aws::String, Aws::String>>
45 void SetFunctionTags(FunctionTagsT&& value) {
46 m_functionTagsHasBeenSet = true;
47 m_functionTags = std::forward<FunctionTagsT>(value);
48 }
49 template <typename FunctionTagsT = Aws::Map<Aws::String, Aws::String>>
50 LambdaFunctionMetadata& WithFunctionTags(FunctionTagsT&& value) {
51 SetFunctionTags(std::forward<FunctionTagsT>(value));
52 return *this;
53 }
54 template <typename FunctionTagsKeyT = Aws::String, typename FunctionTagsValueT = Aws::String>
55 LambdaFunctionMetadata& AddFunctionTags(FunctionTagsKeyT&& key, FunctionTagsValueT&& value) {
56 m_functionTagsHasBeenSet = true;
57 m_functionTags.emplace(std::forward<FunctionTagsKeyT>(key), std::forward<FunctionTagsValueT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Vector<Aws::String>& GetLayers() const { return m_layers; }
68 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
69 template <typename LayersT = Aws::Vector<Aws::String>>
70 void SetLayers(LayersT&& value) {
71 m_layersHasBeenSet = true;
72 m_layers = std::forward<LayersT>(value);
73 }
74 template <typename LayersT = Aws::Vector<Aws::String>>
76 SetLayers(std::forward<LayersT>(value));
77 return *this;
78 }
79 template <typename LayersT = Aws::String>
81 m_layersHasBeenSet = true;
82 m_layers.emplace_back(std::forward<LayersT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetFunctionName() const { return m_functionName; }
92 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
93 template <typename FunctionNameT = Aws::String>
94 void SetFunctionName(FunctionNameT&& value) {
95 m_functionNameHasBeenSet = true;
96 m_functionName = std::forward<FunctionNameT>(value);
97 }
98 template <typename FunctionNameT = Aws::String>
99 LambdaFunctionMetadata& WithFunctionName(FunctionNameT&& value) {
100 SetFunctionName(std::forward<FunctionNameT>(value));
101 return *this;
102 }
104
106
109 inline Runtime GetRuntime() const { return m_runtime; }
110 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
111 inline void SetRuntime(Runtime value) {
112 m_runtimeHasBeenSet = true;
113 m_runtime = value;
114 }
116 SetRuntime(value);
117 return *this;
118 }
120 private:
122
124
125 Aws::String m_functionName;
126
127 Runtime m_runtime{Runtime::NOT_SET};
128 bool m_functionTagsHasBeenSet = false;
129 bool m_layersHasBeenSet = false;
130 bool m_functionNameHasBeenSet = false;
131 bool m_runtimeHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace Inspector2
136} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetFunctionTags() const
LambdaFunctionMetadata & WithRuntime(Runtime value)
const Aws::Vector< Aws::String > & GetLayers() const
AWS_INSPECTOR2_API LambdaFunctionMetadata()=default
LambdaFunctionMetadata & WithFunctionTags(FunctionTagsT &&value)
AWS_INSPECTOR2_API LambdaFunctionMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
LambdaFunctionMetadata & AddLayers(LayersT &&value)
LambdaFunctionMetadata & WithLayers(LayersT &&value)
LambdaFunctionMetadata & AddFunctionTags(FunctionTagsKeyT &&key, FunctionTagsValueT &&value)
AWS_INSPECTOR2_API LambdaFunctionMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionMetadata & WithFunctionName(FunctionNameT &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue