AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
OAuth2Properties.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/OAuth2GrantType.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Appflow {
22namespace Model {
23
31 public:
32 AWS_APPFLOW_API OAuth2Properties() = default;
33 AWS_APPFLOW_API OAuth2Properties(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetTokenUrl() const { return m_tokenUrl; }
42 inline bool TokenUrlHasBeenSet() const { return m_tokenUrlHasBeenSet; }
43 template <typename TokenUrlT = Aws::String>
44 void SetTokenUrl(TokenUrlT&& value) {
45 m_tokenUrlHasBeenSet = true;
46 m_tokenUrl = std::forward<TokenUrlT>(value);
47 }
48 template <typename TokenUrlT = Aws::String>
49 OAuth2Properties& WithTokenUrl(TokenUrlT&& value) {
50 SetTokenUrl(std::forward<TokenUrlT>(value));
51 return *this;
52 }
54
56
59 inline OAuth2GrantType GetOAuth2GrantType() const { return m_oAuth2GrantType; }
60 inline bool OAuth2GrantTypeHasBeenSet() const { return m_oAuth2GrantTypeHasBeenSet; }
62 m_oAuth2GrantTypeHasBeenSet = true;
63 m_oAuth2GrantType = value;
64 }
66 SetOAuth2GrantType(value);
67 return *this;
68 }
70
72
77 inline const Aws::Map<Aws::String, Aws::String>& GetTokenUrlCustomProperties() const { return m_tokenUrlCustomProperties; }
78 inline bool TokenUrlCustomPropertiesHasBeenSet() const { return m_tokenUrlCustomPropertiesHasBeenSet; }
79 template <typename TokenUrlCustomPropertiesT = Aws::Map<Aws::String, Aws::String>>
80 void SetTokenUrlCustomProperties(TokenUrlCustomPropertiesT&& value) {
81 m_tokenUrlCustomPropertiesHasBeenSet = true;
82 m_tokenUrlCustomProperties = std::forward<TokenUrlCustomPropertiesT>(value);
83 }
84 template <typename TokenUrlCustomPropertiesT = Aws::Map<Aws::String, Aws::String>>
85 OAuth2Properties& WithTokenUrlCustomProperties(TokenUrlCustomPropertiesT&& value) {
86 SetTokenUrlCustomProperties(std::forward<TokenUrlCustomPropertiesT>(value));
87 return *this;
88 }
89 template <typename TokenUrlCustomPropertiesKeyT = Aws::String, typename TokenUrlCustomPropertiesValueT = Aws::String>
90 OAuth2Properties& AddTokenUrlCustomProperties(TokenUrlCustomPropertiesKeyT&& key, TokenUrlCustomPropertiesValueT&& value) {
91 m_tokenUrlCustomPropertiesHasBeenSet = true;
92 m_tokenUrlCustomProperties.emplace(std::forward<TokenUrlCustomPropertiesKeyT>(key),
93 std::forward<TokenUrlCustomPropertiesValueT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_tokenUrl;
99
100 OAuth2GrantType m_oAuth2GrantType{OAuth2GrantType::NOT_SET};
101
102 Aws::Map<Aws::String, Aws::String> m_tokenUrlCustomProperties;
103 bool m_tokenUrlHasBeenSet = false;
104 bool m_oAuth2GrantTypeHasBeenSet = false;
105 bool m_tokenUrlCustomPropertiesHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace Appflow
110} // 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