/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

Describes a data quality result.

See Also:

AWS * API Reference

*/ class DataQualityResult { public: AWS_GLUE_API DataQualityResult(); AWS_GLUE_API DataQualityResult(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API DataQualityResult& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A unique result ID for the data quality result.

*/ inline const Aws::String& GetResultId() const{ return m_resultId; } /** *

A unique result ID for the data quality result.

*/ inline bool ResultIdHasBeenSet() const { return m_resultIdHasBeenSet; } /** *

A unique result ID for the data quality result.

*/ inline void SetResultId(const Aws::String& value) { m_resultIdHasBeenSet = true; m_resultId = value; } /** *

A unique result ID for the data quality result.

*/ inline void SetResultId(Aws::String&& value) { m_resultIdHasBeenSet = true; m_resultId = std::move(value); } /** *

A unique result ID for the data quality result.

*/ inline void SetResultId(const char* value) { m_resultIdHasBeenSet = true; m_resultId.assign(value); } /** *

A unique result ID for the data quality result.

*/ inline DataQualityResult& WithResultId(const Aws::String& value) { SetResultId(value); return *this;} /** *

A unique result ID for the data quality result.

*/ inline DataQualityResult& WithResultId(Aws::String&& value) { SetResultId(std::move(value)); return *this;} /** *

A unique result ID for the data quality result.

*/ inline DataQualityResult& WithResultId(const char* value) { SetResultId(value); return *this;} /** *

An aggregate data quality score. Represents the ratio of rules that passed to * the total number of rules.

*/ inline double GetScore() const{ return m_score; } /** *

An aggregate data quality score. Represents the ratio of rules that passed to * the total number of rules.

*/ inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } /** *

An aggregate data quality score. Represents the ratio of rules that passed to * the total number of rules.

*/ inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; } /** *

An aggregate data quality score. Represents the ratio of rules that passed to * the total number of rules.

*/ inline DataQualityResult& WithScore(double value) { SetScore(value); return *this;} /** *

The table associated with the data quality result, if any.

*/ inline const DataSource& GetDataSource() const{ return m_dataSource; } /** *

The table associated with the data quality result, if any.

*/ inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; } /** *

The table associated with the data quality result, if any.

*/ inline void SetDataSource(const DataSource& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; } /** *

The table associated with the data quality result, if any.

*/ inline void SetDataSource(DataSource&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); } /** *

The table associated with the data quality result, if any.

*/ inline DataQualityResult& WithDataSource(const DataSource& value) { SetDataSource(value); return *this;} /** *

The table associated with the data quality result, if any.

*/ inline DataQualityResult& WithDataSource(DataSource&& value) { SetDataSource(std::move(value)); return *this;} /** *

The name of the ruleset associated with the data quality result.

*/ inline const Aws::String& GetRulesetName() const{ return m_rulesetName; } /** *

The name of the ruleset associated with the data quality result.

*/ inline bool RulesetNameHasBeenSet() const { return m_rulesetNameHasBeenSet; } /** *

The name of the ruleset associated with the data quality result.

*/ inline void SetRulesetName(const Aws::String& value) { m_rulesetNameHasBeenSet = true; m_rulesetName = value; } /** *

The name of the ruleset associated with the data quality result.

*/ inline void SetRulesetName(Aws::String&& value) { m_rulesetNameHasBeenSet = true; m_rulesetName = std::move(value); } /** *

The name of the ruleset associated with the data quality result.

*/ inline void SetRulesetName(const char* value) { m_rulesetNameHasBeenSet = true; m_rulesetName.assign(value); } /** *

The name of the ruleset associated with the data quality result.

*/ inline DataQualityResult& WithRulesetName(const Aws::String& value) { SetRulesetName(value); return *this;} /** *

The name of the ruleset associated with the data quality result.

*/ inline DataQualityResult& WithRulesetName(Aws::String&& value) { SetRulesetName(std::move(value)); return *this;} /** *

The name of the ruleset associated with the data quality result.

*/ inline DataQualityResult& WithRulesetName(const char* value) { SetRulesetName(value); return *this;} /** *

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.

*/ inline const Aws::String& GetEvaluationContext() const{ return m_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.

*/ inline bool EvaluationContextHasBeenSet() const { return m_evaluationContextHasBeenSet; } /** *

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.

*/ inline void SetEvaluationContext(const Aws::String& value) { m_evaluationContextHasBeenSet = true; m_evaluationContext = value; } /** *

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.

*/ inline void SetEvaluationContext(Aws::String&& value) { m_evaluationContextHasBeenSet = true; m_evaluationContext = std::move(value); } /** *

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.

*/ inline void SetEvaluationContext(const char* value) { m_evaluationContextHasBeenSet = true; m_evaluationContext.assign(value); } /** *

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.

*/ inline DataQualityResult& WithEvaluationContext(const Aws::String& value) { SetEvaluationContext(value); return *this;} /** *

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.

*/ inline DataQualityResult& WithEvaluationContext(Aws::String&& value) { SetEvaluationContext(std::move(value)); return *this;} /** *

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.

*/ inline DataQualityResult& WithEvaluationContext(const char* value) { SetEvaluationContext(value); return *this;} /** *

The date and time when this data quality run started.

*/ inline const Aws::Utils::DateTime& GetStartedOn() const{ return m_startedOn; } /** *

The date and time when this data quality run started.

*/ inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; } /** *

The date and time when this data quality run started.

*/ inline void SetStartedOn(const Aws::Utils::DateTime& value) { m_startedOnHasBeenSet = true; m_startedOn = value; } /** *

The date and time when this data quality run started.

*/ inline void SetStartedOn(Aws::Utils::DateTime&& value) { m_startedOnHasBeenSet = true; m_startedOn = std::move(value); } /** *

The date and time when this data quality run started.

*/ inline DataQualityResult& WithStartedOn(const Aws::Utils::DateTime& value) { SetStartedOn(value); return *this;} /** *

The date and time when this data quality run started.

*/ inline DataQualityResult& WithStartedOn(Aws::Utils::DateTime&& value) { SetStartedOn(std::move(value)); return *this;} /** *

The date and time when this data quality run completed.

*/ inline const Aws::Utils::DateTime& GetCompletedOn() const{ return m_completedOn; } /** *

The date and time when this data quality run completed.

*/ inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; } /** *

The date and time when this data quality run completed.

*/ inline void SetCompletedOn(const Aws::Utils::DateTime& value) { m_completedOnHasBeenSet = true; m_completedOn = value; } /** *

The date and time when this data quality run completed.

*/ inline void SetCompletedOn(Aws::Utils::DateTime&& value) { m_completedOnHasBeenSet = true; m_completedOn = std::move(value); } /** *

The date and time when this data quality run completed.

*/ inline DataQualityResult& WithCompletedOn(const Aws::Utils::DateTime& value) { SetCompletedOn(value); return *this;} /** *

The date and time when this data quality run completed.

*/ inline DataQualityResult& WithCompletedOn(Aws::Utils::DateTime&& value) { SetCompletedOn(std::move(value)); return *this;} /** *

The job name associated with the data quality result, if any.

*/ inline const Aws::String& GetJobName() const{ return m_jobName; } /** *

The job name associated with the data quality result, if any.

*/ inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } /** *

The job name associated with the data quality result, if any.

*/ inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } /** *

The job name associated with the data quality result, if any.

*/ inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } /** *

The job name associated with the data quality result, if any.

*/ inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } /** *

The job name associated with the data quality result, if any.

*/ inline DataQualityResult& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} /** *

The job name associated with the data quality result, if any.

*/ inline DataQualityResult& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} /** *

The job name associated with the data quality result, if any.

*/ inline DataQualityResult& WithJobName(const char* value) { SetJobName(value); return *this;} /** *

The job run ID associated with the data quality result, if any.

*/ inline const Aws::String& GetJobRunId() const{ return m_jobRunId; } /** *

The job run ID associated with the data quality result, if any.

*/ inline bool JobRunIdHasBeenSet() const { return m_jobRunIdHasBeenSet; } /** *

The job run ID associated with the data quality result, if any.

*/ inline void SetJobRunId(const Aws::String& value) { m_jobRunIdHasBeenSet = true; m_jobRunId = value; } /** *

The job run ID associated with the data quality result, if any.

*/ inline void SetJobRunId(Aws::String&& value) { m_jobRunIdHasBeenSet = true; m_jobRunId = std::move(value); } /** *

The job run ID associated with the data quality result, if any.

*/ inline void SetJobRunId(const char* value) { m_jobRunIdHasBeenSet = true; m_jobRunId.assign(value); } /** *

The job run ID associated with the data quality result, if any.

*/ inline DataQualityResult& WithJobRunId(const Aws::String& value) { SetJobRunId(value); return *this;} /** *

The job run ID associated with the data quality result, if any.

*/ inline DataQualityResult& WithJobRunId(Aws::String&& value) { SetJobRunId(std::move(value)); return *this;} /** *

The job run ID associated with the data quality result, if any.

*/ inline DataQualityResult& WithJobRunId(const char* value) { SetJobRunId(value); return *this;} /** *

The unique run ID for the ruleset evaluation for this data quality * result.

*/ inline const Aws::String& GetRulesetEvaluationRunId() const{ return m_rulesetEvaluationRunId; } /** *

The unique run ID for the ruleset evaluation for this data quality * result.

*/ inline bool RulesetEvaluationRunIdHasBeenSet() const { return m_rulesetEvaluationRunIdHasBeenSet; } /** *

The unique run ID for the ruleset evaluation for this data quality * result.

*/ inline void SetRulesetEvaluationRunId(const Aws::String& value) { m_rulesetEvaluationRunIdHasBeenSet = true; m_rulesetEvaluationRunId = value; } /** *

The unique run ID for the ruleset evaluation for this data quality * result.

*/ inline void SetRulesetEvaluationRunId(Aws::String&& value) { m_rulesetEvaluationRunIdHasBeenSet = true; m_rulesetEvaluationRunId = std::move(value); } /** *

The unique run ID for the ruleset evaluation for this data quality * result.

*/ inline void SetRulesetEvaluationRunId(const char* value) { m_rulesetEvaluationRunIdHasBeenSet = true; m_rulesetEvaluationRunId.assign(value); } /** *

The unique run ID for the ruleset evaluation for this data quality * result.

*/ inline DataQualityResult& WithRulesetEvaluationRunId(const Aws::String& value) { SetRulesetEvaluationRunId(value); return *this;} /** *

The unique run ID for the ruleset evaluation for this data quality * result.

*/ inline DataQualityResult& WithRulesetEvaluationRunId(Aws::String&& value) { SetRulesetEvaluationRunId(std::move(value)); return *this;} /** *

The unique run ID for the ruleset evaluation for this data quality * result.

*/ inline DataQualityResult& WithRulesetEvaluationRunId(const char* value) { SetRulesetEvaluationRunId(value); return *this;} /** *

A list of DataQualityRuleResult objects representing the results * for each rule.

*/ inline const Aws::Vector& GetRuleResults() const{ return m_ruleResults; } /** *

A list of DataQualityRuleResult objects representing the results * for each rule.

*/ inline bool RuleResultsHasBeenSet() const { return m_ruleResultsHasBeenSet; } /** *

A list of DataQualityRuleResult objects representing the results * for each rule.

*/ inline void SetRuleResults(const Aws::Vector& value) { m_ruleResultsHasBeenSet = true; m_ruleResults = value; } /** *

A list of DataQualityRuleResult objects representing the results * for each rule.

*/ inline void SetRuleResults(Aws::Vector&& value) { m_ruleResultsHasBeenSet = true; m_ruleResults = std::move(value); } /** *

A list of DataQualityRuleResult objects representing the results * for each rule.

*/ inline DataQualityResult& WithRuleResults(const Aws::Vector& value) { SetRuleResults(value); return *this;} /** *

A list of DataQualityRuleResult objects representing the results * for each rule.

*/ inline DataQualityResult& WithRuleResults(Aws::Vector&& value) { SetRuleResults(std::move(value)); return *this;} /** *

A list of DataQualityRuleResult objects representing the results * for each rule.

*/ inline DataQualityResult& AddRuleResults(const DataQualityRuleResult& value) { m_ruleResultsHasBeenSet = true; m_ruleResults.push_back(value); return *this; } /** *

A list of DataQualityRuleResult objects representing the results * for each rule.

*/ inline DataQualityResult& AddRuleResults(DataQualityRuleResult&& value) { m_ruleResultsHasBeenSet = true; m_ruleResults.push_back(std::move(value)); return *this; } private: Aws::String m_resultId; bool m_resultIdHasBeenSet = false; double m_score; bool m_scoreHasBeenSet = false; DataSource m_dataSource; bool m_dataSourceHasBeenSet = false; Aws::String m_rulesetName; bool m_rulesetNameHasBeenSet = false; Aws::String m_evaluationContext; bool m_evaluationContextHasBeenSet = false; Aws::Utils::DateTime m_startedOn; bool m_startedOnHasBeenSet = false; Aws::Utils::DateTime m_completedOn; bool m_completedOnHasBeenSet = false; Aws::String m_jobName; bool m_jobNameHasBeenSet = false; Aws::String m_jobRunId; bool m_jobRunIdHasBeenSet = false; Aws::String m_rulesetEvaluationRunId; bool m_rulesetEvaluationRunIdHasBeenSet = false; Aws::Vector m_ruleResults; bool m_ruleResultsHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws