/*
* 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
{
///
/// Container for the parameters to the StartDataQualityRulesetEvaluationRun operation.
/// Once you have a ruleset definition (either recommended or your own), you call this
/// operation to evaluate the ruleset against a data source (Glue table). The evaluation
/// computes results which you can retrieve with the GetDataQualityResult
/// API.
///
public partial class StartDataQualityRulesetEvaluationRunRequest : AmazonGlueRequest
{
private Dictionary _additionalDataSources = new Dictionary();
private DataQualityEvaluationRunAdditionalRunOptions _additionalRunOptions;
private string _clientToken;
private DataSource _dataSource;
private int? _numberOfWorkers;
private string _role;
private List _rulesetNames = new List();
private int? _timeout;
///
/// Gets and sets the property AdditionalDataSources.
///
/// A map of reference strings to additional data sources you can specify for an evaluation
/// run.
///
///
public Dictionary AdditionalDataSources
{
get { return this._additionalDataSources; }
set { this._additionalDataSources = value; }
}
// Check to see if AdditionalDataSources property is set
internal bool IsSetAdditionalDataSources()
{
return this._additionalDataSources != null && this._additionalDataSources.Count > 0;
}
///
/// Gets and sets the property AdditionalRunOptions.
///
/// Additional run options you can specify for an evaluation run.
///
///
public DataQualityEvaluationRunAdditionalRunOptions AdditionalRunOptions
{
get { return this._additionalRunOptions; }
set { this._additionalRunOptions = value; }
}
// Check to see if AdditionalRunOptions property is set
internal bool IsSetAdditionalRunOptions()
{
return this._additionalRunOptions != null;
}
///
/// Gets and sets the property ClientToken.
///
/// 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.
///
///
[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;
}
///
/// Gets and sets the property DataSource.
///
/// The data source (Glue table) associated with this run.
///
///
[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;
}
///
/// Gets and sets the property NumberOfWorkers.
///
/// The number of G.1X
workers to be used in the run. The default is 5.
///
///
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;
}
///
/// Gets and sets the property Role.
///
/// An IAM role supplied to encrypt the results of the run.
///
///
[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;
}
///
/// Gets and sets the property RulesetNames.
///
/// A list of ruleset names.
///
///
[AWSProperty(Required=true, Min=1, Max=10)]
public List RulesetNames
{
get { return this._rulesetNames; }
set { this._rulesetNames = value; }
}
// Check to see if RulesetNames property is set
internal bool IsSetRulesetNames()
{
return this._rulesetNames != null && this._rulesetNames.Count > 0;
}
///
/// Gets and sets the property Timeout.
///
/// The timeout for a run in minutes. This is the maximum time that a run can consume
/// resources before it is terminated and enters TIMEOUT
status. The default
/// is 2,880 minutes (48 hours).
///
///
[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;
}
}
}