AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateBackendAuthUserPoolConfig.h
1
6#pragma once
7#include <aws/amplifybackend/AmplifyBackend_EXPORTS.h>
8#include <aws/amplifybackend/model/UpdateBackendAuthForgotPasswordConfig.h>
9#include <aws/amplifybackend/model/UpdateBackendAuthMFAConfig.h>
10#include <aws/amplifybackend/model/UpdateBackendAuthOAuthConfig.h>
11#include <aws/amplifybackend/model/UpdateBackendAuthPasswordPolicyConfig.h>
12#include <aws/amplifybackend/model/UpdateBackendAuthVerificationMessageConfig.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace AmplifyBackend
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_AMPLIFYBACKEND_API UpdateBackendAuthUserPoolConfig() = default;
43 AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const UpdateBackendAuthForgotPasswordConfig& GetForgotPassword() const { return m_forgotPassword; }
52 inline bool ForgotPasswordHasBeenSet() const { return m_forgotPasswordHasBeenSet; }
53 template<typename ForgotPasswordT = UpdateBackendAuthForgotPasswordConfig>
54 void SetForgotPassword(ForgotPasswordT&& value) { m_forgotPasswordHasBeenSet = true; m_forgotPassword = std::forward<ForgotPasswordT>(value); }
55 template<typename ForgotPasswordT = UpdateBackendAuthForgotPasswordConfig>
56 UpdateBackendAuthUserPoolConfig& WithForgotPassword(ForgotPasswordT&& value) { SetForgotPassword(std::forward<ForgotPasswordT>(value)); return *this;}
58
60
64 inline const UpdateBackendAuthMFAConfig& GetMfa() const { return m_mfa; }
65 inline bool MfaHasBeenSet() const { return m_mfaHasBeenSet; }
66 template<typename MfaT = UpdateBackendAuthMFAConfig>
67 void SetMfa(MfaT&& value) { m_mfaHasBeenSet = true; m_mfa = std::forward<MfaT>(value); }
68 template<typename MfaT = UpdateBackendAuthMFAConfig>
69 UpdateBackendAuthUserPoolConfig& WithMfa(MfaT&& value) { SetMfa(std::forward<MfaT>(value)); return *this;}
71
73
77 inline const UpdateBackendAuthOAuthConfig& GetOAuth() const { return m_oAuth; }
78 inline bool OAuthHasBeenSet() const { return m_oAuthHasBeenSet; }
79 template<typename OAuthT = UpdateBackendAuthOAuthConfig>
80 void SetOAuth(OAuthT&& value) { m_oAuthHasBeenSet = true; m_oAuth = std::forward<OAuthT>(value); }
81 template<typename OAuthT = UpdateBackendAuthOAuthConfig>
82 UpdateBackendAuthUserPoolConfig& WithOAuth(OAuthT&& value) { SetOAuth(std::forward<OAuthT>(value)); return *this;}
84
86
90 inline const UpdateBackendAuthPasswordPolicyConfig& GetPasswordPolicy() const { return m_passwordPolicy; }
91 inline bool PasswordPolicyHasBeenSet() const { return m_passwordPolicyHasBeenSet; }
92 template<typename PasswordPolicyT = UpdateBackendAuthPasswordPolicyConfig>
93 void SetPasswordPolicy(PasswordPolicyT&& value) { m_passwordPolicyHasBeenSet = true; m_passwordPolicy = std::forward<PasswordPolicyT>(value); }
94 template<typename PasswordPolicyT = UpdateBackendAuthPasswordPolicyConfig>
95 UpdateBackendAuthUserPoolConfig& WithPasswordPolicy(PasswordPolicyT&& value) { SetPasswordPolicy(std::forward<PasswordPolicyT>(value)); return *this;}
97
99
103 inline const UpdateBackendAuthVerificationMessageConfig& GetVerificationMessage() const { return m_verificationMessage; }
104 inline bool VerificationMessageHasBeenSet() const { return m_verificationMessageHasBeenSet; }
105 template<typename VerificationMessageT = UpdateBackendAuthVerificationMessageConfig>
106 void SetVerificationMessage(VerificationMessageT&& value) { m_verificationMessageHasBeenSet = true; m_verificationMessage = std::forward<VerificationMessageT>(value); }
107 template<typename VerificationMessageT = UpdateBackendAuthVerificationMessageConfig>
108 UpdateBackendAuthUserPoolConfig& WithVerificationMessage(VerificationMessageT&& value) { SetVerificationMessage(std::forward<VerificationMessageT>(value)); return *this;}
110 private:
111
113 bool m_forgotPasswordHasBeenSet = false;
114
116 bool m_mfaHasBeenSet = false;
117
119 bool m_oAuthHasBeenSet = false;
120
122 bool m_passwordPolicyHasBeenSet = false;
123
124 UpdateBackendAuthVerificationMessageConfig m_verificationMessage;
125 bool m_verificationMessageHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace AmplifyBackend
130} // namespace Aws
UpdateBackendAuthUserPoolConfig & WithForgotPassword(ForgotPasswordT &&value)
const UpdateBackendAuthVerificationMessageConfig & GetVerificationMessage() const
UpdateBackendAuthUserPoolConfig & WithVerificationMessage(VerificationMessageT &&value)
const UpdateBackendAuthPasswordPolicyConfig & GetPasswordPolicy() const
AWS_AMPLIFYBACKEND_API UpdateBackendAuthUserPoolConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYBACKEND_API UpdateBackendAuthUserPoolConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
UpdateBackendAuthUserPoolConfig & WithPasswordPolicy(PasswordPolicyT &&value)
AWS_AMPLIFYBACKEND_API UpdateBackendAuthUserPoolConfig()=default
const UpdateBackendAuthForgotPasswordConfig & GetForgotPassword() const
Aws::Utils::Json::JsonValue JsonValue