AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AccessPreview.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/AccessPreviewStatus.h>
9#include <aws/accessanalyzer/model/AccessPreviewStatusReason.h>
10#include <aws/accessanalyzer/model/Configuration.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AccessAnalyzer {
25namespace Model {
26
33 public:
34 AWS_ACCESSANALYZER_API AccessPreview() = default;
35 AWS_ACCESSANALYZER_API AccessPreview(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ACCESSANALYZER_API AccessPreview& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 AccessPreview& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetAnalyzerArn() const { return m_analyzerArn; }
62 inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
63 template <typename AnalyzerArnT = Aws::String>
64 void SetAnalyzerArn(AnalyzerArnT&& value) {
65 m_analyzerArnHasBeenSet = true;
66 m_analyzerArn = std::forward<AnalyzerArnT>(value);
67 }
68 template <typename AnalyzerArnT = Aws::String>
69 AccessPreview& WithAnalyzerArn(AnalyzerArnT&& value) {
70 SetAnalyzerArn(std::forward<AnalyzerArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Map<Aws::String, Configuration>& GetConfigurations() const { return m_configurations; }
80 inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
81 template <typename ConfigurationsT = Aws::Map<Aws::String, Configuration>>
82 void SetConfigurations(ConfigurationsT&& value) {
83 m_configurationsHasBeenSet = true;
84 m_configurations = std::forward<ConfigurationsT>(value);
85 }
86 template <typename ConfigurationsT = Aws::Map<Aws::String, Configuration>>
87 AccessPreview& WithConfigurations(ConfigurationsT&& value) {
88 SetConfigurations(std::forward<ConfigurationsT>(value));
89 return *this;
90 }
91 template <typename ConfigurationsKeyT = Aws::String, typename ConfigurationsValueT = Configuration>
92 AccessPreview& AddConfigurations(ConfigurationsKeyT&& key, ConfigurationsValueT&& value) {
93 m_configurationsHasBeenSet = true;
94 m_configurations.emplace(std::forward<ConfigurationsKeyT>(key), std::forward<ConfigurationsValueT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
104 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
105 template <typename CreatedAtT = Aws::Utils::DateTime>
106 void SetCreatedAt(CreatedAtT&& value) {
107 m_createdAtHasBeenSet = true;
108 m_createdAt = std::forward<CreatedAtT>(value);
109 }
110 template <typename CreatedAtT = Aws::Utils::DateTime>
111 AccessPreview& WithCreatedAt(CreatedAtT&& value) {
112 SetCreatedAt(std::forward<CreatedAtT>(value));
113 return *this;
114 }
116
118
125 inline AccessPreviewStatus GetStatus() const { return m_status; }
126 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
127 inline void SetStatus(AccessPreviewStatus value) {
128 m_statusHasBeenSet = true;
129 m_status = value;
130 }
132 SetStatus(value);
133 return *this;
134 }
136
138
144 inline const AccessPreviewStatusReason& GetStatusReason() const { return m_statusReason; }
145 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
146 template <typename StatusReasonT = AccessPreviewStatusReason>
147 void SetStatusReason(StatusReasonT&& value) {
148 m_statusReasonHasBeenSet = true;
149 m_statusReason = std::forward<StatusReasonT>(value);
150 }
151 template <typename StatusReasonT = AccessPreviewStatusReason>
152 AccessPreview& WithStatusReason(StatusReasonT&& value) {
153 SetStatusReason(std::forward<StatusReasonT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_id;
159
160 Aws::String m_analyzerArn;
161
163
164 Aws::Utils::DateTime m_createdAt{};
165
167
168 AccessPreviewStatusReason m_statusReason;
169 bool m_idHasBeenSet = false;
170 bool m_analyzerArnHasBeenSet = false;
171 bool m_configurationsHasBeenSet = false;
172 bool m_createdAtHasBeenSet = false;
173 bool m_statusHasBeenSet = false;
174 bool m_statusReasonHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace AccessAnalyzer
179} // namespace Aws
void SetConfigurations(ConfigurationsT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AccessPreviewStatus GetStatus() const
AWS_ACCESSANALYZER_API AccessPreview()=default
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
AccessPreview & WithConfigurations(ConfigurationsT &&value)
const AccessPreviewStatusReason & GetStatusReason() const
AccessPreview & WithStatus(AccessPreviewStatus value)
const Aws::Map< Aws::String, Configuration > & GetConfigurations() const
void SetStatusReason(StatusReasonT &&value)
const Aws::String & GetAnalyzerArn() const
AWS_ACCESSANALYZER_API AccessPreview(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API AccessPreview & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
AccessPreview & WithStatusReason(StatusReasonT &&value)
void SetAnalyzerArn(AnalyzerArnT &&value)
AccessPreview & WithCreatedAt(CreatedAtT &&value)
void SetStatus(AccessPreviewStatus value)
AccessPreview & AddConfigurations(ConfigurationsKeyT &&key, ConfigurationsValueT &&value)
AccessPreview & WithAnalyzerArn(AnalyzerArnT &&value)
AccessPreview & WithId(IdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue