AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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); }
51 inline PardotConnectorProfileCredentials& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
52 inline PardotConnectorProfileCredentials& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
53 inline PardotConnectorProfileCredentials& 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 PardotConnectorProfileCredentials& WithRefreshToken(Aws::String&& value) { SetRefreshToken(std::move(value)); return *this;}
67 inline PardotConnectorProfileCredentials& 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
81
85 inline const Aws::String& GetClientCredentialsArn() const{ return m_clientCredentialsArn; }
86 inline bool ClientCredentialsArnHasBeenSet() const { return m_clientCredentialsArnHasBeenSet; }
87 inline void SetClientCredentialsArn(const Aws::String& value) { m_clientCredentialsArnHasBeenSet = true; m_clientCredentialsArn = value; }
88 inline void SetClientCredentialsArn(Aws::String&& value) { m_clientCredentialsArnHasBeenSet = true; m_clientCredentialsArn = std::move(value); }
89 inline void SetClientCredentialsArn(const char* value) { m_clientCredentialsArnHasBeenSet = true; m_clientCredentialsArn.assign(value); }
94 private:
95
96 Aws::String m_accessToken;
97 bool m_accessTokenHasBeenSet = false;
98
99 Aws::String m_refreshToken;
100 bool m_refreshTokenHasBeenSet = false;
101
102 ConnectorOAuthRequest m_oAuthRequest;
103 bool m_oAuthRequestHasBeenSet = false;
104
105 Aws::String m_clientCredentialsArn;
106 bool m_clientCredentialsArnHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace Appflow
111} // namespace Aws
PardotConnectorProfileCredentials & WithRefreshToken(const char *value)
PardotConnectorProfileCredentials & WithRefreshToken(const Aws::String &value)
AWS_APPFLOW_API PardotConnectorProfileCredentials(Aws::Utils::Json::JsonView jsonValue)
PardotConnectorProfileCredentials & WithRefreshToken(Aws::String &&value)
PardotConnectorProfileCredentials & WithClientCredentialsArn(const char *value)
PardotConnectorProfileCredentials & WithClientCredentialsArn(Aws::String &&value)
PardotConnectorProfileCredentials & WithClientCredentialsArn(const Aws::String &value)
AWS_APPFLOW_API PardotConnectorProfileCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
PardotConnectorProfileCredentials & WithAccessToken(Aws::String &&value)
PardotConnectorProfileCredentials & WithAccessToken(const Aws::String &value)
PardotConnectorProfileCredentials & WithAccessToken(const char *value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
PardotConnectorProfileCredentials & WithOAuthRequest(const ConnectorOAuthRequest &value)
PardotConnectorProfileCredentials & WithOAuthRequest(ConnectorOAuthRequest &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue