AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LambdaFunctionAggregation.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/inspector2/model/LambdaFunctionSortBy.h>
10#include <aws/inspector2/model/SortOrder.h>
11#include <aws/inspector2/model/StringFilter.h>
12#include <aws/inspector2/model/MapFilter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Inspector2
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_INSPECTOR2_API LambdaFunctionAggregation() = default;
42 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<StringFilter>& GetFunctionNames() const { return m_functionNames; }
51 inline bool FunctionNamesHasBeenSet() const { return m_functionNamesHasBeenSet; }
52 template<typename FunctionNamesT = Aws::Vector<StringFilter>>
53 void SetFunctionNames(FunctionNamesT&& value) { m_functionNamesHasBeenSet = true; m_functionNames = std::forward<FunctionNamesT>(value); }
54 template<typename FunctionNamesT = Aws::Vector<StringFilter>>
55 LambdaFunctionAggregation& WithFunctionNames(FunctionNamesT&& value) { SetFunctionNames(std::forward<FunctionNamesT>(value)); return *this;}
56 template<typename FunctionNamesT = StringFilter>
57 LambdaFunctionAggregation& AddFunctionNames(FunctionNamesT&& value) { m_functionNamesHasBeenSet = true; m_functionNames.emplace_back(std::forward<FunctionNamesT>(value)); return *this; }
59
61
64 inline const Aws::Vector<MapFilter>& GetFunctionTags() const { return m_functionTags; }
65 inline bool FunctionTagsHasBeenSet() const { return m_functionTagsHasBeenSet; }
66 template<typename FunctionTagsT = Aws::Vector<MapFilter>>
67 void SetFunctionTags(FunctionTagsT&& value) { m_functionTagsHasBeenSet = true; m_functionTags = std::forward<FunctionTagsT>(value); }
68 template<typename FunctionTagsT = Aws::Vector<MapFilter>>
69 LambdaFunctionAggregation& WithFunctionTags(FunctionTagsT&& value) { SetFunctionTags(std::forward<FunctionTagsT>(value)); return *this;}
70 template<typename FunctionTagsT = MapFilter>
71 LambdaFunctionAggregation& AddFunctionTags(FunctionTagsT&& value) { m_functionTagsHasBeenSet = true; m_functionTags.emplace_back(std::forward<FunctionTagsT>(value)); return *this; }
73
75
78 inline const Aws::Vector<StringFilter>& GetResourceIds() const { return m_resourceIds; }
79 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
80 template<typename ResourceIdsT = Aws::Vector<StringFilter>>
81 void SetResourceIds(ResourceIdsT&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::forward<ResourceIdsT>(value); }
82 template<typename ResourceIdsT = Aws::Vector<StringFilter>>
83 LambdaFunctionAggregation& WithResourceIds(ResourceIdsT&& value) { SetResourceIds(std::forward<ResourceIdsT>(value)); return *this;}
84 template<typename ResourceIdsT = StringFilter>
85 LambdaFunctionAggregation& AddResourceIds(ResourceIdsT&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.emplace_back(std::forward<ResourceIdsT>(value)); return *this; }
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) { m_runtimesHasBeenSet = true; m_runtimes = std::forward<RuntimesT>(value); }
97 template<typename RuntimesT = Aws::Vector<StringFilter>>
98 LambdaFunctionAggregation& WithRuntimes(RuntimesT&& value) { SetRuntimes(std::forward<RuntimesT>(value)); return *this;}
99 template<typename RuntimesT = StringFilter>
100 LambdaFunctionAggregation& AddRuntimes(RuntimesT&& value) { m_runtimesHasBeenSet = true; m_runtimes.emplace_back(std::forward<RuntimesT>(value)); return *this; }
102
104
107 inline LambdaFunctionSortBy GetSortBy() const { return m_sortBy; }
108 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
109 inline void SetSortBy(LambdaFunctionSortBy value) { m_sortByHasBeenSet = true; m_sortBy = value; }
112
114
117 inline SortOrder GetSortOrder() const { return m_sortOrder; }
118 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
119 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
120 inline LambdaFunctionAggregation& WithSortOrder(SortOrder value) { SetSortOrder(value); return *this;}
122 private:
123
124 Aws::Vector<StringFilter> m_functionNames;
125 bool m_functionNamesHasBeenSet = false;
126
127 Aws::Vector<MapFilter> m_functionTags;
128 bool m_functionTagsHasBeenSet = false;
129
130 Aws::Vector<StringFilter> m_resourceIds;
131 bool m_resourceIdsHasBeenSet = false;
132
133 Aws::Vector<StringFilter> m_runtimes;
134 bool m_runtimesHasBeenSet = false;
135
137 bool m_sortByHasBeenSet = false;
138
139 SortOrder m_sortOrder{SortOrder::NOT_SET};
140 bool m_sortOrderHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace Inspector2
145} // 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