/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AmplifyUIBuilder.Model
{
///
/// Describes the configuration for the default input values to display for a field.
///
public partial class FieldInputConfig
{
private bool? _defaultChecked;
private string _defaultCountryCode;
private string _defaultValue;
private string _descriptiveText;
private FileUploaderFieldConfig _fileUploaderConfig;
private bool? _isArray;
private float? _maxValue;
private float? _minValue;
private string _name;
private string _placeholder;
private bool? _readOnly;
private bool? _required;
private float? _step;
private string _type;
private string _value;
private ValueMappings _valueMappings;
///
/// Gets and sets the property DefaultChecked.
///
/// Specifies whether a field has a default value.
///
///
public bool DefaultChecked
{
get { return this._defaultChecked.GetValueOrDefault(); }
set { this._defaultChecked = value; }
}
// Check to see if DefaultChecked property is set
internal bool IsSetDefaultChecked()
{
return this._defaultChecked.HasValue;
}
///
/// Gets and sets the property DefaultCountryCode.
///
/// The default country code for a phone number.
///
///
public string DefaultCountryCode
{
get { return this._defaultCountryCode; }
set { this._defaultCountryCode = value; }
}
// Check to see if DefaultCountryCode property is set
internal bool IsSetDefaultCountryCode()
{
return this._defaultCountryCode != null;
}
///
/// Gets and sets the property DefaultValue.
///
/// The default value for the field.
///
///
public string DefaultValue
{
get { return this._defaultValue; }
set { this._defaultValue = value; }
}
// Check to see if DefaultValue property is set
internal bool IsSetDefaultValue()
{
return this._defaultValue != null;
}
///
/// Gets and sets the property DescriptiveText.
///
/// The text to display to describe the field.
///
///
public string DescriptiveText
{
get { return this._descriptiveText; }
set { this._descriptiveText = value; }
}
// Check to see if DescriptiveText property is set
internal bool IsSetDescriptiveText()
{
return this._descriptiveText != null;
}
///
/// Gets and sets the property FileUploaderConfig.
///
/// The configuration for the file uploader field.
///
///
public FileUploaderFieldConfig FileUploaderConfig
{
get { return this._fileUploaderConfig; }
set { this._fileUploaderConfig = value; }
}
// Check to see if FileUploaderConfig property is set
internal bool IsSetFileUploaderConfig()
{
return this._fileUploaderConfig != null;
}
///
/// Gets and sets the property IsArray.
///
/// Specifies whether to render the field as an array. This property is ignored if the
/// dataSourceType
for the form is a Data Store.
///
///
public bool IsArray
{
get { return this._isArray.GetValueOrDefault(); }
set { this._isArray = value; }
}
// Check to see if IsArray property is set
internal bool IsSetIsArray()
{
return this._isArray.HasValue;
}
///
/// Gets and sets the property MaxValue.
///
/// The maximum value to display for the field.
///
///
public float MaxValue
{
get { return this._maxValue.GetValueOrDefault(); }
set { this._maxValue = value; }
}
// Check to see if MaxValue property is set
internal bool IsSetMaxValue()
{
return this._maxValue.HasValue;
}
///
/// Gets and sets the property MinValue.
///
/// The minimum value to display for the field.
///
///
public float MinValue
{
get { return this._minValue.GetValueOrDefault(); }
set { this._minValue = value; }
}
// Check to see if MinValue property is set
internal bool IsSetMinValue()
{
return this._minValue.HasValue;
}
///
/// Gets and sets the property Name.
///
/// The name of the field.
///
///
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property Placeholder.
///
/// The text to display as a placeholder for the field.
///
///
public string Placeholder
{
get { return this._placeholder; }
set { this._placeholder = value; }
}
// Check to see if Placeholder property is set
internal bool IsSetPlaceholder()
{
return this._placeholder != null;
}
///
/// Gets and sets the property ReadOnly.
///
/// Specifies a read only field.
///
///
public bool ReadOnly
{
get { return this._readOnly.GetValueOrDefault(); }
set { this._readOnly = value; }
}
// Check to see if ReadOnly property is set
internal bool IsSetReadOnly()
{
return this._readOnly.HasValue;
}
///
/// Gets and sets the property Required.
///
/// Specifies a field that requires input.
///
///
public bool Required
{
get { return this._required.GetValueOrDefault(); }
set { this._required = value; }
}
// Check to see if Required property is set
internal bool IsSetRequired()
{
return this._required.HasValue;
}
///
/// Gets and sets the property Step.
///
/// The stepping increment for a numeric value in a field.
///
///
public float Step
{
get { return this._step.GetValueOrDefault(); }
set { this._step = value; }
}
// Check to see if Step property is set
internal bool IsSetStep()
{
return this._step.HasValue;
}
///
/// Gets and sets the property Type.
///
/// The input type for the field.
///
///
[AWSProperty(Required=true)]
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
///
/// Gets and sets the property Value.
///
/// The value for the field.
///
///
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
///
/// Gets and sets the property ValueMappings.
///
/// The information to use to customize the input fields with data at runtime.
///
///
public ValueMappings ValueMappings
{
get { return this._valueMappings; }
set { this._valueMappings = value; }
}
// Check to see if ValueMappings property is set
internal bool IsSetValueMappings()
{
return this._valueMappings != null;
}
}
}