AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ConnectorOAuthRequest.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Appflow {
20namespace Model {
21
30 public:
31 AWS_APPFLOW_API ConnectorOAuthRequest() = default;
34 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetAuthCode() const { return m_authCode; }
42 inline bool AuthCodeHasBeenSet() const { return m_authCodeHasBeenSet; }
43 template <typename AuthCodeT = Aws::String>
44 void SetAuthCode(AuthCodeT&& value) {
45 m_authCodeHasBeenSet = true;
46 m_authCode = std::forward<AuthCodeT>(value);
47 }
48 template <typename AuthCodeT = Aws::String>
49 ConnectorOAuthRequest& WithAuthCode(AuthCodeT&& value) {
50 SetAuthCode(std::forward<AuthCodeT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetRedirectUri() const { return m_redirectUri; }
61 inline bool RedirectUriHasBeenSet() const { return m_redirectUriHasBeenSet; }
62 template <typename RedirectUriT = Aws::String>
63 void SetRedirectUri(RedirectUriT&& value) {
64 m_redirectUriHasBeenSet = true;
65 m_redirectUri = std::forward<RedirectUriT>(value);
66 }
67 template <typename RedirectUriT = Aws::String>
68 ConnectorOAuthRequest& WithRedirectUri(RedirectUriT&& value) {
69 SetRedirectUri(std::forward<RedirectUriT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_authCode;
75
76 Aws::String m_redirectUri;
77 bool m_authCodeHasBeenSet = false;
78 bool m_redirectUriHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Appflow
83} // namespace Aws
ConnectorOAuthRequest & WithRedirectUri(RedirectUriT &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPFLOW_API ConnectorOAuthRequest()=default
AWS_APPFLOW_API ConnectorOAuthRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectorOAuthRequest & WithAuthCode(AuthCodeT &&value)
AWS_APPFLOW_API ConnectorOAuthRequest(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue