AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LambdaFunctionMetadata.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.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::String& GetFunctionName() const { return m_functionName; }
49 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
50 template<typename FunctionNameT = Aws::String>
51 void SetFunctionName(FunctionNameT&& value) { m_functionNameHasBeenSet = true; m_functionName = std::forward<FunctionNameT>(value); }
52 template<typename FunctionNameT = Aws::String>
53 LambdaFunctionMetadata& WithFunctionName(FunctionNameT&& value) { SetFunctionName(std::forward<FunctionNameT>(value)); return *this;}
55
57
60 inline const Aws::Map<Aws::String, Aws::String>& GetFunctionTags() const { return m_functionTags; }
61 inline bool FunctionTagsHasBeenSet() const { return m_functionTagsHasBeenSet; }
62 template<typename FunctionTagsT = Aws::Map<Aws::String, Aws::String>>
63 void SetFunctionTags(FunctionTagsT&& value) { m_functionTagsHasBeenSet = true; m_functionTags = std::forward<FunctionTagsT>(value); }
64 template<typename FunctionTagsT = Aws::Map<Aws::String, Aws::String>>
65 LambdaFunctionMetadata& WithFunctionTags(FunctionTagsT&& value) { SetFunctionTags(std::forward<FunctionTagsT>(value)); return *this;}
66 template<typename FunctionTagsKeyT = Aws::String, typename FunctionTagsValueT = Aws::String>
67 LambdaFunctionMetadata& AddFunctionTags(FunctionTagsKeyT&& key, FunctionTagsValueT&& value) {
68 m_functionTagsHasBeenSet = true; m_functionTags.emplace(std::forward<FunctionTagsKeyT>(key), std::forward<FunctionTagsValueT>(value)); return *this;
69 }
71
73
77 inline const Aws::Vector<Aws::String>& GetLayers() const { return m_layers; }
78 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
79 template<typename LayersT = Aws::Vector<Aws::String>>
80 void SetLayers(LayersT&& value) { m_layersHasBeenSet = true; m_layers = std::forward<LayersT>(value); }
81 template<typename LayersT = Aws::Vector<Aws::String>>
82 LambdaFunctionMetadata& WithLayers(LayersT&& value) { SetLayers(std::forward<LayersT>(value)); return *this;}
83 template<typename LayersT = Aws::String>
84 LambdaFunctionMetadata& AddLayers(LayersT&& value) { m_layersHasBeenSet = true; m_layers.emplace_back(std::forward<LayersT>(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
98 Aws::String m_functionName;
99 bool m_functionNameHasBeenSet = false;
100
102 bool m_functionTagsHasBeenSet = false;
103
105 bool m_layersHasBeenSet = 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