/* * 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 glue-2017-03-31.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.Glue.Model { /// <summary> /// Container for the parameters to the StartDataQualityRuleRecommendationRun operation. /// Starts a recommendation run that is used to generate rules when you don't know what /// rules to write. Glue Data Quality analyzes the data and comes up with recommendations /// for a potential ruleset. You can then triage the ruleset and modify the generated /// ruleset to your liking. /// </summary> public partial class StartDataQualityRuleRecommendationRunRequest : AmazonGlueRequest { private string _clientToken; private string _createdRulesetName; private DataSource _dataSource; private int? _numberOfWorkers; private string _role; private int? _timeout; /// <summary> /// Gets and sets the property ClientToken. /// <para> /// Used for idempotency and is recommended to be set to a random ID (such as a UUID) /// to avoid creating or starting multiple instances of the same resource. /// </para> /// </summary> [AWSProperty(Min=1, Max=255)] public string ClientToken { get { return this._clientToken; } set { this._clientToken = value; } } // Check to see if ClientToken property is set internal bool IsSetClientToken() { return this._clientToken != null; } /// <summary> /// Gets and sets the property CreatedRulesetName. /// <para> /// A name for the ruleset. /// </para> /// </summary> [AWSProperty(Min=1, Max=255)] public string CreatedRulesetName { get { return this._createdRulesetName; } set { this._createdRulesetName = value; } } // Check to see if CreatedRulesetName property is set internal bool IsSetCreatedRulesetName() { return this._createdRulesetName != null; } /// <summary> /// Gets and sets the property DataSource. /// <para> /// The data source (Glue table) associated with this run. /// </para> /// </summary> [AWSProperty(Required=true)] public DataSource DataSource { get { return this._dataSource; } set { this._dataSource = value; } } // Check to see if DataSource property is set internal bool IsSetDataSource() { return this._dataSource != null; } /// <summary> /// Gets and sets the property NumberOfWorkers. /// <para> /// The number of <code>G.1X</code> workers to be used in the run. The default is 5. /// </para> /// </summary> public int NumberOfWorkers { get { return this._numberOfWorkers.GetValueOrDefault(); } set { this._numberOfWorkers = value; } } // Check to see if NumberOfWorkers property is set internal bool IsSetNumberOfWorkers() { return this._numberOfWorkers.HasValue; } /// <summary> /// Gets and sets the property Role. /// <para> /// An IAM role supplied to encrypt the results of the run. /// </para> /// </summary> [AWSProperty(Required=true)] public string Role { get { return this._role; } set { this._role = value; } } // Check to see if Role property is set internal bool IsSetRole() { return this._role != null; } /// <summary> /// Gets and sets the property Timeout. /// <para> /// The timeout for a run in minutes. This is the maximum time that a run can consume /// resources before it is terminated and enters <code>TIMEOUT</code> status. The default /// is 2,880 minutes (48 hours). /// </para> /// </summary> [AWSProperty(Min=1)] public int Timeout { get { return this._timeout.GetValueOrDefault(); } set { this._timeout = value; } } // Check to see if Timeout property is set internal bool IsSetTimeout() { return this._timeout.HasValue; } } }