AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTokenUrl(const Aws::String& value) { m_tokenUrlHasBeenSet = true; m_tokenUrl = value; }
50 inline void SetTokenUrl(Aws::String&& value) { m_tokenUrlHasBeenSet = true; m_tokenUrl = std::move(value); }
51 inline void SetTokenUrl(const char* value) { m_tokenUrlHasBeenSet = true; m_tokenUrl.assign(value); }
52 inline OAuthProperties& WithTokenUrl(const Aws::String& value) { SetTokenUrl(value); return *this;}
53 inline OAuthProperties& WithTokenUrl(Aws::String&& value) { SetTokenUrl(std::move(value)); return *this;}
54 inline OAuthProperties& WithTokenUrl(const char* value) { SetTokenUrl(value); return *this;}
56
58
62 inline const Aws::String& GetAuthCodeUrl() const{ return m_authCodeUrl; }
63 inline bool AuthCodeUrlHasBeenSet() const { return m_authCodeUrlHasBeenSet; }
64 inline void SetAuthCodeUrl(const Aws::String& value) { m_authCodeUrlHasBeenSet = true; m_authCodeUrl = value; }
65 inline void SetAuthCodeUrl(Aws::String&& value) { m_authCodeUrlHasBeenSet = true; m_authCodeUrl = std::move(value); }
66 inline void SetAuthCodeUrl(const char* value) { m_authCodeUrlHasBeenSet = true; m_authCodeUrl.assign(value); }
67 inline OAuthProperties& WithAuthCodeUrl(const Aws::String& value) { SetAuthCodeUrl(value); return *this;}
68 inline OAuthProperties& WithAuthCodeUrl(Aws::String&& value) { SetAuthCodeUrl(std::move(value)); return *this;}
69 inline OAuthProperties& WithAuthCodeUrl(const char* value) { SetAuthCodeUrl(value); return *this;}
71
73
76 inline const Aws::Vector<Aws::String>& GetOAuthScopes() const{ return m_oAuthScopes; }
77 inline bool OAuthScopesHasBeenSet() const { return m_oAuthScopesHasBeenSet; }
78 inline void SetOAuthScopes(const Aws::Vector<Aws::String>& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes = value; }
79 inline void SetOAuthScopes(Aws::Vector<Aws::String>&& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes = std::move(value); }
80 inline OAuthProperties& WithOAuthScopes(const Aws::Vector<Aws::String>& value) { SetOAuthScopes(value); return *this;}
81 inline OAuthProperties& WithOAuthScopes(Aws::Vector<Aws::String>&& value) { SetOAuthScopes(std::move(value)); return *this;}
82 inline OAuthProperties& AddOAuthScopes(const Aws::String& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(value); return *this; }
83 inline OAuthProperties& AddOAuthScopes(Aws::String&& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(std::move(value)); return *this; }
84 inline OAuthProperties& AddOAuthScopes(const char* value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(value); return *this; }
86 private:
87
88 Aws::String m_tokenUrl;
89 bool m_tokenUrlHasBeenSet = false;
90
91 Aws::String m_authCodeUrl;
92 bool m_authCodeUrlHasBeenSet = false;
93
94 Aws::Vector<Aws::String> m_oAuthScopes;
95 bool m_oAuthScopesHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace Appflow
100} // namespace Aws
AWS_APPFLOW_API OAuthProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
OAuthProperties & WithAuthCodeUrl(const Aws::String &value)
void SetOAuthScopes(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetOAuthScopes() const
void SetAuthCodeUrl(const char *value)
void SetAuthCodeUrl(Aws::String &&value)
OAuthProperties & WithOAuthScopes(Aws::Vector< Aws::String > &&value)
OAuthProperties & WithTokenUrl(const char *value)
void SetAuthCodeUrl(const Aws::String &value)
OAuthProperties & AddOAuthScopes(const char *value)
OAuthProperties & WithAuthCodeUrl(Aws::String &&value)
OAuthProperties & WithTokenUrl(const Aws::String &value)
OAuthProperties & WithTokenUrl(Aws::String &&value)
OAuthProperties & WithOAuthScopes(const Aws::Vector< Aws::String > &value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
OAuthProperties & AddOAuthScopes(const Aws::String &value)
void SetTokenUrl(Aws::String &&value)
const Aws::String & GetAuthCodeUrl() const
AWS_APPFLOW_API OAuthProperties(Aws::Utils::Json::JsonView jsonValue)
OAuthProperties & AddOAuthScopes(Aws::String &&value)
void SetOAuthScopes(Aws::Vector< Aws::String > &&value)
OAuthProperties & WithAuthCodeUrl(const char *value)
void SetTokenUrl(const char *value)
void SetTokenUrl(const Aws::String &value)
const Aws::String & GetTokenUrl() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue