AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
51 inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
52 inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
53 inline LambdaFunctionMetadata& WithFunctionName(const Aws::String& value) { SetFunctionName(value); return *this;}
54 inline LambdaFunctionMetadata& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
55 inline LambdaFunctionMetadata& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
57
59
62 inline const Aws::Map<Aws::String, Aws::String>& GetFunctionTags() const{ return m_functionTags; }
63 inline bool FunctionTagsHasBeenSet() const { return m_functionTagsHasBeenSet; }
64 inline void SetFunctionTags(const Aws::Map<Aws::String, Aws::String>& value) { m_functionTagsHasBeenSet = true; m_functionTags = value; }
65 inline void SetFunctionTags(Aws::Map<Aws::String, Aws::String>&& value) { m_functionTagsHasBeenSet = true; m_functionTags = std::move(value); }
68 inline LambdaFunctionMetadata& AddFunctionTags(const Aws::String& key, const Aws::String& value) { m_functionTagsHasBeenSet = true; m_functionTags.emplace(key, value); return *this; }
69 inline LambdaFunctionMetadata& AddFunctionTags(Aws::String&& key, const Aws::String& value) { m_functionTagsHasBeenSet = true; m_functionTags.emplace(std::move(key), value); return *this; }
70 inline LambdaFunctionMetadata& AddFunctionTags(const Aws::String& key, Aws::String&& value) { m_functionTagsHasBeenSet = true; m_functionTags.emplace(key, std::move(value)); return *this; }
71 inline LambdaFunctionMetadata& AddFunctionTags(Aws::String&& key, Aws::String&& value) { m_functionTagsHasBeenSet = true; m_functionTags.emplace(std::move(key), std::move(value)); return *this; }
72 inline LambdaFunctionMetadata& AddFunctionTags(const char* key, Aws::String&& value) { m_functionTagsHasBeenSet = true; m_functionTags.emplace(key, std::move(value)); return *this; }
73 inline LambdaFunctionMetadata& AddFunctionTags(Aws::String&& key, const char* value) { m_functionTagsHasBeenSet = true; m_functionTags.emplace(std::move(key), value); return *this; }
74 inline LambdaFunctionMetadata& AddFunctionTags(const char* key, const char* value) { m_functionTagsHasBeenSet = true; m_functionTags.emplace(key, value); return *this; }
76
78
82 inline const Aws::Vector<Aws::String>& GetLayers() const{ return m_layers; }
83 inline bool LayersHasBeenSet() const { return m_layersHasBeenSet; }
84 inline void SetLayers(const Aws::Vector<Aws::String>& value) { m_layersHasBeenSet = true; m_layers = value; }
85 inline void SetLayers(Aws::Vector<Aws::String>&& value) { m_layersHasBeenSet = true; m_layers = std::move(value); }
86 inline LambdaFunctionMetadata& WithLayers(const Aws::Vector<Aws::String>& value) { SetLayers(value); return *this;}
87 inline LambdaFunctionMetadata& WithLayers(Aws::Vector<Aws::String>&& value) { SetLayers(std::move(value)); return *this;}
88 inline LambdaFunctionMetadata& AddLayers(const Aws::String& value) { m_layersHasBeenSet = true; m_layers.push_back(value); return *this; }
89 inline LambdaFunctionMetadata& AddLayers(Aws::String&& value) { m_layersHasBeenSet = true; m_layers.push_back(std::move(value)); return *this; }
90 inline LambdaFunctionMetadata& AddLayers(const char* value) { m_layersHasBeenSet = true; m_layers.push_back(value); return *this; }
92
94
97 inline const Runtime& GetRuntime() const{ return m_runtime; }
98 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
99 inline void SetRuntime(const Runtime& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
100 inline void SetRuntime(Runtime&& value) { m_runtimeHasBeenSet = true; m_runtime = std::move(value); }
101 inline LambdaFunctionMetadata& WithRuntime(const Runtime& value) { SetRuntime(value); return *this;}
102 inline LambdaFunctionMetadata& WithRuntime(Runtime&& value) { SetRuntime(std::move(value)); return *this;}
104 private:
105
106 Aws::String m_functionName;
107 bool m_functionNameHasBeenSet = false;
108
110 bool m_functionTagsHasBeenSet = false;
111
113 bool m_layersHasBeenSet = false;
114
115 Runtime m_runtime;
116 bool m_runtimeHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace Inspector2
121} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetFunctionTags() const
LambdaFunctionMetadata & AddLayers(Aws::String &&value)
LambdaFunctionMetadata & WithFunctionTags(const Aws::Map< Aws::String, Aws::String > &value)
LambdaFunctionMetadata & AddFunctionTags(const char *key, Aws::String &&value)
LambdaFunctionMetadata & AddFunctionTags(const char *key, const char *value)
LambdaFunctionMetadata & AddLayers(const Aws::String &value)
void SetFunctionTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< Aws::String > & GetLayers() const
LambdaFunctionMetadata & WithLayers(Aws::Vector< Aws::String > &&value)
LambdaFunctionMetadata & WithRuntime(Runtime &&value)
AWS_INSPECTOR2_API LambdaFunctionMetadata(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionMetadata & WithLayers(const Aws::Vector< Aws::String > &value)
void SetLayers(Aws::Vector< Aws::String > &&value)
LambdaFunctionMetadata & AddFunctionTags(const Aws::String &key, Aws::String &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLayers(const Aws::Vector< Aws::String > &value)
LambdaFunctionMetadata & AddFunctionTags(Aws::String &&key, const char *value)
LambdaFunctionMetadata & WithFunctionName(const char *value)
LambdaFunctionMetadata & AddFunctionTags(Aws::String &&key, Aws::String &&value)
LambdaFunctionMetadata & AddFunctionTags(Aws::String &&key, const Aws::String &value)
void SetFunctionTags(Aws::Map< Aws::String, Aws::String > &&value)
LambdaFunctionMetadata & WithRuntime(const Runtime &value)
AWS_INSPECTOR2_API LambdaFunctionMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionMetadata & WithFunctionName(Aws::String &&value)
LambdaFunctionMetadata & AddFunctionTags(const Aws::String &key, const Aws::String &value)
LambdaFunctionMetadata & AddLayers(const char *value)
LambdaFunctionMetadata & WithFunctionName(const Aws::String &value)
LambdaFunctionMetadata & WithFunctionTags(Aws::Map< Aws::String, Aws::String > &&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