AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
OAuth2Properties.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 <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Glue
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GLUE_API OAuth2Properties() = default;
42
43
45
49 inline OAuth2GrantType GetOAuth2GrantType() const { return m_oAuth2GrantType; }
50 inline bool OAuth2GrantTypeHasBeenSet() const { return m_oAuth2GrantTypeHasBeenSet; }
51 inline void SetOAuth2GrantType(OAuth2GrantType value) { m_oAuth2GrantTypeHasBeenSet = true; m_oAuth2GrantType = value; }
54
56
59 inline const OAuth2ClientApplication& GetOAuth2ClientApplication() const { return m_oAuth2ClientApplication; }
60 inline bool OAuth2ClientApplicationHasBeenSet() const { return m_oAuth2ClientApplicationHasBeenSet; }
61 template<typename OAuth2ClientApplicationT = OAuth2ClientApplication>
62 void SetOAuth2ClientApplication(OAuth2ClientApplicationT&& value) { m_oAuth2ClientApplicationHasBeenSet = true; m_oAuth2ClientApplication = std::forward<OAuth2ClientApplicationT>(value); }
63 template<typename OAuth2ClientApplicationT = OAuth2ClientApplication>
64 OAuth2Properties& WithOAuth2ClientApplication(OAuth2ClientApplicationT&& value) { SetOAuth2ClientApplication(std::forward<OAuth2ClientApplicationT>(value)); return *this;}
66
68
72 inline const Aws::String& GetTokenUrl() const { return m_tokenUrl; }
73 inline bool TokenUrlHasBeenSet() const { return m_tokenUrlHasBeenSet; }
74 template<typename TokenUrlT = Aws::String>
75 void SetTokenUrl(TokenUrlT&& value) { m_tokenUrlHasBeenSet = true; m_tokenUrl = std::forward<TokenUrlT>(value); }
76 template<typename TokenUrlT = Aws::String>
77 OAuth2Properties& WithTokenUrl(TokenUrlT&& value) { SetTokenUrl(std::forward<TokenUrlT>(value)); return *this;}
79
81
84 inline const Aws::Map<Aws::String, Aws::String>& GetTokenUrlParametersMap() const { return m_tokenUrlParametersMap; }
85 inline bool TokenUrlParametersMapHasBeenSet() const { return m_tokenUrlParametersMapHasBeenSet; }
86 template<typename TokenUrlParametersMapT = Aws::Map<Aws::String, Aws::String>>
87 void SetTokenUrlParametersMap(TokenUrlParametersMapT&& value) { m_tokenUrlParametersMapHasBeenSet = true; m_tokenUrlParametersMap = std::forward<TokenUrlParametersMapT>(value); }
88 template<typename TokenUrlParametersMapT = Aws::Map<Aws::String, Aws::String>>
89 OAuth2Properties& WithTokenUrlParametersMap(TokenUrlParametersMapT&& value) { SetTokenUrlParametersMap(std::forward<TokenUrlParametersMapT>(value)); return *this;}
90 template<typename TokenUrlParametersMapKeyT = Aws::String, typename TokenUrlParametersMapValueT = Aws::String>
91 OAuth2Properties& AddTokenUrlParametersMap(TokenUrlParametersMapKeyT&& key, TokenUrlParametersMapValueT&& value) {
92 m_tokenUrlParametersMapHasBeenSet = true; m_tokenUrlParametersMap.emplace(std::forward<TokenUrlParametersMapKeyT>(key), std::forward<TokenUrlParametersMapValueT>(value)); return *this;
93 }
95 private:
96
98 bool m_oAuth2GrantTypeHasBeenSet = false;
99
100 OAuth2ClientApplication m_oAuth2ClientApplication;
101 bool m_oAuth2ClientApplicationHasBeenSet = false;
102
103 Aws::String m_tokenUrl;
104 bool m_tokenUrlHasBeenSet = false;
105
106 Aws::Map<Aws::String, Aws::String> m_tokenUrlParametersMap;
107 bool m_tokenUrlParametersMapHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Glue
112} // namespace Aws
OAuth2Properties & WithOAuth2ClientApplication(OAuth2ClientApplicationT &&value)
void SetTokenUrlParametersMap(TokenUrlParametersMapT &&value)
AWS_GLUE_API OAuth2Properties & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOAuth2ClientApplication(OAuth2ClientApplicationT &&value)
OAuth2Properties & AddTokenUrlParametersMap(TokenUrlParametersMapKeyT &&key, TokenUrlParametersMapValueT &&value)
OAuth2GrantType GetOAuth2GrantType() const
AWS_GLUE_API OAuth2Properties(Aws::Utils::Json::JsonView jsonValue)
OAuth2Properties & WithOAuth2GrantType(OAuth2GrantType value)
OAuth2Properties & WithTokenUrlParametersMap(TokenUrlParametersMapT &&value)
OAuth2Properties & WithTokenUrl(TokenUrlT &&value)
AWS_GLUE_API OAuth2Properties()=default
const Aws::Map< Aws::String, Aws::String > & GetTokenUrlParametersMap() const
void SetTokenUrl(TokenUrlT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTokenUrl() const
void SetOAuth2GrantType(OAuth2GrantType value)
const OAuth2ClientApplication & GetOAuth2ClientApplication() 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