/** * 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 OAuth properties required for OAuth type authentication.

See * Also:

AWS * API Reference

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

The token url required to fetch access/refresh tokens using authorization * code and also to refresh expired access token using refresh token.

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

The token url required to fetch access/refresh tokens using authorization * code and also to refresh expired access token using refresh token.

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

The token url required to fetch access/refresh tokens using authorization * code and also to refresh expired access token using refresh token.

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

The token url required to fetch access/refresh tokens using authorization * code and also to refresh expired access token using refresh token.

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

The token url required to fetch access/refresh tokens using authorization * code and also to refresh expired access token using refresh token.

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

The token url required to fetch access/refresh tokens using authorization * code and also to refresh expired access token using refresh token.

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

The token url required to fetch access/refresh tokens using authorization * code and also to refresh expired access token using refresh token.

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

The token url required to fetch access/refresh tokens using authorization * code and also to refresh expired access token using refresh token.

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

The authorization code url required to redirect to SAP Login Page to fetch * authorization code for OAuth type authentication.

*/ inline const Aws::String& GetAuthCodeUrl() const{ return m_authCodeUrl; } /** *

The authorization code url required to redirect to SAP Login Page to fetch * authorization code for OAuth type authentication.

*/ inline bool AuthCodeUrlHasBeenSet() const { return m_authCodeUrlHasBeenSet; } /** *

The authorization code url required to redirect to SAP Login Page to fetch * authorization code for OAuth type authentication.

*/ inline void SetAuthCodeUrl(const Aws::String& value) { m_authCodeUrlHasBeenSet = true; m_authCodeUrl = value; } /** *

The authorization code url required to redirect to SAP Login Page to fetch * authorization code for OAuth type authentication.

*/ inline void SetAuthCodeUrl(Aws::String&& value) { m_authCodeUrlHasBeenSet = true; m_authCodeUrl = std::move(value); } /** *

The authorization code url required to redirect to SAP Login Page to fetch * authorization code for OAuth type authentication.

*/ inline void SetAuthCodeUrl(const char* value) { m_authCodeUrlHasBeenSet = true; m_authCodeUrl.assign(value); } /** *

The authorization code url required to redirect to SAP Login Page to fetch * authorization code for OAuth type authentication.

*/ inline OAuthProperties& WithAuthCodeUrl(const Aws::String& value) { SetAuthCodeUrl(value); return *this;} /** *

The authorization code url required to redirect to SAP Login Page to fetch * authorization code for OAuth type authentication.

*/ inline OAuthProperties& WithAuthCodeUrl(Aws::String&& value) { SetAuthCodeUrl(std::move(value)); return *this;} /** *

The authorization code url required to redirect to SAP Login Page to fetch * authorization code for OAuth type authentication.

*/ inline OAuthProperties& WithAuthCodeUrl(const char* value) { SetAuthCodeUrl(value); return *this;} /** *

The OAuth scopes required for OAuth type authentication.

*/ inline const Aws::Vector& GetOAuthScopes() const{ return m_oAuthScopes; } /** *

The OAuth scopes required for OAuth type authentication.

*/ inline bool OAuthScopesHasBeenSet() const { return m_oAuthScopesHasBeenSet; } /** *

The OAuth scopes required for OAuth type authentication.

*/ inline void SetOAuthScopes(const Aws::Vector& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes = value; } /** *

The OAuth scopes required for OAuth type authentication.

*/ inline void SetOAuthScopes(Aws::Vector&& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes = std::move(value); } /** *

The OAuth scopes required for OAuth type authentication.

*/ inline OAuthProperties& WithOAuthScopes(const Aws::Vector& value) { SetOAuthScopes(value); return *this;} /** *

The OAuth scopes required for OAuth type authentication.

*/ inline OAuthProperties& WithOAuthScopes(Aws::Vector&& value) { SetOAuthScopes(std::move(value)); return *this;} /** *

The OAuth scopes required for OAuth type authentication.

*/ inline OAuthProperties& AddOAuthScopes(const Aws::String& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(value); return *this; } /** *

The OAuth scopes required for OAuth type authentication.

*/ inline OAuthProperties& AddOAuthScopes(Aws::String&& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(std::move(value)); return *this; } /** *

The OAuth scopes required for OAuth type authentication.

*/ inline OAuthProperties& AddOAuthScopes(const char* value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(value); return *this; } private: Aws::String m_tokenUrl; bool m_tokenUrlHasBeenSet = false; Aws::String m_authCodeUrl; bool m_authCodeUrlHasBeenSet = false; Aws::Vector m_oAuthScopes; bool m_oAuthScopesHasBeenSet = false; }; } // namespace Model } // namespace Appflow } // namespace Aws