AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
LambdaFunctionAggregation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9#include <aws/inspector2/model/LambdaFunctionSortBy.h>
10#include <aws/inspector2/model/MapFilter.h>
11#include <aws/inspector2/model/SortOrder.h>
12#include <aws/inspector2/model/StringFilter.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2 {
24namespace Model {
25
33 public:
34 AWS_INSPECTOR2_API LambdaFunctionAggregation() = default;
37 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<StringFilter>& GetResourceIds() const { return m_resourceIds; }
44 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
45 template <typename ResourceIdsT = Aws::Vector<StringFilter>>
46 void SetResourceIds(ResourceIdsT&& value) {
47 m_resourceIdsHasBeenSet = true;
48 m_resourceIds = std::forward<ResourceIdsT>(value);
49 }
50 template <typename ResourceIdsT = Aws::Vector<StringFilter>>
52 SetResourceIds(std::forward<ResourceIdsT>(value));
53 return *this;
54 }
55 template <typename ResourceIdsT = StringFilter>
57 m_resourceIdsHasBeenSet = true;
58 m_resourceIds.emplace_back(std::forward<ResourceIdsT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::Vector<StringFilter>& GetFunctionNames() const { return m_functionNames; }
69 inline bool FunctionNamesHasBeenSet() const { return m_functionNamesHasBeenSet; }
70 template <typename FunctionNamesT = Aws::Vector<StringFilter>>
71 void SetFunctionNames(FunctionNamesT&& value) {
72 m_functionNamesHasBeenSet = true;
73 m_functionNames = std::forward<FunctionNamesT>(value);
74 }
75 template <typename FunctionNamesT = Aws::Vector<StringFilter>>
77 SetFunctionNames(std::forward<FunctionNamesT>(value));
78 return *this;
79 }
80 template <typename FunctionNamesT = StringFilter>
82 m_functionNamesHasBeenSet = true;
83 m_functionNames.emplace_back(std::forward<FunctionNamesT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::Vector<StringFilter>& GetRuntimes() const { return m_runtimes; }
94 inline bool RuntimesHasBeenSet() const { return m_runtimesHasBeenSet; }
95 template <typename RuntimesT = Aws::Vector<StringFilter>>
96 void SetRuntimes(RuntimesT&& value) {
97 m_runtimesHasBeenSet = true;
98 m_runtimes = std::forward<RuntimesT>(value);
99 }
100 template <typename RuntimesT = Aws::Vector<StringFilter>>
102 SetRuntimes(std::forward<RuntimesT>(value));
103 return *this;
104 }
105 template <typename RuntimesT = StringFilter>
107 m_runtimesHasBeenSet = true;
108 m_runtimes.emplace_back(std::forward<RuntimesT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Vector<MapFilter>& GetFunctionTags() const { return m_functionTags; }
118 inline bool FunctionTagsHasBeenSet() const { return m_functionTagsHasBeenSet; }
119 template <typename FunctionTagsT = Aws::Vector<MapFilter>>
120 void SetFunctionTags(FunctionTagsT&& value) {
121 m_functionTagsHasBeenSet = true;
122 m_functionTags = std::forward<FunctionTagsT>(value);
123 }
124 template <typename FunctionTagsT = Aws::Vector<MapFilter>>
126 SetFunctionTags(std::forward<FunctionTagsT>(value));
127 return *this;
128 }
129 template <typename FunctionTagsT = MapFilter>
131 m_functionTagsHasBeenSet = true;
132 m_functionTags.emplace_back(std::forward<FunctionTagsT>(value));
133 return *this;
134 }
136
138
141 inline SortOrder GetSortOrder() const { return m_sortOrder; }
142 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
143 inline void SetSortOrder(SortOrder value) {
144 m_sortOrderHasBeenSet = true;
145 m_sortOrder = value;
146 }
148 SetSortOrder(value);
149 return *this;
150 }
152
154
157 inline LambdaFunctionSortBy GetSortBy() const { return m_sortBy; }
158 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
159 inline void SetSortBy(LambdaFunctionSortBy value) {
160 m_sortByHasBeenSet = true;
161 m_sortBy = value;
162 }
164 SetSortBy(value);
165 return *this;
166 }
168 private:
169 Aws::Vector<StringFilter> m_resourceIds;
170
171 Aws::Vector<StringFilter> m_functionNames;
172
173 Aws::Vector<StringFilter> m_runtimes;
174
175 Aws::Vector<MapFilter> m_functionTags;
176
177 SortOrder m_sortOrder{SortOrder::NOT_SET};
178
180 bool m_resourceIdsHasBeenSet = false;
181 bool m_functionNamesHasBeenSet = false;
182 bool m_runtimesHasBeenSet = false;
183 bool m_functionTagsHasBeenSet = false;
184 bool m_sortOrderHasBeenSet = false;
185 bool m_sortByHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace Inspector2
190} // namespace Aws
const Aws::Vector< StringFilter > & GetFunctionNames() const
AWS_INSPECTOR2_API LambdaFunctionAggregation(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionAggregation & AddRuntimes(RuntimesT &&value)
const Aws::Vector< StringFilter > & GetResourceIds() const
const Aws::Vector< StringFilter > & GetRuntimes() const
const Aws::Vector< MapFilter > & GetFunctionTags() const
LambdaFunctionAggregation & WithRuntimes(RuntimesT &&value)
LambdaFunctionAggregation & WithResourceIds(ResourceIdsT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
LambdaFunctionAggregation & AddFunctionNames(FunctionNamesT &&value)
AWS_INSPECTOR2_API LambdaFunctionAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionAggregation & WithSortBy(LambdaFunctionSortBy value)
LambdaFunctionAggregation & WithSortOrder(SortOrder value)
AWS_INSPECTOR2_API LambdaFunctionAggregation()=default
LambdaFunctionAggregation & WithFunctionNames(FunctionNamesT &&value)
LambdaFunctionAggregation & AddResourceIds(ResourceIdsT &&value)
LambdaFunctionAggregation & WithFunctionTags(FunctionTagsT &&value)
LambdaFunctionAggregation & AddFunctionTags(FunctionTagsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue