AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
LambdaFunctionAggregationResponse.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/inspector2/Inspector2_EXPORTS.h>
11#include <aws/inspector2/model/SeverityCounts.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 LambdaFunctionAggregationResponse() = default;
36 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetResourceId() const { return m_resourceId; }
43 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
44 template <typename ResourceIdT = Aws::String>
45 void SetResourceId(ResourceIdT&& value) {
46 m_resourceIdHasBeenSet = true;
47 m_resourceId = std::forward<ResourceIdT>(value);
48 }
49 template <typename ResourceIdT = Aws::String>
51 SetResourceId(std::forward<ResourceIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetFunctionName() const { return m_functionName; }
62 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
63 template <typename FunctionNameT = Aws::String>
64 void SetFunctionName(FunctionNameT&& value) {
65 m_functionNameHasBeenSet = true;
66 m_functionName = std::forward<FunctionNameT>(value);
67 }
68 template <typename FunctionNameT = Aws::String>
70 SetFunctionName(std::forward<FunctionNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetRuntime() const { return m_runtime; }
80 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
81 template <typename RuntimeT = Aws::String>
82 void SetRuntime(RuntimeT&& value) {
83 m_runtimeHasBeenSet = true;
84 m_runtime = std::forward<RuntimeT>(value);
85 }
86 template <typename RuntimeT = Aws::String>
88 SetRuntime(std::forward<RuntimeT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Map<Aws::String, Aws::String>& GetLambdaTags() const { return m_lambdaTags; }
98 inline bool LambdaTagsHasBeenSet() const { return m_lambdaTagsHasBeenSet; }
99 template <typename LambdaTagsT = Aws::Map<Aws::String, Aws::String>>
100 void SetLambdaTags(LambdaTagsT&& value) {
101 m_lambdaTagsHasBeenSet = true;
102 m_lambdaTags = std::forward<LambdaTagsT>(value);
103 }
104 template <typename LambdaTagsT = Aws::Map<Aws::String, Aws::String>>
106 SetLambdaTags(std::forward<LambdaTagsT>(value));
107 return *this;
108 }
109 template <typename LambdaTagsKeyT = Aws::String, typename LambdaTagsValueT = Aws::String>
110 LambdaFunctionAggregationResponse& AddLambdaTags(LambdaTagsKeyT&& key, LambdaTagsValueT&& value) {
111 m_lambdaTagsHasBeenSet = true;
112 m_lambdaTags.emplace(std::forward<LambdaTagsKeyT>(key), std::forward<LambdaTagsValueT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetAccountId() const { return m_accountId; }
123 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
124 template <typename AccountIdT = Aws::String>
125 void SetAccountId(AccountIdT&& value) {
126 m_accountIdHasBeenSet = true;
127 m_accountId = std::forward<AccountIdT>(value);
128 }
129 template <typename AccountIdT = Aws::String>
131 SetAccountId(std::forward<AccountIdT>(value));
132 return *this;
133 }
135
137
140 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
141 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
142 template <typename SeverityCountsT = SeverityCounts>
143 void SetSeverityCounts(SeverityCountsT&& value) {
144 m_severityCountsHasBeenSet = true;
145 m_severityCounts = std::forward<SeverityCountsT>(value);
146 }
147 template <typename SeverityCountsT = SeverityCounts>
149 SetSeverityCounts(std::forward<SeverityCountsT>(value));
150 return *this;
151 }
153
155
159 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
160 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
161 template <typename LastModifiedAtT = Aws::Utils::DateTime>
162 void SetLastModifiedAt(LastModifiedAtT&& value) {
163 m_lastModifiedAtHasBeenSet = true;
164 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
165 }
166 template <typename LastModifiedAtT = Aws::Utils::DateTime>
168 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
169 return *this;
170 }
172 private:
173 Aws::String m_resourceId;
174
175 Aws::String m_functionName;
176
177 Aws::String m_runtime;
178
180
181 Aws::String m_accountId;
182
183 SeverityCounts m_severityCounts;
184
185 Aws::Utils::DateTime m_lastModifiedAt{};
186 bool m_resourceIdHasBeenSet = false;
187 bool m_functionNameHasBeenSet = false;
188 bool m_runtimeHasBeenSet = false;
189 bool m_lambdaTagsHasBeenSet = false;
190 bool m_accountIdHasBeenSet = false;
191 bool m_severityCountsHasBeenSet = false;
192 bool m_lastModifiedAtHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace Inspector2
197} // namespace Aws
LambdaFunctionAggregationResponse & AddLambdaTags(LambdaTagsKeyT &&key, LambdaTagsValueT &&value)
LambdaFunctionAggregationResponse & WithLastModifiedAt(LastModifiedAtT &&value)
LambdaFunctionAggregationResponse & WithFunctionName(FunctionNameT &&value)
LambdaFunctionAggregationResponse & WithSeverityCounts(SeverityCountsT &&value)
LambdaFunctionAggregationResponse & WithRuntime(RuntimeT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
LambdaFunctionAggregationResponse & WithResourceId(ResourceIdT &&value)
AWS_INSPECTOR2_API LambdaFunctionAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetLambdaTags() const
AWS_INSPECTOR2_API LambdaFunctionAggregationResponse()=default
AWS_INSPECTOR2_API LambdaFunctionAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionAggregationResponse & WithAccountId(AccountIdT &&value)
LambdaFunctionAggregationResponse & WithLambdaTags(LambdaTagsT &&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