/* * 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 a code generation job that is associated with an Amplify /// app. /// public partial class CodegenJob { private string _appId; private CodegenJobAsset _asset; private bool? _autoGenerateForms; private DateTime? _createdAt; private string _environmentName; private CodegenFeatureFlags _features; private CodegenJobGenericDataSchema _genericDataSchema; private string _id; private DateTime? _modifiedAt; private CodegenJobRenderConfig _renderConfig; private CodegenJobStatus _status; private string _statusMessage; private Dictionary _tags = new Dictionary(); /// /// Gets and sets the property AppId. /// /// The ID of the Amplify app associated with the code generation job. /// /// [AWSProperty(Required=true, Min=1, Max=20)] public string AppId { get { return this._appId; } set { this._appId = value; } } // Check to see if AppId property is set internal bool IsSetAppId() { return this._appId != null; } /// /// Gets and sets the property Asset. /// /// The CodegenJobAsset to use for the code generation job. /// /// public CodegenJobAsset Asset { get { return this._asset; } set { this._asset = value; } } // Check to see if Asset property is set internal bool IsSetAsset() { return this._asset != null; } /// /// Gets and sets the property AutoGenerateForms. /// /// Specifies whether to autogenerate forms in the code generation job. /// /// public bool AutoGenerateForms { get { return this._autoGenerateForms.GetValueOrDefault(); } set { this._autoGenerateForms = value; } } // Check to see if AutoGenerateForms property is set internal bool IsSetAutoGenerateForms() { return this._autoGenerateForms.HasValue; } /// /// Gets and sets the property CreatedAt. /// /// The time that the code generation job was created. /// /// public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// /// Gets and sets the property EnvironmentName. /// /// The name of the backend environment associated with the code generation job. /// /// [AWSProperty(Required=true)] public string EnvironmentName { get { return this._environmentName; } set { this._environmentName = value; } } // Check to see if EnvironmentName property is set internal bool IsSetEnvironmentName() { return this._environmentName != null; } /// /// Gets and sets the property Features. /// public CodegenFeatureFlags Features { get { return this._features; } set { this._features = value; } } // Check to see if Features property is set internal bool IsSetFeatures() { return this._features != null; } /// /// Gets and sets the property GenericDataSchema. /// public CodegenJobGenericDataSchema GenericDataSchema { get { return this._genericDataSchema; } set { this._genericDataSchema = value; } } // Check to see if GenericDataSchema property is set internal bool IsSetGenericDataSchema() { return this._genericDataSchema != null; } /// /// Gets and sets the property Id. /// /// The unique ID for the code generation job. /// /// [AWSProperty(Required=true)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// /// Gets and sets the property ModifiedAt. /// /// The time that the code generation job was modified. /// /// public DateTime ModifiedAt { get { return this._modifiedAt.GetValueOrDefault(); } set { this._modifiedAt = value; } } // Check to see if ModifiedAt property is set internal bool IsSetModifiedAt() { return this._modifiedAt.HasValue; } /// /// Gets and sets the property RenderConfig. /// public CodegenJobRenderConfig RenderConfig { get { return this._renderConfig; } set { this._renderConfig = value; } } // Check to see if RenderConfig property is set internal bool IsSetRenderConfig() { return this._renderConfig != null; } /// /// Gets and sets the property Status. /// /// The status of the code generation job. /// /// public CodegenJobStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property StatusMessage. /// /// The customized status message for the code generation job. /// /// public string StatusMessage { get { return this._statusMessage; } set { this._statusMessage = value; } } // Check to see if StatusMessage property is set internal bool IsSetStatusMessage() { return this._statusMessage != null; } /// /// Gets and sets the property Tags. /// /// One or more key-value pairs to use when tagging the code generation job. /// /// public Dictionary Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }