AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
HoneycodeConnectorProfileCredentials.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/ConnectorOAuthRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.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 HoneycodeConnectorProfileCredentials() = default;
34 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
41 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
42 template <typename AccessTokenT = Aws::String>
43 void SetAccessToken(AccessTokenT&& value) {
44 m_accessTokenHasBeenSet = true;
45 m_accessToken = std::forward<AccessTokenT>(value);
46 }
47 template <typename AccessTokenT = Aws::String>
49 SetAccessToken(std::forward<AccessTokenT>(value));
50 return *this;
51 }
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) {
62 m_refreshTokenHasBeenSet = true;
63 m_refreshToken = std::forward<RefreshTokenT>(value);
64 }
65 template <typename RefreshTokenT = Aws::String>
67 SetRefreshToken(std::forward<RefreshTokenT>(value));
68 return *this;
69 }
71
73
74 inline const ConnectorOAuthRequest& GetOAuthRequest() const { return m_oAuthRequest; }
75 inline bool OAuthRequestHasBeenSet() const { return m_oAuthRequestHasBeenSet; }
76 template <typename OAuthRequestT = ConnectorOAuthRequest>
77 void SetOAuthRequest(OAuthRequestT&& value) {
78 m_oAuthRequestHasBeenSet = true;
79 m_oAuthRequest = std::forward<OAuthRequestT>(value);
80 }
81 template <typename OAuthRequestT = ConnectorOAuthRequest>
83 SetOAuthRequest(std::forward<OAuthRequestT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_accessToken;
89
90 Aws::String m_refreshToken;
91
92 ConnectorOAuthRequest m_oAuthRequest;
93 bool m_accessTokenHasBeenSet = false;
94 bool m_refreshTokenHasBeenSet = false;
95 bool m_oAuthRequestHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace Appflow
100} // 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