AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AccessPreview.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/accessanalyzer/model/AccessPreviewStatus.h>
12#include <aws/accessanalyzer/model/AccessPreviewStatusReason.h>
13#include <aws/accessanalyzer/model/Configuration.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace AccessAnalyzer
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_ACCESSANALYZER_API AccessPreview() = default;
40 AWS_ACCESSANALYZER_API AccessPreview(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ACCESSANALYZER_API AccessPreview& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const { return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 template<typename IdT = Aws::String>
52 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
53 template<typename IdT = Aws::String>
54 AccessPreview& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::forward<AnalyzerArnT>(value); }
65 template<typename AnalyzerArnT = Aws::String>
66 AccessPreview& WithAnalyzerArn(AnalyzerArnT&& value) { SetAnalyzerArn(std::forward<AnalyzerArnT>(value)); return *this;}
68
70
73 inline const Aws::Map<Aws::String, Configuration>& GetConfigurations() const { return m_configurations; }
74 inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
75 template<typename ConfigurationsT = Aws::Map<Aws::String, Configuration>>
76 void SetConfigurations(ConfigurationsT&& value) { m_configurationsHasBeenSet = true; m_configurations = std::forward<ConfigurationsT>(value); }
77 template<typename ConfigurationsT = Aws::Map<Aws::String, Configuration>>
78 AccessPreview& WithConfigurations(ConfigurationsT&& value) { SetConfigurations(std::forward<ConfigurationsT>(value)); return *this;}
79 template<typename ConfigurationsKeyT = Aws::String, typename ConfigurationsValueT = Configuration>
80 AccessPreview& AddConfigurations(ConfigurationsKeyT&& key, ConfigurationsValueT&& value) {
81 m_configurationsHasBeenSet = true; m_configurations.emplace(std::forward<ConfigurationsKeyT>(key), std::forward<ConfigurationsValueT>(value)); return *this;
82 }
84
86
89 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
90 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
91 template<typename CreatedAtT = Aws::Utils::DateTime>
92 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
93 template<typename CreatedAtT = Aws::Utils::DateTime>
94 AccessPreview& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
96
98
105 inline AccessPreviewStatus GetStatus() const { return m_status; }
106 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
107 inline void SetStatus(AccessPreviewStatus value) { m_statusHasBeenSet = true; m_status = value; }
108 inline AccessPreview& WithStatus(AccessPreviewStatus value) { SetStatus(value); return *this;}
110
112
118 inline const AccessPreviewStatusReason& GetStatusReason() const { return m_statusReason; }
119 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
120 template<typename StatusReasonT = AccessPreviewStatusReason>
121 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
122 template<typename StatusReasonT = AccessPreviewStatusReason>
123 AccessPreview& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
125 private:
126
127 Aws::String m_id;
128 bool m_idHasBeenSet = false;
129
130 Aws::String m_analyzerArn;
131 bool m_analyzerArnHasBeenSet = false;
132
134 bool m_configurationsHasBeenSet = false;
135
136 Aws::Utils::DateTime m_createdAt{};
137 bool m_createdAtHasBeenSet = false;
138
140 bool m_statusHasBeenSet = false;
141
142 AccessPreviewStatusReason m_statusReason;
143 bool m_statusReasonHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace AccessAnalyzer
148} // 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