/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the configuration for the default input values to display for a
* field.See Also:
AWS
* API Reference
The input type for the field.
*/ inline const Aws::String& GetType() const{ return m_type; } /** *The input type for the field.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The input type for the field.
*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *The input type for the field.
*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The input type for the field.
*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *The input type for the field.
*/ inline FieldInputConfig& WithType(const Aws::String& value) { SetType(value); return *this;} /** *The input type for the field.
*/ inline FieldInputConfig& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *The input type for the field.
*/ inline FieldInputConfig& WithType(const char* value) { SetType(value); return *this;} /** *Specifies a field that requires input.
*/ inline bool GetRequired() const{ return m_required; } /** *Specifies a field that requires input.
*/ inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; } /** *Specifies a field that requires input.
*/ inline void SetRequired(bool value) { m_requiredHasBeenSet = true; m_required = value; } /** *Specifies a field that requires input.
*/ inline FieldInputConfig& WithRequired(bool value) { SetRequired(value); return *this;} /** *Specifies a read only field.
*/ inline bool GetReadOnly() const{ return m_readOnly; } /** *Specifies a read only field.
*/ inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; } /** *Specifies a read only field.
*/ inline void SetReadOnly(bool value) { m_readOnlyHasBeenSet = true; m_readOnly = value; } /** *Specifies a read only field.
*/ inline FieldInputConfig& WithReadOnly(bool value) { SetReadOnly(value); return *this;} /** *The text to display as a placeholder for the field.
*/ inline const Aws::String& GetPlaceholder() const{ return m_placeholder; } /** *The text to display as a placeholder for the field.
*/ inline bool PlaceholderHasBeenSet() const { return m_placeholderHasBeenSet; } /** *The text to display as a placeholder for the field.
*/ inline void SetPlaceholder(const Aws::String& value) { m_placeholderHasBeenSet = true; m_placeholder = value; } /** *The text to display as a placeholder for the field.
*/ inline void SetPlaceholder(Aws::String&& value) { m_placeholderHasBeenSet = true; m_placeholder = std::move(value); } /** *The text to display as a placeholder for the field.
*/ inline void SetPlaceholder(const char* value) { m_placeholderHasBeenSet = true; m_placeholder.assign(value); } /** *The text to display as a placeholder for the field.
*/ inline FieldInputConfig& WithPlaceholder(const Aws::String& value) { SetPlaceholder(value); return *this;} /** *The text to display as a placeholder for the field.
*/ inline FieldInputConfig& WithPlaceholder(Aws::String&& value) { SetPlaceholder(std::move(value)); return *this;} /** *The text to display as a placeholder for the field.
*/ inline FieldInputConfig& WithPlaceholder(const char* value) { SetPlaceholder(value); return *this;} /** *The default value for the field.
*/ inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; } /** *The default value for the field.
*/ inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; } /** *The default value for the field.
*/ inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; } /** *The default value for the field.
*/ inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); } /** *The default value for the field.
*/ inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); } /** *The default value for the field.
*/ inline FieldInputConfig& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;} /** *The default value for the field.
*/ inline FieldInputConfig& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;} /** *The default value for the field.
*/ inline FieldInputConfig& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;} /** *The text to display to describe the field.
*/ inline const Aws::String& GetDescriptiveText() const{ return m_descriptiveText; } /** *The text to display to describe the field.
*/ inline bool DescriptiveTextHasBeenSet() const { return m_descriptiveTextHasBeenSet; } /** *The text to display to describe the field.
*/ inline void SetDescriptiveText(const Aws::String& value) { m_descriptiveTextHasBeenSet = true; m_descriptiveText = value; } /** *The text to display to describe the field.
*/ inline void SetDescriptiveText(Aws::String&& value) { m_descriptiveTextHasBeenSet = true; m_descriptiveText = std::move(value); } /** *The text to display to describe the field.
*/ inline void SetDescriptiveText(const char* value) { m_descriptiveTextHasBeenSet = true; m_descriptiveText.assign(value); } /** *The text to display to describe the field.
*/ inline FieldInputConfig& WithDescriptiveText(const Aws::String& value) { SetDescriptiveText(value); return *this;} /** *The text to display to describe the field.
*/ inline FieldInputConfig& WithDescriptiveText(Aws::String&& value) { SetDescriptiveText(std::move(value)); return *this;} /** *The text to display to describe the field.
*/ inline FieldInputConfig& WithDescriptiveText(const char* value) { SetDescriptiveText(value); return *this;} /** *Specifies whether a field has a default value.
*/ inline bool GetDefaultChecked() const{ return m_defaultChecked; } /** *Specifies whether a field has a default value.
*/ inline bool DefaultCheckedHasBeenSet() const { return m_defaultCheckedHasBeenSet; } /** *Specifies whether a field has a default value.
*/ inline void SetDefaultChecked(bool value) { m_defaultCheckedHasBeenSet = true; m_defaultChecked = value; } /** *Specifies whether a field has a default value.
*/ inline FieldInputConfig& WithDefaultChecked(bool value) { SetDefaultChecked(value); return *this;} /** *The default country code for a phone number.
*/ inline const Aws::String& GetDefaultCountryCode() const{ return m_defaultCountryCode; } /** *The default country code for a phone number.
*/ inline bool DefaultCountryCodeHasBeenSet() const { return m_defaultCountryCodeHasBeenSet; } /** *The default country code for a phone number.
*/ inline void SetDefaultCountryCode(const Aws::String& value) { m_defaultCountryCodeHasBeenSet = true; m_defaultCountryCode = value; } /** *The default country code for a phone number.
*/ inline void SetDefaultCountryCode(Aws::String&& value) { m_defaultCountryCodeHasBeenSet = true; m_defaultCountryCode = std::move(value); } /** *The default country code for a phone number.
*/ inline void SetDefaultCountryCode(const char* value) { m_defaultCountryCodeHasBeenSet = true; m_defaultCountryCode.assign(value); } /** *The default country code for a phone number.
*/ inline FieldInputConfig& WithDefaultCountryCode(const Aws::String& value) { SetDefaultCountryCode(value); return *this;} /** *The default country code for a phone number.
*/ inline FieldInputConfig& WithDefaultCountryCode(Aws::String&& value) { SetDefaultCountryCode(std::move(value)); return *this;} /** *The default country code for a phone number.
*/ inline FieldInputConfig& WithDefaultCountryCode(const char* value) { SetDefaultCountryCode(value); return *this;} /** *The information to use to customize the input fields with data at * runtime.
*/ inline const ValueMappings& GetValueMappings() const{ return m_valueMappings; } /** *The information to use to customize the input fields with data at * runtime.
*/ inline bool ValueMappingsHasBeenSet() const { return m_valueMappingsHasBeenSet; } /** *The information to use to customize the input fields with data at * runtime.
*/ inline void SetValueMappings(const ValueMappings& value) { m_valueMappingsHasBeenSet = true; m_valueMappings = value; } /** *The information to use to customize the input fields with data at * runtime.
*/ inline void SetValueMappings(ValueMappings&& value) { m_valueMappingsHasBeenSet = true; m_valueMappings = std::move(value); } /** *The information to use to customize the input fields with data at * runtime.
*/ inline FieldInputConfig& WithValueMappings(const ValueMappings& value) { SetValueMappings(value); return *this;} /** *The information to use to customize the input fields with data at * runtime.
*/ inline FieldInputConfig& WithValueMappings(ValueMappings&& value) { SetValueMappings(std::move(value)); return *this;} /** *The name of the field.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the field.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the field.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the field.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the field.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the field.
*/ inline FieldInputConfig& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the field.
*/ inline FieldInputConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the field.
*/ inline FieldInputConfig& WithName(const char* value) { SetName(value); return *this;} /** *The minimum value to display for the field.
*/ inline double GetMinValue() const{ return m_minValue; } /** *The minimum value to display for the field.
*/ inline bool MinValueHasBeenSet() const { return m_minValueHasBeenSet; } /** *The minimum value to display for the field.
*/ inline void SetMinValue(double value) { m_minValueHasBeenSet = true; m_minValue = value; } /** *The minimum value to display for the field.
*/ inline FieldInputConfig& WithMinValue(double value) { SetMinValue(value); return *this;} /** *The maximum value to display for the field.
*/ inline double GetMaxValue() const{ return m_maxValue; } /** *The maximum value to display for the field.
*/ inline bool MaxValueHasBeenSet() const { return m_maxValueHasBeenSet; } /** *The maximum value to display for the field.
*/ inline void SetMaxValue(double value) { m_maxValueHasBeenSet = true; m_maxValue = value; } /** *The maximum value to display for the field.
*/ inline FieldInputConfig& WithMaxValue(double value) { SetMaxValue(value); return *this;} /** *The stepping increment for a numeric value in a field.
*/ inline double GetStep() const{ return m_step; } /** *The stepping increment for a numeric value in a field.
*/ inline bool StepHasBeenSet() const { return m_stepHasBeenSet; } /** *The stepping increment for a numeric value in a field.
*/ inline void SetStep(double value) { m_stepHasBeenSet = true; m_step = value; } /** *The stepping increment for a numeric value in a field.
*/ inline FieldInputConfig& WithStep(double value) { SetStep(value); return *this;} /** *The value for the field.
*/ inline const Aws::String& GetValue() const{ return m_value; } /** *The value for the field.
*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *The value for the field.
*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *The value for the field.
*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *The value for the field.
*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *The value for the field.
*/ inline FieldInputConfig& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *The value for the field.
*/ inline FieldInputConfig& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *The value for the field.
*/ inline FieldInputConfig& WithValue(const char* value) { SetValue(value); return *this;} /** *Specifies whether to render the field as an array. This property is ignored
* if the dataSourceType
for the form is a Data Store.
Specifies whether to render the field as an array. This property is ignored
* if the dataSourceType
for the form is a Data Store.
Specifies whether to render the field as an array. This property is ignored
* if the dataSourceType
for the form is a Data Store.
Specifies whether to render the field as an array. This property is ignored
* if the dataSourceType
for the form is a Data Store.
The configuration for the file uploader field.
*/ inline const FileUploaderFieldConfig& GetFileUploaderConfig() const{ return m_fileUploaderConfig; } /** *The configuration for the file uploader field.
*/ inline bool FileUploaderConfigHasBeenSet() const { return m_fileUploaderConfigHasBeenSet; } /** *The configuration for the file uploader field.
*/ inline void SetFileUploaderConfig(const FileUploaderFieldConfig& value) { m_fileUploaderConfigHasBeenSet = true; m_fileUploaderConfig = value; } /** *The configuration for the file uploader field.
*/ inline void SetFileUploaderConfig(FileUploaderFieldConfig&& value) { m_fileUploaderConfigHasBeenSet = true; m_fileUploaderConfig = std::move(value); } /** *The configuration for the file uploader field.
*/ inline FieldInputConfig& WithFileUploaderConfig(const FileUploaderFieldConfig& value) { SetFileUploaderConfig(value); return *this;} /** *The configuration for the file uploader field.
*/ inline FieldInputConfig& WithFileUploaderConfig(FileUploaderFieldConfig&& value) { SetFileUploaderConfig(std::move(value)); return *this;} private: Aws::String m_type; bool m_typeHasBeenSet = false; bool m_required; bool m_requiredHasBeenSet = false; bool m_readOnly; bool m_readOnlyHasBeenSet = false; Aws::String m_placeholder; bool m_placeholderHasBeenSet = false; Aws::String m_defaultValue; bool m_defaultValueHasBeenSet = false; Aws::String m_descriptiveText; bool m_descriptiveTextHasBeenSet = false; bool m_defaultChecked; bool m_defaultCheckedHasBeenSet = false; Aws::String m_defaultCountryCode; bool m_defaultCountryCodeHasBeenSet = false; ValueMappings m_valueMappings; bool m_valueMappingsHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; double m_minValue; bool m_minValueHasBeenSet = false; double m_maxValue; bool m_maxValueHasBeenSet = false; double m_step; bool m_stepHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; bool m_isArray; bool m_isArrayHasBeenSet = false; FileUploaderFieldConfig m_fileUploaderConfig; bool m_fileUploaderConfigHasBeenSet = false; }; } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws