AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SocialProviderSettings.h
1
6#pragma once
7#include <aws/amplifybackend/AmplifyBackend_EXPORTS.h>
8#include <aws/amplifybackend/model/BackendAuthSocialProviderConfig.h>
9#include <aws/amplifybackend/model/BackendAuthAppleProviderConfig.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AmplifyBackend
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_AMPLIFYBACKEND_API SocialProviderSettings() = default;
37 AWS_AMPLIFYBACKEND_API SocialProviderSettings(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const BackendAuthSocialProviderConfig& GetFacebook() const { return m_facebook; }
45 inline bool FacebookHasBeenSet() const { return m_facebookHasBeenSet; }
46 template<typename FacebookT = BackendAuthSocialProviderConfig>
47 void SetFacebook(FacebookT&& value) { m_facebookHasBeenSet = true; m_facebook = std::forward<FacebookT>(value); }
48 template<typename FacebookT = BackendAuthSocialProviderConfig>
49 SocialProviderSettings& WithFacebook(FacebookT&& value) { SetFacebook(std::forward<FacebookT>(value)); return *this;}
51
53
54 inline const BackendAuthSocialProviderConfig& GetGoogle() const { return m_google; }
55 inline bool GoogleHasBeenSet() const { return m_googleHasBeenSet; }
56 template<typename GoogleT = BackendAuthSocialProviderConfig>
57 void SetGoogle(GoogleT&& value) { m_googleHasBeenSet = true; m_google = std::forward<GoogleT>(value); }
58 template<typename GoogleT = BackendAuthSocialProviderConfig>
59 SocialProviderSettings& WithGoogle(GoogleT&& value) { SetGoogle(std::forward<GoogleT>(value)); return *this;}
61
63
64 inline const BackendAuthSocialProviderConfig& GetLoginWithAmazon() const { return m_loginWithAmazon; }
65 inline bool LoginWithAmazonHasBeenSet() const { return m_loginWithAmazonHasBeenSet; }
66 template<typename LoginWithAmazonT = BackendAuthSocialProviderConfig>
67 void SetLoginWithAmazon(LoginWithAmazonT&& value) { m_loginWithAmazonHasBeenSet = true; m_loginWithAmazon = std::forward<LoginWithAmazonT>(value); }
68 template<typename LoginWithAmazonT = BackendAuthSocialProviderConfig>
69 SocialProviderSettings& WithLoginWithAmazon(LoginWithAmazonT&& value) { SetLoginWithAmazon(std::forward<LoginWithAmazonT>(value)); return *this;}
71
73
74 inline const BackendAuthAppleProviderConfig& GetSignInWithApple() const { return m_signInWithApple; }
75 inline bool SignInWithAppleHasBeenSet() const { return m_signInWithAppleHasBeenSet; }
76 template<typename SignInWithAppleT = BackendAuthAppleProviderConfig>
77 void SetSignInWithApple(SignInWithAppleT&& value) { m_signInWithAppleHasBeenSet = true; m_signInWithApple = std::forward<SignInWithAppleT>(value); }
78 template<typename SignInWithAppleT = BackendAuthAppleProviderConfig>
79 SocialProviderSettings& WithSignInWithApple(SignInWithAppleT&& value) { SetSignInWithApple(std::forward<SignInWithAppleT>(value)); return *this;}
81 private:
82
84 bool m_facebookHasBeenSet = false;
85
87 bool m_googleHasBeenSet = false;
88
89 BackendAuthSocialProviderConfig m_loginWithAmazon;
90 bool m_loginWithAmazonHasBeenSet = false;
91
92 BackendAuthAppleProviderConfig m_signInWithApple;
93 bool m_signInWithAppleHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace AmplifyBackend
98} // namespace Aws
SocialProviderSettings & WithSignInWithApple(SignInWithAppleT &&value)
AWS_AMPLIFYBACKEND_API SocialProviderSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYBACKEND_API SocialProviderSettings(Aws::Utils::Json::JsonView jsonValue)
const BackendAuthSocialProviderConfig & GetGoogle() const
SocialProviderSettings & WithFacebook(FacebookT &&value)
SocialProviderSettings & WithGoogle(GoogleT &&value)
const BackendAuthSocialProviderConfig & GetLoginWithAmazon() const
SocialProviderSettings & WithLoginWithAmazon(LoginWithAmazonT &&value)
const BackendAuthSocialProviderConfig & GetFacebook() const
AWS_AMPLIFYBACKEND_API SocialProviderSettings()=default
const BackendAuthAppleProviderConfig & GetSignInWithApple() const
AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue