AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
49 inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
50 inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
52 inline HoneycodeConnectorProfileCredentials& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
53 inline HoneycodeConnectorProfileCredentials& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
55
57
60 inline const Aws::String& GetRefreshToken() const{ return m_refreshToken; }
61 inline bool RefreshTokenHasBeenSet() const { return m_refreshTokenHasBeenSet; }
62 inline void SetRefreshToken(const Aws::String& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = value; }
63 inline void SetRefreshToken(Aws::String&& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = std::move(value); }
64 inline void SetRefreshToken(const char* value) { m_refreshTokenHasBeenSet = true; m_refreshToken.assign(value); }
66 inline HoneycodeConnectorProfileCredentials& WithRefreshToken(Aws::String&& value) { SetRefreshToken(std::move(value)); return *this;}
67 inline HoneycodeConnectorProfileCredentials& WithRefreshToken(const char* value) { SetRefreshToken(value); return *this;}
69
71
72 inline const ConnectorOAuthRequest& GetOAuthRequest() const{ return m_oAuthRequest; }
73 inline bool OAuthRequestHasBeenSet() const { return m_oAuthRequestHasBeenSet; }
74 inline void SetOAuthRequest(const ConnectorOAuthRequest& value) { m_oAuthRequestHasBeenSet = true; m_oAuthRequest = value; }
75 inline void SetOAuthRequest(ConnectorOAuthRequest&& value) { m_oAuthRequestHasBeenSet = true; m_oAuthRequest = std::move(value); }
79 private:
80
81 Aws::String m_accessToken;
82 bool m_accessTokenHasBeenSet = false;
83
84 Aws::String m_refreshToken;
85 bool m_refreshTokenHasBeenSet = false;
86
87 ConnectorOAuthRequest m_oAuthRequest;
88 bool m_oAuthRequestHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Appflow
93} // namespace Aws
AWS_APPFLOW_API HoneycodeConnectorProfileCredentials(Aws::Utils::Json::JsonView jsonValue)
AWS_APPFLOW_API HoneycodeConnectorProfileCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
HoneycodeConnectorProfileCredentials & WithAccessToken(const char *value)
HoneycodeConnectorProfileCredentials & WithAccessToken(Aws::String &&value)
HoneycodeConnectorProfileCredentials & WithOAuthRequest(ConnectorOAuthRequest &&value)
HoneycodeConnectorProfileCredentials & WithOAuthRequest(const ConnectorOAuthRequest &value)
HoneycodeConnectorProfileCredentials & WithRefreshToken(const Aws::String &value)
HoneycodeConnectorProfileCredentials & WithAccessToken(const Aws::String &value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
HoneycodeConnectorProfileCredentials & WithRefreshToken(Aws::String &&value)
HoneycodeConnectorProfileCredentials & WithRefreshToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue