/*
* 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 all of a component's properties. Use ComponentProperty
/// to specify the values to render or bind by default.
///
public partial class ComponentProperty
{
private ComponentPropertyBindingProperties _bindingProperties;
private Dictionary _bindings = new Dictionary();
private ComponentPropertyBindingProperties _collectionBindingProperties;
private string _componentName;
private List _concat = new List();
private ComponentConditionProperty _condition;
private bool? _configured;
private string _defaultValue;
private string _event;
private string _importedValue;
private string _model;
private string _property;
private string _type;
private string _userAttribute;
private string _value;
///
/// Gets and sets the property BindingProperties.
///
/// The information to bind the component property to data at runtime.
///
///
public ComponentPropertyBindingProperties BindingProperties
{
get { return this._bindingProperties; }
set { this._bindingProperties = value; }
}
// Check to see if BindingProperties property is set
internal bool IsSetBindingProperties()
{
return this._bindingProperties != null;
}
///
/// Gets and sets the property Bindings.
///
/// The information to bind the component property to form data.
///
///
public Dictionary Bindings
{
get { return this._bindings; }
set { this._bindings = value; }
}
// Check to see if Bindings property is set
internal bool IsSetBindings()
{
return this._bindings != null && this._bindings.Count > 0;
}
///
/// Gets and sets the property CollectionBindingProperties.
///
/// The information to bind the component property to data at runtime. Use this for collection
/// components.
///
///
public ComponentPropertyBindingProperties CollectionBindingProperties
{
get { return this._collectionBindingProperties; }
set { this._collectionBindingProperties = value; }
}
// Check to see if CollectionBindingProperties property is set
internal bool IsSetCollectionBindingProperties()
{
return this._collectionBindingProperties != null;
}
///
/// Gets and sets the property ComponentName.
///
/// The name of the component that is affected by an event.
///
///
public string ComponentName
{
get { return this._componentName; }
set { this._componentName = value; }
}
// Check to see if ComponentName property is set
internal bool IsSetComponentName()
{
return this._componentName != null;
}
///
/// Gets and sets the property Concat.
///
/// A list of component properties to concatenate to create the value to assign to this
/// component property.
///
///
public List Concat
{
get { return this._concat; }
set { this._concat = value; }
}
// Check to see if Concat property is set
internal bool IsSetConcat()
{
return this._concat != null && this._concat.Count > 0;
}
///
/// Gets and sets the property Condition.
///
/// The conditional expression to use to assign a value to the component property.
///
///
public ComponentConditionProperty Condition
{
get { return this._condition; }
set { this._condition = value; }
}
// Check to see if Condition property is set
internal bool IsSetCondition()
{
return this._condition != null;
}
///
/// Gets and sets the property Configured.
///
/// Specifies whether the user configured the property in Amplify Studio after importing
/// it.
///
///
public bool Configured
{
get { return this._configured.GetValueOrDefault(); }
set { this._configured = value; }
}
// Check to see if Configured property is set
internal bool IsSetConfigured()
{
return this._configured.HasValue;
}
///
/// Gets and sets the property DefaultValue.
///
/// The default value to assign to the component property.
///
///
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 Event.
///
/// An event that occurs in your app. Use this for workflow data binding.
///
///
public string Event
{
get { return this._event; }
set { this._event = value; }
}
// Check to see if Event property is set
internal bool IsSetEvent()
{
return this._event != null;
}
///
/// Gets and sets the property ImportedValue.
///
/// The default value assigned to the property when the component is imported into an
/// app.
///
///
public string ImportedValue
{
get { return this._importedValue; }
set { this._importedValue = value; }
}
// Check to see if ImportedValue property is set
internal bool IsSetImportedValue()
{
return this._importedValue != null;
}
///
/// Gets and sets the property Model.
///
/// The data model to use to assign a value to the component property.
///
///
public string Model
{
get { return this._model; }
set { this._model = value; }
}
// Check to see if Model property is set
internal bool IsSetModel()
{
return this._model != null;
}
///
/// Gets and sets the property Property.
///
/// The name of the component's property that is affected by an event.
///
///
public string Property
{
get { return this._property; }
set { this._property = value; }
}
// Check to see if Property property is set
internal bool IsSetProperty()
{
return this._property != null;
}
///
/// Gets and sets the property Type.
///
/// The component type.
///
///
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 UserAttribute.
///
/// An authenticated user attribute to use to assign a value to the component property.
///
///
public string UserAttribute
{
get { return this._userAttribute; }
set { this._userAttribute = value; }
}
// Check to see if UserAttribute property is set
internal bool IsSetUserAttribute()
{
return this._userAttribute != null;
}
///
/// Gets and sets the property Value.
///
/// The value to assign to the component property.
///
///
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;
}
}
}