AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline AccessPreview& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline AccessPreview& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline AccessPreview& WithId(const char* value) { SetId(value); return *this;}
58
60
63 inline const Aws::String& GetAnalyzerArn() const{ return m_analyzerArn; }
64 inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
65 inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; }
66 inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); }
67 inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); }
68 inline AccessPreview& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;}
69 inline AccessPreview& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;}
70 inline AccessPreview& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;}
72
74
77 inline const Aws::Map<Aws::String, Configuration>& GetConfigurations() const{ return m_configurations; }
78 inline bool ConfigurationsHasBeenSet() const { return m_configurationsHasBeenSet; }
79 inline void SetConfigurations(const Aws::Map<Aws::String, Configuration>& value) { m_configurationsHasBeenSet = true; m_configurations = value; }
80 inline void SetConfigurations(Aws::Map<Aws::String, Configuration>&& value) { m_configurationsHasBeenSet = true; m_configurations = std::move(value); }
83 inline AccessPreview& AddConfigurations(const Aws::String& key, const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, value); return *this; }
84 inline AccessPreview& AddConfigurations(Aws::String&& key, const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(std::move(key), value); return *this; }
85 inline AccessPreview& AddConfigurations(const Aws::String& key, Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, std::move(value)); return *this; }
86 inline AccessPreview& AddConfigurations(Aws::String&& key, Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(std::move(key), std::move(value)); return *this; }
87 inline AccessPreview& AddConfigurations(const char* key, Configuration&& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, std::move(value)); return *this; }
88 inline AccessPreview& AddConfigurations(const char* key, const Configuration& value) { m_configurationsHasBeenSet = true; m_configurations.emplace(key, value); return *this; }
90
92
95 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
96 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
97 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
98 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
99 inline AccessPreview& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
100 inline AccessPreview& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
102
104
111 inline const AccessPreviewStatus& GetStatus() const{ return m_status; }
112 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
113 inline void SetStatus(const AccessPreviewStatus& value) { m_statusHasBeenSet = true; m_status = value; }
114 inline void SetStatus(AccessPreviewStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
115 inline AccessPreview& WithStatus(const AccessPreviewStatus& value) { SetStatus(value); return *this;}
116 inline AccessPreview& WithStatus(AccessPreviewStatus&& value) { SetStatus(std::move(value)); return *this;}
118
120
126 inline const AccessPreviewStatusReason& GetStatusReason() const{ return m_statusReason; }
127 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
128 inline void SetStatusReason(const AccessPreviewStatusReason& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
129 inline void SetStatusReason(AccessPreviewStatusReason&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
130 inline AccessPreview& WithStatusReason(const AccessPreviewStatusReason& value) { SetStatusReason(value); return *this;}
131 inline AccessPreview& WithStatusReason(AccessPreviewStatusReason&& value) { SetStatusReason(std::move(value)); return *this;}
133 private:
134
135 Aws::String m_id;
136 bool m_idHasBeenSet = false;
137
138 Aws::String m_analyzerArn;
139 bool m_analyzerArnHasBeenSet = false;
140
142 bool m_configurationsHasBeenSet = false;
143
144 Aws::Utils::DateTime m_createdAt;
145 bool m_createdAtHasBeenSet = false;
146
147 AccessPreviewStatus m_status;
148 bool m_statusHasBeenSet = false;
149
150 AccessPreviewStatusReason m_statusReason;
151 bool m_statusReasonHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace AccessAnalyzer
156} // namespace Aws
void SetCreatedAt(const Aws::Utils::DateTime &value)
AWS_ACCESSANALYZER_API AccessPreview()
void SetId(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
AccessPreview & WithStatusReason(const AccessPreviewStatusReason &value)
AccessPreview & WithId(const Aws::String &value)
AccessPreview & WithId(const char *value)
void SetStatus(const AccessPreviewStatus &value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
AccessPreview & AddConfigurations(const Aws::String &key, Configuration &&value)
const AccessPreviewStatusReason & GetStatusReason() const
void SetConfigurations(Aws::Map< Aws::String, Configuration > &&value)
AccessPreview & WithStatus(AccessPreviewStatus &&value)
const Aws::Map< Aws::String, Configuration > & GetConfigurations() const
AccessPreview & WithConfigurations(const Aws::Map< Aws::String, Configuration > &value)
AccessPreview & WithAnalyzerArn(const char *value)
void SetStatus(AccessPreviewStatus &&value)
AccessPreview & WithConfigurations(Aws::Map< Aws::String, Configuration > &&value)
const Aws::String & GetAnalyzerArn() const
AWS_ACCESSANALYZER_API AccessPreview(Aws::Utils::Json::JsonView jsonValue)
void SetStatusReason(AccessPreviewStatusReason &&value)
const AccessPreviewStatus & GetStatus() const
AccessPreview & AddConfigurations(Aws::String &&key, Configuration &&value)
AccessPreview & WithStatusReason(AccessPreviewStatusReason &&value)
AWS_ACCESSANALYZER_API AccessPreview & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
void SetAnalyzerArn(const Aws::String &value)
AccessPreview & WithId(Aws::String &&value)
AccessPreview & AddConfigurations(const char *key, Configuration &&value)
AccessPreview & AddConfigurations(const char *key, const Configuration &value)
void SetStatusReason(const AccessPreviewStatusReason &value)
AccessPreview & WithAnalyzerArn(Aws::String &&value)
AccessPreview & WithAnalyzerArn(const Aws::String &value)
void SetAnalyzerArn(Aws::String &&value)
AccessPreview & WithCreatedAt(const Aws::Utils::DateTime &value)
AccessPreview & WithStatus(const AccessPreviewStatus &value)
AccessPreview & AddConfigurations(Aws::String &&key, const Configuration &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
AccessPreview & AddConfigurations(const Aws::String &key, const Configuration &value)
AccessPreview & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetConfigurations(const Aws::Map< Aws::String, Configuration > &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