/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Appflow { namespace Model { /** *

The connector-specific credentials required when using Amazon Honeycode. *

See Also:

AWS * API Reference

*/ class HoneycodeConnectorProfileCredentials { public: AWS_APPFLOW_API HoneycodeConnectorProfileCredentials(); AWS_APPFLOW_API HoneycodeConnectorProfileCredentials(Aws::Utils::Json::JsonView jsonValue); AWS_APPFLOW_API HoneycodeConnectorProfileCredentials& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The credentials used to access protected Amazon Honeycode resources.

*/ inline const Aws::String& GetAccessToken() const{ return m_accessToken; } /** *

The credentials used to access protected Amazon Honeycode resources.

*/ inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; } /** *

The credentials used to access protected Amazon Honeycode resources.

*/ inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; } /** *

The credentials used to access protected Amazon Honeycode resources.

*/ inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); } /** *

The credentials used to access protected Amazon Honeycode resources.

*/ inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); } /** *

The credentials used to access protected Amazon Honeycode resources.

*/ inline HoneycodeConnectorProfileCredentials& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;} /** *

The credentials used to access protected Amazon Honeycode resources.

*/ inline HoneycodeConnectorProfileCredentials& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;} /** *

The credentials used to access protected Amazon Honeycode resources.

*/ inline HoneycodeConnectorProfileCredentials& 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 HoneycodeConnectorProfileCredentials& WithRefreshToken(const Aws::String& value) { SetRefreshToken(value); return *this;} /** *

The credentials used to acquire new access tokens.

*/ inline HoneycodeConnectorProfileCredentials& WithRefreshToken(Aws::String&& value) { SetRefreshToken(std::move(value)); return *this;} /** *

The credentials used to acquire new access tokens.

*/ inline HoneycodeConnectorProfileCredentials& 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 HoneycodeConnectorProfileCredentials& WithOAuthRequest(const ConnectorOAuthRequest& value) { SetOAuthRequest(value); return *this;} inline HoneycodeConnectorProfileCredentials& WithOAuthRequest(ConnectorOAuthRequest&& value) { SetOAuthRequest(std::move(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; }; } // namespace Model } // namespace Appflow } // namespace Aws