/* * 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; /** *

* Specifies your data quality evaluation criteria. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EvaluateDataQualityMultiFrame implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the data quality evaluation. *

*/ private String name; /** *

* The inputs of your data quality evaluation. The first input in this list is the primary data source. *

*/ private java.util.List inputs; /** *

* The aliases of all data sources except primary. *

*/ private java.util.Map additionalDataSources; /** *

* The ruleset for your data quality evaluation. *

*/ private String ruleset; /** *

* Options to configure how your results are published. *

*/ private DQResultsPublishingOptions publishingOptions; /** *

* Options to configure runtime behavior of the transform. *

*/ private java.util.Map additionalOptions; /** *

* Options to configure how your job will stop if your data quality evaluation fails. *

*/ private DQStopJobOnFailureOptions stopJobOnFailureOptions; /** *

* The name of the data quality evaluation. *

* * @param name * The name of the data quality evaluation. */ public void setName(String name) { this.name = name; } /** *

* The name of the data quality evaluation. *

* * @return The name of the data quality evaluation. */ public String getName() { return this.name; } /** *

* The name of the data quality evaluation. *

* * @param name * The name of the data quality evaluation. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluateDataQualityMultiFrame withName(String name) { setName(name); return this; } /** *

* The inputs of your data quality evaluation. The first input in this list is the primary data source. *

* * @return The inputs of your data quality evaluation. The first input in this list is the primary data source. */ public java.util.List getInputs() { return inputs; } /** *

* The inputs of your data quality evaluation. The first input in this list is the primary data source. *

* * @param inputs * The inputs of your data quality evaluation. The first input in this list is the primary data source. */ public void setInputs(java.util.Collection inputs) { if (inputs == null) { this.inputs = null; return; } this.inputs = new java.util.ArrayList(inputs); } /** *

* The inputs of your data quality evaluation. The first input in this list is the primary data source. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setInputs(java.util.Collection)} or {@link #withInputs(java.util.Collection)} if you want to override the * existing values. *

* * @param inputs * The inputs of your data quality evaluation. The first input in this list is the primary data source. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluateDataQualityMultiFrame withInputs(String... inputs) { if (this.inputs == null) { setInputs(new java.util.ArrayList(inputs.length)); } for (String ele : inputs) { this.inputs.add(ele); } return this; } /** *

* The inputs of your data quality evaluation. The first input in this list is the primary data source. *

* * @param inputs * The inputs of your data quality evaluation. The first input in this list is the primary data source. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluateDataQualityMultiFrame withInputs(java.util.Collection inputs) { setInputs(inputs); return this; } /** *

* The aliases of all data sources except primary. *

* * @return The aliases of all data sources except primary. */ public java.util.Map getAdditionalDataSources() { return additionalDataSources; } /** *

* The aliases of all data sources except primary. *

* * @param additionalDataSources * The aliases of all data sources except primary. */ public void setAdditionalDataSources(java.util.Map additionalDataSources) { this.additionalDataSources = additionalDataSources; } /** *

* The aliases of all data sources except primary. *

* * @param additionalDataSources * The aliases of all data sources except primary. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluateDataQualityMultiFrame withAdditionalDataSources(java.util.Map additionalDataSources) { setAdditionalDataSources(additionalDataSources); return this; } /** * Add a single AdditionalDataSources entry * * @see EvaluateDataQualityMultiFrame#withAdditionalDataSources * @returns a reference to this object so that method calls can be chained together. */ public EvaluateDataQualityMultiFrame addAdditionalDataSourcesEntry(String key, String value) { if (null == this.additionalDataSources) { this.additionalDataSources = new java.util.HashMap(); } if (this.additionalDataSources.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.additionalDataSources.put(key, value); return this; } /** * Removes all the entries added into AdditionalDataSources. * * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluateDataQualityMultiFrame clearAdditionalDataSourcesEntries() { this.additionalDataSources = null; return this; } /** *

* The ruleset for your data quality evaluation. *

* * @param ruleset * The ruleset for your data quality evaluation. */ public void setRuleset(String ruleset) { this.ruleset = ruleset; } /** *

* The ruleset for your data quality evaluation. *

* * @return The ruleset for your data quality evaluation. */ public String getRuleset() { return this.ruleset; } /** *

* The ruleset for your data quality evaluation. *

* * @param ruleset * The ruleset for your data quality evaluation. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluateDataQualityMultiFrame withRuleset(String ruleset) { setRuleset(ruleset); return this; } /** *

* Options to configure how your results are published. *

* * @param publishingOptions * Options to configure how your results are published. */ public void setPublishingOptions(DQResultsPublishingOptions publishingOptions) { this.publishingOptions = publishingOptions; } /** *

* Options to configure how your results are published. *

* * @return Options to configure how your results are published. */ public DQResultsPublishingOptions getPublishingOptions() { return this.publishingOptions; } /** *

* Options to configure how your results are published. *

* * @param publishingOptions * Options to configure how your results are published. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluateDataQualityMultiFrame withPublishingOptions(DQResultsPublishingOptions publishingOptions) { setPublishingOptions(publishingOptions); return this; } /** *

* Options to configure runtime behavior of the transform. *

* * @return Options to configure runtime behavior of the transform. */ public java.util.Map getAdditionalOptions() { return additionalOptions; } /** *

* Options to configure runtime behavior of the transform. *

* * @param additionalOptions * Options to configure runtime behavior of the transform. */ public void setAdditionalOptions(java.util.Map additionalOptions) { this.additionalOptions = additionalOptions; } /** *

* Options to configure runtime behavior of the transform. *

* * @param additionalOptions * Options to configure runtime behavior of the transform. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluateDataQualityMultiFrame withAdditionalOptions(java.util.Map additionalOptions) { setAdditionalOptions(additionalOptions); return this; } /** * Add a single AdditionalOptions entry * * @see EvaluateDataQualityMultiFrame#withAdditionalOptions * @returns a reference to this object so that method calls can be chained together. */ public EvaluateDataQualityMultiFrame addAdditionalOptionsEntry(String key, String value) { if (null == this.additionalOptions) { this.additionalOptions = new java.util.HashMap(); } if (this.additionalOptions.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.additionalOptions.put(key, value); return this; } /** * Removes all the entries added into AdditionalOptions. * * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluateDataQualityMultiFrame clearAdditionalOptionsEntries() { this.additionalOptions = null; return this; } /** *

* Options to configure how your job will stop if your data quality evaluation fails. *

* * @param stopJobOnFailureOptions * Options to configure how your job will stop if your data quality evaluation fails. */ public void setStopJobOnFailureOptions(DQStopJobOnFailureOptions stopJobOnFailureOptions) { this.stopJobOnFailureOptions = stopJobOnFailureOptions; } /** *

* Options to configure how your job will stop if your data quality evaluation fails. *

* * @return Options to configure how your job will stop if your data quality evaluation fails. */ public DQStopJobOnFailureOptions getStopJobOnFailureOptions() { return this.stopJobOnFailureOptions; } /** *

* Options to configure how your job will stop if your data quality evaluation fails. *

* * @param stopJobOnFailureOptions * Options to configure how your job will stop if your data quality evaluation fails. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluateDataQualityMultiFrame withStopJobOnFailureOptions(DQStopJobOnFailureOptions stopJobOnFailureOptions) { setStopJobOnFailureOptions(stopJobOnFailureOptions); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getInputs() != null) sb.append("Inputs: ").append(getInputs()).append(","); if (getAdditionalDataSources() != null) sb.append("AdditionalDataSources: ").append(getAdditionalDataSources()).append(","); if (getRuleset() != null) sb.append("Ruleset: ").append(getRuleset()).append(","); if (getPublishingOptions() != null) sb.append("PublishingOptions: ").append(getPublishingOptions()).append(","); if (getAdditionalOptions() != null) sb.append("AdditionalOptions: ").append(getAdditionalOptions()).append(","); if (getStopJobOnFailureOptions() != null) sb.append("StopJobOnFailureOptions: ").append(getStopJobOnFailureOptions()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EvaluateDataQualityMultiFrame == false) return false; EvaluateDataQualityMultiFrame other = (EvaluateDataQualityMultiFrame) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getInputs() == null ^ this.getInputs() == null) return false; if (other.getInputs() != null && other.getInputs().equals(this.getInputs()) == false) return false; if (other.getAdditionalDataSources() == null ^ this.getAdditionalDataSources() == null) return false; if (other.getAdditionalDataSources() != null && other.getAdditionalDataSources().equals(this.getAdditionalDataSources()) == false) return false; if (other.getRuleset() == null ^ this.getRuleset() == null) return false; if (other.getRuleset() != null && other.getRuleset().equals(this.getRuleset()) == false) return false; if (other.getPublishingOptions() == null ^ this.getPublishingOptions() == null) return false; if (other.getPublishingOptions() != null && other.getPublishingOptions().equals(this.getPublishingOptions()) == false) return false; if (other.getAdditionalOptions() == null ^ this.getAdditionalOptions() == null) return false; if (other.getAdditionalOptions() != null && other.getAdditionalOptions().equals(this.getAdditionalOptions()) == false) return false; if (other.getStopJobOnFailureOptions() == null ^ this.getStopJobOnFailureOptions() == null) return false; if (other.getStopJobOnFailureOptions() != null && other.getStopJobOnFailureOptions().equals(this.getStopJobOnFailureOptions()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getInputs() == null) ? 0 : getInputs().hashCode()); hashCode = prime * hashCode + ((getAdditionalDataSources() == null) ? 0 : getAdditionalDataSources().hashCode()); hashCode = prime * hashCode + ((getRuleset() == null) ? 0 : getRuleset().hashCode()); hashCode = prime * hashCode + ((getPublishingOptions() == null) ? 0 : getPublishingOptions().hashCode()); hashCode = prime * hashCode + ((getAdditionalOptions() == null) ? 0 : getAdditionalOptions().hashCode()); hashCode = prime * hashCode + ((getStopJobOnFailureOptions() == null) ? 0 : getStopJobOnFailureOptions().hashCode()); return hashCode; } @Override public EvaluateDataQualityMultiFrame clone() { try { return (EvaluateDataQualityMultiFrame) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.glue.model.transform.EvaluateDataQualityMultiFrameMarshaller.getInstance().marshall(this, protocolMarshaller); } }