/*
* 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 binding a component's properties to data.
///
public partial class ComponentDataConfiguration
{
private List _identifiers = new List();
private string _model;
private Predicate _predicate;
private List _sort = new List();
///
/// Gets and sets the property Identifiers.
///
/// A list of IDs to use to bind data to a component. Use this property to bind specifically
/// chosen data, rather than data retrieved from a query.
///
///
public List Identifiers
{
get { return this._identifiers; }
set { this._identifiers = value; }
}
// Check to see if Identifiers property is set
internal bool IsSetIdentifiers()
{
return this._identifiers != null && this._identifiers.Count > 0;
}
///
/// Gets and sets the property Model.
///
/// The name of the data model to use to bind data to a component.
///
///
[AWSProperty(Required=true)]
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 Predicate.
///
/// Represents the conditional logic to use when binding data to a component. Use this
/// property to retrieve only a subset of the data in a collection.
///
///
public Predicate Predicate
{
get { return this._predicate; }
set { this._predicate = value; }
}
// Check to see if Predicate property is set
internal bool IsSetPredicate()
{
return this._predicate != null;
}
///
/// Gets and sets the property Sort.
///
/// Describes how to sort the component's properties.
///
///
public List Sort
{
get { return this._sort; }
set { this._sort = value; }
}
// Check to see if Sort property is set
internal bool IsSetSort()
{
return this._sort != null && this._sort.Count > 0;
}
}
}