AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
HoneycodeConnectorProfileCredentials.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appflow/model/ConnectorOAuthRequest.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 HoneycodeConnectorProfileCredentials() = default;
39 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
47 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
48 template<typename AccessTokenT = Aws::String>
49 void SetAccessToken(AccessTokenT&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::forward<AccessTokenT>(value); }
50 template<typename AccessTokenT = Aws::String>
51 HoneycodeConnectorProfileCredentials& WithAccessToken(AccessTokenT&& value) { SetAccessToken(std::forward<AccessTokenT>(value)); return *this;}
53
55
58 inline const Aws::String& GetRefreshToken() const { return m_refreshToken; }
59 inline bool RefreshTokenHasBeenSet() const { return m_refreshTokenHasBeenSet; }
60 template<typename RefreshTokenT = Aws::String>
61 void SetRefreshToken(RefreshTokenT&& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = std::forward<RefreshTokenT>(value); }
62 template<typename RefreshTokenT = Aws::String>
63 HoneycodeConnectorProfileCredentials& WithRefreshToken(RefreshTokenT&& value) { SetRefreshToken(std::forward<RefreshTokenT>(value)); return *this;}
65
67
68 inline const ConnectorOAuthRequest& GetOAuthRequest() const { return m_oAuthRequest; }
69 inline bool OAuthRequestHasBeenSet() const { return m_oAuthRequestHasBeenSet; }
70 template<typename OAuthRequestT = ConnectorOAuthRequest>
71 void SetOAuthRequest(OAuthRequestT&& value) { m_oAuthRequestHasBeenSet = true; m_oAuthRequest = std::forward<OAuthRequestT>(value); }
72 template<typename OAuthRequestT = ConnectorOAuthRequest>
73 HoneycodeConnectorProfileCredentials& WithOAuthRequest(OAuthRequestT&& value) { SetOAuthRequest(std::forward<OAuthRequestT>(value)); return *this;}
75 private:
76
77 Aws::String m_accessToken;
78 bool m_accessTokenHasBeenSet = false;
79
80 Aws::String m_refreshToken;
81 bool m_refreshTokenHasBeenSet = false;
82
83 ConnectorOAuthRequest m_oAuthRequest;
84 bool m_oAuthRequestHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace Appflow
89} // namespace Aws
HoneycodeConnectorProfileCredentials & WithRefreshToken(RefreshTokenT &&value)
AWS_APPFLOW_API HoneycodeConnectorProfileCredentials(Aws::Utils::Json::JsonView jsonValue)
AWS_APPFLOW_API HoneycodeConnectorProfileCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
HoneycodeConnectorProfileCredentials & WithAccessToken(AccessTokenT &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
HoneycodeConnectorProfileCredentials & WithOAuthRequest(OAuthRequestT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue