/* * Copyright 2018-2023 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. */ package com.amazonaws.services.glue.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes the result of the evaluation of a data quality rule. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DataQualityRuleResult implements Serializable, Cloneable, StructuredPojo { /** ** The name of the data quality rule. *
*/ private String name; /** ** A description of the data quality rule. *
*/ private String description; /** ** An evaluation message. *
*/ private String evaluationMessage; /** ** A pass or fail status for the rule. *
*/ private String result; /** ** A map of metrics associated with the evaluation of the rule. *
*/ private java.util.Map* The name of the data quality rule. *
* * @param name * The name of the data quality rule. */ public void setName(String name) { this.name = name; } /** ** The name of the data quality rule. *
* * @return The name of the data quality rule. */ public String getName() { return this.name; } /** ** The name of the data quality rule. *
* * @param name * The name of the data quality rule. * @return Returns a reference to this object so that method calls can be chained together. */ public DataQualityRuleResult withName(String name) { setName(name); return this; } /** ** A description of the data quality rule. *
* * @param description * A description of the data quality rule. */ public void setDescription(String description) { this.description = description; } /** ** A description of the data quality rule. *
* * @return A description of the data quality rule. */ public String getDescription() { return this.description; } /** ** A description of the data quality rule. *
* * @param description * A description of the data quality rule. * @return Returns a reference to this object so that method calls can be chained together. */ public DataQualityRuleResult withDescription(String description) { setDescription(description); return this; } /** ** An evaluation message. *
* * @param evaluationMessage * An evaluation message. */ public void setEvaluationMessage(String evaluationMessage) { this.evaluationMessage = evaluationMessage; } /** ** An evaluation message. *
* * @return An evaluation message. */ public String getEvaluationMessage() { return this.evaluationMessage; } /** ** An evaluation message. *
* * @param evaluationMessage * An evaluation message. * @return Returns a reference to this object so that method calls can be chained together. */ public DataQualityRuleResult withEvaluationMessage(String evaluationMessage) { setEvaluationMessage(evaluationMessage); return this; } /** ** A pass or fail status for the rule. *
* * @param result * A pass or fail status for the rule. * @see DataQualityRuleResultStatus */ public void setResult(String result) { this.result = result; } /** ** A pass or fail status for the rule. *
* * @return A pass or fail status for the rule. * @see DataQualityRuleResultStatus */ public String getResult() { return this.result; } /** ** A pass or fail status for the rule. *
* * @param result * A pass or fail status for the rule. * @return Returns a reference to this object so that method calls can be chained together. * @see DataQualityRuleResultStatus */ public DataQualityRuleResult withResult(String result) { setResult(result); return this; } /** ** A pass or fail status for the rule. *
* * @param result * A pass or fail status for the rule. * @return Returns a reference to this object so that method calls can be chained together. * @see DataQualityRuleResultStatus */ public DataQualityRuleResult withResult(DataQualityRuleResultStatus result) { this.result = result.toString(); return this; } /** ** A map of metrics associated with the evaluation of the rule. *
* * @return A map of metrics associated with the evaluation of the rule. */ public java.util.Map* A map of metrics associated with the evaluation of the rule. *
* * @param evaluatedMetrics * A map of metrics associated with the evaluation of the rule. */ public void setEvaluatedMetrics(java.util.Map* A map of metrics associated with the evaluation of the rule. *
* * @param evaluatedMetrics * A map of metrics associated with the evaluation of the rule. * @return Returns a reference to this object so that method calls can be chained together. */ public DataQualityRuleResult withEvaluatedMetrics(java.util.Map