/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The connector-specific profile credentials required when using Salesforce
* Pardot.See Also:
AWS
* API Reference
The credentials used to access protected Salesforce Pardot resources.
*/ inline const Aws::String& GetAccessToken() const{ return m_accessToken; } /** *The credentials used to access protected Salesforce Pardot resources.
*/ inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; } /** *The credentials used to access protected Salesforce Pardot resources.
*/ inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; } /** *The credentials used to access protected Salesforce Pardot resources.
*/ inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); } /** *The credentials used to access protected Salesforce Pardot resources.
*/ inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); } /** *The credentials used to access protected Salesforce Pardot resources.
*/ inline PardotConnectorProfileCredentials& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;} /** *The credentials used to access protected Salesforce Pardot resources.
*/ inline PardotConnectorProfileCredentials& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;} /** *The credentials used to access protected Salesforce Pardot resources.
*/ inline PardotConnectorProfileCredentials& WithAccessToken(const char* value) { SetAccessToken(value); return *this;} /** *The credentials used to acquire new access tokens.
*/ inline const Aws::String& GetRefreshToken() const{ return m_refreshToken; } /** *The credentials used to acquire new access tokens.
*/ inline bool RefreshTokenHasBeenSet() const { return m_refreshTokenHasBeenSet; } /** *The credentials used to acquire new access tokens.
*/ inline void SetRefreshToken(const Aws::String& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = value; } /** *The credentials used to acquire new access tokens.
*/ inline void SetRefreshToken(Aws::String&& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = std::move(value); } /** *The credentials used to acquire new access tokens.
*/ inline void SetRefreshToken(const char* value) { m_refreshTokenHasBeenSet = true; m_refreshToken.assign(value); } /** *The credentials used to acquire new access tokens.
*/ inline PardotConnectorProfileCredentials& WithRefreshToken(const Aws::String& value) { SetRefreshToken(value); return *this;} /** *The credentials used to acquire new access tokens.
*/ inline PardotConnectorProfileCredentials& WithRefreshToken(Aws::String&& value) { SetRefreshToken(std::move(value)); return *this;} /** *The credentials used to acquire new access tokens.
*/ inline PardotConnectorProfileCredentials& WithRefreshToken(const char* value) { SetRefreshToken(value); return *this;} inline const ConnectorOAuthRequest& GetOAuthRequest() const{ return m_oAuthRequest; } inline bool OAuthRequestHasBeenSet() const { return m_oAuthRequestHasBeenSet; } inline void SetOAuthRequest(const ConnectorOAuthRequest& value) { m_oAuthRequestHasBeenSet = true; m_oAuthRequest = value; } inline void SetOAuthRequest(ConnectorOAuthRequest&& value) { m_oAuthRequestHasBeenSet = true; m_oAuthRequest = std::move(value); } inline PardotConnectorProfileCredentials& WithOAuthRequest(const ConnectorOAuthRequest& value) { SetOAuthRequest(value); return *this;} inline PardotConnectorProfileCredentials& WithOAuthRequest(ConnectorOAuthRequest&& value) { SetOAuthRequest(std::move(value)); return *this;} /** *The secret manager ARN, which contains the client ID and client secret of the * connected app.
*/ inline const Aws::String& GetClientCredentialsArn() const{ return m_clientCredentialsArn; } /** *The secret manager ARN, which contains the client ID and client secret of the * connected app.
*/ inline bool ClientCredentialsArnHasBeenSet() const { return m_clientCredentialsArnHasBeenSet; } /** *The secret manager ARN, which contains the client ID and client secret of the * connected app.
*/ inline void SetClientCredentialsArn(const Aws::String& value) { m_clientCredentialsArnHasBeenSet = true; m_clientCredentialsArn = value; } /** *The secret manager ARN, which contains the client ID and client secret of the * connected app.
*/ inline void SetClientCredentialsArn(Aws::String&& value) { m_clientCredentialsArnHasBeenSet = true; m_clientCredentialsArn = std::move(value); } /** *The secret manager ARN, which contains the client ID and client secret of the * connected app.
*/ inline void SetClientCredentialsArn(const char* value) { m_clientCredentialsArnHasBeenSet = true; m_clientCredentialsArn.assign(value); } /** *The secret manager ARN, which contains the client ID and client secret of the * connected app.
*/ inline PardotConnectorProfileCredentials& WithClientCredentialsArn(const Aws::String& value) { SetClientCredentialsArn(value); return *this;} /** *The secret manager ARN, which contains the client ID and client secret of the * connected app.
*/ inline PardotConnectorProfileCredentials& WithClientCredentialsArn(Aws::String&& value) { SetClientCredentialsArn(std::move(value)); return *this;} /** *The secret manager ARN, which contains the client ID and client secret of the * connected app.
*/ inline PardotConnectorProfileCredentials& WithClientCredentialsArn(const char* value) { SetClientCredentialsArn(value); return *this;} private: Aws::String m_accessToken; bool m_accessTokenHasBeenSet = false; Aws::String m_refreshToken; bool m_refreshTokenHasBeenSet = false; ConnectorOAuthRequest m_oAuthRequest; bool m_oAuthRequestHasBeenSet = false; Aws::String m_clientCredentialsArn; bool m_clientCredentialsArnHasBeenSet = false; }; } // namespace Model } // namespace Appflow } // namespace Aws