AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
LambdaLayerAggregation.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/LambdaLayerSortBy.h>
10#include <aws/inspector2/model/SortOrder.h>
11#include <aws/inspector2/model/StringFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector2 {
23namespace Model {
24
32 public:
33 AWS_INSPECTOR2_API LambdaLayerAggregation() = default;
36 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<StringFilter>& GetFunctionNames() const { return m_functionNames; }
44 inline bool FunctionNamesHasBeenSet() const { return m_functionNamesHasBeenSet; }
45 template <typename FunctionNamesT = Aws::Vector<StringFilter>>
46 void SetFunctionNames(FunctionNamesT&& value) {
47 m_functionNamesHasBeenSet = true;
48 m_functionNames = std::forward<FunctionNamesT>(value);
49 }
50 template <typename FunctionNamesT = Aws::Vector<StringFilter>>
51 LambdaLayerAggregation& WithFunctionNames(FunctionNamesT&& value) {
52 SetFunctionNames(std::forward<FunctionNamesT>(value));
53 return *this;
54 }
55 template <typename FunctionNamesT = StringFilter>
56 LambdaLayerAggregation& AddFunctionNames(FunctionNamesT&& value) {
57 m_functionNamesHasBeenSet = true;
58 m_functionNames.emplace_back(std::forward<FunctionNamesT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::Vector<StringFilter>& GetResourceIds() const { return m_resourceIds; }
68 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
69 template <typename ResourceIdsT = Aws::Vector<StringFilter>>
70 void SetResourceIds(ResourceIdsT&& value) {
71 m_resourceIdsHasBeenSet = true;
72 m_resourceIds = std::forward<ResourceIdsT>(value);
73 }
74 template <typename ResourceIdsT = Aws::Vector<StringFilter>>
75 LambdaLayerAggregation& WithResourceIds(ResourceIdsT&& value) {
76 SetResourceIds(std::forward<ResourceIdsT>(value));
77 return *this;
78 }
79 template <typename ResourceIdsT = StringFilter>
80 LambdaLayerAggregation& AddResourceIds(ResourceIdsT&& value) {
81 m_resourceIdsHasBeenSet = true;
82 m_resourceIds.emplace_back(std::forward<ResourceIdsT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::Vector<StringFilter>& GetLayerArns() const { return m_layerArns; }
93 inline bool LayerArnsHasBeenSet() const { return m_layerArnsHasBeenSet; }
94 template <typename LayerArnsT = Aws::Vector<StringFilter>>
95 void SetLayerArns(LayerArnsT&& value) {
96 m_layerArnsHasBeenSet = true;
97 m_layerArns = std::forward<LayerArnsT>(value);
98 }
99 template <typename LayerArnsT = Aws::Vector<StringFilter>>
101 SetLayerArns(std::forward<LayerArnsT>(value));
102 return *this;
103 }
104 template <typename LayerArnsT = StringFilter>
106 m_layerArnsHasBeenSet = true;
107 m_layerArns.emplace_back(std::forward<LayerArnsT>(value));
108 return *this;
109 }
111
113
116 inline SortOrder GetSortOrder() const { return m_sortOrder; }
117 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
118 inline void SetSortOrder(SortOrder value) {
119 m_sortOrderHasBeenSet = true;
120 m_sortOrder = value;
121 }
123 SetSortOrder(value);
124 return *this;
125 }
127
129
132 inline LambdaLayerSortBy GetSortBy() const { return m_sortBy; }
133 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
134 inline void SetSortBy(LambdaLayerSortBy value) {
135 m_sortByHasBeenSet = true;
136 m_sortBy = value;
137 }
139 SetSortBy(value);
140 return *this;
141 }
143 private:
144 Aws::Vector<StringFilter> m_functionNames;
145
146 Aws::Vector<StringFilter> m_resourceIds;
147
148 Aws::Vector<StringFilter> m_layerArns;
149
150 SortOrder m_sortOrder{SortOrder::NOT_SET};
151
153 bool m_functionNamesHasBeenSet = false;
154 bool m_resourceIdsHasBeenSet = false;
155 bool m_layerArnsHasBeenSet = false;
156 bool m_sortOrderHasBeenSet = false;
157 bool m_sortByHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace Inspector2
162} // namespace Aws
const Aws::Vector< StringFilter > & GetLayerArns() const
LambdaLayerAggregation & WithSortOrder(SortOrder value)
const Aws::Vector< StringFilter > & GetFunctionNames() const
const Aws::Vector< StringFilter > & GetResourceIds() const
LambdaLayerAggregation & WithLayerArns(LayerArnsT &&value)
AWS_INSPECTOR2_API LambdaLayerAggregation(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API LambdaLayerAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API LambdaLayerAggregation()=default
LambdaLayerAggregation & AddFunctionNames(FunctionNamesT &&value)
LambdaLayerAggregation & AddResourceIds(ResourceIdsT &&value)
LambdaLayerAggregation & AddLayerArns(LayerArnsT &&value)
LambdaLayerAggregation & WithSortBy(LambdaLayerSortBy value)
LambdaLayerAggregation & WithFunctionNames(FunctionNamesT &&value)
LambdaLayerAggregation & WithResourceIds(ResourceIdsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue