AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LambdaFunctionAggregationResponse.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/inspector2/model/SeverityCounts.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Inspector2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_INSPECTOR2_API LambdaFunctionAggregationResponse() = default;
41 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetAccountId() const { return m_accountId; }
50 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
51 template<typename AccountIdT = Aws::String>
52 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
53 template<typename AccountIdT = Aws::String>
54 LambdaFunctionAggregationResponse& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
56
58
62 inline const Aws::String& GetFunctionName() const { return m_functionName; }
63 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
64 template<typename FunctionNameT = Aws::String>
65 void SetFunctionName(FunctionNameT&& value) { m_functionNameHasBeenSet = true; m_functionName = std::forward<FunctionNameT>(value); }
66 template<typename FunctionNameT = Aws::String>
67 LambdaFunctionAggregationResponse& WithFunctionName(FunctionNameT&& value) { SetFunctionName(std::forward<FunctionNameT>(value)); return *this;}
69
71
74 inline const Aws::Map<Aws::String, Aws::String>& GetLambdaTags() const { return m_lambdaTags; }
75 inline bool LambdaTagsHasBeenSet() const { return m_lambdaTagsHasBeenSet; }
76 template<typename LambdaTagsT = Aws::Map<Aws::String, Aws::String>>
77 void SetLambdaTags(LambdaTagsT&& value) { m_lambdaTagsHasBeenSet = true; m_lambdaTags = std::forward<LambdaTagsT>(value); }
78 template<typename LambdaTagsT = Aws::Map<Aws::String, Aws::String>>
79 LambdaFunctionAggregationResponse& WithLambdaTags(LambdaTagsT&& value) { SetLambdaTags(std::forward<LambdaTagsT>(value)); return *this;}
80 template<typename LambdaTagsKeyT = Aws::String, typename LambdaTagsValueT = Aws::String>
81 LambdaFunctionAggregationResponse& AddLambdaTags(LambdaTagsKeyT&& key, LambdaTagsValueT&& value) {
82 m_lambdaTagsHasBeenSet = true; m_lambdaTags.emplace(std::forward<LambdaTagsKeyT>(key), std::forward<LambdaTagsValueT>(value)); return *this;
83 }
85
87
91 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
92 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
93 template<typename LastModifiedAtT = Aws::Utils::DateTime>
94 void SetLastModifiedAt(LastModifiedAtT&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::forward<LastModifiedAtT>(value); }
95 template<typename LastModifiedAtT = Aws::Utils::DateTime>
96 LambdaFunctionAggregationResponse& WithLastModifiedAt(LastModifiedAtT&& value) { SetLastModifiedAt(std::forward<LastModifiedAtT>(value)); return *this;}
98
100
103 inline const Aws::String& GetResourceId() const { return m_resourceId; }
104 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
105 template<typename ResourceIdT = Aws::String>
106 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
107 template<typename ResourceIdT = Aws::String>
108 LambdaFunctionAggregationResponse& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
110
112
115 inline const Aws::String& GetRuntime() const { return m_runtime; }
116 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
117 template<typename RuntimeT = Aws::String>
118 void SetRuntime(RuntimeT&& value) { m_runtimeHasBeenSet = true; m_runtime = std::forward<RuntimeT>(value); }
119 template<typename RuntimeT = Aws::String>
120 LambdaFunctionAggregationResponse& WithRuntime(RuntimeT&& value) { SetRuntime(std::forward<RuntimeT>(value)); return *this;}
122
124
127 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
128 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
129 template<typename SeverityCountsT = SeverityCounts>
130 void SetSeverityCounts(SeverityCountsT&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::forward<SeverityCountsT>(value); }
131 template<typename SeverityCountsT = SeverityCounts>
132 LambdaFunctionAggregationResponse& WithSeverityCounts(SeverityCountsT&& value) { SetSeverityCounts(std::forward<SeverityCountsT>(value)); return *this;}
134 private:
135
136 Aws::String m_accountId;
137 bool m_accountIdHasBeenSet = false;
138
139 Aws::String m_functionName;
140 bool m_functionNameHasBeenSet = false;
141
143 bool m_lambdaTagsHasBeenSet = false;
144
145 Aws::Utils::DateTime m_lastModifiedAt{};
146 bool m_lastModifiedAtHasBeenSet = false;
147
148 Aws::String m_resourceId;
149 bool m_resourceIdHasBeenSet = false;
150
151 Aws::String m_runtime;
152 bool m_runtimeHasBeenSet = false;
153
154 SeverityCounts m_severityCounts;
155 bool m_severityCountsHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace Inspector2
160} // 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