AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/CreateBackendAuthUserPoolConfig.h>
11#include <aws/amplifybackend/model/Service.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AmplifyBackend {
23namespace Model {
24
32 public:
33 AWS_AMPLIFYBACKEND_API CreateBackendAuthResourceConfig() = default;
36 AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline AuthResources GetAuthResources() const { return m_authResources; }
44 inline bool AuthResourcesHasBeenSet() const { return m_authResourcesHasBeenSet; }
45 inline void SetAuthResources(AuthResources value) {
46 m_authResourcesHasBeenSet = true;
47 m_authResources = value;
48 }
50 SetAuthResources(value);
51 return *this;
52 }
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) {
64 m_identityPoolConfigsHasBeenSet = true;
65 m_identityPoolConfigs = std::forward<IdentityPoolConfigsT>(value);
66 }
67 template <typename IdentityPoolConfigsT = CreateBackendAuthIdentityPoolConfig>
69 SetIdentityPoolConfigs(std::forward<IdentityPoolConfigsT>(value));
70 return *this;
71 }
73
75
79 inline Service GetService() const { return m_service; }
80 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
81 inline void SetService(Service value) {
82 m_serviceHasBeenSet = true;
83 m_service = value;
84 }
86 SetService(value);
87 return *this;
88 }
90
92
96 inline const CreateBackendAuthUserPoolConfig& GetUserPoolConfigs() const { return m_userPoolConfigs; }
97 inline bool UserPoolConfigsHasBeenSet() const { return m_userPoolConfigsHasBeenSet; }
98 template <typename UserPoolConfigsT = CreateBackendAuthUserPoolConfig>
99 void SetUserPoolConfigs(UserPoolConfigsT&& value) {
100 m_userPoolConfigsHasBeenSet = true;
101 m_userPoolConfigs = std::forward<UserPoolConfigsT>(value);
102 }
103 template <typename UserPoolConfigsT = CreateBackendAuthUserPoolConfig>
105 SetUserPoolConfigs(std::forward<UserPoolConfigsT>(value));
106 return *this;
107 }
109 private:
110 AuthResources m_authResources{AuthResources::NOT_SET};
111
112 CreateBackendAuthIdentityPoolConfig m_identityPoolConfigs;
113
114 Service m_service{Service::NOT_SET};
115
116 CreateBackendAuthUserPoolConfig m_userPoolConfigs;
117 bool m_authResourcesHasBeenSet = false;
118 bool m_identityPoolConfigsHasBeenSet = false;
119 bool m_serviceHasBeenSet = false;
120 bool m_userPoolConfigsHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace AmplifyBackend
125} // 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