/** * 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 AppFabric { namespace Model { /** *

Contains authorization request information, which is required for Amazon Web * Services AppFabric to get the OAuth2 access token for an * application.

See Also:

AWS * API Reference

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

The redirect URL that is specified in the AuthURL and the application * client.

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

The redirect URL that is specified in the AuthURL and the application * client.

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

The redirect URL that is specified in the AuthURL and the application * client.

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

The redirect URL that is specified in the AuthURL and the application * client.

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

The redirect URL that is specified in the AuthURL and the application * client.

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

The redirect URL that is specified in the AuthURL and the application * client.

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

The redirect URL that is specified in the AuthURL and the application * client.

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

The redirect URL that is specified in the AuthURL and the application * client.

*/ inline AuthRequest& WithRedirectUri(const char* value) { SetRedirectUri(value); return *this;} /** *

The authorization code returned by the application after permission is * granted in the application OAuth page (after clicking on the AuthURL).

*/ inline const Aws::String& GetCode() const{ return m_code; } /** *

The authorization code returned by the application after permission is * granted in the application OAuth page (after clicking on the AuthURL).

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

The authorization code returned by the application after permission is * granted in the application OAuth page (after clicking on the AuthURL).

*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *

The authorization code returned by the application after permission is * granted in the application OAuth page (after clicking on the AuthURL).

*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

The authorization code returned by the application after permission is * granted in the application OAuth page (after clicking on the AuthURL).

*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *

The authorization code returned by the application after permission is * granted in the application OAuth page (after clicking on the AuthURL).

*/ inline AuthRequest& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *

The authorization code returned by the application after permission is * granted in the application OAuth page (after clicking on the AuthURL).

*/ inline AuthRequest& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *

The authorization code returned by the application after permission is * granted in the application OAuth page (after clicking on the AuthURL).

*/ inline AuthRequest& WithCode(const char* value) { SetCode(value); return *this;} private: Aws::String m_redirectUri; bool m_redirectUriHasBeenSet = false; Aws::String m_code; bool m_codeHasBeenSet = false; }; } // namespace Model } // namespace AppFabric } // namespace Aws