AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAnalyzedAt(const Aws::Utils::DateTime& value) { m_analyzedAtHasBeenSet = true; m_analyzedAt = value; }
52 inline void SetAnalyzedAt(Aws::Utils::DateTime&& value) { m_analyzedAtHasBeenSet = true; m_analyzedAt = std::move(value); }
53 inline FindingSummaryV2& WithAnalyzedAt(const Aws::Utils::DateTime& value) { SetAnalyzedAt(value); return *this;}
54 inline FindingSummaryV2& WithAnalyzedAt(Aws::Utils::DateTime&& value) { SetAnalyzedAt(std::move(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 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
64 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
65 inline FindingSummaryV2& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
66 inline FindingSummaryV2& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetError() const{ return m_error; }
74 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
75 inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; }
76 inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
77 inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); }
78 inline FindingSummaryV2& WithError(const Aws::String& value) { SetError(value); return *this;}
79 inline FindingSummaryV2& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
80 inline FindingSummaryV2& WithError(const char* value) { SetError(value); return *this;}
82
84
87 inline const Aws::String& GetId() const{ return m_id; }
88 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
89 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
90 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
91 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
92 inline FindingSummaryV2& WithId(const Aws::String& value) { SetId(value); return *this;}
93 inline FindingSummaryV2& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
94 inline FindingSummaryV2& WithId(const char* value) { SetId(value); return *this;}
96
98
101 inline const Aws::String& GetResource() const{ return m_resource; }
102 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
103 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
104 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
105 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
106 inline FindingSummaryV2& WithResource(const Aws::String& value) { SetResource(value); return *this;}
107 inline FindingSummaryV2& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
108 inline FindingSummaryV2& WithResource(const char* value) { SetResource(value); return *this;}
110
112
115 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
116 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
117 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
118 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
119 inline FindingSummaryV2& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
120 inline FindingSummaryV2& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
122
124
127 inline const Aws::String& GetResourceOwnerAccount() const{ return m_resourceOwnerAccount; }
128 inline bool ResourceOwnerAccountHasBeenSet() const { return m_resourceOwnerAccountHasBeenSet; }
129 inline void SetResourceOwnerAccount(const Aws::String& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = value; }
130 inline void SetResourceOwnerAccount(Aws::String&& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = std::move(value); }
131 inline void SetResourceOwnerAccount(const char* value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount.assign(value); }
133 inline FindingSummaryV2& WithResourceOwnerAccount(Aws::String&& value) { SetResourceOwnerAccount(std::move(value)); return *this;}
134 inline FindingSummaryV2& WithResourceOwnerAccount(const char* value) { SetResourceOwnerAccount(value); return *this;}
136
138
141 inline const FindingStatus& GetStatus() const{ return m_status; }
142 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
143 inline void SetStatus(const FindingStatus& value) { m_statusHasBeenSet = true; m_status = value; }
144 inline void SetStatus(FindingStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
145 inline FindingSummaryV2& WithStatus(const FindingStatus& value) { SetStatus(value); return *this;}
146 inline FindingSummaryV2& WithStatus(FindingStatus&& value) { SetStatus(std::move(value)); return *this;}
148
150
153 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
154 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
155 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
156 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
157 inline FindingSummaryV2& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
158 inline FindingSummaryV2& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
160
162
165 inline const FindingType& GetFindingType() const{ return m_findingType; }
166 inline bool FindingTypeHasBeenSet() const { return m_findingTypeHasBeenSet; }
167 inline void SetFindingType(const FindingType& value) { m_findingTypeHasBeenSet = true; m_findingType = value; }
168 inline void SetFindingType(FindingType&& value) { m_findingTypeHasBeenSet = true; m_findingType = std::move(value); }
169 inline FindingSummaryV2& WithFindingType(const FindingType& value) { SetFindingType(value); return *this;}
170 inline FindingSummaryV2& WithFindingType(FindingType&& value) { SetFindingType(std::move(value)); return *this;}
172 private:
173
174 Aws::Utils::DateTime m_analyzedAt;
175 bool m_analyzedAtHasBeenSet = false;
176
177 Aws::Utils::DateTime m_createdAt;
178 bool m_createdAtHasBeenSet = false;
179
180 Aws::String m_error;
181 bool m_errorHasBeenSet = false;
182
183 Aws::String m_id;
184 bool m_idHasBeenSet = false;
185
186 Aws::String m_resource;
187 bool m_resourceHasBeenSet = false;
188
189 ResourceType m_resourceType;
190 bool m_resourceTypeHasBeenSet = false;
191
192 Aws::String m_resourceOwnerAccount;
193 bool m_resourceOwnerAccountHasBeenSet = false;
194
195 FindingStatus m_status;
196 bool m_statusHasBeenSet = false;
197
198 Aws::Utils::DateTime m_updatedAt;
199 bool m_updatedAtHasBeenSet = false;
200
201 FindingType m_findingType;
202 bool m_findingTypeHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace AccessAnalyzer
207} // namespace Aws
AWS_ACCESSANALYZER_API FindingSummaryV2(Aws::Utils::Json::JsonView jsonValue)
void SetResource(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetResourceType(const ResourceType &value)
void SetStatus(const FindingStatus &value)
FindingSummaryV2 & WithResourceType(ResourceType &&value)
FindingSummaryV2 & WithError(const char *value)
void SetAnalyzedAt(const Aws::Utils::DateTime &value)
FindingSummaryV2 & WithResource(const Aws::String &value)
const Aws::Utils::DateTime & GetUpdatedAt() const
FindingSummaryV2 & WithFindingType(const FindingType &value)
FindingSummaryV2 & WithResource(const char *value)
void SetFindingType(const FindingType &value)
FindingSummaryV2 & WithId(Aws::String &&value)
FindingSummaryV2 & WithResource(Aws::String &&value)
void SetResourceOwnerAccount(const Aws::String &value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
FindingSummaryV2 & WithAnalyzedAt(const Aws::Utils::DateTime &value)
FindingSummaryV2 & WithError(const Aws::String &value)
const Aws::Utils::DateTime & GetAnalyzedAt() const
const Aws::String & GetResourceOwnerAccount() const
void SetUpdatedAt(const Aws::Utils::DateTime &value)
FindingSummaryV2 & WithUpdatedAt(const Aws::Utils::DateTime &value)
FindingSummaryV2 & WithResourceOwnerAccount(const char *value)
const Aws::Utils::DateTime & GetCreatedAt() const
FindingSummaryV2 & WithAnalyzedAt(Aws::Utils::DateTime &&value)
FindingSummaryV2 & WithId(const Aws::String &value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetAnalyzedAt(Aws::Utils::DateTime &&value)
AWS_ACCESSANALYZER_API FindingSummaryV2 & operator=(Aws::Utils::Json::JsonView jsonValue)
FindingSummaryV2 & WithStatus(const FindingStatus &value)
FindingSummaryV2 & WithResourceOwnerAccount(const Aws::String &value)
FindingSummaryV2 & WithResourceType(const ResourceType &value)
void SetError(const Aws::String &value)
FindingSummaryV2 & WithError(Aws::String &&value)
FindingSummaryV2 & WithResourceOwnerAccount(Aws::String &&value)
FindingSummaryV2 & WithCreatedAt(Aws::Utils::DateTime &&value)
FindingSummaryV2 & WithFindingType(FindingType &&value)
FindingSummaryV2 & WithId(const char *value)
FindingSummaryV2 & WithStatus(FindingStatus &&value)
FindingSummaryV2 & WithCreatedAt(const Aws::Utils::DateTime &value)
FindingSummaryV2 & WithUpdatedAt(Aws::Utils::DateTime &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue