AWS SDK for C++

AWS SDK for C++ Version 1.11.691

Loading...
Searching...
No Matches
OAuth2PropertiesInput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/AuthorizationCodeProperties.h>
11#include <aws/glue/model/OAuth2ClientApplication.h>
12#include <aws/glue/model/OAuth2Credentials.h>
13#include <aws/glue/model/OAuth2GrantType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Glue {
25namespace Model {
26
34 public:
35 AWS_GLUE_API OAuth2PropertiesInput() = default;
39
41
46 inline OAuth2GrantType GetOAuth2GrantType() const { return m_oAuth2GrantType; }
47 inline bool OAuth2GrantTypeHasBeenSet() const { return m_oAuth2GrantTypeHasBeenSet; }
49 m_oAuth2GrantTypeHasBeenSet = true;
50 m_oAuth2GrantType = value;
51 }
53 SetOAuth2GrantType(value);
54 return *this;
55 }
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) {
67 m_oAuth2ClientApplicationHasBeenSet = true;
68 m_oAuth2ClientApplication = std::forward<OAuth2ClientApplicationT>(value);
69 }
70 template <typename OAuth2ClientApplicationT = OAuth2ClientApplication>
71 OAuth2PropertiesInput& WithOAuth2ClientApplication(OAuth2ClientApplicationT&& value) {
72 SetOAuth2ClientApplication(std::forward<OAuth2ClientApplicationT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetTokenUrl() const { return m_tokenUrl; }
83 inline bool TokenUrlHasBeenSet() const { return m_tokenUrlHasBeenSet; }
84 template <typename TokenUrlT = Aws::String>
85 void SetTokenUrl(TokenUrlT&& value) {
86 m_tokenUrlHasBeenSet = true;
87 m_tokenUrl = std::forward<TokenUrlT>(value);
88 }
89 template <typename TokenUrlT = Aws::String>
90 OAuth2PropertiesInput& WithTokenUrl(TokenUrlT&& value) {
91 SetTokenUrl(std::forward<TokenUrlT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Map<Aws::String, Aws::String>& GetTokenUrlParametersMap() const { return m_tokenUrlParametersMap; }
101 inline bool TokenUrlParametersMapHasBeenSet() const { return m_tokenUrlParametersMapHasBeenSet; }
102 template <typename TokenUrlParametersMapT = Aws::Map<Aws::String, Aws::String>>
103 void SetTokenUrlParametersMap(TokenUrlParametersMapT&& value) {
104 m_tokenUrlParametersMapHasBeenSet = true;
105 m_tokenUrlParametersMap = std::forward<TokenUrlParametersMapT>(value);
106 }
107 template <typename TokenUrlParametersMapT = Aws::Map<Aws::String, Aws::String>>
108 OAuth2PropertiesInput& WithTokenUrlParametersMap(TokenUrlParametersMapT&& value) {
109 SetTokenUrlParametersMap(std::forward<TokenUrlParametersMapT>(value));
110 return *this;
111 }
112 template <typename TokenUrlParametersMapKeyT = Aws::String, typename TokenUrlParametersMapValueT = Aws::String>
113 OAuth2PropertiesInput& AddTokenUrlParametersMap(TokenUrlParametersMapKeyT&& key, TokenUrlParametersMapValueT&& value) {
114 m_tokenUrlParametersMapHasBeenSet = true;
115 m_tokenUrlParametersMap.emplace(std::forward<TokenUrlParametersMapKeyT>(key), std::forward<TokenUrlParametersMapValueT>(value));
116 return *this;
117 }
119
121
125 inline const AuthorizationCodeProperties& GetAuthorizationCodeProperties() const { return m_authorizationCodeProperties; }
126 inline bool AuthorizationCodePropertiesHasBeenSet() const { return m_authorizationCodePropertiesHasBeenSet; }
127 template <typename AuthorizationCodePropertiesT = AuthorizationCodeProperties>
128 void SetAuthorizationCodeProperties(AuthorizationCodePropertiesT&& value) {
129 m_authorizationCodePropertiesHasBeenSet = true;
130 m_authorizationCodeProperties = std::forward<AuthorizationCodePropertiesT>(value);
131 }
132 template <typename AuthorizationCodePropertiesT = AuthorizationCodeProperties>
133 OAuth2PropertiesInput& WithAuthorizationCodeProperties(AuthorizationCodePropertiesT&& value) {
134 SetAuthorizationCodeProperties(std::forward<AuthorizationCodePropertiesT>(value));
135 return *this;
136 }
138
140
144 inline const OAuth2Credentials& GetOAuth2Credentials() const { return m_oAuth2Credentials; }
145 inline bool OAuth2CredentialsHasBeenSet() const { return m_oAuth2CredentialsHasBeenSet; }
146 template <typename OAuth2CredentialsT = OAuth2Credentials>
147 void SetOAuth2Credentials(OAuth2CredentialsT&& value) {
148 m_oAuth2CredentialsHasBeenSet = true;
149 m_oAuth2Credentials = std::forward<OAuth2CredentialsT>(value);
150 }
151 template <typename OAuth2CredentialsT = OAuth2Credentials>
152 OAuth2PropertiesInput& WithOAuth2Credentials(OAuth2CredentialsT&& value) {
153 SetOAuth2Credentials(std::forward<OAuth2CredentialsT>(value));
154 return *this;
155 }
157 private:
158 OAuth2GrantType m_oAuth2GrantType{OAuth2GrantType::NOT_SET};
159 bool m_oAuth2GrantTypeHasBeenSet = false;
160
161 OAuth2ClientApplication m_oAuth2ClientApplication;
162 bool m_oAuth2ClientApplicationHasBeenSet = false;
163
164 Aws::String m_tokenUrl;
165 bool m_tokenUrlHasBeenSet = false;
166
167 Aws::Map<Aws::String, Aws::String> m_tokenUrlParametersMap;
168 bool m_tokenUrlParametersMapHasBeenSet = false;
169
170 AuthorizationCodeProperties m_authorizationCodeProperties;
171 bool m_authorizationCodePropertiesHasBeenSet = false;
172
173 OAuth2Credentials m_oAuth2Credentials;
174 bool m_oAuth2CredentialsHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace Glue
179} // 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