AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FindingSummaryV2.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/accessanalyzer/model/ResourceType.h>
11#include <aws/accessanalyzer/model/FindingStatus.h>
12#include <aws/accessanalyzer/model/FindingType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace AccessAnalyzer
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_ACCESSANALYZER_API FindingSummaryV2() = default;
39 AWS_ACCESSANALYZER_API FindingSummaryV2(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ACCESSANALYZER_API FindingSummaryV2& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Utils::DateTime& GetAnalyzedAt() const { return m_analyzedAt; }
50 inline bool AnalyzedAtHasBeenSet() const { return m_analyzedAtHasBeenSet; }
51 template<typename AnalyzedAtT = Aws::Utils::DateTime>
52 void SetAnalyzedAt(AnalyzedAtT&& value) { m_analyzedAtHasBeenSet = true; m_analyzedAt = std::forward<AnalyzedAtT>(value); }
53 template<typename AnalyzedAtT = Aws::Utils::DateTime>
54 FindingSummaryV2& WithAnalyzedAt(AnalyzedAtT&& value) { SetAnalyzedAt(std::forward<AnalyzedAtT>(value)); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
62 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
63 template<typename CreatedAtT = Aws::Utils::DateTime>
64 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
65 template<typename CreatedAtT = Aws::Utils::DateTime>
66 FindingSummaryV2& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
68
70
73 inline const Aws::String& GetError() const { return m_error; }
74 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
75 template<typename ErrorT = Aws::String>
76 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
77 template<typename ErrorT = Aws::String>
78 FindingSummaryV2& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
80
82
85 inline const Aws::String& GetId() const { return m_id; }
86 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
87 template<typename IdT = Aws::String>
88 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
89 template<typename IdT = Aws::String>
90 FindingSummaryV2& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
92
94
97 inline const Aws::String& GetResource() const { return m_resource; }
98 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
99 template<typename ResourceT = Aws::String>
100 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
101 template<typename ResourceT = Aws::String>
102 FindingSummaryV2& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
104
106
109 inline ResourceType GetResourceType() const { return m_resourceType; }
110 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
111 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
112 inline FindingSummaryV2& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
114
116
119 inline const Aws::String& GetResourceOwnerAccount() const { return m_resourceOwnerAccount; }
120 inline bool ResourceOwnerAccountHasBeenSet() const { return m_resourceOwnerAccountHasBeenSet; }
121 template<typename ResourceOwnerAccountT = Aws::String>
122 void SetResourceOwnerAccount(ResourceOwnerAccountT&& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = std::forward<ResourceOwnerAccountT>(value); }
123 template<typename ResourceOwnerAccountT = Aws::String>
124 FindingSummaryV2& WithResourceOwnerAccount(ResourceOwnerAccountT&& value) { SetResourceOwnerAccount(std::forward<ResourceOwnerAccountT>(value)); return *this;}
126
128
131 inline FindingStatus GetStatus() const { return m_status; }
132 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
133 inline void SetStatus(FindingStatus value) { m_statusHasBeenSet = true; m_status = value; }
134 inline FindingSummaryV2& WithStatus(FindingStatus value) { SetStatus(value); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
142 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
143 template<typename UpdatedAtT = Aws::Utils::DateTime>
144 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
145 template<typename UpdatedAtT = Aws::Utils::DateTime>
146 FindingSummaryV2& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
148
150
157 inline FindingType GetFindingType() const { return m_findingType; }
158 inline bool FindingTypeHasBeenSet() const { return m_findingTypeHasBeenSet; }
159 inline void SetFindingType(FindingType value) { m_findingTypeHasBeenSet = true; m_findingType = value; }
160 inline FindingSummaryV2& WithFindingType(FindingType value) { SetFindingType(value); return *this;}
162 private:
163
164 Aws::Utils::DateTime m_analyzedAt{};
165 bool m_analyzedAtHasBeenSet = false;
166
167 Aws::Utils::DateTime m_createdAt{};
168 bool m_createdAtHasBeenSet = false;
169
170 Aws::String m_error;
171 bool m_errorHasBeenSet = false;
172
173 Aws::String m_id;
174 bool m_idHasBeenSet = false;
175
176 Aws::String m_resource;
177 bool m_resourceHasBeenSet = false;
178
179 ResourceType m_resourceType{ResourceType::NOT_SET};
180 bool m_resourceTypeHasBeenSet = false;
181
182 Aws::String m_resourceOwnerAccount;
183 bool m_resourceOwnerAccountHasBeenSet = false;
184
186 bool m_statusHasBeenSet = false;
187
188 Aws::Utils::DateTime m_updatedAt{};
189 bool m_updatedAtHasBeenSet = false;
190
191 FindingType m_findingType{FindingType::NOT_SET};
192 bool m_findingTypeHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace AccessAnalyzer
197} // namespace Aws
AWS_ACCESSANALYZER_API FindingSummaryV2(Aws::Utils::Json::JsonView jsonValue)
FindingSummaryV2 & WithCreatedAt(CreatedAtT &&value)
FindingSummaryV2 & WithError(ErrorT &&value)
AWS_ACCESSANALYZER_API FindingSummaryV2()=default
const Aws::Utils::DateTime & GetUpdatedAt() const
FindingSummaryV2 & WithId(IdT &&value)
FindingSummaryV2 & WithAnalyzedAt(AnalyzedAtT &&value)
FindingSummaryV2 & WithResourceOwnerAccount(ResourceOwnerAccountT &&value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetAnalyzedAt() const
const Aws::String & GetResourceOwnerAccount() const
void SetResourceOwnerAccount(ResourceOwnerAccountT &&value)
FindingSummaryV2 & WithFindingType(FindingType value)
const Aws::Utils::DateTime & GetCreatedAt() const
FindingSummaryV2 & WithStatus(FindingStatus value)
AWS_ACCESSANALYZER_API FindingSummaryV2 & operator=(Aws::Utils::Json::JsonView jsonValue)
FindingSummaryV2 & WithUpdatedAt(UpdatedAtT &&value)
FindingSummaryV2 & WithResourceType(ResourceType value)
FindingSummaryV2 & WithResource(ResourceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue