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

Used by select connectors for which the OAuth workflow is supported, such as * Salesforce, Google Analytics, Marketo, Zendesk, and Slack.

See * Also:

AWS * API Reference

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

The code provided by the connector when it has been authenticated via the * connected app.

*/ inline const Aws::String& GetAuthCode() const{ return m_authCode; } /** *

The code provided by the connector when it has been authenticated via the * connected app.

*/ inline bool AuthCodeHasBeenSet() const { return m_authCodeHasBeenSet; } /** *

The code provided by the connector when it has been authenticated via the * connected app.

*/ inline void SetAuthCode(const Aws::String& value) { m_authCodeHasBeenSet = true; m_authCode = value; } /** *

The code provided by the connector when it has been authenticated via the * connected app.

*/ inline void SetAuthCode(Aws::String&& value) { m_authCodeHasBeenSet = true; m_authCode = std::move(value); } /** *

The code provided by the connector when it has been authenticated via the * connected app.

*/ inline void SetAuthCode(const char* value) { m_authCodeHasBeenSet = true; m_authCode.assign(value); } /** *

The code provided by the connector when it has been authenticated via the * connected app.

*/ inline ConnectorOAuthRequest& WithAuthCode(const Aws::String& value) { SetAuthCode(value); return *this;} /** *

The code provided by the connector when it has been authenticated via the * connected app.

*/ inline ConnectorOAuthRequest& WithAuthCode(Aws::String&& value) { SetAuthCode(std::move(value)); return *this;} /** *

The code provided by the connector when it has been authenticated via the * connected app.

*/ inline ConnectorOAuthRequest& WithAuthCode(const char* value) { SetAuthCode(value); return *this;} /** *

The URL to which the authentication server redirects the browser after * authorization has been granted.

*/ inline const Aws::String& GetRedirectUri() const{ return m_redirectUri; } /** *

The URL to which the authentication server redirects the browser after * authorization has been granted.

*/ inline bool RedirectUriHasBeenSet() const { return m_redirectUriHasBeenSet; } /** *

The URL to which the authentication server redirects the browser after * authorization has been granted.

*/ inline void SetRedirectUri(const Aws::String& value) { m_redirectUriHasBeenSet = true; m_redirectUri = value; } /** *

The URL to which the authentication server redirects the browser after * authorization has been granted.

*/ inline void SetRedirectUri(Aws::String&& value) { m_redirectUriHasBeenSet = true; m_redirectUri = std::move(value); } /** *

The URL to which the authentication server redirects the browser after * authorization has been granted.

*/ inline void SetRedirectUri(const char* value) { m_redirectUriHasBeenSet = true; m_redirectUri.assign(value); } /** *

The URL to which the authentication server redirects the browser after * authorization has been granted.

*/ inline ConnectorOAuthRequest& WithRedirectUri(const Aws::String& value) { SetRedirectUri(value); return *this;} /** *

The URL to which the authentication server redirects the browser after * authorization has been granted.

*/ inline ConnectorOAuthRequest& WithRedirectUri(Aws::String&& value) { SetRedirectUri(std::move(value)); return *this;} /** *

The URL to which the authentication server redirects the browser after * authorization has been granted.

*/ inline ConnectorOAuthRequest& WithRedirectUri(const char* value) { SetRedirectUri(value); return *this;} private: Aws::String m_authCode; bool m_authCodeHasBeenSet = false; Aws::String m_redirectUri; bool m_redirectUriHasBeenSet = false; }; } // namespace Model } // namespace Appflow } // namespace Aws