/** * 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 { /** *

Stores the configuration information for a visual helper element for a form. * A sectional element can be a header, a text block, or a divider. These elements * are static and not associated with any data.

See Also:

AWS * API Reference

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

The type of sectional element. Valid values are Heading, * Text, and Divider.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of sectional element. Valid values are Heading, * Text, and Divider.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of sectional element. Valid values are Heading, * Text, and Divider.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of sectional element. Valid values are Heading, * Text, and Divider.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of sectional element. Valid values are Heading, * Text, and Divider.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of sectional element. Valid values are Heading, * Text, and Divider.

*/ inline SectionalElement& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of sectional element. Valid values are Heading, * Text, and Divider.

*/ inline SectionalElement& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of sectional element. Valid values are Heading, * Text, and Divider.

*/ inline SectionalElement& WithType(const char* value) { SetType(value); return *this;} /** *

Specifies the position of the text in a field for a Text * sectional element.

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

Specifies the position of the text in a field for a Text * sectional element.

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

Specifies the position of the text in a field for a Text * sectional element.

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

Specifies the position of the text in a field for a Text * sectional element.

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

Specifies the position of the text in a field for a Text * sectional element.

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

Specifies the position of the text in a field for a Text * sectional element.

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

The text for a Text sectional element.

*/ inline const Aws::String& GetText() const{ return m_text; } /** *

The text for a Text sectional element.

*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *

The text for a Text sectional element.

*/ inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } /** *

The text for a Text sectional element.

*/ inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *

The text for a Text sectional element.

*/ inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } /** *

The text for a Text sectional element.

*/ inline SectionalElement& WithText(const Aws::String& value) { SetText(value); return *this;} /** *

The text for a Text sectional element.

*/ inline SectionalElement& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} /** *

The text for a Text sectional element.

*/ inline SectionalElement& WithText(const char* value) { SetText(value); return *this;} /** *

Specifies the size of the font for a Heading sectional element. * Valid values are 1 | 2 | 3 | 4 | 5 | 6.

*/ inline int GetLevel() const{ return m_level; } /** *

Specifies the size of the font for a Heading sectional element. * Valid values are 1 | 2 | 3 | 4 | 5 | 6.

*/ inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; } /** *

Specifies the size of the font for a Heading sectional element. * Valid values are 1 | 2 | 3 | 4 | 5 | 6.

*/ inline void SetLevel(int value) { m_levelHasBeenSet = true; m_level = value; } /** *

Specifies the size of the font for a Heading sectional element. * Valid values are 1 | 2 | 3 | 4 | 5 | 6.

*/ inline SectionalElement& WithLevel(int value) { SetLevel(value); return *this;} /** *

Specifies the orientation for a Divider sectional element. Valid * values are horizontal or vertical.

*/ inline const Aws::String& GetOrientation() const{ return m_orientation; } /** *

Specifies the orientation for a Divider sectional element. Valid * values are horizontal or vertical.

*/ inline bool OrientationHasBeenSet() const { return m_orientationHasBeenSet; } /** *

Specifies the orientation for a Divider sectional element. Valid * values are horizontal or vertical.

*/ inline void SetOrientation(const Aws::String& value) { m_orientationHasBeenSet = true; m_orientation = value; } /** *

Specifies the orientation for a Divider sectional element. Valid * values are horizontal or vertical.

*/ inline void SetOrientation(Aws::String&& value) { m_orientationHasBeenSet = true; m_orientation = std::move(value); } /** *

Specifies the orientation for a Divider sectional element. Valid * values are horizontal or vertical.

*/ inline void SetOrientation(const char* value) { m_orientationHasBeenSet = true; m_orientation.assign(value); } /** *

Specifies the orientation for a Divider sectional element. Valid * values are horizontal or vertical.

*/ inline SectionalElement& WithOrientation(const Aws::String& value) { SetOrientation(value); return *this;} /** *

Specifies the orientation for a Divider sectional element. Valid * values are horizontal or vertical.

*/ inline SectionalElement& WithOrientation(Aws::String&& value) { SetOrientation(std::move(value)); return *this;} /** *

Specifies the orientation for a Divider sectional element. Valid * values are horizontal or vertical.

*/ inline SectionalElement& WithOrientation(const char* value) { SetOrientation(value); return *this;} /** *

Excludes a sectional element that was generated by default for a specified * data model.

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

Excludes a sectional element that was generated by default for a specified * data model.

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

Excludes a sectional element that was generated by default for a specified * data model.

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

Excludes a sectional element that was generated by default for a specified * data model.

*/ inline SectionalElement& WithExcluded(bool value) { SetExcluded(value); return *this;} private: Aws::String m_type; bool m_typeHasBeenSet = false; FieldPosition m_position; bool m_positionHasBeenSet = false; Aws::String m_text; bool m_textHasBeenSet = false; int m_level; bool m_levelHasBeenSet = false; Aws::String m_orientation; bool m_orientationHasBeenSet = false; bool m_excluded; bool m_excludedHasBeenSet = false; }; } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws