AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateBackendAuthOAuthConfig.h
1
6#pragma once
7#include <aws/amplifybackend/AmplifyBackend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/amplifybackend/model/OAuthGrantType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/amplifybackend/model/SocialProviderSettings.h>
12#include <aws/amplifybackend/model/OAuthScopesElement.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
37 {
38 public:
39 AWS_AMPLIFYBACKEND_API CreateBackendAuthOAuthConfig() = default;
42 AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetDomainPrefix() const { return m_domainPrefix; }
50 inline bool DomainPrefixHasBeenSet() const { return m_domainPrefixHasBeenSet; }
51 template<typename DomainPrefixT = Aws::String>
52 void SetDomainPrefix(DomainPrefixT&& value) { m_domainPrefixHasBeenSet = true; m_domainPrefix = std::forward<DomainPrefixT>(value); }
53 template<typename DomainPrefixT = Aws::String>
54 CreateBackendAuthOAuthConfig& WithDomainPrefix(DomainPrefixT&& value) { SetDomainPrefix(std::forward<DomainPrefixT>(value)); return *this;}
56
58
62 inline OAuthGrantType GetOAuthGrantType() const { return m_oAuthGrantType; }
63 inline bool OAuthGrantTypeHasBeenSet() const { return m_oAuthGrantTypeHasBeenSet; }
64 inline void SetOAuthGrantType(OAuthGrantType value) { m_oAuthGrantTypeHasBeenSet = true; m_oAuthGrantType = value; }
67
69
73 inline const Aws::Vector<OAuthScopesElement>& GetOAuthScopes() const { return m_oAuthScopes; }
74 inline bool OAuthScopesHasBeenSet() const { return m_oAuthScopesHasBeenSet; }
75 template<typename OAuthScopesT = Aws::Vector<OAuthScopesElement>>
76 void SetOAuthScopes(OAuthScopesT&& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes = std::forward<OAuthScopesT>(value); }
77 template<typename OAuthScopesT = Aws::Vector<OAuthScopesElement>>
78 CreateBackendAuthOAuthConfig& WithOAuthScopes(OAuthScopesT&& value) { SetOAuthScopes(std::forward<OAuthScopesT>(value)); return *this;}
79 inline CreateBackendAuthOAuthConfig& AddOAuthScopes(OAuthScopesElement value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(value); return *this; }
81
83
86 inline const Aws::Vector<Aws::String>& GetRedirectSignInURIs() const { return m_redirectSignInURIs; }
87 inline bool RedirectSignInURIsHasBeenSet() const { return m_redirectSignInURIsHasBeenSet; }
88 template<typename RedirectSignInURIsT = Aws::Vector<Aws::String>>
89 void SetRedirectSignInURIs(RedirectSignInURIsT&& value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs = std::forward<RedirectSignInURIsT>(value); }
90 template<typename RedirectSignInURIsT = Aws::Vector<Aws::String>>
91 CreateBackendAuthOAuthConfig& WithRedirectSignInURIs(RedirectSignInURIsT&& value) { SetRedirectSignInURIs(std::forward<RedirectSignInURIsT>(value)); return *this;}
92 template<typename RedirectSignInURIsT = Aws::String>
93 CreateBackendAuthOAuthConfig& AddRedirectSignInURIs(RedirectSignInURIsT&& value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs.emplace_back(std::forward<RedirectSignInURIsT>(value)); return *this; }
95
97
100 inline const Aws::Vector<Aws::String>& GetRedirectSignOutURIs() const { return m_redirectSignOutURIs; }
101 inline bool RedirectSignOutURIsHasBeenSet() const { return m_redirectSignOutURIsHasBeenSet; }
102 template<typename RedirectSignOutURIsT = Aws::Vector<Aws::String>>
103 void SetRedirectSignOutURIs(RedirectSignOutURIsT&& value) { m_redirectSignOutURIsHasBeenSet = true; m_redirectSignOutURIs = std::forward<RedirectSignOutURIsT>(value); }
104 template<typename RedirectSignOutURIsT = Aws::Vector<Aws::String>>
105 CreateBackendAuthOAuthConfig& WithRedirectSignOutURIs(RedirectSignOutURIsT&& value) { SetRedirectSignOutURIs(std::forward<RedirectSignOutURIsT>(value)); return *this;}
106 template<typename RedirectSignOutURIsT = Aws::String>
107 CreateBackendAuthOAuthConfig& AddRedirectSignOutURIs(RedirectSignOutURIsT&& value) { m_redirectSignOutURIsHasBeenSet = true; m_redirectSignOutURIs.emplace_back(std::forward<RedirectSignOutURIsT>(value)); return *this; }
109
111
114 inline const SocialProviderSettings& GetSocialProviderSettings() const { return m_socialProviderSettings; }
115 inline bool SocialProviderSettingsHasBeenSet() const { return m_socialProviderSettingsHasBeenSet; }
116 template<typename SocialProviderSettingsT = SocialProviderSettings>
117 void SetSocialProviderSettings(SocialProviderSettingsT&& value) { m_socialProviderSettingsHasBeenSet = true; m_socialProviderSettings = std::forward<SocialProviderSettingsT>(value); }
118 template<typename SocialProviderSettingsT = SocialProviderSettings>
119 CreateBackendAuthOAuthConfig& WithSocialProviderSettings(SocialProviderSettingsT&& value) { SetSocialProviderSettings(std::forward<SocialProviderSettingsT>(value)); return *this;}
121 private:
122
123 Aws::String m_domainPrefix;
124 bool m_domainPrefixHasBeenSet = false;
125
126 OAuthGrantType m_oAuthGrantType{OAuthGrantType::NOT_SET};
127 bool m_oAuthGrantTypeHasBeenSet = false;
128
130 bool m_oAuthScopesHasBeenSet = false;
131
132 Aws::Vector<Aws::String> m_redirectSignInURIs;
133 bool m_redirectSignInURIsHasBeenSet = false;
134
135 Aws::Vector<Aws::String> m_redirectSignOutURIs;
136 bool m_redirectSignOutURIsHasBeenSet = false;
137
138 SocialProviderSettings m_socialProviderSettings;
139 bool m_socialProviderSettingsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace AmplifyBackend
144} // namespace Aws
CreateBackendAuthOAuthConfig & WithRedirectSignInURIs(RedirectSignInURIsT &&value)
CreateBackendAuthOAuthConfig & AddOAuthScopes(OAuthScopesElement value)
CreateBackendAuthOAuthConfig & AddRedirectSignOutURIs(RedirectSignOutURIsT &&value)
CreateBackendAuthOAuthConfig & WithDomainPrefix(DomainPrefixT &&value)
CreateBackendAuthOAuthConfig & WithRedirectSignOutURIs(RedirectSignOutURIsT &&value)
CreateBackendAuthOAuthConfig & WithOAuthScopes(OAuthScopesT &&value)
AWS_AMPLIFYBACKEND_API CreateBackendAuthOAuthConfig(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< OAuthScopesElement > & GetOAuthScopes() const
AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const
CreateBackendAuthOAuthConfig & WithOAuthGrantType(OAuthGrantType value)
AWS_AMPLIFYBACKEND_API CreateBackendAuthOAuthConfig()=default
CreateBackendAuthOAuthConfig & WithSocialProviderSettings(SocialProviderSettingsT &&value)
const Aws::Vector< Aws::String > & GetRedirectSignInURIs() const
AWS_AMPLIFYBACKEND_API CreateBackendAuthOAuthConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
CreateBackendAuthOAuthConfig & AddRedirectSignInURIs(RedirectSignInURIsT &&value)
const Aws::Vector< Aws::String > & GetRedirectSignOutURIs() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue