AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
OAuth2Properties.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/OAuth2ClientApplication.h>
11#include <aws/glue/model/OAuth2GrantType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue {
23namespace Model {
24
32 public:
33 AWS_GLUE_API OAuth2Properties() = default;
37
39
43 inline OAuth2GrantType GetOAuth2GrantType() const { return m_oAuth2GrantType; }
44 inline bool OAuth2GrantTypeHasBeenSet() const { return m_oAuth2GrantTypeHasBeenSet; }
46 m_oAuth2GrantTypeHasBeenSet = true;
47 m_oAuth2GrantType = value;
48 }
50 SetOAuth2GrantType(value);
51 return *this;
52 }
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) {
63 m_oAuth2ClientApplicationHasBeenSet = true;
64 m_oAuth2ClientApplication = std::forward<OAuth2ClientApplicationT>(value);
65 }
66 template <typename OAuth2ClientApplicationT = OAuth2ClientApplication>
67 OAuth2Properties& WithOAuth2ClientApplication(OAuth2ClientApplicationT&& value) {
68 SetOAuth2ClientApplication(std::forward<OAuth2ClientApplicationT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetTokenUrl() const { return m_tokenUrl; }
79 inline bool TokenUrlHasBeenSet() const { return m_tokenUrlHasBeenSet; }
80 template <typename TokenUrlT = Aws::String>
81 void SetTokenUrl(TokenUrlT&& value) {
82 m_tokenUrlHasBeenSet = true;
83 m_tokenUrl = std::forward<TokenUrlT>(value);
84 }
85 template <typename TokenUrlT = Aws::String>
86 OAuth2Properties& WithTokenUrl(TokenUrlT&& value) {
87 SetTokenUrl(std::forward<TokenUrlT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Map<Aws::String, Aws::String>& GetTokenUrlParametersMap() const { return m_tokenUrlParametersMap; }
97 inline bool TokenUrlParametersMapHasBeenSet() const { return m_tokenUrlParametersMapHasBeenSet; }
98 template <typename TokenUrlParametersMapT = Aws::Map<Aws::String, Aws::String>>
99 void SetTokenUrlParametersMap(TokenUrlParametersMapT&& value) {
100 m_tokenUrlParametersMapHasBeenSet = true;
101 m_tokenUrlParametersMap = std::forward<TokenUrlParametersMapT>(value);
102 }
103 template <typename TokenUrlParametersMapT = Aws::Map<Aws::String, Aws::String>>
104 OAuth2Properties& WithTokenUrlParametersMap(TokenUrlParametersMapT&& value) {
105 SetTokenUrlParametersMap(std::forward<TokenUrlParametersMapT>(value));
106 return *this;
107 }
108 template <typename TokenUrlParametersMapKeyT = Aws::String, typename TokenUrlParametersMapValueT = Aws::String>
109 OAuth2Properties& AddTokenUrlParametersMap(TokenUrlParametersMapKeyT&& key, TokenUrlParametersMapValueT&& value) {
110 m_tokenUrlParametersMapHasBeenSet = true;
111 m_tokenUrlParametersMap.emplace(std::forward<TokenUrlParametersMapKeyT>(key), std::forward<TokenUrlParametersMapValueT>(value));
112 return *this;
113 }
115 private:
116 OAuth2GrantType m_oAuth2GrantType{OAuth2GrantType::NOT_SET};
117
118 OAuth2ClientApplication m_oAuth2ClientApplication;
119
120 Aws::String m_tokenUrl;
121
122 Aws::Map<Aws::String, Aws::String> m_tokenUrlParametersMap;
123 bool m_oAuth2GrantTypeHasBeenSet = false;
124 bool m_oAuth2ClientApplicationHasBeenSet = false;
125 bool m_tokenUrlHasBeenSet = false;
126 bool m_tokenUrlParametersMapHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace Glue
131} // 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