AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateBackendAuthUserPoolConfig.h
1
6#pragma once
7#include <aws/amplifybackend/AmplifyBackend_EXPORTS.h>
8#include <aws/amplifybackend/model/CreateBackendAuthForgotPasswordConfig.h>
9#include <aws/amplifybackend/model/CreateBackendAuthMFAConfig.h>
10#include <aws/amplifybackend/model/CreateBackendAuthOAuthConfig.h>
11#include <aws/amplifybackend/model/CreateBackendAuthPasswordPolicyConfig.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/amplifybackend/model/SignInMethod.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/amplifybackend/model/CreateBackendAuthVerificationMessageConfig.h>
16#include <aws/amplifybackend/model/RequiredSignUpAttributesElement.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace AmplifyBackend
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_AMPLIFYBACKEND_API CreateBackendAuthUserPoolConfig();
46 AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
54 inline const CreateBackendAuthForgotPasswordConfig& GetForgotPassword() const{ return m_forgotPassword; }
55 inline bool ForgotPasswordHasBeenSet() const { return m_forgotPasswordHasBeenSet; }
56 inline void SetForgotPassword(const CreateBackendAuthForgotPasswordConfig& value) { m_forgotPasswordHasBeenSet = true; m_forgotPassword = value; }
57 inline void SetForgotPassword(CreateBackendAuthForgotPasswordConfig&& value) { m_forgotPasswordHasBeenSet = true; m_forgotPassword = std::move(value); }
61
63
67 inline const CreateBackendAuthMFAConfig& GetMfa() const{ return m_mfa; }
68 inline bool MfaHasBeenSet() const { return m_mfaHasBeenSet; }
69 inline void SetMfa(const CreateBackendAuthMFAConfig& value) { m_mfaHasBeenSet = true; m_mfa = value; }
70 inline void SetMfa(CreateBackendAuthMFAConfig&& value) { m_mfaHasBeenSet = true; m_mfa = std::move(value); }
71 inline CreateBackendAuthUserPoolConfig& WithMfa(const CreateBackendAuthMFAConfig& value) { SetMfa(value); return *this;}
72 inline CreateBackendAuthUserPoolConfig& WithMfa(CreateBackendAuthMFAConfig&& value) { SetMfa(std::move(value)); return *this;}
74
76
80 inline const CreateBackendAuthOAuthConfig& GetOAuth() const{ return m_oAuth; }
81 inline bool OAuthHasBeenSet() const { return m_oAuthHasBeenSet; }
82 inline void SetOAuth(const CreateBackendAuthOAuthConfig& value) { m_oAuthHasBeenSet = true; m_oAuth = value; }
83 inline void SetOAuth(CreateBackendAuthOAuthConfig&& value) { m_oAuthHasBeenSet = true; m_oAuth = std::move(value); }
85 inline CreateBackendAuthUserPoolConfig& WithOAuth(CreateBackendAuthOAuthConfig&& value) { SetOAuth(std::move(value)); return *this;}
87
89
93 inline const CreateBackendAuthPasswordPolicyConfig& GetPasswordPolicy() const{ return m_passwordPolicy; }
94 inline bool PasswordPolicyHasBeenSet() const { return m_passwordPolicyHasBeenSet; }
95 inline void SetPasswordPolicy(const CreateBackendAuthPasswordPolicyConfig& value) { m_passwordPolicyHasBeenSet = true; m_passwordPolicy = value; }
96 inline void SetPasswordPolicy(CreateBackendAuthPasswordPolicyConfig&& value) { m_passwordPolicyHasBeenSet = true; m_passwordPolicy = std::move(value); }
100
102
105 inline const Aws::Vector<RequiredSignUpAttributesElement>& GetRequiredSignUpAttributes() const{ return m_requiredSignUpAttributes; }
106 inline bool RequiredSignUpAttributesHasBeenSet() const { return m_requiredSignUpAttributesHasBeenSet; }
107 inline void SetRequiredSignUpAttributes(const Aws::Vector<RequiredSignUpAttributesElement>& value) { m_requiredSignUpAttributesHasBeenSet = true; m_requiredSignUpAttributes = value; }
108 inline void SetRequiredSignUpAttributes(Aws::Vector<RequiredSignUpAttributesElement>&& value) { m_requiredSignUpAttributesHasBeenSet = true; m_requiredSignUpAttributes = std::move(value); }
111 inline CreateBackendAuthUserPoolConfig& AddRequiredSignUpAttributes(const RequiredSignUpAttributesElement& value) { m_requiredSignUpAttributesHasBeenSet = true; m_requiredSignUpAttributes.push_back(value); return *this; }
112 inline CreateBackendAuthUserPoolConfig& AddRequiredSignUpAttributes(RequiredSignUpAttributesElement&& value) { m_requiredSignUpAttributesHasBeenSet = true; m_requiredSignUpAttributes.push_back(std::move(value)); return *this; }
114
116
120 inline const SignInMethod& GetSignInMethod() const{ return m_signInMethod; }
121 inline bool SignInMethodHasBeenSet() const { return m_signInMethodHasBeenSet; }
122 inline void SetSignInMethod(const SignInMethod& value) { m_signInMethodHasBeenSet = true; m_signInMethod = value; }
123 inline void SetSignInMethod(SignInMethod&& value) { m_signInMethodHasBeenSet = true; m_signInMethod = std::move(value); }
125 inline CreateBackendAuthUserPoolConfig& WithSignInMethod(SignInMethod&& value) { SetSignInMethod(std::move(value)); return *this;}
127
129
132 inline const Aws::String& GetUserPoolName() const{ return m_userPoolName; }
133 inline bool UserPoolNameHasBeenSet() const { return m_userPoolNameHasBeenSet; }
134 inline void SetUserPoolName(const Aws::String& value) { m_userPoolNameHasBeenSet = true; m_userPoolName = value; }
135 inline void SetUserPoolName(Aws::String&& value) { m_userPoolNameHasBeenSet = true; m_userPoolName = std::move(value); }
136 inline void SetUserPoolName(const char* value) { m_userPoolNameHasBeenSet = true; m_userPoolName.assign(value); }
138 inline CreateBackendAuthUserPoolConfig& WithUserPoolName(Aws::String&& value) { SetUserPoolName(std::move(value)); return *this;}
139 inline CreateBackendAuthUserPoolConfig& WithUserPoolName(const char* value) { SetUserPoolName(value); return *this;}
141
143
147 inline const CreateBackendAuthVerificationMessageConfig& GetVerificationMessage() const{ return m_verificationMessage; }
148 inline bool VerificationMessageHasBeenSet() const { return m_verificationMessageHasBeenSet; }
149 inline void SetVerificationMessage(const CreateBackendAuthVerificationMessageConfig& value) { m_verificationMessageHasBeenSet = true; m_verificationMessage = value; }
150 inline void SetVerificationMessage(CreateBackendAuthVerificationMessageConfig&& value) { m_verificationMessageHasBeenSet = true; m_verificationMessage = std::move(value); }
154 private:
155
157 bool m_forgotPasswordHasBeenSet = false;
158
160 bool m_mfaHasBeenSet = false;
161
163 bool m_oAuthHasBeenSet = false;
164
166 bool m_passwordPolicyHasBeenSet = false;
167
168 Aws::Vector<RequiredSignUpAttributesElement> m_requiredSignUpAttributes;
169 bool m_requiredSignUpAttributesHasBeenSet = false;
170
171 SignInMethod m_signInMethod;
172 bool m_signInMethodHasBeenSet = false;
173
174 Aws::String m_userPoolName;
175 bool m_userPoolNameHasBeenSet = false;
176
177 CreateBackendAuthVerificationMessageConfig m_verificationMessage;
178 bool m_verificationMessageHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace AmplifyBackend
183} // namespace Aws
const CreateBackendAuthVerificationMessageConfig & GetVerificationMessage() const
void SetPasswordPolicy(CreateBackendAuthPasswordPolicyConfig &&value)
void SetPasswordPolicy(const CreateBackendAuthPasswordPolicyConfig &value)
CreateBackendAuthUserPoolConfig & WithRequiredSignUpAttributes(Aws::Vector< RequiredSignUpAttributesElement > &&value)
CreateBackendAuthUserPoolConfig & WithSignInMethod(SignInMethod &&value)
CreateBackendAuthUserPoolConfig & WithOAuth(CreateBackendAuthOAuthConfig &&value)
void SetForgotPassword(const CreateBackendAuthForgotPasswordConfig &value)
CreateBackendAuthUserPoolConfig & WithForgotPassword(CreateBackendAuthForgotPasswordConfig &&value)
void SetVerificationMessage(const CreateBackendAuthVerificationMessageConfig &value)
void SetRequiredSignUpAttributes(Aws::Vector< RequiredSignUpAttributesElement > &&value)
CreateBackendAuthUserPoolConfig & WithPasswordPolicy(const CreateBackendAuthPasswordPolicyConfig &value)
void SetForgotPassword(CreateBackendAuthForgotPasswordConfig &&value)
const CreateBackendAuthForgotPasswordConfig & GetForgotPassword() const
AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVerificationMessage(CreateBackendAuthVerificationMessageConfig &&value)
CreateBackendAuthUserPoolConfig & WithUserPoolName(Aws::String &&value)
CreateBackendAuthUserPoolConfig & WithForgotPassword(const CreateBackendAuthForgotPasswordConfig &value)
AWS_AMPLIFYBACKEND_API CreateBackendAuthUserPoolConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
CreateBackendAuthUserPoolConfig & WithVerificationMessage(CreateBackendAuthVerificationMessageConfig &&value)
CreateBackendAuthUserPoolConfig & WithUserPoolName(const char *value)
CreateBackendAuthUserPoolConfig & WithPasswordPolicy(CreateBackendAuthPasswordPolicyConfig &&value)
CreateBackendAuthUserPoolConfig & WithMfa(CreateBackendAuthMFAConfig &&value)
CreateBackendAuthUserPoolConfig & WithMfa(const CreateBackendAuthMFAConfig &value)
const CreateBackendAuthPasswordPolicyConfig & GetPasswordPolicy() const
CreateBackendAuthUserPoolConfig & WithUserPoolName(const Aws::String &value)
CreateBackendAuthUserPoolConfig & WithOAuth(const CreateBackendAuthOAuthConfig &value)
CreateBackendAuthUserPoolConfig & AddRequiredSignUpAttributes(RequiredSignUpAttributesElement &&value)
CreateBackendAuthUserPoolConfig & WithSignInMethod(const SignInMethod &value)
void SetRequiredSignUpAttributes(const Aws::Vector< RequiredSignUpAttributesElement > &value)
CreateBackendAuthUserPoolConfig & AddRequiredSignUpAttributes(const RequiredSignUpAttributesElement &value)
AWS_AMPLIFYBACKEND_API CreateBackendAuthUserPoolConfig(Aws::Utils::Json::JsonView jsonValue)
CreateBackendAuthUserPoolConfig & WithRequiredSignUpAttributes(const Aws::Vector< RequiredSignUpAttributesElement > &value)
const Aws::Vector< RequiredSignUpAttributesElement > & GetRequiredSignUpAttributes() const
CreateBackendAuthUserPoolConfig & WithVerificationMessage(const CreateBackendAuthVerificationMessageConfig &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue