AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AppAuthorization.h
1
6#pragma once
7#include <aws/appfabric/AppFabric_EXPORTS.h>
8#include <aws/appfabric/model/AppAuthorizationStatus.h>
9#include <aws/appfabric/model/AuthType.h>
10#include <aws/appfabric/model/Persona.h>
11#include <aws/appfabric/model/Tenant.h>
12#include <aws/core/utils/DateTime.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 AppFabric {
25namespace Model {
26
34 public:
35 AWS_APPFABRIC_API AppAuthorization() = default;
36 AWS_APPFABRIC_API AppAuthorization(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetAppAuthorizationArn() const { return m_appAuthorizationArn; }
45 inline bool AppAuthorizationArnHasBeenSet() const { return m_appAuthorizationArnHasBeenSet; }
46 template <typename AppAuthorizationArnT = Aws::String>
47 void SetAppAuthorizationArn(AppAuthorizationArnT&& value) {
48 m_appAuthorizationArnHasBeenSet = true;
49 m_appAuthorizationArn = std::forward<AppAuthorizationArnT>(value);
50 }
51 template <typename AppAuthorizationArnT = Aws::String>
52 AppAuthorization& WithAppAuthorizationArn(AppAuthorizationArnT&& value) {
53 SetAppAuthorizationArn(std::forward<AppAuthorizationArnT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetAppBundleArn() const { return m_appBundleArn; }
64 inline bool AppBundleArnHasBeenSet() const { return m_appBundleArnHasBeenSet; }
65 template <typename AppBundleArnT = Aws::String>
66 void SetAppBundleArn(AppBundleArnT&& value) {
67 m_appBundleArnHasBeenSet = true;
68 m_appBundleArn = std::forward<AppBundleArnT>(value);
69 }
70 template <typename AppBundleArnT = Aws::String>
71 AppAuthorization& WithAppBundleArn(AppBundleArnT&& value) {
72 SetAppBundleArn(std::forward<AppBundleArnT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetApp() const { return m_app; }
82 inline bool AppHasBeenSet() const { return m_appHasBeenSet; }
83 template <typename AppT = Aws::String>
84 void SetApp(AppT&& value) {
85 m_appHasBeenSet = true;
86 m_app = std::forward<AppT>(value);
87 }
88 template <typename AppT = Aws::String>
89 AppAuthorization& WithApp(AppT&& value) {
90 SetApp(std::forward<AppT>(value));
91 return *this;
92 }
94
96
100 inline const Tenant& GetTenant() const { return m_tenant; }
101 inline bool TenantHasBeenSet() const { return m_tenantHasBeenSet; }
102 template <typename TenantT = Tenant>
103 void SetTenant(TenantT&& value) {
104 m_tenantHasBeenSet = true;
105 m_tenant = std::forward<TenantT>(value);
106 }
107 template <typename TenantT = Tenant>
108 AppAuthorization& WithTenant(TenantT&& value) {
109 SetTenant(std::forward<TenantT>(value));
110 return *this;
111 }
113
115
118 inline AuthType GetAuthType() const { return m_authType; }
119 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
120 inline void SetAuthType(AuthType value) {
121 m_authTypeHasBeenSet = true;
122 m_authType = value;
123 }
125 SetAuthType(value);
126 return *this;
127 }
129
131
145 inline AppAuthorizationStatus GetStatus() const { return m_status; }
146 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
148 m_statusHasBeenSet = true;
149 m_status = value;
150 }
152 SetStatus(value);
153 return *this;
154 }
156
158
161 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
162 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
163 template <typename CreatedAtT = Aws::Utils::DateTime>
164 void SetCreatedAt(CreatedAtT&& value) {
165 m_createdAtHasBeenSet = true;
166 m_createdAt = std::forward<CreatedAtT>(value);
167 }
168 template <typename CreatedAtT = Aws::Utils::DateTime>
169 AppAuthorization& WithCreatedAt(CreatedAtT&& value) {
170 SetCreatedAt(std::forward<CreatedAtT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
180 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
181 template <typename UpdatedAtT = Aws::Utils::DateTime>
182 void SetUpdatedAt(UpdatedAtT&& value) {
183 m_updatedAtHasBeenSet = true;
184 m_updatedAt = std::forward<UpdatedAtT>(value);
185 }
186 template <typename UpdatedAtT = Aws::Utils::DateTime>
187 AppAuthorization& WithUpdatedAt(UpdatedAtT&& value) {
188 SetUpdatedAt(std::forward<UpdatedAtT>(value));
189 return *this;
190 }
192
194
198 inline Persona GetPersona() const { return m_persona; }
199 inline bool PersonaHasBeenSet() const { return m_personaHasBeenSet; }
200 inline void SetPersona(Persona value) {
201 m_personaHasBeenSet = true;
202 m_persona = value;
203 }
205 SetPersona(value);
206 return *this;
207 }
209
211
214 inline const Aws::String& GetAuthUrl() const { return m_authUrl; }
215 inline bool AuthUrlHasBeenSet() const { return m_authUrlHasBeenSet; }
216 template <typename AuthUrlT = Aws::String>
217 void SetAuthUrl(AuthUrlT&& value) {
218 m_authUrlHasBeenSet = true;
219 m_authUrl = std::forward<AuthUrlT>(value);
220 }
221 template <typename AuthUrlT = Aws::String>
222 AppAuthorization& WithAuthUrl(AuthUrlT&& value) {
223 SetAuthUrl(std::forward<AuthUrlT>(value));
224 return *this;
225 }
227 private:
228 Aws::String m_appAuthorizationArn;
229
230 Aws::String m_appBundleArn;
231
232 Aws::String m_app;
233
234 Tenant m_tenant;
235
236 AuthType m_authType{AuthType::NOT_SET};
237
239
240 Aws::Utils::DateTime m_createdAt{};
241
242 Aws::Utils::DateTime m_updatedAt{};
243
244 Persona m_persona{Persona::NOT_SET};
245
246 Aws::String m_authUrl;
247 bool m_appAuthorizationArnHasBeenSet = false;
248 bool m_appBundleArnHasBeenSet = false;
249 bool m_appHasBeenSet = false;
250 bool m_tenantHasBeenSet = false;
251 bool m_authTypeHasBeenSet = false;
252 bool m_statusHasBeenSet = false;
253 bool m_createdAtHasBeenSet = false;
254 bool m_updatedAtHasBeenSet = false;
255 bool m_personaHasBeenSet = false;
256 bool m_authUrlHasBeenSet = false;
257};
258
259} // namespace Model
260} // namespace AppFabric
261} // namespace Aws
void SetAppBundleArn(AppBundleArnT &&value)
AppAuthorization & WithAppBundleArn(AppBundleArnT &&value)
AppAuthorization & WithStatus(AppAuthorizationStatus value)
AppAuthorization & WithAppAuthorizationArn(AppAuthorizationArnT &&value)
AppAuthorization & WithApp(AppT &&value)
void SetStatus(AppAuthorizationStatus value)
AppAuthorizationStatus GetStatus() const
AppAuthorization & WithUpdatedAt(UpdatedAtT &&value)
AWS_APPFABRIC_API AppAuthorization()=default
AppAuthorization & WithCreatedAt(CreatedAtT &&value)
AppAuthorization & WithAuthUrl(AuthUrlT &&value)
const Aws::String & GetAppAuthorizationArn() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetAuthUrl() const
AWS_APPFABRIC_API AppAuthorization & operator=(Aws::Utils::Json::JsonView jsonValue)
AppAuthorization & WithTenant(TenantT &&value)
AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAppAuthorizationArn(AppAuthorizationArnT &&value)
AppAuthorization & WithAuthType(AuthType value)
AppAuthorization & WithPersona(Persona value)
const Aws::String & GetAppBundleArn() const
AWS_APPFABRIC_API AppAuthorization(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue