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

Describes the call to action button configuration for the form.

See * Also:

AWS * API Reference

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

The position of the button.

*/ inline const FormButtonsPosition& GetPosition() const{ return m_position; } /** *

The position of the button.

*/ inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; } /** *

The position of the button.

*/ inline void SetPosition(const FormButtonsPosition& value) { m_positionHasBeenSet = true; m_position = value; } /** *

The position of the button.

*/ inline void SetPosition(FormButtonsPosition&& value) { m_positionHasBeenSet = true; m_position = std::move(value); } /** *

The position of the button.

*/ inline FormCTA& WithPosition(const FormButtonsPosition& value) { SetPosition(value); return *this;} /** *

The position of the button.

*/ inline FormCTA& WithPosition(FormButtonsPosition&& value) { SetPosition(std::move(value)); return *this;} /** *

Displays a clear button.

*/ inline const FormButton& GetClear() const{ return m_clear; } /** *

Displays a clear button.

*/ inline bool ClearHasBeenSet() const { return m_clearHasBeenSet; } /** *

Displays a clear button.

*/ inline void SetClear(const FormButton& value) { m_clearHasBeenSet = true; m_clear = value; } /** *

Displays a clear button.

*/ inline void SetClear(FormButton&& value) { m_clearHasBeenSet = true; m_clear = std::move(value); } /** *

Displays a clear button.

*/ inline FormCTA& WithClear(const FormButton& value) { SetClear(value); return *this;} /** *

Displays a clear button.

*/ inline FormCTA& WithClear(FormButton&& value) { SetClear(std::move(value)); return *this;} /** *

Displays a cancel button.

*/ inline const FormButton& GetCancel() const{ return m_cancel; } /** *

Displays a cancel button.

*/ inline bool CancelHasBeenSet() const { return m_cancelHasBeenSet; } /** *

Displays a cancel button.

*/ inline void SetCancel(const FormButton& value) { m_cancelHasBeenSet = true; m_cancel = value; } /** *

Displays a cancel button.

*/ inline void SetCancel(FormButton&& value) { m_cancelHasBeenSet = true; m_cancel = std::move(value); } /** *

Displays a cancel button.

*/ inline FormCTA& WithCancel(const FormButton& value) { SetCancel(value); return *this;} /** *

Displays a cancel button.

*/ inline FormCTA& WithCancel(FormButton&& value) { SetCancel(std::move(value)); return *this;} /** *

Displays a submit button.

*/ inline const FormButton& GetSubmit() const{ return m_submit; } /** *

Displays a submit button.

*/ inline bool SubmitHasBeenSet() const { return m_submitHasBeenSet; } /** *

Displays a submit button.

*/ inline void SetSubmit(const FormButton& value) { m_submitHasBeenSet = true; m_submit = value; } /** *

Displays a submit button.

*/ inline void SetSubmit(FormButton&& value) { m_submitHasBeenSet = true; m_submit = std::move(value); } /** *

Displays a submit button.

*/ inline FormCTA& WithSubmit(const FormButton& value) { SetSubmit(value); return *this;} /** *

Displays a submit button.

*/ inline FormCTA& WithSubmit(FormButton&& value) { SetSubmit(std::move(value)); return *this;} private: FormButtonsPosition m_position; bool m_positionHasBeenSet = false; FormButton m_clear; bool m_clearHasBeenSet = false; FormButton m_cancel; bool m_cancelHasBeenSet = false; FormButton m_submit; bool m_submitHasBeenSet = false; }; } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws