/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #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 information for a field in a table.

See * Also:

AWS * API Reference

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

The label for the field.

*/ inline const Aws::String& GetLabel() const{ return m_label; } /** *

The label for the field.

*/ inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; } /** *

The label for the field.

*/ inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; } /** *

The label for the field.

*/ inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); } /** *

The label for the field.

*/ inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); } /** *

The label for the field.

*/ inline FieldConfig& WithLabel(const Aws::String& value) { SetLabel(value); return *this;} /** *

The label for the field.

*/ inline FieldConfig& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;} /** *

The label for the field.

*/ inline FieldConfig& WithLabel(const char* value) { SetLabel(value); return *this;} /** *

Specifies the field position.

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

Specifies the field position.

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

Specifies the field position.

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

Specifies the field position.

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

Specifies the field position.

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

Specifies the field position.

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

Specifies whether to hide a field.

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

Specifies whether to hide a field.

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

Specifies whether to hide a field.

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

Specifies whether to hide a field.

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

Describes the configuration for the default input value to display for a * field.

*/ inline const FieldInputConfig& GetInputType() const{ return m_inputType; } /** *

Describes the configuration for the default input value to display for a * field.

*/ inline bool InputTypeHasBeenSet() const { return m_inputTypeHasBeenSet; } /** *

Describes the configuration for the default input value to display for a * field.

*/ inline void SetInputType(const FieldInputConfig& value) { m_inputTypeHasBeenSet = true; m_inputType = value; } /** *

Describes the configuration for the default input value to display for a * field.

*/ inline void SetInputType(FieldInputConfig&& value) { m_inputTypeHasBeenSet = true; m_inputType = std::move(value); } /** *

Describes the configuration for the default input value to display for a * field.

*/ inline FieldConfig& WithInputType(const FieldInputConfig& value) { SetInputType(value); return *this;} /** *

Describes the configuration for the default input value to display for a * field.

*/ inline FieldConfig& WithInputType(FieldInputConfig&& value) { SetInputType(std::move(value)); return *this;} /** *

The validations to perform on the value in the field.

*/ inline const Aws::Vector& GetValidations() const{ return m_validations; } /** *

The validations to perform on the value in the field.

*/ inline bool ValidationsHasBeenSet() const { return m_validationsHasBeenSet; } /** *

The validations to perform on the value in the field.

*/ inline void SetValidations(const Aws::Vector& value) { m_validationsHasBeenSet = true; m_validations = value; } /** *

The validations to perform on the value in the field.

*/ inline void SetValidations(Aws::Vector&& value) { m_validationsHasBeenSet = true; m_validations = std::move(value); } /** *

The validations to perform on the value in the field.

*/ inline FieldConfig& WithValidations(const Aws::Vector& value) { SetValidations(value); return *this;} /** *

The validations to perform on the value in the field.

*/ inline FieldConfig& WithValidations(Aws::Vector&& value) { SetValidations(std::move(value)); return *this;} /** *

The validations to perform on the value in the field.

*/ inline FieldConfig& AddValidations(const FieldValidationConfiguration& value) { m_validationsHasBeenSet = true; m_validations.push_back(value); return *this; } /** *

The validations to perform on the value in the field.

*/ inline FieldConfig& AddValidations(FieldValidationConfiguration&& value) { m_validationsHasBeenSet = true; m_validations.push_back(std::move(value)); return *this; } private: Aws::String m_label; bool m_labelHasBeenSet = false; FieldPosition m_position; bool m_positionHasBeenSet = false; bool m_excluded; bool m_excludedHasBeenSet = false; FieldInputConfig m_inputType; bool m_inputTypeHasBeenSet = false; Aws::Vector m_validations; bool m_validationsHasBeenSet = false; }; } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws