AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PardotConnectorProfileCredentials.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 PardotConnectorProfileCredentials() = 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
89
93 inline const Aws::String& GetClientCredentialsArn() const { return m_clientCredentialsArn; }
94 inline bool ClientCredentialsArnHasBeenSet() const { return m_clientCredentialsArnHasBeenSet; }
95 template <typename ClientCredentialsArnT = Aws::String>
96 void SetClientCredentialsArn(ClientCredentialsArnT&& value) {
97 m_clientCredentialsArnHasBeenSet = true;
98 m_clientCredentialsArn = std::forward<ClientCredentialsArnT>(value);
99 }
100 template <typename ClientCredentialsArnT = Aws::String>
102 SetClientCredentialsArn(std::forward<ClientCredentialsArnT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_accessToken;
108
109 Aws::String m_refreshToken;
110
111 ConnectorOAuthRequest m_oAuthRequest;
112
113 Aws::String m_clientCredentialsArn;
114 bool m_accessTokenHasBeenSet = false;
115 bool m_refreshTokenHasBeenSet = false;
116 bool m_oAuthRequestHasBeenSet = false;
117 bool m_clientCredentialsArnHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace Appflow
122} // 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