/** * 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 configuration for a button UI element that is a part of a * form.

See Also:

AWS * API Reference

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

Specifies whether the button is visible on the form.

*/ inline bool GetExcluded() const{ return m_excluded; } /** *

Specifies whether the button is visible on the form.

*/ inline bool ExcludedHasBeenSet() const { return m_excludedHasBeenSet; } /** *

Specifies whether the button is visible on the form.

*/ inline void SetExcluded(bool value) { m_excludedHasBeenSet = true; m_excluded = value; } /** *

Specifies whether the button is visible on the form.

*/ inline FormButton& WithExcluded(bool value) { SetExcluded(value); return *this;} /** *

Describes the button's properties.

*/ inline const Aws::String& GetChildren() const{ return m_children; } /** *

Describes the button's properties.

*/ inline bool ChildrenHasBeenSet() const { return m_childrenHasBeenSet; } /** *

Describes the button's properties.

*/ inline void SetChildren(const Aws::String& value) { m_childrenHasBeenSet = true; m_children = value; } /** *

Describes the button's properties.

*/ inline void SetChildren(Aws::String&& value) { m_childrenHasBeenSet = true; m_children = std::move(value); } /** *

Describes the button's properties.

*/ inline void SetChildren(const char* value) { m_childrenHasBeenSet = true; m_children.assign(value); } /** *

Describes the button's properties.

*/ inline FormButton& WithChildren(const Aws::String& value) { SetChildren(value); return *this;} /** *

Describes the button's properties.

*/ inline FormButton& WithChildren(Aws::String&& value) { SetChildren(std::move(value)); return *this;} /** *

Describes the button's properties.

*/ inline FormButton& WithChildren(const char* value) { SetChildren(value); return *this;} /** *

The position of the button.

*/ inline const FieldPosition& 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 FieldPosition& value) { m_positionHasBeenSet = true; m_position = value; } /** *

The position of the button.

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

The position of the button.

*/ inline FormButton& WithPosition(const FieldPosition& value) { SetPosition(value); return *this;} /** *

The position of the button.

*/ inline FormButton& WithPosition(FieldPosition&& value) { SetPosition(std::move(value)); return *this;} private: bool m_excluded; bool m_excludedHasBeenSet = false; Aws::String m_children; bool m_childrenHasBeenSet = false; FieldPosition m_position; bool m_positionHasBeenSet = false; }; } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws