AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateBackendAuthResourceConfig.h
1
6#pragma once
7#include <aws/amplifybackend/AmplifyBackend_EXPORTS.h>
8#include <aws/amplifybackend/model/AuthResources.h>
9#include <aws/amplifybackend/model/CreateBackendAuthIdentityPoolConfig.h>
10#include <aws/amplifybackend/model/Service.h>
11#include <aws/amplifybackend/model/CreateBackendAuthUserPoolConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AmplifyBackend
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_AMPLIFYBACKEND_API CreateBackendAuthResourceConfig() = default;
41 AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline AuthResources GetAuthResources() const { return m_authResources; }
50 inline bool AuthResourcesHasBeenSet() const { return m_authResourcesHasBeenSet; }
51 inline void SetAuthResources(AuthResources value) { m_authResourcesHasBeenSet = true; m_authResources = value; }
54
56
60 inline const CreateBackendAuthIdentityPoolConfig& GetIdentityPoolConfigs() const { return m_identityPoolConfigs; }
61 inline bool IdentityPoolConfigsHasBeenSet() const { return m_identityPoolConfigsHasBeenSet; }
62 template<typename IdentityPoolConfigsT = CreateBackendAuthIdentityPoolConfig>
63 void SetIdentityPoolConfigs(IdentityPoolConfigsT&& value) { m_identityPoolConfigsHasBeenSet = true; m_identityPoolConfigs = std::forward<IdentityPoolConfigsT>(value); }
64 template<typename IdentityPoolConfigsT = CreateBackendAuthIdentityPoolConfig>
65 CreateBackendAuthResourceConfig& WithIdentityPoolConfigs(IdentityPoolConfigsT&& value) { SetIdentityPoolConfigs(std::forward<IdentityPoolConfigsT>(value)); return *this;}
67
69
73 inline Service GetService() const { return m_service; }
74 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
75 inline void SetService(Service value) { m_serviceHasBeenSet = true; m_service = value; }
76 inline CreateBackendAuthResourceConfig& WithService(Service value) { SetService(value); return *this;}
78
80
84 inline const CreateBackendAuthUserPoolConfig& GetUserPoolConfigs() const { return m_userPoolConfigs; }
85 inline bool UserPoolConfigsHasBeenSet() const { return m_userPoolConfigsHasBeenSet; }
86 template<typename UserPoolConfigsT = CreateBackendAuthUserPoolConfig>
87 void SetUserPoolConfigs(UserPoolConfigsT&& value) { m_userPoolConfigsHasBeenSet = true; m_userPoolConfigs = std::forward<UserPoolConfigsT>(value); }
88 template<typename UserPoolConfigsT = CreateBackendAuthUserPoolConfig>
89 CreateBackendAuthResourceConfig& WithUserPoolConfigs(UserPoolConfigsT&& value) { SetUserPoolConfigs(std::forward<UserPoolConfigsT>(value)); return *this;}
91 private:
92
94 bool m_authResourcesHasBeenSet = false;
95
96 CreateBackendAuthIdentityPoolConfig m_identityPoolConfigs;
97 bool m_identityPoolConfigsHasBeenSet = false;
98
99 Service m_service{Service::NOT_SET};
100 bool m_serviceHasBeenSet = false;
101
102 CreateBackendAuthUserPoolConfig m_userPoolConfigs;
103 bool m_userPoolConfigsHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace AmplifyBackend
108} // namespace Aws
AWS_AMPLIFYBACKEND_API CreateBackendAuthResourceConfig(Aws::Utils::Json::JsonView jsonValue)
const CreateBackendAuthIdentityPoolConfig & GetIdentityPoolConfigs() const
CreateBackendAuthResourceConfig & WithIdentityPoolConfigs(IdentityPoolConfigsT &&value)
CreateBackendAuthResourceConfig & WithAuthResources(AuthResources value)
AWS_AMPLIFYBACKEND_API CreateBackendAuthResourceConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYBACKEND_API CreateBackendAuthResourceConfig()=default
CreateBackendAuthResourceConfig & WithUserPoolConfigs(UserPoolConfigsT &&value)
const CreateBackendAuthUserPoolConfig & GetUserPoolConfigs() const
AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue