AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AnalyzerSummary.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/AnalyzerConfiguration.h>
9#include <aws/accessanalyzer/model/AnalyzerStatus.h>
10#include <aws/accessanalyzer/model/StatusReason.h>
11#include <aws/accessanalyzer/model/Type.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace AccessAnalyzer {
26namespace Model {
27
34 public:
35 AWS_ACCESSANALYZER_API AnalyzerSummary() = default;
36 AWS_ACCESSANALYZER_API AnalyzerSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ACCESSANALYZER_API AnalyzerSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
52 AnalyzerSummary& WithArn(ArnT&& value) {
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 AnalyzerSummary& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline Type GetType() const { return m_type; }
81 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
82 inline void SetType(Type value) {
83 m_typeHasBeenSet = true;
84 m_type = value;
85 }
86 inline AnalyzerSummary& WithType(Type value) {
87 SetType(value);
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
97 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
98 template <typename CreatedAtT = Aws::Utils::DateTime>
99 void SetCreatedAt(CreatedAtT&& value) {
100 m_createdAtHasBeenSet = true;
101 m_createdAt = std::forward<CreatedAtT>(value);
102 }
103 template <typename CreatedAtT = Aws::Utils::DateTime>
104 AnalyzerSummary& WithCreatedAt(CreatedAtT&& value) {
105 SetCreatedAt(std::forward<CreatedAtT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetLastResourceAnalyzed() const { return m_lastResourceAnalyzed; }
115 inline bool LastResourceAnalyzedHasBeenSet() const { return m_lastResourceAnalyzedHasBeenSet; }
116 template <typename LastResourceAnalyzedT = Aws::String>
117 void SetLastResourceAnalyzed(LastResourceAnalyzedT&& value) {
118 m_lastResourceAnalyzedHasBeenSet = true;
119 m_lastResourceAnalyzed = std::forward<LastResourceAnalyzedT>(value);
120 }
121 template <typename LastResourceAnalyzedT = Aws::String>
122 AnalyzerSummary& WithLastResourceAnalyzed(LastResourceAnalyzedT&& value) {
123 SetLastResourceAnalyzed(std::forward<LastResourceAnalyzedT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetLastResourceAnalyzedAt() const { return m_lastResourceAnalyzedAt; }
133 inline bool LastResourceAnalyzedAtHasBeenSet() const { return m_lastResourceAnalyzedAtHasBeenSet; }
134 template <typename LastResourceAnalyzedAtT = Aws::Utils::DateTime>
135 void SetLastResourceAnalyzedAt(LastResourceAnalyzedAtT&& value) {
136 m_lastResourceAnalyzedAtHasBeenSet = true;
137 m_lastResourceAnalyzedAt = std::forward<LastResourceAnalyzedAtT>(value);
138 }
139 template <typename LastResourceAnalyzedAtT = Aws::Utils::DateTime>
140 AnalyzerSummary& WithLastResourceAnalyzedAt(LastResourceAnalyzedAtT&& value) {
141 SetLastResourceAnalyzedAt(std::forward<LastResourceAnalyzedAtT>(value));
142 return *this;
143 }
145
147
155 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
158 void SetTags(TagsT&& value) {
159 m_tagsHasBeenSet = true;
160 m_tags = std::forward<TagsT>(value);
161 }
162 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
163 AnalyzerSummary& WithTags(TagsT&& value) {
164 SetTags(std::forward<TagsT>(value));
165 return *this;
166 }
167 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
168 AnalyzerSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
169 m_tagsHasBeenSet = true;
170 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
171 return *this;
172 }
174
176
185 inline AnalyzerStatus GetStatus() const { return m_status; }
186 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
187 inline void SetStatus(AnalyzerStatus value) {
188 m_statusHasBeenSet = true;
189 m_status = value;
190 }
192 SetStatus(value);
193 return *this;
194 }
196
198
205 inline const StatusReason& GetStatusReason() const { return m_statusReason; }
206 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
207 template <typename StatusReasonT = StatusReason>
208 void SetStatusReason(StatusReasonT&& value) {
209 m_statusReasonHasBeenSet = true;
210 m_statusReason = std::forward<StatusReasonT>(value);
211 }
212 template <typename StatusReasonT = StatusReason>
213 AnalyzerSummary& WithStatusReason(StatusReasonT&& value) {
214 SetStatusReason(std::forward<StatusReasonT>(value));
215 return *this;
216 }
218
220
229 inline const AnalyzerConfiguration& GetConfiguration() const { return m_configuration; }
230 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
231 template <typename ConfigurationT = AnalyzerConfiguration>
232 void SetConfiguration(ConfigurationT&& value) {
233 m_configurationHasBeenSet = true;
234 m_configuration = std::forward<ConfigurationT>(value);
235 }
236 template <typename ConfigurationT = AnalyzerConfiguration>
237 AnalyzerSummary& WithConfiguration(ConfigurationT&& value) {
238 SetConfiguration(std::forward<ConfigurationT>(value));
239 return *this;
240 }
242 private:
243 Aws::String m_arn;
244
245 Aws::String m_name;
246
247 Type m_type{Type::NOT_SET};
248
249 Aws::Utils::DateTime m_createdAt{};
250
251 Aws::String m_lastResourceAnalyzed;
252
253 Aws::Utils::DateTime m_lastResourceAnalyzedAt{};
254
256
258
259 StatusReason m_statusReason;
260
261 AnalyzerConfiguration m_configuration;
262 bool m_arnHasBeenSet = false;
263 bool m_nameHasBeenSet = false;
264 bool m_typeHasBeenSet = false;
265 bool m_createdAtHasBeenSet = false;
266 bool m_lastResourceAnalyzedHasBeenSet = false;
267 bool m_lastResourceAnalyzedAtHasBeenSet = false;
268 bool m_tagsHasBeenSet = false;
269 bool m_statusHasBeenSet = false;
270 bool m_statusReasonHasBeenSet = false;
271 bool m_configurationHasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace AccessAnalyzer
276} // namespace Aws
AnalyzerSummary & WithStatus(AnalyzerStatus value)
void SetLastResourceAnalyzed(LastResourceAnalyzedT &&value)
AWS_ACCESSANALYZER_API AnalyzerSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConfiguration(ConfigurationT &&value)
AnalyzerSummary & WithArn(ArnT &&value)
AnalyzerSummary & WithTags(TagsT &&value)
const AnalyzerConfiguration & GetConfiguration() const
AWS_ACCESSANALYZER_API AnalyzerSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AnalyzerSummary & WithConfiguration(ConfigurationT &&value)
AnalyzerSummary & WithName(NameT &&value)
AnalyzerSummary & WithLastResourceAnalyzedAt(LastResourceAnalyzedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AnalyzerSummary & WithCreatedAt(CreatedAtT &&value)
AnalyzerSummary & WithType(Type value)
void SetStatusReason(StatusReasonT &&value)
AWS_ACCESSANALYZER_API AnalyzerSummary()=default
AnalyzerSummary & WithLastResourceAnalyzed(LastResourceAnalyzedT &&value)
const Aws::Utils::DateTime & GetLastResourceAnalyzedAt() const
AnalyzerSummary & WithStatusReason(StatusReasonT &&value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetLastResourceAnalyzed() const
AnalyzerSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
const StatusReason & GetStatusReason() const
void SetLastResourceAnalyzedAt(LastResourceAnalyzedAtT &&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