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

Describes the configuration of a request to exchange an access code for a * token.

See Also:

AWS * API Reference

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

The access code to send in the request.

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

The access code to send in the request.

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

The access code to send in the request.

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

The access code to send in the request.

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

The access code to send in the request.

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

The access code to send in the request.

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

The access code to send in the request.

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

The access code to send in the request.

*/ inline ExchangeCodeForTokenRequestBody& WithCode(const char* value) { SetCode(value); return *this;} /** *

The location of the application that will receive the access code.

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

The location of the application that will receive the access code.

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

The location of the application that will receive the access code.

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

The location of the application that will receive the access code.

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

The location of the application that will receive the access code.

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

The location of the application that will receive the access code.

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

The location of the application that will receive the access code.

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

The location of the application that will receive the access code.

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

The ID of the client to request the token from.

*/ inline const Aws::String& GetClientId() const{ return m_clientId; } /** *

The ID of the client to request the token from.

*/ inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; } /** *

The ID of the client to request the token from.

*/ inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; } /** *

The ID of the client to request the token from.

*/ inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); } /** *

The ID of the client to request the token from.

*/ inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); } /** *

The ID of the client to request the token from.

*/ inline ExchangeCodeForTokenRequestBody& WithClientId(const Aws::String& value) { SetClientId(value); return *this;} /** *

The ID of the client to request the token from.

*/ inline ExchangeCodeForTokenRequestBody& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;} /** *

The ID of the client to request the token from.

*/ inline ExchangeCodeForTokenRequestBody& WithClientId(const char* value) { SetClientId(value); return *this;} private: Aws::String m_code; bool m_codeHasBeenSet = false; Aws::String m_redirectUri; bool m_redirectUriHasBeenSet = false; Aws::String m_clientId; bool m_clientIdHasBeenSet = false; }; } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws