AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
52 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
53 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
54 inline LambdaFunctionAggregationResponse& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
55 inline LambdaFunctionAggregationResponse& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
56 inline LambdaFunctionAggregationResponse& WithAccountId(const char* value) { SetAccountId(value); return *this;}
58
60
64 inline const Aws::String& GetFunctionName() const{ return m_functionName; }
65 inline bool FunctionNameHasBeenSet() const { return m_functionNameHasBeenSet; }
66 inline void SetFunctionName(const Aws::String& value) { m_functionNameHasBeenSet = true; m_functionName = value; }
67 inline void SetFunctionName(Aws::String&& value) { m_functionNameHasBeenSet = true; m_functionName = std::move(value); }
68 inline void SetFunctionName(const char* value) { m_functionNameHasBeenSet = true; m_functionName.assign(value); }
70 inline LambdaFunctionAggregationResponse& WithFunctionName(Aws::String&& value) { SetFunctionName(std::move(value)); return *this;}
71 inline LambdaFunctionAggregationResponse& WithFunctionName(const char* value) { SetFunctionName(value); return *this;}
73
75
78 inline const Aws::Map<Aws::String, Aws::String>& GetLambdaTags() const{ return m_lambdaTags; }
79 inline bool LambdaTagsHasBeenSet() const { return m_lambdaTagsHasBeenSet; }
80 inline void SetLambdaTags(const Aws::Map<Aws::String, Aws::String>& value) { m_lambdaTagsHasBeenSet = true; m_lambdaTags = value; }
81 inline void SetLambdaTags(Aws::Map<Aws::String, Aws::String>&& value) { m_lambdaTagsHasBeenSet = true; m_lambdaTags = std::move(value); }
84 inline LambdaFunctionAggregationResponse& AddLambdaTags(const Aws::String& key, const Aws::String& value) { m_lambdaTagsHasBeenSet = true; m_lambdaTags.emplace(key, value); return *this; }
85 inline LambdaFunctionAggregationResponse& AddLambdaTags(Aws::String&& key, const Aws::String& value) { m_lambdaTagsHasBeenSet = true; m_lambdaTags.emplace(std::move(key), value); return *this; }
86 inline LambdaFunctionAggregationResponse& AddLambdaTags(const Aws::String& key, Aws::String&& value) { m_lambdaTagsHasBeenSet = true; m_lambdaTags.emplace(key, std::move(value)); return *this; }
87 inline LambdaFunctionAggregationResponse& AddLambdaTags(Aws::String&& key, Aws::String&& value) { m_lambdaTagsHasBeenSet = true; m_lambdaTags.emplace(std::move(key), std::move(value)); return *this; }
88 inline LambdaFunctionAggregationResponse& AddLambdaTags(const char* key, Aws::String&& value) { m_lambdaTagsHasBeenSet = true; m_lambdaTags.emplace(key, std::move(value)); return *this; }
89 inline LambdaFunctionAggregationResponse& AddLambdaTags(Aws::String&& key, const char* value) { m_lambdaTagsHasBeenSet = true; m_lambdaTags.emplace(std::move(key), value); return *this; }
90 inline LambdaFunctionAggregationResponse& AddLambdaTags(const char* key, const char* value) { m_lambdaTagsHasBeenSet = true; m_lambdaTags.emplace(key, value); return *this; }
92
94
98 inline const Aws::Utils::DateTime& GetLastModifiedAt() const{ return m_lastModifiedAt; }
99 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
100 inline void SetLastModifiedAt(const Aws::Utils::DateTime& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = value; }
101 inline void SetLastModifiedAt(Aws::Utils::DateTime&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::move(value); }
105
107
110 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
111 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
112 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
113 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
114 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
115 inline LambdaFunctionAggregationResponse& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
116 inline LambdaFunctionAggregationResponse& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
117 inline LambdaFunctionAggregationResponse& WithResourceId(const char* value) { SetResourceId(value); return *this;}
119
121
124 inline const Aws::String& GetRuntime() const{ return m_runtime; }
125 inline bool RuntimeHasBeenSet() const { return m_runtimeHasBeenSet; }
126 inline void SetRuntime(const Aws::String& value) { m_runtimeHasBeenSet = true; m_runtime = value; }
127 inline void SetRuntime(Aws::String&& value) { m_runtimeHasBeenSet = true; m_runtime = std::move(value); }
128 inline void SetRuntime(const char* value) { m_runtimeHasBeenSet = true; m_runtime.assign(value); }
129 inline LambdaFunctionAggregationResponse& WithRuntime(const Aws::String& value) { SetRuntime(value); return *this;}
130 inline LambdaFunctionAggregationResponse& WithRuntime(Aws::String&& value) { SetRuntime(std::move(value)); return *this;}
131 inline LambdaFunctionAggregationResponse& WithRuntime(const char* value) { SetRuntime(value); return *this;}
133
135
136 inline const SeverityCounts& GetSeverityCounts() const{ return m_severityCounts; }
137 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
138 inline void SetSeverityCounts(const SeverityCounts& value) { m_severityCountsHasBeenSet = true; m_severityCounts = value; }
139 inline void SetSeverityCounts(SeverityCounts&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::move(value); }
143 private:
144
145 Aws::String m_accountId;
146 bool m_accountIdHasBeenSet = false;
147
148 Aws::String m_functionName;
149 bool m_functionNameHasBeenSet = false;
150
152 bool m_lambdaTagsHasBeenSet = false;
153
154 Aws::Utils::DateTime m_lastModifiedAt;
155 bool m_lastModifiedAtHasBeenSet = false;
156
157 Aws::String m_resourceId;
158 bool m_resourceIdHasBeenSet = false;
159
160 Aws::String m_runtime;
161 bool m_runtimeHasBeenSet = false;
162
163 SeverityCounts m_severityCounts;
164 bool m_severityCountsHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace Inspector2
169} // namespace Aws
LambdaFunctionAggregationResponse & AddLambdaTags(Aws::String &&key, const char *value)
LambdaFunctionAggregationResponse & WithRuntime(Aws::String &&value)
LambdaFunctionAggregationResponse & AddLambdaTags(const char *key, const char *value)
LambdaFunctionAggregationResponse & WithResourceId(const char *value)
LambdaFunctionAggregationResponse & AddLambdaTags(const Aws::String &key, const Aws::String &value)
LambdaFunctionAggregationResponse & WithLastModifiedAt(const Aws::Utils::DateTime &value)
LambdaFunctionAggregationResponse & WithResourceId(const Aws::String &value)
LambdaFunctionAggregationResponse & WithAccountId(const Aws::String &value)
LambdaFunctionAggregationResponse & WithLambdaTags(Aws::Map< Aws::String, Aws::String > &&value)
LambdaFunctionAggregationResponse & WithLastModifiedAt(Aws::Utils::DateTime &&value)
LambdaFunctionAggregationResponse & AddLambdaTags(Aws::String &&key, const Aws::String &value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
LambdaFunctionAggregationResponse & WithRuntime(const Aws::String &value)
LambdaFunctionAggregationResponse & WithRuntime(const char *value)
LambdaFunctionAggregationResponse & WithSeverityCounts(const SeverityCounts &value)
LambdaFunctionAggregationResponse & WithFunctionName(const char *value)
LambdaFunctionAggregationResponse & WithAccountId(Aws::String &&value)
AWS_INSPECTOR2_API LambdaFunctionAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionAggregationResponse & WithLambdaTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetLambdaTags(const Aws::Map< Aws::String, Aws::String > &value)
LambdaFunctionAggregationResponse & AddLambdaTags(const char *key, Aws::String &&value)
void SetLambdaTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetLambdaTags() const
LambdaFunctionAggregationResponse & WithAccountId(const char *value)
LambdaFunctionAggregationResponse & AddLambdaTags(Aws::String &&key, Aws::String &&value)
LambdaFunctionAggregationResponse & AddLambdaTags(const Aws::String &key, Aws::String &&value)
LambdaFunctionAggregationResponse & WithResourceId(Aws::String &&value)
LambdaFunctionAggregationResponse & WithSeverityCounts(SeverityCounts &&value)
AWS_INSPECTOR2_API LambdaFunctionAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaFunctionAggregationResponse & WithFunctionName(const Aws::String &value)
LambdaFunctionAggregationResponse & WithFunctionName(Aws::String &&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