/*
* 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
{
///
/// Describes a data quality result.
///
public partial class DataQualityResult
{
private DateTime? _completedOn;
private DataSource _dataSource;
private string _evaluationContext;
private string _jobName;
private string _jobRunId;
private string _resultId;
private List _ruleResults = new List();
private string _rulesetEvaluationRunId;
private string _rulesetName;
private double? _score;
private DateTime? _startedOn;
///
/// Gets and sets the property CompletedOn.
///
/// The date and time when this data quality run completed.
///
///
public DateTime CompletedOn
{
get { return this._completedOn.GetValueOrDefault(); }
set { this._completedOn = value; }
}
// Check to see if CompletedOn property is set
internal bool IsSetCompletedOn()
{
return this._completedOn.HasValue;
}
///
/// Gets and sets the property DataSource.
///
/// The table associated with the data quality result, if any.
///
///
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 EvaluationContext.
///
/// In the context of a job in Glue Studio, each node in the canvas is typically assigned
/// some sort of name and data quality nodes will have names. In the case of multiple
/// nodes, the evaluationContext
can differentiate the nodes.
///
///
public string EvaluationContext
{
get { return this._evaluationContext; }
set { this._evaluationContext = value; }
}
// Check to see if EvaluationContext property is set
internal bool IsSetEvaluationContext()
{
return this._evaluationContext != null;
}
///
/// Gets and sets the property JobName.
///
/// The job name associated with the data quality result, if any.
///
///
[AWSProperty(Min=1, Max=255)]
public string JobName
{
get { return this._jobName; }
set { this._jobName = value; }
}
// Check to see if JobName property is set
internal bool IsSetJobName()
{
return this._jobName != null;
}
///
/// Gets and sets the property JobRunId.
///
/// The job run ID associated with the data quality result, if any.
///
///
[AWSProperty(Min=1, Max=255)]
public string JobRunId
{
get { return this._jobRunId; }
set { this._jobRunId = value; }
}
// Check to see if JobRunId property is set
internal bool IsSetJobRunId()
{
return this._jobRunId != null;
}
///
/// Gets and sets the property ResultId.
///
/// A unique result ID for the data quality result.
///
///
[AWSProperty(Min=1, Max=255)]
public string ResultId
{
get { return this._resultId; }
set { this._resultId = value; }
}
// Check to see if ResultId property is set
internal bool IsSetResultId()
{
return this._resultId != null;
}
///
/// Gets and sets the property RuleResults.
///
/// A list of DataQualityRuleResult
objects representing the results for
/// each rule.
///
///
[AWSProperty(Min=1, Max=2000)]
public List RuleResults
{
get { return this._ruleResults; }
set { this._ruleResults = value; }
}
// Check to see if RuleResults property is set
internal bool IsSetRuleResults()
{
return this._ruleResults != null && this._ruleResults.Count > 0;
}
///
/// Gets and sets the property RulesetEvaluationRunId.
///
/// The unique run ID for the ruleset evaluation for this data quality result.
///
///
[AWSProperty(Min=1, Max=255)]
public string RulesetEvaluationRunId
{
get { return this._rulesetEvaluationRunId; }
set { this._rulesetEvaluationRunId = value; }
}
// Check to see if RulesetEvaluationRunId property is set
internal bool IsSetRulesetEvaluationRunId()
{
return this._rulesetEvaluationRunId != null;
}
///
/// Gets and sets the property RulesetName.
///
/// The name of the ruleset associated with the data quality result.
///
///
[AWSProperty(Min=1, Max=255)]
public string RulesetName
{
get { return this._rulesetName; }
set { this._rulesetName = value; }
}
// Check to see if RulesetName property is set
internal bool IsSetRulesetName()
{
return this._rulesetName != null;
}
///
/// Gets and sets the property Score.
///
/// An aggregate data quality score. Represents the ratio of rules that passed to the
/// total number of rules.
///
///
[AWSProperty(Min=0, Max=1)]
public double Score
{
get { return this._score.GetValueOrDefault(); }
set { this._score = value; }
}
// Check to see if Score property is set
internal bool IsSetScore()
{
return this._score.HasValue;
}
///
/// Gets and sets the property StartedOn.
///
/// The date and time when this data quality run started.
///
///
public DateTime StartedOn
{
get { return this._startedOn.GetValueOrDefault(); }
set { this._startedOn = value; }
}
// Check to see if StartedOn property is set
internal bool IsSetStartedOn()
{
return this._startedOn.HasValue;
}
}
}