AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Appflow
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPFLOW_API OAuthProperties() = default;
37 AWS_APPFLOW_API OAuthProperties(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
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 OAuthProperties& WithTokenUrl(TokenUrlT&& value) { SetTokenUrl(std::forward<TokenUrlT>(value)); return *this;}
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) { m_authCodeUrlHasBeenSet = true; m_authCodeUrl = std::forward<AuthCodeUrlT>(value); }
64 template<typename AuthCodeUrlT = Aws::String>
65 OAuthProperties& WithAuthCodeUrl(AuthCodeUrlT&& value) { SetAuthCodeUrl(std::forward<AuthCodeUrlT>(value)); return *this;}
67
69
72 inline const Aws::Vector<Aws::String>& GetOAuthScopes() const { return m_oAuthScopes; }
73 inline bool OAuthScopesHasBeenSet() const { return m_oAuthScopesHasBeenSet; }
74 template<typename OAuthScopesT = Aws::Vector<Aws::String>>
75 void SetOAuthScopes(OAuthScopesT&& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes = std::forward<OAuthScopesT>(value); }
76 template<typename OAuthScopesT = Aws::Vector<Aws::String>>
77 OAuthProperties& WithOAuthScopes(OAuthScopesT&& value) { SetOAuthScopes(std::forward<OAuthScopesT>(value)); return *this;}
78 template<typename OAuthScopesT = Aws::String>
79 OAuthProperties& AddOAuthScopes(OAuthScopesT&& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.emplace_back(std::forward<OAuthScopesT>(value)); return *this; }
81 private:
82
83 Aws::String m_tokenUrl;
84 bool m_tokenUrlHasBeenSet = false;
85
86 Aws::String m_authCodeUrl;
87 bool m_authCodeUrlHasBeenSet = false;
88
89 Aws::Vector<Aws::String> m_oAuthScopes;
90 bool m_oAuthScopesHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Appflow
95} // 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