AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/AuthorizationCodeProperties.h>
11#include <aws/datazone/model/GlueOAuth2Credentials.h>
12#include <aws/datazone/model/OAuth2ClientApplication.h>
13#include <aws/datazone/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 DataZone {
25namespace Model {
26
33 public:
34 AWS_DATAZONE_API OAuth2Properties() = default;
35 AWS_DATAZONE_API OAuth2Properties(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
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
77 inline const Aws::String& GetTokenUrl() const { return m_tokenUrl; }
78 inline bool TokenUrlHasBeenSet() const { return m_tokenUrlHasBeenSet; }
79 template <typename TokenUrlT = Aws::String>
80 void SetTokenUrl(TokenUrlT&& value) {
81 m_tokenUrlHasBeenSet = true;
82 m_tokenUrl = std::forward<TokenUrlT>(value);
83 }
84 template <typename TokenUrlT = Aws::String>
85 OAuth2Properties& WithTokenUrl(TokenUrlT&& value) {
86 SetTokenUrl(std::forward<TokenUrlT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Map<Aws::String, Aws::String>& GetTokenUrlParametersMap() const { return m_tokenUrlParametersMap; }
96 inline bool TokenUrlParametersMapHasBeenSet() const { return m_tokenUrlParametersMapHasBeenSet; }
97 template <typename TokenUrlParametersMapT = Aws::Map<Aws::String, Aws::String>>
98 void SetTokenUrlParametersMap(TokenUrlParametersMapT&& value) {
99 m_tokenUrlParametersMapHasBeenSet = true;
100 m_tokenUrlParametersMap = std::forward<TokenUrlParametersMapT>(value);
101 }
102 template <typename TokenUrlParametersMapT = Aws::Map<Aws::String, Aws::String>>
103 OAuth2Properties& WithTokenUrlParametersMap(TokenUrlParametersMapT&& value) {
104 SetTokenUrlParametersMap(std::forward<TokenUrlParametersMapT>(value));
105 return *this;
106 }
107 template <typename TokenUrlParametersMapKeyT = Aws::String, typename TokenUrlParametersMapValueT = Aws::String>
108 OAuth2Properties& AddTokenUrlParametersMap(TokenUrlParametersMapKeyT&& key, TokenUrlParametersMapValueT&& value) {
109 m_tokenUrlParametersMapHasBeenSet = true;
110 m_tokenUrlParametersMap.emplace(std::forward<TokenUrlParametersMapKeyT>(key), std::forward<TokenUrlParametersMapValueT>(value));
111 return *this;
112 }
114
116
119 inline const AuthorizationCodeProperties& GetAuthorizationCodeProperties() const { return m_authorizationCodeProperties; }
120 inline bool AuthorizationCodePropertiesHasBeenSet() const { return m_authorizationCodePropertiesHasBeenSet; }
121 template <typename AuthorizationCodePropertiesT = AuthorizationCodeProperties>
122 void SetAuthorizationCodeProperties(AuthorizationCodePropertiesT&& value) {
123 m_authorizationCodePropertiesHasBeenSet = true;
124 m_authorizationCodeProperties = std::forward<AuthorizationCodePropertiesT>(value);
125 }
126 template <typename AuthorizationCodePropertiesT = AuthorizationCodeProperties>
127 OAuth2Properties& WithAuthorizationCodeProperties(AuthorizationCodePropertiesT&& value) {
128 SetAuthorizationCodeProperties(std::forward<AuthorizationCodePropertiesT>(value));
129 return *this;
130 }
132
134
137 inline const GlueOAuth2Credentials& GetOAuth2Credentials() const { return m_oAuth2Credentials; }
138 inline bool OAuth2CredentialsHasBeenSet() const { return m_oAuth2CredentialsHasBeenSet; }
139 template <typename OAuth2CredentialsT = GlueOAuth2Credentials>
140 void SetOAuth2Credentials(OAuth2CredentialsT&& value) {
141 m_oAuth2CredentialsHasBeenSet = true;
142 m_oAuth2Credentials = std::forward<OAuth2CredentialsT>(value);
143 }
144 template <typename OAuth2CredentialsT = GlueOAuth2Credentials>
145 OAuth2Properties& WithOAuth2Credentials(OAuth2CredentialsT&& value) {
146 SetOAuth2Credentials(std::forward<OAuth2CredentialsT>(value));
147 return *this;
148 }
150 private:
151 OAuth2GrantType m_oAuth2GrantType{OAuth2GrantType::NOT_SET};
152
153 OAuth2ClientApplication m_oAuth2ClientApplication;
154
155 Aws::String m_tokenUrl;
156
157 Aws::Map<Aws::String, Aws::String> m_tokenUrlParametersMap;
158
159 AuthorizationCodeProperties m_authorizationCodeProperties;
160
161 GlueOAuth2Credentials m_oAuth2Credentials;
162 bool m_oAuth2GrantTypeHasBeenSet = false;
163 bool m_oAuth2ClientApplicationHasBeenSet = false;
164 bool m_tokenUrlHasBeenSet = false;
165 bool m_tokenUrlParametersMapHasBeenSet = false;
166 bool m_authorizationCodePropertiesHasBeenSet = false;
167 bool m_oAuth2CredentialsHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace DataZone
172} // namespace Aws
const Aws::String & GetTokenUrl() const
OAuth2Properties & AddTokenUrlParametersMap(TokenUrlParametersMapKeyT &&key, TokenUrlParametersMapValueT &&value)
void SetAuthorizationCodeProperties(AuthorizationCodePropertiesT &&value)
void SetOAuth2ClientApplication(OAuth2ClientApplicationT &&value)
AWS_DATAZONE_API OAuth2Properties(Aws::Utils::Json::JsonView jsonValue)
OAuth2Properties & WithTokenUrlParametersMap(TokenUrlParametersMapT &&value)
void SetOAuth2Credentials(OAuth2CredentialsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTokenUrlParametersMap() const
const OAuth2ClientApplication & GetOAuth2ClientApplication() const
AWS_DATAZONE_API OAuth2Properties & operator=(Aws::Utils::Json::JsonView jsonValue)
OAuth2Properties & WithOAuth2Credentials(OAuth2CredentialsT &&value)
const AuthorizationCodeProperties & GetAuthorizationCodeProperties() const
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
OAuth2Properties & WithTokenUrl(TokenUrlT &&value)
void SetOAuth2GrantType(OAuth2GrantType value)
const GlueOAuth2Credentials & GetOAuth2Credentials() const
AWS_DATAZONE_API OAuth2Properties()=default
OAuth2GrantType GetOAuth2GrantType() const
OAuth2Properties & WithOAuth2ClientApplication(OAuth2ClientApplicationT &&value)
OAuth2Properties & WithOAuth2GrantType(OAuth2GrantType value)
OAuth2Properties & WithAuthorizationCodeProperties(AuthorizationCodePropertiesT &&value)
void SetTokenUrlParametersMap(TokenUrlParametersMapT &&value)
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