AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDomainPrefix(const Aws::String& value) { m_domainPrefixHasBeenSet = true; m_domainPrefix = value; }
52 inline void SetDomainPrefix(Aws::String&& value) { m_domainPrefixHasBeenSet = true; m_domainPrefix = std::move(value); }
53 inline void SetDomainPrefix(const char* value) { m_domainPrefixHasBeenSet = true; m_domainPrefix.assign(value); }
54 inline CreateBackendAuthOAuthConfig& WithDomainPrefix(const Aws::String& value) { SetDomainPrefix(value); return *this;}
55 inline CreateBackendAuthOAuthConfig& WithDomainPrefix(Aws::String&& value) { SetDomainPrefix(std::move(value)); return *this;}
56 inline CreateBackendAuthOAuthConfig& WithDomainPrefix(const char* value) { SetDomainPrefix(value); return *this;}
58
60
64 inline const OAuthGrantType& GetOAuthGrantType() const{ return m_oAuthGrantType; }
65 inline bool OAuthGrantTypeHasBeenSet() const { return m_oAuthGrantTypeHasBeenSet; }
66 inline void SetOAuthGrantType(const OAuthGrantType& value) { m_oAuthGrantTypeHasBeenSet = true; m_oAuthGrantType = value; }
67 inline void SetOAuthGrantType(OAuthGrantType&& value) { m_oAuthGrantTypeHasBeenSet = true; m_oAuthGrantType = std::move(value); }
69 inline CreateBackendAuthOAuthConfig& WithOAuthGrantType(OAuthGrantType&& value) { SetOAuthGrantType(std::move(value)); return *this;}
71
73
77 inline const Aws::Vector<OAuthScopesElement>& GetOAuthScopes() const{ return m_oAuthScopes; }
78 inline bool OAuthScopesHasBeenSet() const { return m_oAuthScopesHasBeenSet; }
79 inline void SetOAuthScopes(const Aws::Vector<OAuthScopesElement>& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes = value; }
80 inline void SetOAuthScopes(Aws::Vector<OAuthScopesElement>&& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes = std::move(value); }
83 inline CreateBackendAuthOAuthConfig& AddOAuthScopes(const OAuthScopesElement& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(value); return *this; }
84 inline CreateBackendAuthOAuthConfig& AddOAuthScopes(OAuthScopesElement&& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(std::move(value)); return *this; }
86
88
91 inline const Aws::Vector<Aws::String>& GetRedirectSignInURIs() const{ return m_redirectSignInURIs; }
92 inline bool RedirectSignInURIsHasBeenSet() const { return m_redirectSignInURIsHasBeenSet; }
93 inline void SetRedirectSignInURIs(const Aws::Vector<Aws::String>& value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs = value; }
94 inline void SetRedirectSignInURIs(Aws::Vector<Aws::String>&& value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs = std::move(value); }
97 inline CreateBackendAuthOAuthConfig& AddRedirectSignInURIs(const Aws::String& value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs.push_back(value); return *this; }
98 inline CreateBackendAuthOAuthConfig& AddRedirectSignInURIs(Aws::String&& value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs.push_back(std::move(value)); return *this; }
99 inline CreateBackendAuthOAuthConfig& AddRedirectSignInURIs(const char* value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs.push_back(value); return *this; }
101
103
106 inline const Aws::Vector<Aws::String>& GetRedirectSignOutURIs() const{ return m_redirectSignOutURIs; }
107 inline bool RedirectSignOutURIsHasBeenSet() const { return m_redirectSignOutURIsHasBeenSet; }
108 inline void SetRedirectSignOutURIs(const Aws::Vector<Aws::String>& value) { m_redirectSignOutURIsHasBeenSet = true; m_redirectSignOutURIs = value; }
109 inline void SetRedirectSignOutURIs(Aws::Vector<Aws::String>&& value) { m_redirectSignOutURIsHasBeenSet = true; m_redirectSignOutURIs = std::move(value); }
112 inline CreateBackendAuthOAuthConfig& AddRedirectSignOutURIs(const Aws::String& value) { m_redirectSignOutURIsHasBeenSet = true; m_redirectSignOutURIs.push_back(value); return *this; }
113 inline CreateBackendAuthOAuthConfig& AddRedirectSignOutURIs(Aws::String&& value) { m_redirectSignOutURIsHasBeenSet = true; m_redirectSignOutURIs.push_back(std::move(value)); return *this; }
114 inline CreateBackendAuthOAuthConfig& AddRedirectSignOutURIs(const char* value) { m_redirectSignOutURIsHasBeenSet = true; m_redirectSignOutURIs.push_back(value); return *this; }
116
118
121 inline const SocialProviderSettings& GetSocialProviderSettings() const{ return m_socialProviderSettings; }
122 inline bool SocialProviderSettingsHasBeenSet() const { return m_socialProviderSettingsHasBeenSet; }
123 inline void SetSocialProviderSettings(const SocialProviderSettings& value) { m_socialProviderSettingsHasBeenSet = true; m_socialProviderSettings = value; }
124 inline void SetSocialProviderSettings(SocialProviderSettings&& value) { m_socialProviderSettingsHasBeenSet = true; m_socialProviderSettings = std::move(value); }
128 private:
129
130 Aws::String m_domainPrefix;
131 bool m_domainPrefixHasBeenSet = false;
132
133 OAuthGrantType m_oAuthGrantType;
134 bool m_oAuthGrantTypeHasBeenSet = false;
135
137 bool m_oAuthScopesHasBeenSet = false;
138
139 Aws::Vector<Aws::String> m_redirectSignInURIs;
140 bool m_redirectSignInURIsHasBeenSet = false;
141
142 Aws::Vector<Aws::String> m_redirectSignOutURIs;
143 bool m_redirectSignOutURIsHasBeenSet = false;
144
145 SocialProviderSettings m_socialProviderSettings;
146 bool m_socialProviderSettingsHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace AmplifyBackend
151} // namespace Aws
CreateBackendAuthOAuthConfig & AddRedirectSignOutURIs(const char *value)
CreateBackendAuthOAuthConfig & WithRedirectSignOutURIs(const Aws::Vector< Aws::String > &value)
CreateBackendAuthOAuthConfig & WithRedirectSignInURIs(Aws::Vector< Aws::String > &&value)
CreateBackendAuthOAuthConfig & AddRedirectSignInURIs(const Aws::String &value)
CreateBackendAuthOAuthConfig & AddRedirectSignInURIs(const char *value)
void SetOAuthScopes(const Aws::Vector< OAuthScopesElement > &value)
CreateBackendAuthOAuthConfig & WithOAuthGrantType(OAuthGrantType &&value)
CreateBackendAuthOAuthConfig & WithSocialProviderSettings(const SocialProviderSettings &value)
void SetRedirectSignOutURIs(const Aws::Vector< Aws::String > &value)
CreateBackendAuthOAuthConfig & WithOAuthScopes(Aws::Vector< OAuthScopesElement > &&value)
CreateBackendAuthOAuthConfig & WithOAuthScopes(const Aws::Vector< OAuthScopesElement > &value)
void SetRedirectSignInURIs(const Aws::Vector< Aws::String > &value)
CreateBackendAuthOAuthConfig & WithOAuthGrantType(const OAuthGrantType &value)
AWS_AMPLIFYBACKEND_API CreateBackendAuthOAuthConfig(Aws::Utils::Json::JsonView jsonValue)
void SetOAuthScopes(Aws::Vector< OAuthScopesElement > &&value)
const Aws::Vector< OAuthScopesElement > & GetOAuthScopes() const
CreateBackendAuthOAuthConfig & AddRedirectSignOutURIs(Aws::String &&value)
AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const
CreateBackendAuthOAuthConfig & WithRedirectSignOutURIs(Aws::Vector< Aws::String > &&value)
CreateBackendAuthOAuthConfig & AddRedirectSignInURIs(Aws::String &&value)
CreateBackendAuthOAuthConfig & WithSocialProviderSettings(SocialProviderSettings &&value)
CreateBackendAuthOAuthConfig & WithDomainPrefix(const Aws::String &value)
void SetSocialProviderSettings(const SocialProviderSettings &value)
const Aws::Vector< Aws::String > & GetRedirectSignInURIs() const
CreateBackendAuthOAuthConfig & WithRedirectSignInURIs(const Aws::Vector< Aws::String > &value)
CreateBackendAuthOAuthConfig & AddOAuthScopes(const OAuthScopesElement &value)
CreateBackendAuthOAuthConfig & WithDomainPrefix(const char *value)
AWS_AMPLIFYBACKEND_API CreateBackendAuthOAuthConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
CreateBackendAuthOAuthConfig & WithDomainPrefix(Aws::String &&value)
CreateBackendAuthOAuthConfig & AddRedirectSignOutURIs(const Aws::String &value)
CreateBackendAuthOAuthConfig & AddOAuthScopes(OAuthScopesElement &&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