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/appflow/Appflow_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appflow/model/OAuth2GrantType.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Appflow
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_APPFLOW_API OAuth2Properties() = default;
38 AWS_APPFLOW_API OAuth2Properties(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetTokenUrl() const { return m_tokenUrl; }
48 inline bool TokenUrlHasBeenSet() const { return m_tokenUrlHasBeenSet; }
49 template<typename TokenUrlT = Aws::String>
50 void SetTokenUrl(TokenUrlT&& value) { m_tokenUrlHasBeenSet = true; m_tokenUrl = std::forward<TokenUrlT>(value); }
51 template<typename TokenUrlT = Aws::String>
52 OAuth2Properties& WithTokenUrl(TokenUrlT&& value) { SetTokenUrl(std::forward<TokenUrlT>(value)); return *this;}
54
56
59 inline OAuth2GrantType GetOAuth2GrantType() const { return m_oAuth2GrantType; }
60 inline bool OAuth2GrantTypeHasBeenSet() const { return m_oAuth2GrantTypeHasBeenSet; }
61 inline void SetOAuth2GrantType(OAuth2GrantType value) { m_oAuth2GrantTypeHasBeenSet = true; m_oAuth2GrantType = value; }
64
66
71 inline const Aws::Map<Aws::String, Aws::String>& GetTokenUrlCustomProperties() const { return m_tokenUrlCustomProperties; }
72 inline bool TokenUrlCustomPropertiesHasBeenSet() const { return m_tokenUrlCustomPropertiesHasBeenSet; }
73 template<typename TokenUrlCustomPropertiesT = Aws::Map<Aws::String, Aws::String>>
74 void SetTokenUrlCustomProperties(TokenUrlCustomPropertiesT&& value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties = std::forward<TokenUrlCustomPropertiesT>(value); }
75 template<typename TokenUrlCustomPropertiesT = Aws::Map<Aws::String, Aws::String>>
76 OAuth2Properties& WithTokenUrlCustomProperties(TokenUrlCustomPropertiesT&& value) { SetTokenUrlCustomProperties(std::forward<TokenUrlCustomPropertiesT>(value)); return *this;}
77 template<typename TokenUrlCustomPropertiesKeyT = Aws::String, typename TokenUrlCustomPropertiesValueT = Aws::String>
78 OAuth2Properties& AddTokenUrlCustomProperties(TokenUrlCustomPropertiesKeyT&& key, TokenUrlCustomPropertiesValueT&& value) {
79 m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties.emplace(std::forward<TokenUrlCustomPropertiesKeyT>(key), std::forward<TokenUrlCustomPropertiesValueT>(value)); return *this;
80 }
82 private:
83
84 Aws::String m_tokenUrl;
85 bool m_tokenUrlHasBeenSet = false;
86
88 bool m_oAuth2GrantTypeHasBeenSet = false;
89
90 Aws::Map<Aws::String, Aws::String> m_tokenUrlCustomProperties;
91 bool m_tokenUrlCustomPropertiesHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Appflow
96} // namespace Aws
const Aws::String & GetTokenUrl() const
AWS_APPFLOW_API OAuth2Properties()=default
AWS_APPFLOW_API OAuth2Properties & operator=(Aws::Utils::Json::JsonView jsonValue)
OAuth2Properties & WithTokenUrlCustomProperties(TokenUrlCustomPropertiesT &&value)
void SetTokenUrlCustomProperties(TokenUrlCustomPropertiesT &&value)
OAuth2Properties & WithOAuth2GrantType(OAuth2GrantType value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOAuth2GrantType(OAuth2GrantType value)
OAuth2Properties & AddTokenUrlCustomProperties(TokenUrlCustomPropertiesKeyT &&key, TokenUrlCustomPropertiesValueT &&value)
AWS_APPFLOW_API OAuth2Properties(Aws::Utils::Json::JsonView jsonValue)
OAuth2GrantType GetOAuth2GrantType() const
const Aws::Map< Aws::String, Aws::String > & GetTokenUrlCustomProperties() const
OAuth2Properties & WithTokenUrl(TokenUrlT &&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