AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
GetAccessControlResult.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/AccessControlRule.h>
9#include <aws/amplifygen3/model/AccessControlScope.h>
10#include <aws/amplifygen3/model/AccessControlStatus.h>
11#include <aws/amplifygen3/model/ProviderType.h>
12#include <aws/core/http/HttpResponse.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace AmplifyGen3 {
28namespace Model {
30 public:
31 AWS_AMPLIFYGEN3_API GetAccessControlResult() = default;
34
36
39 inline const Aws::String& GetAppName() const { return m_appName; }
40 template <typename AppNameT = Aws::String>
41 void SetAppName(AppNameT&& value) {
42 m_appNameHasBeenSet = true;
43 m_appName = std::forward<AppNameT>(value);
44 }
45 template <typename AppNameT = Aws::String>
47 SetAppName(std::forward<AppNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
57 template <typename EnvironmentNameT = Aws::String>
58 void SetEnvironmentName(EnvironmentNameT&& value) {
59 m_environmentNameHasBeenSet = true;
60 m_environmentName = std::forward<EnvironmentNameT>(value);
61 }
62 template <typename EnvironmentNameT = Aws::String>
63 GetAccessControlResult& WithEnvironmentName(EnvironmentNameT&& value) {
64 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
65 return *this;
66 }
68
70
73 inline ProviderType GetProviderType() const { return m_providerType; }
74 inline void SetProviderType(ProviderType value) {
75 m_providerTypeHasBeenSet = true;
76 m_providerType = value;
77 }
79 SetProviderType(value);
80 return *this;
81 }
83
85
88 inline AccessControlScope GetScope() const { return m_scope; }
89 inline void SetScope(AccessControlScope value) {
90 m_scopeHasBeenSet = true;
91 m_scope = value;
92 }
94 SetScope(value);
95 return *this;
96 }
98
100
103 inline const AccessControlRule& GetRule() const { return m_rule; }
104 template <typename RuleT = AccessControlRule>
105 void SetRule(RuleT&& value) {
106 m_ruleHasBeenSet = true;
107 m_rule = std::forward<RuleT>(value);
108 }
109 template <typename RuleT = AccessControlRule>
111 SetRule(std::forward<RuleT>(value));
112 return *this;
113 }
115
117
120 inline AccessControlStatus GetStatus() const { return m_status; }
121 inline void SetStatus(AccessControlStatus value) {
122 m_statusHasBeenSet = true;
123 m_status = value;
124 }
126 SetStatus(value);
127 return *this;
128 }
130
132
135 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
136 template <typename StatusReasonT = Aws::String>
137 void SetStatusReason(StatusReasonT&& value) {
138 m_statusReasonHasBeenSet = true;
139 m_statusReason = std::forward<StatusReasonT>(value);
140 }
141 template <typename StatusReasonT = Aws::String>
142 GetAccessControlResult& WithStatusReason(StatusReasonT&& value) {
143 SetStatusReason(std::forward<StatusReasonT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Utils::DateTime& GetEnabledAt() const { return m_enabledAt; }
153 template <typename EnabledAtT = Aws::Utils::DateTime>
154 void SetEnabledAt(EnabledAtT&& value) {
155 m_enabledAtHasBeenSet = true;
156 m_enabledAt = std::forward<EnabledAtT>(value);
157 }
158 template <typename EnabledAtT = Aws::Utils::DateTime>
160 SetEnabledAt(std::forward<EnabledAtT>(value));
161 return *this;
162 }
164
166
170 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
171 template <typename UpdatedAtT = Aws::Utils::DateTime>
172 void SetUpdatedAt(UpdatedAtT&& value) {
173 m_updatedAtHasBeenSet = true;
174 m_updatedAt = std::forward<UpdatedAtT>(value);
175 }
176 template <typename UpdatedAtT = Aws::Utils::DateTime>
178 SetUpdatedAt(std::forward<UpdatedAtT>(value));
179 return *this;
180 }
182
184
185 inline const Aws::String& GetRequestId() const { return m_requestId; }
186 template <typename RequestIdT = Aws::String>
187 void SetRequestId(RequestIdT&& value) {
188 m_requestIdHasBeenSet = true;
189 m_requestId = std::forward<RequestIdT>(value);
190 }
191 template <typename RequestIdT = Aws::String>
193 SetRequestId(std::forward<RequestIdT>(value));
194 return *this;
195 }
197 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
198
199 private:
200 Aws::String m_appName;
201
202 Aws::String m_environmentName;
203
204 ProviderType m_providerType{ProviderType::NOT_SET};
205
207
208 AccessControlRule m_rule;
209
211
212 Aws::String m_statusReason;
213
214 Aws::Utils::DateTime m_enabledAt{};
215
216 Aws::Utils::DateTime m_updatedAt{};
217
218 Aws::String m_requestId;
219 Aws::Http::HttpResponseCode m_HttpResponseCode;
220 bool m_appNameHasBeenSet = false;
221 bool m_environmentNameHasBeenSet = false;
222 bool m_providerTypeHasBeenSet = false;
223 bool m_scopeHasBeenSet = false;
224 bool m_ruleHasBeenSet = false;
225 bool m_statusHasBeenSet = false;
226 bool m_statusReasonHasBeenSet = false;
227 bool m_enabledAtHasBeenSet = false;
228 bool m_updatedAtHasBeenSet = false;
229 bool m_requestIdHasBeenSet = false;
230};
231
232} // namespace Model
233} // namespace AmplifyGen3
234} // namespace Aws
AWS_AMPLIFYGEN3_API GetAccessControlResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAccessControlResult & WithStatus(AccessControlStatus value)
AWS_AMPLIFYGEN3_API GetAccessControlResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAccessControlResult & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetEnabledAt() const
GetAccessControlResult & WithAppName(AppNameT &&value)
GetAccessControlResult & WithEnabledAt(EnabledAtT &&value)
GetAccessControlResult & WithScope(AccessControlScope value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetAccessControlResult & WithStatusReason(StatusReasonT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetAccessControlResult & WithRule(RuleT &&value)
GetAccessControlResult & WithEnvironmentName(EnvironmentNameT &&value)
AWS_AMPLIFYGEN3_API GetAccessControlResult()=default
GetAccessControlResult & WithProviderType(ProviderType value)
GetAccessControlResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue