AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AnalyzedResource.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/ResourceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/accessanalyzer/model/FindingStatus.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 AnalyzedResource();
39 AWS_ACCESSANALYZER_API AnalyzedResource(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ACCESSANALYZER_API AnalyzedResource& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
49 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
50 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
51 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
52 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
53 inline AnalyzedResource& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
54 inline AnalyzedResource& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
55 inline AnalyzedResource& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
57
59
62 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
63 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
64 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
65 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
66 inline AnalyzedResource& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
67 inline AnalyzedResource& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
75 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
76 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
77 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
78 inline AnalyzedResource& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
79 inline AnalyzedResource& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetAnalyzedAt() const{ return m_analyzedAt; }
87 inline bool AnalyzedAtHasBeenSet() const { return m_analyzedAtHasBeenSet; }
88 inline void SetAnalyzedAt(const Aws::Utils::DateTime& value) { m_analyzedAtHasBeenSet = true; m_analyzedAt = value; }
89 inline void SetAnalyzedAt(Aws::Utils::DateTime&& value) { m_analyzedAtHasBeenSet = true; m_analyzedAt = std::move(value); }
90 inline AnalyzedResource& WithAnalyzedAt(const Aws::Utils::DateTime& value) { SetAnalyzedAt(value); return *this;}
91 inline AnalyzedResource& WithAnalyzedAt(Aws::Utils::DateTime&& value) { SetAnalyzedAt(std::move(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
99 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
100 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
101 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
102 inline AnalyzedResource& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
103 inline AnalyzedResource& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
105
107
111 inline bool GetIsPublic() const{ return m_isPublic; }
112 inline bool IsPublicHasBeenSet() const { return m_isPublicHasBeenSet; }
113 inline void SetIsPublic(bool value) { m_isPublicHasBeenSet = true; m_isPublic = value; }
114 inline AnalyzedResource& WithIsPublic(bool value) { SetIsPublic(value); return *this;}
116
118
122 inline const Aws::Vector<Aws::String>& GetActions() const{ return m_actions; }
123 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
124 inline void SetActions(const Aws::Vector<Aws::String>& value) { m_actionsHasBeenSet = true; m_actions = value; }
125 inline void SetActions(Aws::Vector<Aws::String>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
126 inline AnalyzedResource& WithActions(const Aws::Vector<Aws::String>& value) { SetActions(value); return *this;}
127 inline AnalyzedResource& WithActions(Aws::Vector<Aws::String>&& value) { SetActions(std::move(value)); return *this;}
128 inline AnalyzedResource& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
129 inline AnalyzedResource& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
130 inline AnalyzedResource& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
132
134
138 inline const Aws::Vector<Aws::String>& GetSharedVia() const{ return m_sharedVia; }
139 inline bool SharedViaHasBeenSet() const { return m_sharedViaHasBeenSet; }
140 inline void SetSharedVia(const Aws::Vector<Aws::String>& value) { m_sharedViaHasBeenSet = true; m_sharedVia = value; }
141 inline void SetSharedVia(Aws::Vector<Aws::String>&& value) { m_sharedViaHasBeenSet = true; m_sharedVia = std::move(value); }
142 inline AnalyzedResource& WithSharedVia(const Aws::Vector<Aws::String>& value) { SetSharedVia(value); return *this;}
143 inline AnalyzedResource& WithSharedVia(Aws::Vector<Aws::String>&& value) { SetSharedVia(std::move(value)); return *this;}
144 inline AnalyzedResource& AddSharedVia(const Aws::String& value) { m_sharedViaHasBeenSet = true; m_sharedVia.push_back(value); return *this; }
145 inline AnalyzedResource& AddSharedVia(Aws::String&& value) { m_sharedViaHasBeenSet = true; m_sharedVia.push_back(std::move(value)); return *this; }
146 inline AnalyzedResource& AddSharedVia(const char* value) { m_sharedViaHasBeenSet = true; m_sharedVia.push_back(value); return *this; }
148
150
153 inline const FindingStatus& GetStatus() const{ return m_status; }
154 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
155 inline void SetStatus(const FindingStatus& value) { m_statusHasBeenSet = true; m_status = value; }
156 inline void SetStatus(FindingStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
157 inline AnalyzedResource& WithStatus(const FindingStatus& value) { SetStatus(value); return *this;}
158 inline AnalyzedResource& WithStatus(FindingStatus&& value) { SetStatus(std::move(value)); return *this;}
160
162
165 inline const Aws::String& GetResourceOwnerAccount() const{ return m_resourceOwnerAccount; }
166 inline bool ResourceOwnerAccountHasBeenSet() const { return m_resourceOwnerAccountHasBeenSet; }
167 inline void SetResourceOwnerAccount(const Aws::String& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = value; }
168 inline void SetResourceOwnerAccount(Aws::String&& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = std::move(value); }
169 inline void SetResourceOwnerAccount(const char* value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount.assign(value); }
171 inline AnalyzedResource& WithResourceOwnerAccount(Aws::String&& value) { SetResourceOwnerAccount(std::move(value)); return *this;}
172 inline AnalyzedResource& WithResourceOwnerAccount(const char* value) { SetResourceOwnerAccount(value); return *this;}
174
176
179 inline const Aws::String& GetError() const{ return m_error; }
180 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
181 inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; }
182 inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
183 inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); }
184 inline AnalyzedResource& WithError(const Aws::String& value) { SetError(value); return *this;}
185 inline AnalyzedResource& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
186 inline AnalyzedResource& WithError(const char* value) { SetError(value); return *this;}
188 private:
189
190 Aws::String m_resourceArn;
191 bool m_resourceArnHasBeenSet = false;
192
193 ResourceType m_resourceType;
194 bool m_resourceTypeHasBeenSet = false;
195
196 Aws::Utils::DateTime m_createdAt;
197 bool m_createdAtHasBeenSet = false;
198
199 Aws::Utils::DateTime m_analyzedAt;
200 bool m_analyzedAtHasBeenSet = false;
201
202 Aws::Utils::DateTime m_updatedAt;
203 bool m_updatedAtHasBeenSet = false;
204
205 bool m_isPublic;
206 bool m_isPublicHasBeenSet = false;
207
208 Aws::Vector<Aws::String> m_actions;
209 bool m_actionsHasBeenSet = false;
210
211 Aws::Vector<Aws::String> m_sharedVia;
212 bool m_sharedViaHasBeenSet = false;
213
214 FindingStatus m_status;
215 bool m_statusHasBeenSet = false;
216
217 Aws::String m_resourceOwnerAccount;
218 bool m_resourceOwnerAccountHasBeenSet = false;
219
220 Aws::String m_error;
221 bool m_errorHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace AccessAnalyzer
226} // namespace Aws
AnalyzedResource & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetAnalyzedAt(Aws::Utils::DateTime &&value)
AnalyzedResource & AddSharedVia(Aws::String &&value)
void SetStatus(const FindingStatus &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
AnalyzedResource & WithResourceArn(const Aws::String &value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
AWS_ACCESSANALYZER_API AnalyzedResource & operator=(Aws::Utils::Json::JsonView jsonValue)
AnalyzedResource & WithStatus(FindingStatus &&value)
AnalyzedResource & WithError(const char *value)
AnalyzedResource & WithResourceType(const ResourceType &value)
AnalyzedResource & WithResourceOwnerAccount(const Aws::String &value)
AnalyzedResource & WithError(const Aws::String &value)
const Aws::String & GetResourceOwnerAccount() const
AnalyzedResource & WithAnalyzedAt(Aws::Utils::DateTime &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
AnalyzedResource & WithResourceType(ResourceType &&value)
void SetSharedVia(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetActions() const
AnalyzedResource & AddActions(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AnalyzedResource & WithSharedVia(const Aws::Vector< Aws::String > &value)
void SetAnalyzedAt(const Aws::Utils::DateTime &value)
AWS_ACCESSANALYZER_API AnalyzedResource(Aws::Utils::Json::JsonView jsonValue)
AnalyzedResource & WithUpdatedAt(const Aws::Utils::DateTime &value)
void SetActions(const Aws::Vector< Aws::String > &value)
void SetActions(Aws::Vector< Aws::String > &&value)
AnalyzedResource & WithCreatedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetAnalyzedAt() const
const Aws::Vector< Aws::String > & GetSharedVia() const
const Aws::Utils::DateTime & GetUpdatedAt() const
AnalyzedResource & WithResourceArn(const char *value)
void SetSharedVia(const Aws::Vector< Aws::String > &value)
AnalyzedResource & WithResourceArn(Aws::String &&value)
AnalyzedResource & WithSharedVia(Aws::Vector< Aws::String > &&value)
AnalyzedResource & WithUpdatedAt(Aws::Utils::DateTime &&value)
AnalyzedResource & WithError(Aws::String &&value)
void SetResourceOwnerAccount(const Aws::String &value)
AnalyzedResource & AddActions(const Aws::String &value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
const ResourceType & GetResourceType() const
AnalyzedResource & WithIsPublic(bool value)
AnalyzedResource & AddSharedVia(const Aws::String &value)
AnalyzedResource & WithAnalyzedAt(const Aws::Utils::DateTime &value)
AnalyzedResource & WithResourceOwnerAccount(Aws::String &&value)
void SetResourceType(const ResourceType &value)
AnalyzedResource & WithActions(Aws::Vector< Aws::String > &&value)
AnalyzedResource & WithResourceOwnerAccount(const char *value)
AnalyzedResource & AddActions(const char *value)
AnalyzedResource & WithStatus(const FindingStatus &value)
AnalyzedResource & WithActions(const Aws::Vector< Aws::String > &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
AnalyzedResource & AddSharedVia(const char *value)
void SetResourceArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue