AWS SDK for C++

AWS SDK for C++ Version 1.11.632

Loading...
Searching...
No Matches
LambdaFunctionMetadata.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/inspector2/model/Runtime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Inspector2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_INSPECTOR2_API LambdaFunctionMetadata() = default;
41 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Map<Aws::String, Aws::String>& GetFunctionTags() const { return m_functionTags; }
49 inline bool FunctionTagsHasBeenSet() const { return m_functionTagsHasBeenSet; }
50 template<typename FunctionTagsT = Aws::Map<Aws::String, Aws::String>>
51 void SetFunctionTags(FunctionTagsT&& value) { m_functionTagsHasBeenSet = true; m_functionTags = std::forward<FunctionTagsT>(value); }
52 template<typename FunctionTagsT = Aws::Map<Aws::String, Aws::String>>
53 LambdaFunctionMetadata& WithFunctionTags(FunctionTagsT&& value) { SetFunctionTags(std::forward<FunctionTagsT>(value)); return *this;}
54 template<typename FunctionTagsKeyT = Aws::String, typename FunctionTagsValueT = Aws::String>
55 LambdaFunctionMetadata& AddFunctionTags(FunctionTagsKeyT&& key, FunctionTagsValueT&& value) {
56 m_functionTagsHasBeenSet = true; m_functionTags.emplace(std::forward<FunctionTagsKeyT>(key), std::forward<FunctionTagsValueT>(value)); return *this;
57 }
59
61
65 inline const Aws::Vector<Aws::String>& GetLayers() const { return m_layers; }
66 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
67 template<typename LayersT = Aws::Vector<Aws::String>>
68 void SetLayers(LayersT&& value) { m_layersHasBeenSet = true; m_layers = std::forward<LayersT>(value); }
69 template<typename LayersT = Aws::Vector<Aws::String>>
70 LambdaFunctionMetadata& WithLayers(LayersT&& value) { SetLayers(std::forward<LayersT>(value)); return *this;}
71 template<typename LayersT = Aws::String>
72 LambdaFunctionMetadata& AddLayers(LayersT&& value) { m_layersHasBeenSet = true; m_layers.emplace_back(std::forward<LayersT>(value)); return *this; }
74
76
79 inline const Aws::String& GetFunctionName() const { return m_functionName; }
80 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
81 template<typename FunctionNameT = Aws::String>
82 void SetFunctionName(FunctionNameT&& value) { m_functionNameHasBeenSet = true; m_functionName = std::forward<FunctionNameT>(value); }
83 template<typename FunctionNameT = Aws::String>
84 LambdaFunctionMetadata& WithFunctionName(FunctionNameT&& value) { SetFunctionName(std::forward<FunctionNameT>(value)); return *this;}
86
88
91 inline Runtime GetRuntime() const { return m_runtime; }
92 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
93 inline void SetRuntime(Runtime value) { m_runtimeHasBeenSet = true; m_runtime = value; }
94 inline LambdaFunctionMetadata& WithRuntime(Runtime value) { SetRuntime(value); return *this;}
96 private:
97
99 bool m_functionTagsHasBeenSet = false;
100
102 bool m_layersHasBeenSet = false;
103
104 Aws::String m_functionName;
105 bool m_functionNameHasBeenSet = false;
106
107 Runtime m_runtime{Runtime::NOT_SET};
108 bool m_runtimeHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Inspector2
113} // 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