AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
ServerlessFunctionMetadata.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/inspector2/Inspector2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector2 {
21namespace Model {
22
30 public:
31 AWS_INSPECTOR2_API ServerlessFunctionMetadata() = default;
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetServerlessFunctionName() const { return m_serverlessFunctionName; }
41 inline bool ServerlessFunctionNameHasBeenSet() const { return m_serverlessFunctionNameHasBeenSet; }
42 template <typename ServerlessFunctionNameT = Aws::String>
43 void SetServerlessFunctionName(ServerlessFunctionNameT&& value) {
44 m_serverlessFunctionNameHasBeenSet = true;
45 m_serverlessFunctionName = std::forward<ServerlessFunctionNameT>(value);
46 }
47 template <typename ServerlessFunctionNameT = Aws::String>
48 ServerlessFunctionMetadata& WithServerlessFunctionName(ServerlessFunctionNameT&& value) {
49 SetServerlessFunctionName(std::forward<ServerlessFunctionNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetRuntime() const { return m_runtime; }
59 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
60 template <typename RuntimeT = Aws::String>
61 void SetRuntime(RuntimeT&& value) {
62 m_runtimeHasBeenSet = true;
63 m_runtime = std::forward<RuntimeT>(value);
64 }
65 template <typename RuntimeT = Aws::String>
67 SetRuntime(std::forward<RuntimeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Map<Aws::String, Aws::String>& GetFunctionTags() const { return m_functionTags; }
77 inline bool FunctionTagsHasBeenSet() const { return m_functionTagsHasBeenSet; }
78 template <typename FunctionTagsT = Aws::Map<Aws::String, Aws::String>>
79 void SetFunctionTags(FunctionTagsT&& value) {
80 m_functionTagsHasBeenSet = true;
81 m_functionTags = std::forward<FunctionTagsT>(value);
82 }
83 template <typename FunctionTagsT = Aws::Map<Aws::String, Aws::String>>
85 SetFunctionTags(std::forward<FunctionTagsT>(value));
86 return *this;
87 }
88 template <typename FunctionTagsKeyT = Aws::String, typename FunctionTagsValueT = Aws::String>
89 ServerlessFunctionMetadata& AddFunctionTags(FunctionTagsKeyT&& key, FunctionTagsValueT&& value) {
90 m_functionTagsHasBeenSet = true;
91 m_functionTags.emplace(std::forward<FunctionTagsKeyT>(key), std::forward<FunctionTagsValueT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_serverlessFunctionName;
97
98 Aws::String m_runtime;
99
101 bool m_serverlessFunctionNameHasBeenSet = false;
102 bool m_runtimeHasBeenSet = false;
103 bool m_functionTagsHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace Inspector2
108} // namespace Aws
AWS_INSPECTOR2_API ServerlessFunctionMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetFunctionTags() const
ServerlessFunctionMetadata & WithRuntime(RuntimeT &&value)
ServerlessFunctionMetadata & WithServerlessFunctionName(ServerlessFunctionNameT &&value)
AWS_INSPECTOR2_API ServerlessFunctionMetadata()=default
AWS_INSPECTOR2_API ServerlessFunctionMetadata(Aws::Utils::Json::JsonView jsonValue)
ServerlessFunctionMetadata & WithFunctionTags(FunctionTagsT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
ServerlessFunctionMetadata & AddFunctionTags(FunctionTagsKeyT &&key, FunctionTagsValueT &&value)
void SetServerlessFunctionName(ServerlessFunctionNameT &&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
Aws::Utils::Json::JsonValue JsonValue