AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AnalyzerSummary.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/accessanalyzer/model/Type.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/accessanalyzer/model/AnalyzerStatus.h>
13#include <aws/accessanalyzer/model/StatusReason.h>
14#include <aws/accessanalyzer/model/AnalyzerConfiguration.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace AccessAnalyzer
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_ACCESSANALYZER_API AnalyzerSummary() = default;
41 AWS_ACCESSANALYZER_API AnalyzerSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ACCESSANALYZER_API AnalyzerSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetArn() const { return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 AnalyzerSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 AnalyzerSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
75 inline Type GetType() const { return m_type; }
76 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
77 inline void SetType(Type value) { m_typeHasBeenSet = true; m_type = value; }
78 inline AnalyzerSummary& WithType(Type value) { SetType(value); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
86 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
87 template<typename CreatedAtT = Aws::Utils::DateTime>
88 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
89 template<typename CreatedAtT = Aws::Utils::DateTime>
90 AnalyzerSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
92
94
97 inline const Aws::String& GetLastResourceAnalyzed() const { return m_lastResourceAnalyzed; }
98 inline bool LastResourceAnalyzedHasBeenSet() const { return m_lastResourceAnalyzedHasBeenSet; }
99 template<typename LastResourceAnalyzedT = Aws::String>
100 void SetLastResourceAnalyzed(LastResourceAnalyzedT&& value) { m_lastResourceAnalyzedHasBeenSet = true; m_lastResourceAnalyzed = std::forward<LastResourceAnalyzedT>(value); }
101 template<typename LastResourceAnalyzedT = Aws::String>
102 AnalyzerSummary& WithLastResourceAnalyzed(LastResourceAnalyzedT&& value) { SetLastResourceAnalyzed(std::forward<LastResourceAnalyzedT>(value)); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetLastResourceAnalyzedAt() const { return m_lastResourceAnalyzedAt; }
110 inline bool LastResourceAnalyzedAtHasBeenSet() const { return m_lastResourceAnalyzedAtHasBeenSet; }
111 template<typename LastResourceAnalyzedAtT = Aws::Utils::DateTime>
112 void SetLastResourceAnalyzedAt(LastResourceAnalyzedAtT&& value) { m_lastResourceAnalyzedAtHasBeenSet = true; m_lastResourceAnalyzedAt = std::forward<LastResourceAnalyzedAtT>(value); }
113 template<typename LastResourceAnalyzedAtT = Aws::Utils::DateTime>
114 AnalyzerSummary& WithLastResourceAnalyzedAt(LastResourceAnalyzedAtT&& value) { SetLastResourceAnalyzedAt(std::forward<LastResourceAnalyzedAtT>(value)); return *this;}
116
118
121 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
122 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
123 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
124 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
125 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
126 AnalyzerSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
127 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
128 AnalyzerSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
129 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
130 }
132
134
143 inline AnalyzerStatus GetStatus() const { return m_status; }
144 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
145 inline void SetStatus(AnalyzerStatus value) { m_statusHasBeenSet = true; m_status = value; }
146 inline AnalyzerSummary& WithStatus(AnalyzerStatus value) { SetStatus(value); return *this;}
148
150
157 inline const StatusReason& GetStatusReason() const { return m_statusReason; }
158 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
159 template<typename StatusReasonT = StatusReason>
160 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
161 template<typename StatusReasonT = StatusReason>
162 AnalyzerSummary& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
164
166
170 inline const AnalyzerConfiguration& GetConfiguration() const { return m_configuration; }
171 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
172 template<typename ConfigurationT = AnalyzerConfiguration>
173 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
174 template<typename ConfigurationT = AnalyzerConfiguration>
175 AnalyzerSummary& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
177 private:
178
179 Aws::String m_arn;
180 bool m_arnHasBeenSet = false;
181
182 Aws::String m_name;
183 bool m_nameHasBeenSet = false;
184
185 Type m_type{Type::NOT_SET};
186 bool m_typeHasBeenSet = false;
187
188 Aws::Utils::DateTime m_createdAt{};
189 bool m_createdAtHasBeenSet = false;
190
191 Aws::String m_lastResourceAnalyzed;
192 bool m_lastResourceAnalyzedHasBeenSet = false;
193
194 Aws::Utils::DateTime m_lastResourceAnalyzedAt{};
195 bool m_lastResourceAnalyzedAtHasBeenSet = false;
196
198 bool m_tagsHasBeenSet = false;
199
201 bool m_statusHasBeenSet = false;
202
203 StatusReason m_statusReason;
204 bool m_statusReasonHasBeenSet = false;
205
206 AnalyzerConfiguration m_configuration;
207 bool m_configurationHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace AccessAnalyzer
212} // 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