AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
OAuth2Properties.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/AuthorizationCodeProperties.h>
9#include <aws/datazone/model/OAuth2ClientApplication.h>
10#include <aws/datazone/model/GlueOAuth2Credentials.h>
11#include <aws/datazone/model/OAuth2GrantType.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace DataZone
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_DATAZONE_API OAuth2Properties() = default;
40 AWS_DATAZONE_API OAuth2Properties(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const AuthorizationCodeProperties& GetAuthorizationCodeProperties() const { return m_authorizationCodeProperties; }
50 inline bool AuthorizationCodePropertiesHasBeenSet() const { return m_authorizationCodePropertiesHasBeenSet; }
51 template<typename AuthorizationCodePropertiesT = AuthorizationCodeProperties>
52 void SetAuthorizationCodeProperties(AuthorizationCodePropertiesT&& value) { m_authorizationCodePropertiesHasBeenSet = true; m_authorizationCodeProperties = std::forward<AuthorizationCodePropertiesT>(value); }
53 template<typename AuthorizationCodePropertiesT = AuthorizationCodeProperties>
54 OAuth2Properties& WithAuthorizationCodeProperties(AuthorizationCodePropertiesT&& value) { SetAuthorizationCodeProperties(std::forward<AuthorizationCodePropertiesT>(value)); return *this;}
56
58
61 inline const OAuth2ClientApplication& GetOAuth2ClientApplication() const { return m_oAuth2ClientApplication; }
62 inline bool OAuth2ClientApplicationHasBeenSet() const { return m_oAuth2ClientApplicationHasBeenSet; }
63 template<typename OAuth2ClientApplicationT = OAuth2ClientApplication>
64 void SetOAuth2ClientApplication(OAuth2ClientApplicationT&& value) { m_oAuth2ClientApplicationHasBeenSet = true; m_oAuth2ClientApplication = std::forward<OAuth2ClientApplicationT>(value); }
65 template<typename OAuth2ClientApplicationT = OAuth2ClientApplication>
66 OAuth2Properties& WithOAuth2ClientApplication(OAuth2ClientApplicationT&& value) { SetOAuth2ClientApplication(std::forward<OAuth2ClientApplicationT>(value)); return *this;}
68
70
73 inline const GlueOAuth2Credentials& GetOAuth2Credentials() const { return m_oAuth2Credentials; }
74 inline bool OAuth2CredentialsHasBeenSet() const { return m_oAuth2CredentialsHasBeenSet; }
75 template<typename OAuth2CredentialsT = GlueOAuth2Credentials>
76 void SetOAuth2Credentials(OAuth2CredentialsT&& value) { m_oAuth2CredentialsHasBeenSet = true; m_oAuth2Credentials = std::forward<OAuth2CredentialsT>(value); }
77 template<typename OAuth2CredentialsT = GlueOAuth2Credentials>
78 OAuth2Properties& WithOAuth2Credentials(OAuth2CredentialsT&& value) { SetOAuth2Credentials(std::forward<OAuth2CredentialsT>(value)); return *this;}
80
82
85 inline OAuth2GrantType GetOAuth2GrantType() const { return m_oAuth2GrantType; }
86 inline bool OAuth2GrantTypeHasBeenSet() const { return m_oAuth2GrantTypeHasBeenSet; }
87 inline void SetOAuth2GrantType(OAuth2GrantType value) { m_oAuth2GrantTypeHasBeenSet = true; m_oAuth2GrantType = value; }
90
92
95 inline const Aws::String& GetTokenUrl() const { return m_tokenUrl; }
96 inline bool TokenUrlHasBeenSet() const { return m_tokenUrlHasBeenSet; }
97 template<typename TokenUrlT = Aws::String>
98 void SetTokenUrl(TokenUrlT&& value) { m_tokenUrlHasBeenSet = true; m_tokenUrl = std::forward<TokenUrlT>(value); }
99 template<typename TokenUrlT = Aws::String>
100 OAuth2Properties& WithTokenUrl(TokenUrlT&& value) { SetTokenUrl(std::forward<TokenUrlT>(value)); return *this;}
102
104
107 inline const Aws::Map<Aws::String, Aws::String>& GetTokenUrlParametersMap() const { return m_tokenUrlParametersMap; }
108 inline bool TokenUrlParametersMapHasBeenSet() const { return m_tokenUrlParametersMapHasBeenSet; }
109 template<typename TokenUrlParametersMapT = Aws::Map<Aws::String, Aws::String>>
110 void SetTokenUrlParametersMap(TokenUrlParametersMapT&& value) { m_tokenUrlParametersMapHasBeenSet = true; m_tokenUrlParametersMap = std::forward<TokenUrlParametersMapT>(value); }
111 template<typename TokenUrlParametersMapT = Aws::Map<Aws::String, Aws::String>>
112 OAuth2Properties& WithTokenUrlParametersMap(TokenUrlParametersMapT&& value) { SetTokenUrlParametersMap(std::forward<TokenUrlParametersMapT>(value)); return *this;}
113 template<typename TokenUrlParametersMapKeyT = Aws::String, typename TokenUrlParametersMapValueT = Aws::String>
114 OAuth2Properties& AddTokenUrlParametersMap(TokenUrlParametersMapKeyT&& key, TokenUrlParametersMapValueT&& value) {
115 m_tokenUrlParametersMapHasBeenSet = true; m_tokenUrlParametersMap.emplace(std::forward<TokenUrlParametersMapKeyT>(key), std::forward<TokenUrlParametersMapValueT>(value)); return *this;
116 }
118 private:
119
120 AuthorizationCodeProperties m_authorizationCodeProperties;
121 bool m_authorizationCodePropertiesHasBeenSet = false;
122
123 OAuth2ClientApplication m_oAuth2ClientApplication;
124 bool m_oAuth2ClientApplicationHasBeenSet = false;
125
126 GlueOAuth2Credentials m_oAuth2Credentials;
127 bool m_oAuth2CredentialsHasBeenSet = false;
128
129 OAuth2GrantType m_oAuth2GrantType{OAuth2GrantType::NOT_SET};
130 bool m_oAuth2GrantTypeHasBeenSet = false;
131
132 Aws::String m_tokenUrl;
133 bool m_tokenUrlHasBeenSet = false;
134
135 Aws::Map<Aws::String, Aws::String> m_tokenUrlParametersMap;
136 bool m_tokenUrlParametersMapHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace DataZone
141} // 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