AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetFindingV2Result.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/core/utils/memory/stl/AWSVector.h>
13#include <aws/accessanalyzer/model/FindingType.h>
14#include <aws/accessanalyzer/model/FindingDetails.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace AccessAnalyzer
30{
31namespace Model
32{
34 {
35 public:
36 AWS_ACCESSANALYZER_API GetFindingV2Result();
39
40
42
46 inline const Aws::Utils::DateTime& GetAnalyzedAt() const{ return m_analyzedAt; }
47 inline void SetAnalyzedAt(const Aws::Utils::DateTime& value) { m_analyzedAt = value; }
48 inline void SetAnalyzedAt(Aws::Utils::DateTime&& value) { m_analyzedAt = std::move(value); }
49 inline GetFindingV2Result& WithAnalyzedAt(const Aws::Utils::DateTime& value) { SetAnalyzedAt(value); return *this;}
50 inline GetFindingV2Result& WithAnalyzedAt(Aws::Utils::DateTime&& value) { SetAnalyzedAt(std::move(value)); return *this;}
52
54
57 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
58 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
59 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
60 inline GetFindingV2Result& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
61 inline GetFindingV2Result& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
63
65
68 inline const Aws::String& GetError() const{ return m_error; }
69 inline void SetError(const Aws::String& value) { m_error = value; }
70 inline void SetError(Aws::String&& value) { m_error = std::move(value); }
71 inline void SetError(const char* value) { m_error.assign(value); }
72 inline GetFindingV2Result& WithError(const Aws::String& value) { SetError(value); return *this;}
73 inline GetFindingV2Result& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
74 inline GetFindingV2Result& WithError(const char* value) { SetError(value); return *this;}
76
78
81 inline const Aws::String& GetId() const{ return m_id; }
82 inline void SetId(const Aws::String& value) { m_id = value; }
83 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
84 inline void SetId(const char* value) { m_id.assign(value); }
85 inline GetFindingV2Result& WithId(const Aws::String& value) { SetId(value); return *this;}
86 inline GetFindingV2Result& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
87 inline GetFindingV2Result& WithId(const char* value) { SetId(value); return *this;}
89
91
94 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
95 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
96 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
97 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
98 inline GetFindingV2Result& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
99 inline GetFindingV2Result& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
100 inline GetFindingV2Result& WithNextToken(const char* value) { SetNextToken(value); return *this;}
102
104
107 inline const Aws::String& GetResource() const{ return m_resource; }
108 inline void SetResource(const Aws::String& value) { m_resource = value; }
109 inline void SetResource(Aws::String&& value) { m_resource = std::move(value); }
110 inline void SetResource(const char* value) { m_resource.assign(value); }
111 inline GetFindingV2Result& WithResource(const Aws::String& value) { SetResource(value); return *this;}
112 inline GetFindingV2Result& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
113 inline GetFindingV2Result& WithResource(const char* value) { SetResource(value); return *this;}
115
117
120 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
121 inline void SetResourceType(const ResourceType& value) { m_resourceType = value; }
122 inline void SetResourceType(ResourceType&& value) { m_resourceType = std::move(value); }
123 inline GetFindingV2Result& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
124 inline GetFindingV2Result& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
126
128
131 inline const Aws::String& GetResourceOwnerAccount() const{ return m_resourceOwnerAccount; }
132 inline void SetResourceOwnerAccount(const Aws::String& value) { m_resourceOwnerAccount = value; }
133 inline void SetResourceOwnerAccount(Aws::String&& value) { m_resourceOwnerAccount = std::move(value); }
134 inline void SetResourceOwnerAccount(const char* value) { m_resourceOwnerAccount.assign(value); }
136 inline GetFindingV2Result& WithResourceOwnerAccount(Aws::String&& value) { SetResourceOwnerAccount(std::move(value)); return *this;}
137 inline GetFindingV2Result& WithResourceOwnerAccount(const char* value) { SetResourceOwnerAccount(value); return *this;}
139
141
144 inline const FindingStatus& GetStatus() const{ return m_status; }
145 inline void SetStatus(const FindingStatus& value) { m_status = value; }
146 inline void SetStatus(FindingStatus&& value) { m_status = std::move(value); }
147 inline GetFindingV2Result& WithStatus(const FindingStatus& value) { SetStatus(value); return *this;}
148 inline GetFindingV2Result& WithStatus(FindingStatus&& value) { SetStatus(std::move(value)); return *this;}
150
152
155 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
156 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
157 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
158 inline GetFindingV2Result& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
159 inline GetFindingV2Result& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
161
163
167 inline const Aws::Vector<FindingDetails>& GetFindingDetails() const{ return m_findingDetails; }
168 inline void SetFindingDetails(const Aws::Vector<FindingDetails>& value) { m_findingDetails = value; }
169 inline void SetFindingDetails(Aws::Vector<FindingDetails>&& value) { m_findingDetails = std::move(value); }
171 inline GetFindingV2Result& WithFindingDetails(Aws::Vector<FindingDetails>&& value) { SetFindingDetails(std::move(value)); return *this;}
172 inline GetFindingV2Result& AddFindingDetails(const FindingDetails& value) { m_findingDetails.push_back(value); return *this; }
173 inline GetFindingV2Result& AddFindingDetails(FindingDetails&& value) { m_findingDetails.push_back(std::move(value)); return *this; }
175
177
183 inline const FindingType& GetFindingType() const{ return m_findingType; }
184 inline void SetFindingType(const FindingType& value) { m_findingType = value; }
185 inline void SetFindingType(FindingType&& value) { m_findingType = std::move(value); }
186 inline GetFindingV2Result& WithFindingType(const FindingType& value) { SetFindingType(value); return *this;}
187 inline GetFindingV2Result& WithFindingType(FindingType&& value) { SetFindingType(std::move(value)); return *this;}
189
191
192 inline const Aws::String& GetRequestId() const{ return m_requestId; }
193 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
194 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
195 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
196 inline GetFindingV2Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
197 inline GetFindingV2Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
198 inline GetFindingV2Result& WithRequestId(const char* value) { SetRequestId(value); return *this;}
200 private:
201
202 Aws::Utils::DateTime m_analyzedAt;
203
204 Aws::Utils::DateTime m_createdAt;
205
206 Aws::String m_error;
207
208 Aws::String m_id;
209
210 Aws::String m_nextToken;
211
212 Aws::String m_resource;
213
214 ResourceType m_resourceType;
215
216 Aws::String m_resourceOwnerAccount;
217
218 FindingStatus m_status;
219
220 Aws::Utils::DateTime m_updatedAt;
221
222 Aws::Vector<FindingDetails> m_findingDetails;
223
224 FindingType m_findingType;
225
226 Aws::String m_requestId;
227 };
228
229} // namespace Model
230} // namespace AccessAnalyzer
231} // namespace Aws
GetFindingV2Result & WithId(const char *value)
GetFindingV2Result & WithFindingType(const FindingType &value)
void SetResourceOwnerAccount(const Aws::String &value)
GetFindingV2Result & WithError(const Aws::String &value)
GetFindingV2Result & WithId(Aws::String &&value)
GetFindingV2Result & WithUpdatedAt(const Aws::Utils::DateTime &value)
AWS_ACCESSANALYZER_API GetFindingV2Result(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFindingV2Result & WithCreatedAt(const Aws::Utils::DateTime &value)
GetFindingV2Result & WithFindingDetails(const Aws::Vector< FindingDetails > &value)
GetFindingV2Result & WithRequestId(const char *value)
GetFindingV2Result & WithResourceOwnerAccount(const char *value)
GetFindingV2Result & WithResource(const char *value)
GetFindingV2Result & WithStatus(const FindingStatus &value)
GetFindingV2Result & WithUpdatedAt(Aws::Utils::DateTime &&value)
GetFindingV2Result & WithResourceType(const ResourceType &value)
GetFindingV2Result & WithFindingDetails(Aws::Vector< FindingDetails > &&value)
GetFindingV2Result & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
GetFindingV2Result & WithError(const char *value)
GetFindingV2Result & WithId(const Aws::String &value)
void SetFindingDetails(const Aws::Vector< FindingDetails > &value)
GetFindingV2Result & WithResourceOwnerAccount(Aws::String &&value)
GetFindingV2Result & WithResource(const Aws::String &value)
GetFindingV2Result & WithNextToken(Aws::String &&value)
void SetResourceType(const ResourceType &value)
GetFindingV2Result & WithAnalyzedAt(const Aws::Utils::DateTime &value)
GetFindingV2Result & WithRequestId(const Aws::String &value)
GetFindingV2Result & WithResource(Aws::String &&value)
const Aws::Utils::DateTime & GetAnalyzedAt() const
void SetUpdatedAt(Aws::Utils::DateTime &&value)
GetFindingV2Result & AddFindingDetails(const FindingDetails &value)
void SetAnalyzedAt(Aws::Utils::DateTime &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
GetFindingV2Result & WithResourceOwnerAccount(const Aws::String &value)
GetFindingV2Result & WithResourceType(ResourceType &&value)
GetFindingV2Result & WithNextToken(const Aws::String &value)
GetFindingV2Result & WithNextToken(const char *value)
GetFindingV2Result & AddFindingDetails(FindingDetails &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetFindingV2Result & WithAnalyzedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetFindingV2Result & WithRequestId(Aws::String &&value)
GetFindingV2Result & WithStatus(FindingStatus &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
GetFindingV2Result & WithError(Aws::String &&value)
void SetFindingDetails(Aws::Vector< FindingDetails > &&value)
AWS_ACCESSANALYZER_API GetFindingV2Result & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFindingV2Result & WithFindingType(FindingType &&value)
void SetAnalyzedAt(const Aws::Utils::DateTime &value)
const Aws::Vector< FindingDetails > & GetFindingDetails() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue