/** * 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 AmplifyUIBuilder { namespace Model { /** */ class ExchangeCodeForTokenRequest : public AmplifyUIBuilderRequest { public: AWS_AMPLIFYUIBUILDER_API ExchangeCodeForTokenRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ExchangeCodeForToken"; } AWS_AMPLIFYUIBUILDER_API Aws::String SerializePayload() const override; /** *

The third-party provider for the token. The only valid value is * figma.

*/ inline const TokenProviders& GetProvider() const{ return m_provider; } /** *

The third-party provider for the token. The only valid value is * figma.

*/ inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; } /** *

The third-party provider for the token. The only valid value is * figma.

*/ inline void SetProvider(const TokenProviders& value) { m_providerHasBeenSet = true; m_provider = value; } /** *

The third-party provider for the token. The only valid value is * figma.

*/ inline void SetProvider(TokenProviders&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); } /** *

The third-party provider for the token. The only valid value is * figma.

*/ inline ExchangeCodeForTokenRequest& WithProvider(const TokenProviders& value) { SetProvider(value); return *this;} /** *

The third-party provider for the token. The only valid value is * figma.

*/ inline ExchangeCodeForTokenRequest& WithProvider(TokenProviders&& value) { SetProvider(std::move(value)); return *this;} /** *

Describes the configuration of the request.

*/ inline const ExchangeCodeForTokenRequestBody& GetRequest() const{ return m_request; } /** *

Describes the configuration of the request.

*/ inline bool RequestHasBeenSet() const { return m_requestHasBeenSet; } /** *

Describes the configuration of the request.

*/ inline void SetRequest(const ExchangeCodeForTokenRequestBody& value) { m_requestHasBeenSet = true; m_request = value; } /** *

Describes the configuration of the request.

*/ inline void SetRequest(ExchangeCodeForTokenRequestBody&& value) { m_requestHasBeenSet = true; m_request = std::move(value); } /** *

Describes the configuration of the request.

*/ inline ExchangeCodeForTokenRequest& WithRequest(const ExchangeCodeForTokenRequestBody& value) { SetRequest(value); return *this;} /** *

Describes the configuration of the request.

*/ inline ExchangeCodeForTokenRequest& WithRequest(ExchangeCodeForTokenRequestBody&& value) { SetRequest(std::move(value)); return *this;} private: TokenProviders m_provider; bool m_providerHasBeenSet = false; ExchangeCodeForTokenRequestBody m_request; bool m_requestHasBeenSet = false; }; } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws