AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AppAuthorization.h
1
6#pragma once
7#include <aws/appfabric/AppFabric_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appfabric/model/Tenant.h>
10#include <aws/appfabric/model/AuthType.h>
11#include <aws/appfabric/model/AppAuthorizationStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/appfabric/model/Persona.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 AppFabric
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_APPFABRIC_API AppAuthorization() = default;
41 AWS_APPFABRIC_API AppAuthorization(Aws::Utils::Json::JsonView jsonValue);
43 AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetAppAuthorizationArn() const { return m_appAuthorizationArn; }
51 inline bool AppAuthorizationArnHasBeenSet() const { return m_appAuthorizationArnHasBeenSet; }
52 template<typename AppAuthorizationArnT = Aws::String>
53 void SetAppAuthorizationArn(AppAuthorizationArnT&& value) { m_appAuthorizationArnHasBeenSet = true; m_appAuthorizationArn = std::forward<AppAuthorizationArnT>(value); }
54 template<typename AppAuthorizationArnT = Aws::String>
55 AppAuthorization& WithAppAuthorizationArn(AppAuthorizationArnT&& value) { SetAppAuthorizationArn(std::forward<AppAuthorizationArnT>(value)); return *this;}
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) { m_appBundleArnHasBeenSet = true; m_appBundleArn = std::forward<AppBundleArnT>(value); }
67 template<typename AppBundleArnT = Aws::String>
68 AppAuthorization& WithAppBundleArn(AppBundleArnT&& value) { SetAppBundleArn(std::forward<AppBundleArnT>(value)); return *this;}
70
72
75 inline const Aws::String& GetApp() const { return m_app; }
76 inline bool AppHasBeenSet() const { return m_appHasBeenSet; }
77 template<typename AppT = Aws::String>
78 void SetApp(AppT&& value) { m_appHasBeenSet = true; m_app = std::forward<AppT>(value); }
79 template<typename AppT = Aws::String>
80 AppAuthorization& WithApp(AppT&& value) { SetApp(std::forward<AppT>(value)); return *this;}
82
84
88 inline const Tenant& GetTenant() const { return m_tenant; }
89 inline bool TenantHasBeenSet() const { return m_tenantHasBeenSet; }
90 template<typename TenantT = Tenant>
91 void SetTenant(TenantT&& value) { m_tenantHasBeenSet = true; m_tenant = std::forward<TenantT>(value); }
92 template<typename TenantT = Tenant>
93 AppAuthorization& WithTenant(TenantT&& value) { SetTenant(std::forward<TenantT>(value)); return *this;}
95
97
100 inline AuthType GetAuthType() const { return m_authType; }
101 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
102 inline void SetAuthType(AuthType value) { m_authTypeHasBeenSet = true; m_authType = value; }
103 inline AppAuthorization& WithAuthType(AuthType value) { SetAuthType(value); return *this;}
105
107
121 inline AppAuthorizationStatus GetStatus() const { return m_status; }
122 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
123 inline void SetStatus(AppAuthorizationStatus value) { m_statusHasBeenSet = true; m_status = value; }
124 inline AppAuthorization& WithStatus(AppAuthorizationStatus value) { SetStatus(value); return *this;}
126
128
131 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
132 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
133 template<typename CreatedAtT = Aws::Utils::DateTime>
134 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
135 template<typename CreatedAtT = Aws::Utils::DateTime>
136 AppAuthorization& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
138
140
143 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
144 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
145 template<typename UpdatedAtT = Aws::Utils::DateTime>
146 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
147 template<typename UpdatedAtT = Aws::Utils::DateTime>
148 AppAuthorization& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
150
152
156 inline Persona GetPersona() const { return m_persona; }
157 inline bool PersonaHasBeenSet() const { return m_personaHasBeenSet; }
158 inline void SetPersona(Persona value) { m_personaHasBeenSet = true; m_persona = value; }
159 inline AppAuthorization& WithPersona(Persona value) { SetPersona(value); return *this;}
161
163
166 inline const Aws::String& GetAuthUrl() const { return m_authUrl; }
167 inline bool AuthUrlHasBeenSet() const { return m_authUrlHasBeenSet; }
168 template<typename AuthUrlT = Aws::String>
169 void SetAuthUrl(AuthUrlT&& value) { m_authUrlHasBeenSet = true; m_authUrl = std::forward<AuthUrlT>(value); }
170 template<typename AuthUrlT = Aws::String>
171 AppAuthorization& WithAuthUrl(AuthUrlT&& value) { SetAuthUrl(std::forward<AuthUrlT>(value)); return *this;}
173 private:
174
175 Aws::String m_appAuthorizationArn;
176 bool m_appAuthorizationArnHasBeenSet = false;
177
178 Aws::String m_appBundleArn;
179 bool m_appBundleArnHasBeenSet = false;
180
181 Aws::String m_app;
182 bool m_appHasBeenSet = false;
183
184 Tenant m_tenant;
185 bool m_tenantHasBeenSet = false;
186
187 AuthType m_authType{AuthType::NOT_SET};
188 bool m_authTypeHasBeenSet = false;
189
191 bool m_statusHasBeenSet = false;
192
193 Aws::Utils::DateTime m_createdAt{};
194 bool m_createdAtHasBeenSet = false;
195
196 Aws::Utils::DateTime m_updatedAt{};
197 bool m_updatedAtHasBeenSet = false;
198
199 Persona m_persona{Persona::NOT_SET};
200 bool m_personaHasBeenSet = false;
201
202 Aws::String m_authUrl;
203 bool m_authUrlHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace AppFabric
208} // 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