/*
* 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 data schema for a code generation job.
///
public partial class CodegenJobGenericDataSchema
{
private CodegenJobGenericDataSourceType _dataSourceType;
private Dictionary _enums = new Dictionary();
private Dictionary _models = new Dictionary();
private Dictionary _nonModels = new Dictionary();
///
/// Gets and sets the property DataSourceType.
///
/// The type of the data source for the schema. Currently, the only valid value is an
/// Amplify DataStore
.
///
///
[AWSProperty(Required=true)]
public CodegenJobGenericDataSourceType DataSourceType
{
get { return this._dataSourceType; }
set { this._dataSourceType = value; }
}
// Check to see if DataSourceType property is set
internal bool IsSetDataSourceType()
{
return this._dataSourceType != null;
}
///
/// Gets and sets the property Enums.
///
/// The name of a CodegenGenericDataEnum
.
///
///
[AWSProperty(Required=true)]
public Dictionary Enums
{
get { return this._enums; }
set { this._enums = value; }
}
// Check to see if Enums property is set
internal bool IsSetEnums()
{
return this._enums != null && this._enums.Count > 0;
}
///
/// Gets and sets the property Models.
///
/// The name of a CodegenGenericDataModel
.
///
///
[AWSProperty(Required=true)]
public Dictionary Models
{
get { return this._models; }
set { this._models = value; }
}
// Check to see if Models property is set
internal bool IsSetModels()
{
return this._models != null && this._models.Count > 0;
}
///
/// Gets and sets the property NonModels.
///
/// The name of a CodegenGenericDataNonModel
.
///
///
[AWSProperty(Required=true)]
public Dictionary NonModels
{
get { return this._nonModels; }
set { this._nonModels = value; }
}
// Check to see if NonModels property is set
internal bool IsSetNonModels()
{
return this._nonModels != null && this._nonModels.Count > 0;
}
}
}