AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDomainPrefix(const Aws::String& value) { m_domainPrefixHasBeenSet = true; m_domainPrefix = value; }
53 inline void SetDomainPrefix(Aws::String&& value) { m_domainPrefixHasBeenSet = true; m_domainPrefix = std::move(value); }
54 inline void SetDomainPrefix(const char* value) { m_domainPrefixHasBeenSet = true; m_domainPrefix.assign(value); }
55 inline UpdateBackendAuthOAuthConfig& WithDomainPrefix(const Aws::String& value) { SetDomainPrefix(value); return *this;}
56 inline UpdateBackendAuthOAuthConfig& WithDomainPrefix(Aws::String&& value) { SetDomainPrefix(std::move(value)); return *this;}
57 inline UpdateBackendAuthOAuthConfig& WithDomainPrefix(const char* value) { SetDomainPrefix(value); return *this;}
59
61
65 inline const OAuthGrantType& GetOAuthGrantType() const{ return m_oAuthGrantType; }
66 inline bool OAuthGrantTypeHasBeenSet() const { return m_oAuthGrantTypeHasBeenSet; }
67 inline void SetOAuthGrantType(const OAuthGrantType& value) { m_oAuthGrantTypeHasBeenSet = true; m_oAuthGrantType = value; }
68 inline void SetOAuthGrantType(OAuthGrantType&& value) { m_oAuthGrantTypeHasBeenSet = true; m_oAuthGrantType = std::move(value); }
70 inline UpdateBackendAuthOAuthConfig& WithOAuthGrantType(OAuthGrantType&& value) { SetOAuthGrantType(std::move(value)); return *this;}
72
74
78 inline const Aws::Vector<OAuthScopesElement>& GetOAuthScopes() const{ return m_oAuthScopes; }
79 inline bool OAuthScopesHasBeenSet() const { return m_oAuthScopesHasBeenSet; }
80 inline void SetOAuthScopes(const Aws::Vector<OAuthScopesElement>& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes = value; }
81 inline void SetOAuthScopes(Aws::Vector<OAuthScopesElement>&& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes = std::move(value); }
84 inline UpdateBackendAuthOAuthConfig& AddOAuthScopes(const OAuthScopesElement& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(value); return *this; }
85 inline UpdateBackendAuthOAuthConfig& AddOAuthScopes(OAuthScopesElement&& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(std::move(value)); return *this; }
87
89
92 inline const Aws::Vector<Aws::String>& GetRedirectSignInURIs() const{ return m_redirectSignInURIs; }
93 inline bool RedirectSignInURIsHasBeenSet() const { return m_redirectSignInURIsHasBeenSet; }
94 inline void SetRedirectSignInURIs(const Aws::Vector<Aws::String>& value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs = value; }
95 inline void SetRedirectSignInURIs(Aws::Vector<Aws::String>&& value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs = std::move(value); }
98 inline UpdateBackendAuthOAuthConfig& AddRedirectSignInURIs(const Aws::String& value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs.push_back(value); return *this; }
99 inline UpdateBackendAuthOAuthConfig& AddRedirectSignInURIs(Aws::String&& value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs.push_back(std::move(value)); return *this; }
100 inline UpdateBackendAuthOAuthConfig& AddRedirectSignInURIs(const char* value) { m_redirectSignInURIsHasBeenSet = true; m_redirectSignInURIs.push_back(value); return *this; }
102
104
107 inline const Aws::Vector<Aws::String>& GetRedirectSignOutURIs() const{ return m_redirectSignOutURIs; }
108 inline bool RedirectSignOutURIsHasBeenSet() const { return m_redirectSignOutURIsHasBeenSet; }
109 inline void SetRedirectSignOutURIs(const Aws::Vector<Aws::String>& value) { m_redirectSignOutURIsHasBeenSet = true; m_redirectSignOutURIs = value; }
110 inline void SetRedirectSignOutURIs(Aws::Vector<Aws::String>&& value) { m_redirectSignOutURIsHasBeenSet = true; m_redirectSignOutURIs = std::move(value); }
113 inline UpdateBackendAuthOAuthConfig& AddRedirectSignOutURIs(const Aws::String& value) { m_redirectSignOutURIsHasBeenSet = true; m_redirectSignOutURIs.push_back(value); return *this; }
114 inline UpdateBackendAuthOAuthConfig& AddRedirectSignOutURIs(Aws::String&& value) { m_redirectSignOutURIsHasBeenSet = true; m_redirectSignOutURIs.push_back(std::move(value)); return *this; }
115 inline UpdateBackendAuthOAuthConfig& AddRedirectSignOutURIs(const char* value) { m_redirectSignOutURIsHasBeenSet = true; m_redirectSignOutURIs.push_back(value); return *this; }
117
119
123 inline const SocialProviderSettings& GetSocialProviderSettings() const{ return m_socialProviderSettings; }
124 inline bool SocialProviderSettingsHasBeenSet() const { return m_socialProviderSettingsHasBeenSet; }
125 inline void SetSocialProviderSettings(const SocialProviderSettings& value) { m_socialProviderSettingsHasBeenSet = true; m_socialProviderSettings = value; }
126 inline void SetSocialProviderSettings(SocialProviderSettings&& value) { m_socialProviderSettingsHasBeenSet = true; m_socialProviderSettings = std::move(value); }
130 private:
131
132 Aws::String m_domainPrefix;
133 bool m_domainPrefixHasBeenSet = false;
134
135 OAuthGrantType m_oAuthGrantType;
136 bool m_oAuthGrantTypeHasBeenSet = false;
137
139 bool m_oAuthScopesHasBeenSet = false;
140
141 Aws::Vector<Aws::String> m_redirectSignInURIs;
142 bool m_redirectSignInURIsHasBeenSet = false;
143
144 Aws::Vector<Aws::String> m_redirectSignOutURIs;
145 bool m_redirectSignOutURIsHasBeenSet = false;
146
147 SocialProviderSettings m_socialProviderSettings;
148 bool m_socialProviderSettingsHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace AmplifyBackend
153} // namespace Aws
UpdateBackendAuthOAuthConfig & AddRedirectSignOutURIs(Aws::String &&value)
UpdateBackendAuthOAuthConfig & WithOAuthScopes(Aws::Vector< OAuthScopesElement > &&value)
UpdateBackendAuthOAuthConfig & WithDomainPrefix(const char *value)
void SetRedirectSignOutURIs(const Aws::Vector< Aws::String > &value)
AWS_AMPLIFYBACKEND_API UpdateBackendAuthOAuthConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYBACKEND_API Aws::Utils::Json::JsonValue Jsonize() const
UpdateBackendAuthOAuthConfig & AddRedirectSignOutURIs(const Aws::String &value)
UpdateBackendAuthOAuthConfig & AddRedirectSignInURIs(const char *value)
UpdateBackendAuthOAuthConfig & WithSocialProviderSettings(SocialProviderSettings &&value)
void SetOAuthScopes(Aws::Vector< OAuthScopesElement > &&value)
UpdateBackendAuthOAuthConfig & AddOAuthScopes(OAuthScopesElement &&value)
UpdateBackendAuthOAuthConfig & WithDomainPrefix(const Aws::String &value)
void SetSocialProviderSettings(const SocialProviderSettings &value)
UpdateBackendAuthOAuthConfig & WithRedirectSignInURIs(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetRedirectSignOutURIs() const
UpdateBackendAuthOAuthConfig & WithOAuthGrantType(OAuthGrantType &&value)
UpdateBackendAuthOAuthConfig & AddRedirectSignInURIs(const Aws::String &value)
UpdateBackendAuthOAuthConfig & WithOAuthScopes(const Aws::Vector< OAuthScopesElement > &value)
UpdateBackendAuthOAuthConfig & WithRedirectSignOutURIs(Aws::Vector< Aws::String > &&value)
const Aws::Vector< OAuthScopesElement > & GetOAuthScopes() const
const Aws::Vector< Aws::String > & GetRedirectSignInURIs() const
UpdateBackendAuthOAuthConfig & WithRedirectSignOutURIs(const Aws::Vector< Aws::String > &value)
UpdateBackendAuthOAuthConfig & WithDomainPrefix(Aws::String &&value)
void SetOAuthScopes(const Aws::Vector< OAuthScopesElement > &value)
UpdateBackendAuthOAuthConfig & AddRedirectSignOutURIs(const char *value)
UpdateBackendAuthOAuthConfig & WithRedirectSignInURIs(const Aws::Vector< Aws::String > &value)
UpdateBackendAuthOAuthConfig & AddOAuthScopes(const OAuthScopesElement &value)
AWS_AMPLIFYBACKEND_API UpdateBackendAuthOAuthConfig(Aws::Utils::Json::JsonView jsonValue)
void SetRedirectSignInURIs(const Aws::Vector< Aws::String > &value)
UpdateBackendAuthOAuthConfig & WithSocialProviderSettings(const SocialProviderSettings &value)
UpdateBackendAuthOAuthConfig & AddRedirectSignInURIs(Aws::String &&value)
UpdateBackendAuthOAuthConfig & WithOAuthGrantType(const OAuthGrantType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue