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

The OAuth 2.0 properties required for OAuth 2.0 authentication.

See * Also:

AWS * API Reference

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

The token URL required for OAuth 2.0 authentication.

*/ inline const Aws::String& GetTokenUrl() const{ return m_tokenUrl; } /** *

The token URL required for OAuth 2.0 authentication.

*/ inline bool TokenUrlHasBeenSet() const { return m_tokenUrlHasBeenSet; } /** *

The token URL required for OAuth 2.0 authentication.

*/ inline void SetTokenUrl(const Aws::String& value) { m_tokenUrlHasBeenSet = true; m_tokenUrl = value; } /** *

The token URL required for OAuth 2.0 authentication.

*/ inline void SetTokenUrl(Aws::String&& value) { m_tokenUrlHasBeenSet = true; m_tokenUrl = std::move(value); } /** *

The token URL required for OAuth 2.0 authentication.

*/ inline void SetTokenUrl(const char* value) { m_tokenUrlHasBeenSet = true; m_tokenUrl.assign(value); } /** *

The token URL required for OAuth 2.0 authentication.

*/ inline OAuth2Properties& WithTokenUrl(const Aws::String& value) { SetTokenUrl(value); return *this;} /** *

The token URL required for OAuth 2.0 authentication.

*/ inline OAuth2Properties& WithTokenUrl(Aws::String&& value) { SetTokenUrl(std::move(value)); return *this;} /** *

The token URL required for OAuth 2.0 authentication.

*/ inline OAuth2Properties& WithTokenUrl(const char* value) { SetTokenUrl(value); return *this;} /** *

The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication.

*/ inline const OAuth2GrantType& GetOAuth2GrantType() const{ return m_oAuth2GrantType; } /** *

The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication.

*/ inline bool OAuth2GrantTypeHasBeenSet() const { return m_oAuth2GrantTypeHasBeenSet; } /** *

The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication.

*/ inline void SetOAuth2GrantType(const OAuth2GrantType& value) { m_oAuth2GrantTypeHasBeenSet = true; m_oAuth2GrantType = value; } /** *

The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication.

*/ inline void SetOAuth2GrantType(OAuth2GrantType&& value) { m_oAuth2GrantTypeHasBeenSet = true; m_oAuth2GrantType = std::move(value); } /** *

The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication.

*/ inline OAuth2Properties& WithOAuth2GrantType(const OAuth2GrantType& value) { SetOAuth2GrantType(value); return *this;} /** *

The OAuth 2.0 grant type used by connector for OAuth 2.0 authentication.

*/ inline OAuth2Properties& WithOAuth2GrantType(OAuth2GrantType&& value) { SetOAuth2GrantType(std::move(value)); return *this;} /** *

Associates your token URL with a map of properties that you define. Use this * parameter to provide any additional details that the connector requires to * authenticate your request.

*/ inline const Aws::Map& GetTokenUrlCustomProperties() const{ return m_tokenUrlCustomProperties; } /** *

Associates your token URL with a map of properties that you define. Use this * parameter to provide any additional details that the connector requires to * authenticate your request.

*/ inline bool TokenUrlCustomPropertiesHasBeenSet() const { return m_tokenUrlCustomPropertiesHasBeenSet; } /** *

Associates your token URL with a map of properties that you define. Use this * parameter to provide any additional details that the connector requires to * authenticate your request.

*/ inline void SetTokenUrlCustomProperties(const Aws::Map& value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties = value; } /** *

Associates your token URL with a map of properties that you define. Use this * parameter to provide any additional details that the connector requires to * authenticate your request.

*/ inline void SetTokenUrlCustomProperties(Aws::Map&& value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties = std::move(value); } /** *

Associates your token URL with a map of properties that you define. Use this * parameter to provide any additional details that the connector requires to * authenticate your request.

*/ inline OAuth2Properties& WithTokenUrlCustomProperties(const Aws::Map& value) { SetTokenUrlCustomProperties(value); return *this;} /** *

Associates your token URL with a map of properties that you define. Use this * parameter to provide any additional details that the connector requires to * authenticate your request.

*/ inline OAuth2Properties& WithTokenUrlCustomProperties(Aws::Map&& value) { SetTokenUrlCustomProperties(std::move(value)); return *this;} /** *

Associates your token URL with a map of properties that you define. Use this * parameter to provide any additional details that the connector requires to * authenticate your request.

*/ inline OAuth2Properties& AddTokenUrlCustomProperties(const Aws::String& key, const Aws::String& value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties.emplace(key, value); return *this; } /** *

Associates your token URL with a map of properties that you define. Use this * parameter to provide any additional details that the connector requires to * authenticate your request.

*/ inline OAuth2Properties& AddTokenUrlCustomProperties(Aws::String&& key, const Aws::String& value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties.emplace(std::move(key), value); return *this; } /** *

Associates your token URL with a map of properties that you define. Use this * parameter to provide any additional details that the connector requires to * authenticate your request.

*/ inline OAuth2Properties& AddTokenUrlCustomProperties(const Aws::String& key, Aws::String&& value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties.emplace(key, std::move(value)); return *this; } /** *

Associates your token URL with a map of properties that you define. Use this * parameter to provide any additional details that the connector requires to * authenticate your request.

*/ inline OAuth2Properties& AddTokenUrlCustomProperties(Aws::String&& key, Aws::String&& value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties.emplace(std::move(key), std::move(value)); return *this; } /** *

Associates your token URL with a map of properties that you define. Use this * parameter to provide any additional details that the connector requires to * authenticate your request.

*/ inline OAuth2Properties& AddTokenUrlCustomProperties(const char* key, Aws::String&& value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties.emplace(key, std::move(value)); return *this; } /** *

Associates your token URL with a map of properties that you define. Use this * parameter to provide any additional details that the connector requires to * authenticate your request.

*/ inline OAuth2Properties& AddTokenUrlCustomProperties(Aws::String&& key, const char* value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties.emplace(std::move(key), value); return *this; } /** *

Associates your token URL with a map of properties that you define. Use this * parameter to provide any additional details that the connector requires to * authenticate your request.

*/ inline OAuth2Properties& AddTokenUrlCustomProperties(const char* key, const char* value) { m_tokenUrlCustomPropertiesHasBeenSet = true; m_tokenUrlCustomProperties.emplace(key, value); return *this; } private: Aws::String m_tokenUrl; bool m_tokenUrlHasBeenSet = false; OAuth2GrantType m_oAuth2GrantType; bool m_oAuth2GrantTypeHasBeenSet = false; Aws::Map m_tokenUrlCustomProperties; bool m_tokenUrlCustomPropertiesHasBeenSet = false; }; } // namespace Model } // namespace Appflow } // namespace Aws