AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
PardotConnectorProfileCredentials.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 PardotConnectorProfileCredentials() = 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 PardotConnectorProfileCredentials& 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 PardotConnectorProfileCredentials& 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 PardotConnectorProfileCredentials& WithOAuthRequest(OAuthRequestT&& value) { SetOAuthRequest(std::forward<OAuthRequestT>(value)); return *this;}
75
77
81 inline const Aws::String& GetClientCredentialsArn() const { return m_clientCredentialsArn; }
82 inline bool ClientCredentialsArnHasBeenSet() const { return m_clientCredentialsArnHasBeenSet; }
83 template<typename ClientCredentialsArnT = Aws::String>
84 void SetClientCredentialsArn(ClientCredentialsArnT&& value) { m_clientCredentialsArnHasBeenSet = true; m_clientCredentialsArn = std::forward<ClientCredentialsArnT>(value); }
85 template<typename ClientCredentialsArnT = Aws::String>
86 PardotConnectorProfileCredentials& WithClientCredentialsArn(ClientCredentialsArnT&& value) { SetClientCredentialsArn(std::forward<ClientCredentialsArnT>(value)); return *this;}
88 private:
89
90 Aws::String m_accessToken;
91 bool m_accessTokenHasBeenSet = false;
92
93 Aws::String m_refreshToken;
94 bool m_refreshTokenHasBeenSet = false;
95
96 ConnectorOAuthRequest m_oAuthRequest;
97 bool m_oAuthRequestHasBeenSet = false;
98
99 Aws::String m_clientCredentialsArn;
100 bool m_clientCredentialsArnHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Appflow
105} // namespace Aws
AWS_APPFLOW_API PardotConnectorProfileCredentials(Aws::Utils::Json::JsonView jsonValue)
PardotConnectorProfileCredentials & WithAccessToken(AccessTokenT &&value)
AWS_APPFLOW_API PardotConnectorProfileCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
PardotConnectorProfileCredentials & WithClientCredentialsArn(ClientCredentialsArnT &&value)
PardotConnectorProfileCredentials & WithRefreshToken(RefreshTokenT &&value)
PardotConnectorProfileCredentials & WithOAuthRequest(OAuthRequestT &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue