AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OAuth2PropertiesInput.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/model/OAuth2GrantType.h>
9#include <aws/glue/model/OAuth2ClientApplication.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/glue/model/AuthorizationCodeProperties.h>
13#include <aws/glue/model/OAuth2Credentials.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Glue
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_GLUE_API OAuth2PropertiesInput() = default;
44
45
47
52 inline OAuth2GrantType GetOAuth2GrantType() const { return m_oAuth2GrantType; }
53 inline bool OAuth2GrantTypeHasBeenSet() const { return m_oAuth2GrantTypeHasBeenSet; }
54 inline void SetOAuth2GrantType(OAuth2GrantType value) { m_oAuth2GrantTypeHasBeenSet = true; m_oAuth2GrantType = value; }
57
59
63 inline const OAuth2ClientApplication& GetOAuth2ClientApplication() const { return m_oAuth2ClientApplication; }
64 inline bool OAuth2ClientApplicationHasBeenSet() const { return m_oAuth2ClientApplicationHasBeenSet; }
65 template<typename OAuth2ClientApplicationT = OAuth2ClientApplication>
66 void SetOAuth2ClientApplication(OAuth2ClientApplicationT&& value) { m_oAuth2ClientApplicationHasBeenSet = true; m_oAuth2ClientApplication = std::forward<OAuth2ClientApplicationT>(value); }
67 template<typename OAuth2ClientApplicationT = OAuth2ClientApplication>
68 OAuth2PropertiesInput& WithOAuth2ClientApplication(OAuth2ClientApplicationT&& value) { SetOAuth2ClientApplication(std::forward<OAuth2ClientApplicationT>(value)); return *this;}
70
72
76 inline const Aws::String& GetTokenUrl() const { return m_tokenUrl; }
77 inline bool TokenUrlHasBeenSet() const { return m_tokenUrlHasBeenSet; }
78 template<typename TokenUrlT = Aws::String>
79 void SetTokenUrl(TokenUrlT&& value) { m_tokenUrlHasBeenSet = true; m_tokenUrl = std::forward<TokenUrlT>(value); }
80 template<typename TokenUrlT = Aws::String>
81 OAuth2PropertiesInput& WithTokenUrl(TokenUrlT&& value) { SetTokenUrl(std::forward<TokenUrlT>(value)); return *this;}
83
85
88 inline const Aws::Map<Aws::String, Aws::String>& GetTokenUrlParametersMap() const { return m_tokenUrlParametersMap; }
89 inline bool TokenUrlParametersMapHasBeenSet() const { return m_tokenUrlParametersMapHasBeenSet; }
90 template<typename TokenUrlParametersMapT = Aws::Map<Aws::String, Aws::String>>
91 void SetTokenUrlParametersMap(TokenUrlParametersMapT&& value) { m_tokenUrlParametersMapHasBeenSet = true; m_tokenUrlParametersMap = std::forward<TokenUrlParametersMapT>(value); }
92 template<typename TokenUrlParametersMapT = Aws::Map<Aws::String, Aws::String>>
93 OAuth2PropertiesInput& WithTokenUrlParametersMap(TokenUrlParametersMapT&& value) { SetTokenUrlParametersMap(std::forward<TokenUrlParametersMapT>(value)); return *this;}
94 template<typename TokenUrlParametersMapKeyT = Aws::String, typename TokenUrlParametersMapValueT = Aws::String>
95 OAuth2PropertiesInput& AddTokenUrlParametersMap(TokenUrlParametersMapKeyT&& key, TokenUrlParametersMapValueT&& value) {
96 m_tokenUrlParametersMapHasBeenSet = true; m_tokenUrlParametersMap.emplace(std::forward<TokenUrlParametersMapKeyT>(key), std::forward<TokenUrlParametersMapValueT>(value)); return *this;
97 }
99
101
105 inline const AuthorizationCodeProperties& GetAuthorizationCodeProperties() const { return m_authorizationCodeProperties; }
106 inline bool AuthorizationCodePropertiesHasBeenSet() const { return m_authorizationCodePropertiesHasBeenSet; }
107 template<typename AuthorizationCodePropertiesT = AuthorizationCodeProperties>
108 void SetAuthorizationCodeProperties(AuthorizationCodePropertiesT&& value) { m_authorizationCodePropertiesHasBeenSet = true; m_authorizationCodeProperties = std::forward<AuthorizationCodePropertiesT>(value); }
109 template<typename AuthorizationCodePropertiesT = AuthorizationCodeProperties>
110 OAuth2PropertiesInput& WithAuthorizationCodeProperties(AuthorizationCodePropertiesT&& value) { SetAuthorizationCodeProperties(std::forward<AuthorizationCodePropertiesT>(value)); return *this;}
112
114
118 inline const OAuth2Credentials& GetOAuth2Credentials() const { return m_oAuth2Credentials; }
119 inline bool OAuth2CredentialsHasBeenSet() const { return m_oAuth2CredentialsHasBeenSet; }
120 template<typename OAuth2CredentialsT = OAuth2Credentials>
121 void SetOAuth2Credentials(OAuth2CredentialsT&& value) { m_oAuth2CredentialsHasBeenSet = true; m_oAuth2Credentials = std::forward<OAuth2CredentialsT>(value); }
122 template<typename OAuth2CredentialsT = OAuth2Credentials>
123 OAuth2PropertiesInput& WithOAuth2Credentials(OAuth2CredentialsT&& value) { SetOAuth2Credentials(std::forward<OAuth2CredentialsT>(value)); return *this;}
125 private:
126
127 OAuth2GrantType m_oAuth2GrantType{OAuth2GrantType::NOT_SET};
128 bool m_oAuth2GrantTypeHasBeenSet = false;
129
130 OAuth2ClientApplication m_oAuth2ClientApplication;
131 bool m_oAuth2ClientApplicationHasBeenSet = false;
132
133 Aws::String m_tokenUrl;
134 bool m_tokenUrlHasBeenSet = false;
135
136 Aws::Map<Aws::String, Aws::String> m_tokenUrlParametersMap;
137 bool m_tokenUrlParametersMapHasBeenSet = false;
138
139 AuthorizationCodeProperties m_authorizationCodeProperties;
140 bool m_authorizationCodePropertiesHasBeenSet = false;
141
142 OAuth2Credentials m_oAuth2Credentials;
143 bool m_oAuth2CredentialsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace Glue
148} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTokenUrlParametersMap() const
OAuth2PropertiesInput & WithOAuth2GrantType(OAuth2GrantType value)
AWS_GLUE_API OAuth2PropertiesInput & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTokenUrlParametersMap(TokenUrlParametersMapT &&value)
AWS_GLUE_API OAuth2PropertiesInput(Aws::Utils::Json::JsonView jsonValue)
OAuth2PropertiesInput & WithOAuth2Credentials(OAuth2CredentialsT &&value)
OAuth2PropertiesInput & WithTokenUrlParametersMap(TokenUrlParametersMapT &&value)
OAuth2PropertiesInput & WithAuthorizationCodeProperties(AuthorizationCodePropertiesT &&value)
AWS_GLUE_API OAuth2PropertiesInput()=default
OAuth2PropertiesInput & WithTokenUrl(TokenUrlT &&value)
void SetOAuth2GrantType(OAuth2GrantType value)
void SetOAuth2ClientApplication(OAuth2ClientApplicationT &&value)
const OAuth2Credentials & GetOAuth2Credentials() const
OAuth2PropertiesInput & AddTokenUrlParametersMap(TokenUrlParametersMapKeyT &&key, TokenUrlParametersMapValueT &&value)
void SetAuthorizationCodeProperties(AuthorizationCodePropertiesT &&value)
void SetOAuth2Credentials(OAuth2CredentialsT &&value)
const OAuth2ClientApplication & GetOAuth2ClientApplication() const
const AuthorizationCodeProperties & GetAuthorizationCodeProperties() const
OAuth2PropertiesInput & WithOAuth2ClientApplication(OAuth2ClientApplicationT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue