AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateBackendAuthOAuthConfig.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 UpdateBackendAuthOAuthConfig() = default;
42 AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetDomainPrefix() const { return m_domainPrefix; }
51 inline bool DomainPrefixHasBeenSet() const { return m_domainPrefixHasBeenSet; }
52 template<typename DomainPrefixT = Aws::String>
53 void SetDomainPrefix(DomainPrefixT&& value) { m_domainPrefixHasBeenSet = true; m_domainPrefix = std::forward<DomainPrefixT>(value); }
54 template<typename DomainPrefixT = Aws::String>
55 UpdateBackendAuthOAuthConfig& WithDomainPrefix(DomainPrefixT&& value) { SetDomainPrefix(std::forward<DomainPrefixT>(value)); return *this;}
57
59
63 inline OAuthGrantType GetOAuthGrantType() const { return m_oAuthGrantType; }
64 inline bool OAuthGrantTypeHasBeenSet() const { return m_oAuthGrantTypeHasBeenSet; }
65 inline void SetOAuthGrantType(OAuthGrantType value) { m_oAuthGrantTypeHasBeenSet = true; m_oAuthGrantType = value; }
68
70
74 inline const Aws::Vector<OAuthScopesElement>& GetOAuthScopes() const { return m_oAuthScopes; }
75 inline bool OAuthScopesHasBeenSet() const { return m_oAuthScopesHasBeenSet; }
76 template<typename OAuthScopesT = Aws::Vector<OAuthScopesElement>>
77 void SetOAuthScopes(OAuthScopesT&& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes = std::forward<OAuthScopesT>(value); }
78 template<typename OAuthScopesT = Aws::Vector<OAuthScopesElement>>
79 UpdateBackendAuthOAuthConfig& WithOAuthScopes(OAuthScopesT&& value) { SetOAuthScopes(std::forward<OAuthScopesT>(value)); return *this;}
80 inline UpdateBackendAuthOAuthConfig& AddOAuthScopes(OAuthScopesElement value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(value); return *this; }
82
84
87 inline const Aws::Vector<Aws::String>& GetRedirectSignInURIs() const { return m_redirectSignInURIs; }
88 inline bool RedirectSignInURIsHasBeenSet() const { return m_redirectSignInURIsHasBeenSet; }
89 template<typename RedirectSignInURIsT = Aws::Vector<Aws::String>>
90 void SetRedirectSignInURIs(RedirectSignInURIsT&& value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs = std::forward<RedirectSignInURIsT>(value); }
91 template<typename RedirectSignInURIsT = Aws::Vector<Aws::String>>
92 UpdateBackendAuthOAuthConfig& WithRedirectSignInURIs(RedirectSignInURIsT&& value) { SetRedirectSignInURIs(std::forward<RedirectSignInURIsT>(value)); return *this;}
93 template<typename RedirectSignInURIsT = Aws::String>
94 UpdateBackendAuthOAuthConfig& AddRedirectSignInURIs(RedirectSignInURIsT&& value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs.emplace_back(std::forward<RedirectSignInURIsT>(value)); return *this; }
96
98
101 inline const Aws::Vector<Aws::String>& GetRedirectSignOutURIs() const { return m_redirectSignOutURIs; }
102 inline bool RedirectSignOutURIsHasBeenSet() const { return m_redirectSignOutURIsHasBeenSet; }
103 template<typename RedirectSignOutURIsT = Aws::Vector<Aws::String>>
104 void SetRedirectSignOutURIs(RedirectSignOutURIsT&& value) { m_redirectSignOutURIsHasBeenSet = true; m_redirectSignOutURIs = std::forward<RedirectSignOutURIsT>(value); }
105 template<typename RedirectSignOutURIsT = Aws::Vector<Aws::String>>
106 UpdateBackendAuthOAuthConfig& WithRedirectSignOutURIs(RedirectSignOutURIsT&& value) { SetRedirectSignOutURIs(std::forward<RedirectSignOutURIsT>(value)); return *this;}
107 template<typename RedirectSignOutURIsT = Aws::String>
108 UpdateBackendAuthOAuthConfig& AddRedirectSignOutURIs(RedirectSignOutURIsT&& value) { m_redirectSignOutURIsHasBeenSet = true; m_redirectSignOutURIs.emplace_back(std::forward<RedirectSignOutURIsT>(value)); return *this; }
110
112
116 inline const SocialProviderSettings& GetSocialProviderSettings() const { return m_socialProviderSettings; }
117 inline bool SocialProviderSettingsHasBeenSet() const { return m_socialProviderSettingsHasBeenSet; }
118 template<typename SocialProviderSettingsT = SocialProviderSettings>
119 void SetSocialProviderSettings(SocialProviderSettingsT&& value) { m_socialProviderSettingsHasBeenSet = true; m_socialProviderSettings = std::forward<SocialProviderSettingsT>(value); }
120 template<typename SocialProviderSettingsT = SocialProviderSettings>
121 UpdateBackendAuthOAuthConfig& WithSocialProviderSettings(SocialProviderSettingsT&& value) { SetSocialProviderSettings(std::forward<SocialProviderSettingsT>(value)); return *this;}
123 private:
124
125 Aws::String m_domainPrefix;
126 bool m_domainPrefixHasBeenSet = false;
127
128 OAuthGrantType m_oAuthGrantType{OAuthGrantType::NOT_SET};
129 bool m_oAuthGrantTypeHasBeenSet = false;
130
132 bool m_oAuthScopesHasBeenSet = false;
133
134 Aws::Vector<Aws::String> m_redirectSignInURIs;
135 bool m_redirectSignInURIsHasBeenSet = false;
136
137 Aws::Vector<Aws::String> m_redirectSignOutURIs;
138 bool m_redirectSignOutURIsHasBeenSet = false;
139
140 SocialProviderSettings m_socialProviderSettings;
141 bool m_socialProviderSettingsHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace AmplifyBackend
146} // namespace Aws
AWS_AMPLIFYBACKEND_API UpdateBackendAuthOAuthConfig()=default
UpdateBackendAuthOAuthConfig & AddOAuthScopes(OAuthScopesElement value)
UpdateBackendAuthOAuthConfig & WithSocialProviderSettings(SocialProviderSettingsT &&value)
AWS_AMPLIFYBACKEND_API UpdateBackendAuthOAuthConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const
UpdateBackendAuthOAuthConfig & WithOAuthScopes(OAuthScopesT &&value)
UpdateBackendAuthOAuthConfig & WithDomainPrefix(DomainPrefixT &&value)
UpdateBackendAuthOAuthConfig & WithRedirectSignOutURIs(RedirectSignOutURIsT &&value)
UpdateBackendAuthOAuthConfig & AddRedirectSignInURIs(RedirectSignInURIsT &&value)
UpdateBackendAuthOAuthConfig & WithRedirectSignInURIs(RedirectSignInURIsT &&value)
UpdateBackendAuthOAuthConfig & WithOAuthGrantType(OAuthGrantType value)
const Aws::Vector< Aws::String > & GetRedirectSignOutURIs() const
const Aws::Vector< OAuthScopesElement > & GetOAuthScopes() const
const Aws::Vector< Aws::String > & GetRedirectSignInURIs() const
UpdateBackendAuthOAuthConfig & AddRedirectSignOutURIs(RedirectSignOutURIsT &&value)
AWS_AMPLIFYBACKEND_API UpdateBackendAuthOAuthConfig(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue