AWS SDK for C++  1.9.153
AWS SDK for C++
AccessPreview.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace AccessAnalyzer
27 {
28 namespace Model
29 {
30 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetAnalyzerArn() const{ return m_analyzerArn; }
49 
53  inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
54 
58  inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; }
59 
63  inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); }
64 
68  inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); }
69 
73  inline AccessPreview& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;}
74 
78  inline AccessPreview& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;}
79 
83  inline AccessPreview& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;}
84 
85 
89  inline const Aws::Map<Aws::String, Configuration>& GetConfigurations() const{ return m_configurations; }
90 
94  inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
95 
99  inline void SetConfigurations(const Aws::Map<Aws::String, Configuration>& value) { m_configurationsHasBeenSet = true; m_configurations = value; }
100 
104  inline void SetConfigurations(Aws::Map<Aws::String, Configuration>&& value) { m_configurationsHasBeenSet = true; m_configurations = std::move(value); }
105 
109  inline AccessPreview& WithConfigurations(const Aws::Map<Aws::String, Configuration>& value) { SetConfigurations(value); return *this;}
110 
114  inline AccessPreview& WithConfigurations(Aws::Map<Aws::String, Configuration>&& value) { SetConfigurations(std::move(value)); return *this;}
115 
119  inline AccessPreview& AddConfigurations(const Aws::String& key, const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, value); return *this; }
120 
124  inline AccessPreview& AddConfigurations(Aws::String&& key, const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(std::move(key), value); return *this; }
125 
129  inline AccessPreview& AddConfigurations(const Aws::String& key, Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, std::move(value)); return *this; }
130 
134  inline AccessPreview& AddConfigurations(Aws::String&& key, Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(std::move(key), std::move(value)); return *this; }
135 
139  inline AccessPreview& AddConfigurations(const char* key, Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, std::move(value)); return *this; }
140 
144  inline AccessPreview& AddConfigurations(const char* key, const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, value); return *this; }
145 
146 
150  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
151 
155  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
156 
160  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
161 
165  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
166 
170  inline AccessPreview& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
171 
175  inline AccessPreview& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
176 
177 
181  inline const Aws::String& GetId() const{ return m_id; }
182 
186  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
187 
191  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
192 
196  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
197 
201  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
202 
206  inline AccessPreview& WithId(const Aws::String& value) { SetId(value); return *this;}
207 
211  inline AccessPreview& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
212 
216  inline AccessPreview& WithId(const char* value) { SetId(value); return *this;}
217 
218 
226  inline const AccessPreviewStatus& GetStatus() const{ return m_status; }
227 
235  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
236 
244  inline void SetStatus(const AccessPreviewStatus& value) { m_statusHasBeenSet = true; m_status = value; }
245 
253  inline void SetStatus(AccessPreviewStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
254 
262  inline AccessPreview& WithStatus(const AccessPreviewStatus& value) { SetStatus(value); return *this;}
263 
271  inline AccessPreview& WithStatus(AccessPreviewStatus&& value) { SetStatus(std::move(value)); return *this;}
272 
273 
280  inline const AccessPreviewStatusReason& GetStatusReason() const{ return m_statusReason; }
281 
288  inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
289 
296  inline void SetStatusReason(const AccessPreviewStatusReason& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
297 
304  inline void SetStatusReason(AccessPreviewStatusReason&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
305 
312  inline AccessPreview& WithStatusReason(const AccessPreviewStatusReason& value) { SetStatusReason(value); return *this;}
313 
320  inline AccessPreview& WithStatusReason(AccessPreviewStatusReason&& value) { SetStatusReason(std::move(value)); return *this;}
321 
322  private:
323 
324  Aws::String m_analyzerArn;
325  bool m_analyzerArnHasBeenSet;
326 
327  Aws::Map<Aws::String, Configuration> m_configurations;
328  bool m_configurationsHasBeenSet;
329 
330  Aws::Utils::DateTime m_createdAt;
331  bool m_createdAtHasBeenSet;
332 
333  Aws::String m_id;
334  bool m_idHasBeenSet;
335 
336  AccessPreviewStatus m_status;
337  bool m_statusHasBeenSet;
338 
339  AccessPreviewStatusReason m_statusReason;
340  bool m_statusReasonHasBeenSet;
341  };
342 
343 } // namespace Model
344 } // namespace AccessAnalyzer
345 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::AccessAnalyzer::Model::AccessPreview::AddConfigurations
AccessPreview & AddConfigurations(const Aws::String &key, Configuration &&value)
Definition: AccessPreview.h:129
Aws::AccessAnalyzer::Model::AccessPreview::WithConfigurations
AccessPreview & WithConfigurations(const Aws::Map< Aws::String, Configuration > &value)
Definition: AccessPreview.h:109
Aws::AccessAnalyzer::Model::AccessPreview::SetStatus
void SetStatus(AccessPreviewStatus &&value)
Definition: AccessPreview.h:253
Aws::AccessAnalyzer::Model::AccessPreview::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: AccessPreview.h:155
Aws::AccessAnalyzer::Model::AccessPreview::WithCreatedAt
AccessPreview & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: AccessPreview.h:175
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::AccessPreview::WithCreatedAt
AccessPreview & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: AccessPreview.h:170
Aws::AccessAnalyzer::Model::AccessPreview::IdHasBeenSet
bool IdHasBeenSet() const
Definition: AccessPreview.h:186
Aws::AccessAnalyzer::Model::AccessPreview::WithAnalyzerArn
AccessPreview & WithAnalyzerArn(const Aws::String &value)
Definition: AccessPreview.h:73
Aws::AccessAnalyzer::Model::AccessPreview::AccessPreview
AccessPreview(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::AccessPreview::SetStatus
void SetStatus(const AccessPreviewStatus &value)
Definition: AccessPreview.h:244
Aws::AccessAnalyzer::Model::AccessPreview::AddConfigurations
AccessPreview & AddConfigurations(const char *key, const Configuration &value)
Definition: AccessPreview.h:144
DateTime.h
Aws::AccessAnalyzer::Model::AccessPreview::SetAnalyzerArn
void SetAnalyzerArn(Aws::String &&value)
Definition: AccessPreview.h:63
AccessPreviewStatus.h
Aws::AccessAnalyzer::Model::AccessPreview::SetId
void SetId(const Aws::String &value)
Definition: AccessPreview.h:191
Aws::AccessAnalyzer::Model::AccessPreview::WithStatusReason
AccessPreview & WithStatusReason(const AccessPreviewStatusReason &value)
Definition: AccessPreview.h:312
Aws::AccessAnalyzer::Model::AccessPreview
Definition: AccessPreview.h:37
Aws::AccessAnalyzer::Model::AccessPreview::WithAnalyzerArn
AccessPreview & WithAnalyzerArn(Aws::String &&value)
Definition: AccessPreview.h:78
Aws::AccessAnalyzer::Model::AccessPreview::GetConfigurations
const Aws::Map< Aws::String, Configuration > & GetConfigurations() const
Definition: AccessPreview.h:89
Aws::AccessAnalyzer::Model::AccessPreview::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AccessAnalyzer::Model::AccessPreview::WithId
AccessPreview & WithId(Aws::String &&value)
Definition: AccessPreview.h:211
Aws::AccessAnalyzer::Model::AccessPreview::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: AccessPreview.h:235
Aws::AccessAnalyzer::Model::AccessPreview::AddConfigurations
AccessPreview & AddConfigurations(const Aws::String &key, const Configuration &value)
Definition: AccessPreview.h:119
Aws::AccessAnalyzer::Model::AccessPreview::WithStatusReason
AccessPreview & WithStatusReason(AccessPreviewStatusReason &&value)
Definition: AccessPreview.h:320
Aws::AccessAnalyzer::Model::AccessPreview::GetStatusReason
const AccessPreviewStatusReason & GetStatusReason() const
Definition: AccessPreview.h:280
Aws::AccessAnalyzer::Model::AccessPreview::WithId
AccessPreview & WithId(const char *value)
Definition: AccessPreview.h:216
Aws::AccessAnalyzer::Model::AccessPreview::AddConfigurations
AccessPreview & AddConfigurations(Aws::String &&key, const Configuration &value)
Definition: AccessPreview.h:124
Aws::AccessAnalyzer::Model::AccessPreview::StatusReasonHasBeenSet
bool StatusReasonHasBeenSet() const
Definition: AccessPreview.h:288
Aws::AccessAnalyzer::Model::AccessPreview::operator=
AccessPreview & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::AccessPreview::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: AccessPreview.h:165
Aws::AccessAnalyzer::Model::AccessPreview::SetAnalyzerArn
void SetAnalyzerArn(const char *value)
Definition: AccessPreview.h:68
Aws::AccessAnalyzer::Model::AccessPreview::SetStatusReason
void SetStatusReason(const AccessPreviewStatusReason &value)
Definition: AccessPreview.h:296
Aws::AccessAnalyzer::Model::AccessPreview::WithConfigurations
AccessPreview & WithConfigurations(Aws::Map< Aws::String, Configuration > &&value)
Definition: AccessPreview.h:114
Aws::AccessAnalyzer::Model::AccessPreview::WithStatus
AccessPreview & WithStatus(AccessPreviewStatus &&value)
Definition: AccessPreview.h:271
Aws::AccessAnalyzer::Model::AccessPreview::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: AccessPreview.h:160
Aws::AccessAnalyzer::Model::AccessPreview::AddConfigurations
AccessPreview & AddConfigurations(const char *key, Configuration &&value)
Definition: AccessPreview.h:139
Configuration.h
Aws::AccessAnalyzer::Model::AccessPreview::SetConfigurations
void SetConfigurations(Aws::Map< Aws::String, Configuration > &&value)
Definition: AccessPreview.h:104
Aws::AccessAnalyzer::Model::AccessPreviewStatusReason
Definition: AccessPreviewStatusReason.h:36
Aws::AccessAnalyzer::Model::AccessPreview::SetAnalyzerArn
void SetAnalyzerArn(const Aws::String &value)
Definition: AccessPreview.h:58
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::AccessPreview::WithAnalyzerArn
AccessPreview & WithAnalyzerArn(const char *value)
Definition: AccessPreview.h:83
Aws::AccessAnalyzer::Model::AccessPreview::AddConfigurations
AccessPreview & AddConfigurations(Aws::String &&key, Configuration &&value)
Definition: AccessPreview.h:134
Aws::AccessAnalyzer::Model::AccessPreview::GetId
const Aws::String & GetId() const
Definition: AccessPreview.h:181
Aws::AccessAnalyzer::Model::Configuration
Definition: Configuration.h:38
Aws::AccessAnalyzer::Model::AccessPreview::SetId
void SetId(const char *value)
Definition: AccessPreview.h:201
Aws::AccessAnalyzer::Model::AccessPreviewStatus
AccessPreviewStatus
Definition: AccessPreviewStatus.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::AccessPreview::WithId
AccessPreview & WithId(const Aws::String &value)
Definition: AccessPreview.h:206
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::AccessPreview::SetId
void SetId(Aws::String &&value)
Definition: AccessPreview.h:196
Aws::AccessAnalyzer::Model::AccessPreview::ConfigurationsHasBeenSet
bool ConfigurationsHasBeenSet() const
Definition: AccessPreview.h:94
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::AccessPreview::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: AccessPreview.h:150
Aws::AccessAnalyzer::Model::AccessPreview::GetAnalyzerArn
const Aws::String & GetAnalyzerArn() const
Definition: AccessPreview.h:48
AccessPreviewStatusReason.h
Aws::AccessAnalyzer::Model::AccessPreview::AccessPreview
AccessPreview()
Aws::AccessAnalyzer::Model::AccessPreview::SetStatusReason
void SetStatusReason(AccessPreviewStatusReason &&value)
Definition: AccessPreview.h:304
Aws::AccessAnalyzer::Model::AccessPreview::SetConfigurations
void SetConfigurations(const Aws::Map< Aws::String, Configuration > &value)
Definition: AccessPreview.h:99
AWSMap.h
Aws::AccessAnalyzer::Model::AccessPreview::AnalyzerArnHasBeenSet
bool AnalyzerArnHasBeenSet() const
Definition: AccessPreview.h:53
Aws::AccessAnalyzer::Model::AccessPreview::GetStatus
const AccessPreviewStatus & GetStatus() const
Definition: AccessPreview.h:226
Aws::AccessAnalyzer::Model::AccessPreview::WithStatus
AccessPreview & WithStatus(const AccessPreviewStatus &value)
Definition: AccessPreview.h:262
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19