AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAppAuthorizationArn(const Aws::String& value) { m_appAuthorizationArnHasBeenSet = true; m_appAuthorizationArn = value; }
53 inline void SetAppAuthorizationArn(Aws::String&& value) { m_appAuthorizationArnHasBeenSet = true; m_appAuthorizationArn = std::move(value); }
54 inline void SetAppAuthorizationArn(const char* value) { m_appAuthorizationArnHasBeenSet = true; m_appAuthorizationArn.assign(value); }
55 inline AppAuthorization& WithAppAuthorizationArn(const Aws::String& value) { SetAppAuthorizationArn(value); return *this;}
56 inline AppAuthorization& WithAppAuthorizationArn(Aws::String&& value) { SetAppAuthorizationArn(std::move(value)); return *this;}
57 inline AppAuthorization& WithAppAuthorizationArn(const char* value) { SetAppAuthorizationArn(value); return *this;}
59
61
65 inline const Aws::String& GetAppBundleArn() const{ return m_appBundleArn; }
66 inline bool AppBundleArnHasBeenSet() const { return m_appBundleArnHasBeenSet; }
67 inline void SetAppBundleArn(const Aws::String& value) { m_appBundleArnHasBeenSet = true; m_appBundleArn = value; }
68 inline void SetAppBundleArn(Aws::String&& value) { m_appBundleArnHasBeenSet = true; m_appBundleArn = std::move(value); }
69 inline void SetAppBundleArn(const char* value) { m_appBundleArnHasBeenSet = true; m_appBundleArn.assign(value); }
70 inline AppAuthorization& WithAppBundleArn(const Aws::String& value) { SetAppBundleArn(value); return *this;}
71 inline AppAuthorization& WithAppBundleArn(Aws::String&& value) { SetAppBundleArn(std::move(value)); return *this;}
72 inline AppAuthorization& WithAppBundleArn(const char* value) { SetAppBundleArn(value); return *this;}
74
76
79 inline const Aws::String& GetApp() const{ return m_app; }
80 inline bool AppHasBeenSet() const { return m_appHasBeenSet; }
81 inline void SetApp(const Aws::String& value) { m_appHasBeenSet = true; m_app = value; }
82 inline void SetApp(Aws::String&& value) { m_appHasBeenSet = true; m_app = std::move(value); }
83 inline void SetApp(const char* value) { m_appHasBeenSet = true; m_app.assign(value); }
84 inline AppAuthorization& WithApp(const Aws::String& value) { SetApp(value); return *this;}
85 inline AppAuthorization& WithApp(Aws::String&& value) { SetApp(std::move(value)); return *this;}
86 inline AppAuthorization& WithApp(const char* value) { SetApp(value); return *this;}
88
90
94 inline const Tenant& GetTenant() const{ return m_tenant; }
95 inline bool TenantHasBeenSet() const { return m_tenantHasBeenSet; }
96 inline void SetTenant(const Tenant& value) { m_tenantHasBeenSet = true; m_tenant = value; }
97 inline void SetTenant(Tenant&& value) { m_tenantHasBeenSet = true; m_tenant = std::move(value); }
98 inline AppAuthorization& WithTenant(const Tenant& value) { SetTenant(value); return *this;}
99 inline AppAuthorization& WithTenant(Tenant&& value) { SetTenant(std::move(value)); return *this;}
101
103
106 inline const AuthType& GetAuthType() const{ return m_authType; }
107 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
108 inline void SetAuthType(const AuthType& value) { m_authTypeHasBeenSet = true; m_authType = value; }
109 inline void SetAuthType(AuthType&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
110 inline AppAuthorization& WithAuthType(const AuthType& value) { SetAuthType(value); return *this;}
111 inline AppAuthorization& WithAuthType(AuthType&& value) { SetAuthType(std::move(value)); return *this;}
113
115
129 inline const AppAuthorizationStatus& GetStatus() const{ return m_status; }
130 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
131 inline void SetStatus(const AppAuthorizationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
132 inline void SetStatus(AppAuthorizationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
133 inline AppAuthorization& WithStatus(const AppAuthorizationStatus& value) { SetStatus(value); return *this;}
134 inline AppAuthorization& WithStatus(AppAuthorizationStatus&& value) { SetStatus(std::move(value)); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
142 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
143 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
144 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
145 inline AppAuthorization& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
146 inline AppAuthorization& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
148
150
153 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
154 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
155 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
156 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
157 inline AppAuthorization& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
158 inline AppAuthorization& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
160
162
166 inline const Persona& GetPersona() const{ return m_persona; }
167 inline bool PersonaHasBeenSet() const { return m_personaHasBeenSet; }
168 inline void SetPersona(const Persona& value) { m_personaHasBeenSet = true; m_persona = value; }
169 inline void SetPersona(Persona&& value) { m_personaHasBeenSet = true; m_persona = std::move(value); }
170 inline AppAuthorization& WithPersona(const Persona& value) { SetPersona(value); return *this;}
171 inline AppAuthorization& WithPersona(Persona&& value) { SetPersona(std::move(value)); return *this;}
173
175
178 inline const Aws::String& GetAuthUrl() const{ return m_authUrl; }
179 inline bool AuthUrlHasBeenSet() const { return m_authUrlHasBeenSet; }
180 inline void SetAuthUrl(const Aws::String& value) { m_authUrlHasBeenSet = true; m_authUrl = value; }
181 inline void SetAuthUrl(Aws::String&& value) { m_authUrlHasBeenSet = true; m_authUrl = std::move(value); }
182 inline void SetAuthUrl(const char* value) { m_authUrlHasBeenSet = true; m_authUrl.assign(value); }
183 inline AppAuthorization& WithAuthUrl(const Aws::String& value) { SetAuthUrl(value); return *this;}
184 inline AppAuthorization& WithAuthUrl(Aws::String&& value) { SetAuthUrl(std::move(value)); return *this;}
185 inline AppAuthorization& WithAuthUrl(const char* value) { SetAuthUrl(value); return *this;}
187 private:
188
189 Aws::String m_appAuthorizationArn;
190 bool m_appAuthorizationArnHasBeenSet = false;
191
192 Aws::String m_appBundleArn;
193 bool m_appBundleArnHasBeenSet = false;
194
195 Aws::String m_app;
196 bool m_appHasBeenSet = false;
197
198 Tenant m_tenant;
199 bool m_tenantHasBeenSet = false;
200
201 AuthType m_authType;
202 bool m_authTypeHasBeenSet = false;
203
204 AppAuthorizationStatus m_status;
205 bool m_statusHasBeenSet = false;
206
207 Aws::Utils::DateTime m_createdAt;
208 bool m_createdAtHasBeenSet = false;
209
210 Aws::Utils::DateTime m_updatedAt;
211 bool m_updatedAtHasBeenSet = false;
212
213 Persona m_persona;
214 bool m_personaHasBeenSet = false;
215
216 Aws::String m_authUrl;
217 bool m_authUrlHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace AppFabric
222} // namespace Aws
AppAuthorization & WithAuthType(AuthType &&value)
AppAuthorization & WithAppBundleArn(const char *value)
void SetAuthUrl(const Aws::String &value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetAppAuthorizationArn(Aws::String &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
AppAuthorization & WithAppBundleArn(const Aws::String &value)
AppAuthorization & WithAppAuthorizationArn(const char *value)
AppAuthorization & WithCreatedAt(Aws::Utils::DateTime &&value)
AppAuthorization & WithApp(const char *value)
AppAuthorization & WithCreatedAt(const Aws::Utils::DateTime &value)
AppAuthorization & WithPersona(const Persona &value)
AppAuthorization & WithAuthUrl(Aws::String &&value)
AppAuthorization & WithApp(Aws::String &&value)
AppAuthorization & WithAppAuthorizationArn(const Aws::String &value)
void SetAppAuthorizationArn(const Aws::String &value)
AppAuthorization & WithUpdatedAt(Aws::Utils::DateTime &&value)
AppAuthorization & WithTenant(Tenant &&value)
const Aws::String & GetAppAuthorizationArn() const
void SetStatus(const AppAuthorizationStatus &value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AppAuthorization & WithUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetAuthUrl() const
AWS_APPFABRIC_API AppAuthorization & operator=(Aws::Utils::Json::JsonView jsonValue)
AppAuthorization & WithAppBundleArn(Aws::String &&value)
AppAuthorization & WithAppAuthorizationArn(Aws::String &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetAppAuthorizationArn(const char *value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
AppAuthorization & WithApp(const Aws::String &value)
AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAppBundleArn(Aws::String &&value)
void SetStatus(AppAuthorizationStatus &&value)
const AppAuthorizationStatus & GetStatus() const
AppAuthorization & WithPersona(Persona &&value)
void SetAppBundleArn(const Aws::String &value)
void SetApp(const Aws::String &value)
AppAuthorization & WithAuthType(const AuthType &value)
AppAuthorization & WithAuthUrl(const Aws::String &value)
AppAuthorization & WithStatus(const AppAuthorizationStatus &value)
AppAuthorization & WithTenant(const Tenant &value)
const Aws::String & GetAppBundleArn() const
AWS_APPFABRIC_API AppAuthorization(Aws::Utils::Json::JsonView jsonValue)
void SetAuthType(const AuthType &value)
AppAuthorization & WithStatus(AppAuthorizationStatus &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AppAuthorization & WithAuthUrl(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue