AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SocialProviderSettings.h
1
6#pragma once
7#include <aws/amplifybackend/AmplifyBackend_EXPORTS.h>
8#include <aws/amplifybackend/model/BackendAuthAppleProviderConfig.h>
9#include <aws/amplifybackend/model/BackendAuthSocialProviderConfig.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AmplifyBackend {
21namespace Model {
22
30 public:
31 AWS_AMPLIFYBACKEND_API SocialProviderSettings() = default;
32 AWS_AMPLIFYBACKEND_API SocialProviderSettings(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const BackendAuthSocialProviderConfig& GetFacebook() const { return m_facebook; }
39 inline bool FacebookHasBeenSet() const { return m_facebookHasBeenSet; }
40 template <typename FacebookT = BackendAuthSocialProviderConfig>
41 void SetFacebook(FacebookT&& value) {
42 m_facebookHasBeenSet = true;
43 m_facebook = std::forward<FacebookT>(value);
44 }
45 template <typename FacebookT = BackendAuthSocialProviderConfig>
47 SetFacebook(std::forward<FacebookT>(value));
48 return *this;
49 }
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) {
58 m_googleHasBeenSet = true;
59 m_google = std::forward<GoogleT>(value);
60 }
61 template <typename GoogleT = BackendAuthSocialProviderConfig>
63 SetGoogle(std::forward<GoogleT>(value));
64 return *this;
65 }
67
69
70 inline const BackendAuthSocialProviderConfig& GetLoginWithAmazon() const { return m_loginWithAmazon; }
71 inline bool LoginWithAmazonHasBeenSet() const { return m_loginWithAmazonHasBeenSet; }
72 template <typename LoginWithAmazonT = BackendAuthSocialProviderConfig>
73 void SetLoginWithAmazon(LoginWithAmazonT&& value) {
74 m_loginWithAmazonHasBeenSet = true;
75 m_loginWithAmazon = std::forward<LoginWithAmazonT>(value);
76 }
77 template <typename LoginWithAmazonT = BackendAuthSocialProviderConfig>
78 SocialProviderSettings& WithLoginWithAmazon(LoginWithAmazonT&& value) {
79 SetLoginWithAmazon(std::forward<LoginWithAmazonT>(value));
80 return *this;
81 }
83
85
86 inline const BackendAuthAppleProviderConfig& GetSignInWithApple() const { return m_signInWithApple; }
87 inline bool SignInWithAppleHasBeenSet() const { return m_signInWithAppleHasBeenSet; }
88 template <typename SignInWithAppleT = BackendAuthAppleProviderConfig>
89 void SetSignInWithApple(SignInWithAppleT&& value) {
90 m_signInWithAppleHasBeenSet = true;
91 m_signInWithApple = std::forward<SignInWithAppleT>(value);
92 }
93 template <typename SignInWithAppleT = BackendAuthAppleProviderConfig>
94 SocialProviderSettings& WithSignInWithApple(SignInWithAppleT&& value) {
95 SetSignInWithApple(std::forward<SignInWithAppleT>(value));
96 return *this;
97 }
99 private:
101
103
104 BackendAuthSocialProviderConfig m_loginWithAmazon;
105
106 BackendAuthAppleProviderConfig m_signInWithApple;
107 bool m_facebookHasBeenSet = false;
108 bool m_googleHasBeenSet = false;
109 bool m_loginWithAmazonHasBeenSet = false;
110 bool m_signInWithAppleHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace AmplifyBackend
115} // 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