AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ResourceArnT = Aws::String>
51 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
52 template<typename ResourceArnT = Aws::String>
53 AnalyzedResource& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
55
57
60 inline ResourceType GetResourceType() const { return m_resourceType; }
61 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
62 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
63 inline AnalyzedResource& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
71 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
72 template<typename CreatedAtT = Aws::Utils::DateTime>
73 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
74 template<typename CreatedAtT = Aws::Utils::DateTime>
75 AnalyzedResource& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
77
79
82 inline const Aws::Utils::DateTime& GetAnalyzedAt() const { return m_analyzedAt; }
83 inline bool AnalyzedAtHasBeenSet() const { return m_analyzedAtHasBeenSet; }
84 template<typename AnalyzedAtT = Aws::Utils::DateTime>
85 void SetAnalyzedAt(AnalyzedAtT&& value) { m_analyzedAtHasBeenSet = true; m_analyzedAt = std::forward<AnalyzedAtT>(value); }
86 template<typename AnalyzedAtT = Aws::Utils::DateTime>
87 AnalyzedResource& WithAnalyzedAt(AnalyzedAtT&& value) { SetAnalyzedAt(std::forward<AnalyzedAtT>(value)); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
95 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
96 template<typename UpdatedAtT = Aws::Utils::DateTime>
97 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
98 template<typename UpdatedAtT = Aws::Utils::DateTime>
99 AnalyzedResource& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
101
103
107 inline bool GetIsPublic() const { return m_isPublic; }
108 inline bool IsPublicHasBeenSet() const { return m_isPublicHasBeenSet; }
109 inline void SetIsPublic(bool value) { m_isPublicHasBeenSet = true; m_isPublic = value; }
110 inline AnalyzedResource& WithIsPublic(bool value) { SetIsPublic(value); return *this;}
112
114
118 inline const Aws::Vector<Aws::String>& GetActions() const { return m_actions; }
119 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
120 template<typename ActionsT = Aws::Vector<Aws::String>>
121 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
122 template<typename ActionsT = Aws::Vector<Aws::String>>
123 AnalyzedResource& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
124 template<typename ActionsT = Aws::String>
125 AnalyzedResource& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
127
129
133 inline const Aws::Vector<Aws::String>& GetSharedVia() const { return m_sharedVia; }
134 inline bool SharedViaHasBeenSet() const { return m_sharedViaHasBeenSet; }
135 template<typename SharedViaT = Aws::Vector<Aws::String>>
136 void SetSharedVia(SharedViaT&& value) { m_sharedViaHasBeenSet = true; m_sharedVia = std::forward<SharedViaT>(value); }
137 template<typename SharedViaT = Aws::Vector<Aws::String>>
138 AnalyzedResource& WithSharedVia(SharedViaT&& value) { SetSharedVia(std::forward<SharedViaT>(value)); return *this;}
139 template<typename SharedViaT = Aws::String>
140 AnalyzedResource& AddSharedVia(SharedViaT&& value) { m_sharedViaHasBeenSet = true; m_sharedVia.emplace_back(std::forward<SharedViaT>(value)); return *this; }
142
144
147 inline FindingStatus GetStatus() const { return m_status; }
148 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
149 inline void SetStatus(FindingStatus value) { m_statusHasBeenSet = true; m_status = value; }
150 inline AnalyzedResource& WithStatus(FindingStatus value) { SetStatus(value); return *this;}
152
154
157 inline const Aws::String& GetResourceOwnerAccount() const { return m_resourceOwnerAccount; }
158 inline bool ResourceOwnerAccountHasBeenSet() const { return m_resourceOwnerAccountHasBeenSet; }
159 template<typename ResourceOwnerAccountT = Aws::String>
160 void SetResourceOwnerAccount(ResourceOwnerAccountT&& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = std::forward<ResourceOwnerAccountT>(value); }
161 template<typename ResourceOwnerAccountT = Aws::String>
162 AnalyzedResource& WithResourceOwnerAccount(ResourceOwnerAccountT&& value) { SetResourceOwnerAccount(std::forward<ResourceOwnerAccountT>(value)); return *this;}
164
166
169 inline const Aws::String& GetError() const { return m_error; }
170 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
171 template<typename ErrorT = Aws::String>
172 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
173 template<typename ErrorT = Aws::String>
174 AnalyzedResource& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
176 private:
177
178 Aws::String m_resourceArn;
179 bool m_resourceArnHasBeenSet = false;
180
181 ResourceType m_resourceType{ResourceType::NOT_SET};
182 bool m_resourceTypeHasBeenSet = false;
183
184 Aws::Utils::DateTime m_createdAt{};
185 bool m_createdAtHasBeenSet = false;
186
187 Aws::Utils::DateTime m_analyzedAt{};
188 bool m_analyzedAtHasBeenSet = false;
189
190 Aws::Utils::DateTime m_updatedAt{};
191 bool m_updatedAtHasBeenSet = false;
192
193 bool m_isPublic{false};
194 bool m_isPublicHasBeenSet = false;
195
196 Aws::Vector<Aws::String> m_actions;
197 bool m_actionsHasBeenSet = false;
198
199 Aws::Vector<Aws::String> m_sharedVia;
200 bool m_sharedViaHasBeenSet = false;
201
203 bool m_statusHasBeenSet = false;
204
205 Aws::String m_resourceOwnerAccount;
206 bool m_resourceOwnerAccountHasBeenSet = false;
207
208 Aws::String m_error;
209 bool m_errorHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace AccessAnalyzer
214} // namespace Aws
AnalyzedResource & WithStatus(FindingStatus value)
AWS_ACCESSANALYZER_API AnalyzedResource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceOwnerAccount() const
AnalyzedResource & WithSharedVia(SharedViaT &&value)
AnalyzedResource & WithResourceArn(ResourceArnT &&value)
AnalyzedResource & WithResourceOwnerAccount(ResourceOwnerAccountT &&value)
const Aws::Vector< Aws::String > & GetActions() const
const Aws::Utils::DateTime & GetCreatedAt() const
AnalyzedResource & WithResourceType(ResourceType value)
AnalyzedResource & AddSharedVia(SharedViaT &&value)
AWS_ACCESSANALYZER_API AnalyzedResource(Aws::Utils::Json::JsonView jsonValue)
AnalyzedResource & WithActions(ActionsT &&value)
AWS_ACCESSANALYZER_API AnalyzedResource()=default
AnalyzedResource & WithAnalyzedAt(AnalyzedAtT &&value)
void SetResourceOwnerAccount(ResourceOwnerAccountT &&value)
const Aws::Utils::DateTime & GetAnalyzedAt() const
const Aws::Vector< Aws::String > & GetSharedVia() const
const Aws::Utils::DateTime & GetUpdatedAt() const
AnalyzedResource & WithCreatedAt(CreatedAtT &&value)
AnalyzedResource & AddActions(ActionsT &&value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
AnalyzedResource & WithIsPublic(bool value)
AnalyzedResource & WithUpdatedAt(UpdatedAtT &&value)
AnalyzedResource & WithError(ErrorT &&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