AWS SDK for C++

AWS SDK for C++ Version 1.11.907

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
44 inline OAuth2GrantType GetOAuth2GrantType() const { return m_oAuth2GrantType; }
45 inline bool OAuth2GrantTypeHasBeenSet() const { return m_oAuth2GrantTypeHasBeenSet; }
47 m_oAuth2GrantTypeHasBeenSet = true;
48 m_oAuth2GrantType = value;
49 }
51 SetOAuth2GrantType(value);
52 return *this;
53 }
55
57
60 inline const OAuth2ClientApplication& GetOAuth2ClientApplication() const { return m_oAuth2ClientApplication; }
61 inline bool OAuth2ClientApplicationHasBeenSet() const { return m_oAuth2ClientApplicationHasBeenSet; }
62 template <typename OAuth2ClientApplicationT = OAuth2ClientApplication>
63 void SetOAuth2ClientApplication(OAuth2ClientApplicationT&& value) {
64 m_oAuth2ClientApplicationHasBeenSet = true;
65 m_oAuth2ClientApplication = std::forward<OAuth2ClientApplicationT>(value);
66 }
67 template <typename OAuth2ClientApplicationT = OAuth2ClientApplication>
68 OAuth2Properties& WithOAuth2ClientApplication(OAuth2ClientApplicationT&& value) {
69 SetOAuth2ClientApplication(std::forward<OAuth2ClientApplicationT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetTokenUrl() const { return m_tokenUrl; }
80 inline bool TokenUrlHasBeenSet() const { return m_tokenUrlHasBeenSet; }
81 template <typename TokenUrlT = Aws::String>
82 void SetTokenUrl(TokenUrlT&& value) {
83 m_tokenUrlHasBeenSet = true;
84 m_tokenUrl = std::forward<TokenUrlT>(value);
85 }
86 template <typename TokenUrlT = Aws::String>
87 OAuth2Properties& WithTokenUrl(TokenUrlT&& value) {
88 SetTokenUrl(std::forward<TokenUrlT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Map<Aws::String, Aws::String>& GetTokenUrlParametersMap() const { return m_tokenUrlParametersMap; }
98 inline bool TokenUrlParametersMapHasBeenSet() const { return m_tokenUrlParametersMapHasBeenSet; }
99 template <typename TokenUrlParametersMapT = Aws::Map<Aws::String, Aws::String>>
100 void SetTokenUrlParametersMap(TokenUrlParametersMapT&& value) {
101 m_tokenUrlParametersMapHasBeenSet = true;
102 m_tokenUrlParametersMap = std::forward<TokenUrlParametersMapT>(value);
103 }
104 template <typename TokenUrlParametersMapT = Aws::Map<Aws::String, Aws::String>>
105 OAuth2Properties& WithTokenUrlParametersMap(TokenUrlParametersMapT&& value) {
106 SetTokenUrlParametersMap(std::forward<TokenUrlParametersMapT>(value));
107 return *this;
108 }
109 template <typename TokenUrlParametersMapKeyT = Aws::String, typename TokenUrlParametersMapValueT = Aws::String>
110 OAuth2Properties& AddTokenUrlParametersMap(TokenUrlParametersMapKeyT&& key, TokenUrlParametersMapValueT&& value) {
111 m_tokenUrlParametersMapHasBeenSet = true;
112 m_tokenUrlParametersMap.emplace(std::forward<TokenUrlParametersMapKeyT>(key), std::forward<TokenUrlParametersMapValueT>(value));
113 return *this;
114 }
116 private:
117 OAuth2GrantType m_oAuth2GrantType{OAuth2GrantType::NOT_SET};
118
119 OAuth2ClientApplication m_oAuth2ClientApplication;
120
121 Aws::String m_tokenUrl;
122
123 Aws::Map<Aws::String, Aws::String> m_tokenUrlParametersMap;
124 bool m_oAuth2GrantTypeHasBeenSet = false;
125 bool m_oAuth2ClientApplicationHasBeenSet = false;
126 bool m_tokenUrlHasBeenSet = false;
127 bool m_tokenUrlParametersMapHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace Glue
132} // 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