AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
OAuthProperties.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Appflow {
21namespace Model {
22
30 public:
31 AWS_APPFLOW_API OAuthProperties() = default;
32 AWS_APPFLOW_API OAuthProperties(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
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 OAuthProperties& WithTokenUrl(TokenUrlT&& value) {
50 SetTokenUrl(std::forward<TokenUrlT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetAuthCodeUrl() const { return m_authCodeUrl; }
61 inline bool AuthCodeUrlHasBeenSet() const { return m_authCodeUrlHasBeenSet; }
62 template <typename AuthCodeUrlT = Aws::String>
63 void SetAuthCodeUrl(AuthCodeUrlT&& value) {
64 m_authCodeUrlHasBeenSet = true;
65 m_authCodeUrl = std::forward<AuthCodeUrlT>(value);
66 }
67 template <typename AuthCodeUrlT = Aws::String>
68 OAuthProperties& WithAuthCodeUrl(AuthCodeUrlT&& value) {
69 SetAuthCodeUrl(std::forward<AuthCodeUrlT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<Aws::String>& GetOAuthScopes() const { return m_oAuthScopes; }
79 inline bool OAuthScopesHasBeenSet() const { return m_oAuthScopesHasBeenSet; }
80 template <typename OAuthScopesT = Aws::Vector<Aws::String>>
81 void SetOAuthScopes(OAuthScopesT&& value) {
82 m_oAuthScopesHasBeenSet = true;
83 m_oAuthScopes = std::forward<OAuthScopesT>(value);
84 }
85 template <typename OAuthScopesT = Aws::Vector<Aws::String>>
86 OAuthProperties& WithOAuthScopes(OAuthScopesT&& value) {
87 SetOAuthScopes(std::forward<OAuthScopesT>(value));
88 return *this;
89 }
90 template <typename OAuthScopesT = Aws::String>
91 OAuthProperties& AddOAuthScopes(OAuthScopesT&& value) {
92 m_oAuthScopesHasBeenSet = true;
93 m_oAuthScopes.emplace_back(std::forward<OAuthScopesT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_tokenUrl;
99
100 Aws::String m_authCodeUrl;
101
102 Aws::Vector<Aws::String> m_oAuthScopes;
103 bool m_tokenUrlHasBeenSet = false;
104 bool m_authCodeUrlHasBeenSet = false;
105 bool m_oAuthScopesHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace Appflow
110} // namespace Aws
AWS_APPFLOW_API OAuthProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
OAuthProperties & AddOAuthScopes(OAuthScopesT &&value)
const Aws::Vector< Aws::String > & GetOAuthScopes() const
void SetOAuthScopes(OAuthScopesT &&value)
OAuthProperties & WithOAuthScopes(OAuthScopesT &&value)
void SetTokenUrl(TokenUrlT &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAuthCodeUrl() const
AWS_APPFLOW_API OAuthProperties(Aws::Utils::Json::JsonView jsonValue)
OAuthProperties & WithTokenUrl(TokenUrlT &&value)
OAuthProperties & WithAuthCodeUrl(AuthCodeUrlT &&value)
const Aws::String & GetTokenUrl() const
AWS_APPFLOW_API OAuthProperties()=default
void SetAuthCodeUrl(AuthCodeUrlT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue