/* * 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; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetDataQualityRulesetEvaluationRunResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The unique run identifier associated with this run. *

*/ private String runId; /** *

* The data source (an Glue table) associated with this evaluation run. *

*/ private DataSource dataSource; /** *

* An IAM role supplied to encrypt the results of the run. *

*/ private String role; /** *

* The number of G.1X workers to be used in the run. The default is 5. *

*/ private Integer numberOfWorkers; /** *

* 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). *

*/ private Integer timeout; /** *

* Additional run options you can specify for an evaluation run. *

*/ private DataQualityEvaluationRunAdditionalRunOptions additionalRunOptions; /** *

* The status for this run. *

*/ private String status; /** *

* The error strings that are associated with the run. *

*/ private String errorString; /** *

* The date and time when this run started. *

*/ private java.util.Date startedOn; /** *

* A timestamp. The last point in time when this data quality rule recommendation run was modified. *

*/ private java.util.Date lastModifiedOn; /** *

* The date and time when this run was completed. *

*/ private java.util.Date completedOn; /** *

* The amount of time (in seconds) that the run consumed resources. *

*/ private Integer executionTime; /** *

* A list of ruleset names for the run. *

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

* A list of result IDs for the data quality results for the run. *

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

* A map of reference strings to additional data sources you can specify for an evaluation run. *

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

* The unique run identifier associated with this run. *

* * @param runId * The unique run identifier associated with this run. */ public void setRunId(String runId) { this.runId = runId; } /** *

* The unique run identifier associated with this run. *

* * @return The unique run identifier associated with this run. */ public String getRunId() { return this.runId; } /** *

* The unique run identifier associated with this run. *

* * @param runId * The unique run identifier associated with this run. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRulesetEvaluationRunResult withRunId(String runId) { setRunId(runId); return this; } /** *

* The data source (an Glue table) associated with this evaluation run. *

* * @param dataSource * The data source (an Glue table) associated with this evaluation run. */ public void setDataSource(DataSource dataSource) { this.dataSource = dataSource; } /** *

* The data source (an Glue table) associated with this evaluation run. *

* * @return The data source (an Glue table) associated with this evaluation run. */ public DataSource getDataSource() { return this.dataSource; } /** *

* The data source (an Glue table) associated with this evaluation run. *

* * @param dataSource * The data source (an Glue table) associated with this evaluation run. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRulesetEvaluationRunResult withDataSource(DataSource dataSource) { setDataSource(dataSource); return this; } /** *

* An IAM role supplied to encrypt the results of the run. *

* * @param role * An IAM role supplied to encrypt the results of the run. */ public void setRole(String role) { this.role = role; } /** *

* An IAM role supplied to encrypt the results of the run. *

* * @return An IAM role supplied to encrypt the results of the run. */ public String getRole() { return this.role; } /** *

* An IAM role supplied to encrypt the results of the run. *

* * @param role * An IAM role supplied to encrypt the results of the run. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRulesetEvaluationRunResult withRole(String role) { setRole(role); return this; } /** *

* The number of G.1X workers to be used in the run. The default is 5. *

* * @param numberOfWorkers * The number of G.1X workers to be used in the run. The default is 5. */ public void setNumberOfWorkers(Integer numberOfWorkers) { this.numberOfWorkers = numberOfWorkers; } /** *

* The number of G.1X workers to be used in the run. The default is 5. *

* * @return The number of G.1X workers to be used in the run. The default is 5. */ public Integer getNumberOfWorkers() { return this.numberOfWorkers; } /** *

* The number of G.1X workers to be used in the run. The default is 5. *

* * @param numberOfWorkers * The number of G.1X workers to be used in the run. The default is 5. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRulesetEvaluationRunResult withNumberOfWorkers(Integer numberOfWorkers) { setNumberOfWorkers(numberOfWorkers); return this; } /** *

* 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). *

* * @param 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). */ public void setTimeout(Integer timeout) { this.timeout = 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). *

* * @return 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). */ public Integer getTimeout() { return this.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). *

* * @param 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). * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRulesetEvaluationRunResult withTimeout(Integer timeout) { setTimeout(timeout); return this; } /** *

* Additional run options you can specify for an evaluation run. *

* * @param additionalRunOptions * Additional run options you can specify for an evaluation run. */ public void setAdditionalRunOptions(DataQualityEvaluationRunAdditionalRunOptions additionalRunOptions) { this.additionalRunOptions = additionalRunOptions; } /** *

* Additional run options you can specify for an evaluation run. *

* * @return Additional run options you can specify for an evaluation run. */ public DataQualityEvaluationRunAdditionalRunOptions getAdditionalRunOptions() { return this.additionalRunOptions; } /** *

* Additional run options you can specify for an evaluation run. *

* * @param additionalRunOptions * Additional run options you can specify for an evaluation run. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRulesetEvaluationRunResult withAdditionalRunOptions(DataQualityEvaluationRunAdditionalRunOptions additionalRunOptions) { setAdditionalRunOptions(additionalRunOptions); return this; } /** *

* The status for this run. *

* * @param status * The status for this run. * @see TaskStatusType */ public void setStatus(String status) { this.status = status; } /** *

* The status for this run. *

* * @return The status for this run. * @see TaskStatusType */ public String getStatus() { return this.status; } /** *

* The status for this run. *

* * @param status * The status for this run. * @return Returns a reference to this object so that method calls can be chained together. * @see TaskStatusType */ public GetDataQualityRulesetEvaluationRunResult withStatus(String status) { setStatus(status); return this; } /** *

* The status for this run. *

* * @param status * The status for this run. * @return Returns a reference to this object so that method calls can be chained together. * @see TaskStatusType */ public GetDataQualityRulesetEvaluationRunResult withStatus(TaskStatusType status) { this.status = status.toString(); return this; } /** *

* The error strings that are associated with the run. *

* * @param errorString * The error strings that are associated with the run. */ public void setErrorString(String errorString) { this.errorString = errorString; } /** *

* The error strings that are associated with the run. *

* * @return The error strings that are associated with the run. */ public String getErrorString() { return this.errorString; } /** *

* The error strings that are associated with the run. *

* * @param errorString * The error strings that are associated with the run. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRulesetEvaluationRunResult withErrorString(String errorString) { setErrorString(errorString); return this; } /** *

* The date and time when this run started. *

* * @param startedOn * The date and time when this run started. */ public void setStartedOn(java.util.Date startedOn) { this.startedOn = startedOn; } /** *

* The date and time when this run started. *

* * @return The date and time when this run started. */ public java.util.Date getStartedOn() { return this.startedOn; } /** *

* The date and time when this run started. *

* * @param startedOn * The date and time when this run started. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRulesetEvaluationRunResult withStartedOn(java.util.Date startedOn) { setStartedOn(startedOn); return this; } /** *

* A timestamp. The last point in time when this data quality rule recommendation run was modified. *

* * @param lastModifiedOn * A timestamp. The last point in time when this data quality rule recommendation run was modified. */ public void setLastModifiedOn(java.util.Date lastModifiedOn) { this.lastModifiedOn = lastModifiedOn; } /** *

* A timestamp. The last point in time when this data quality rule recommendation run was modified. *

* * @return A timestamp. The last point in time when this data quality rule recommendation run was modified. */ public java.util.Date getLastModifiedOn() { return this.lastModifiedOn; } /** *

* A timestamp. The last point in time when this data quality rule recommendation run was modified. *

* * @param lastModifiedOn * A timestamp. The last point in time when this data quality rule recommendation run was modified. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRulesetEvaluationRunResult withLastModifiedOn(java.util.Date lastModifiedOn) { setLastModifiedOn(lastModifiedOn); return this; } /** *

* The date and time when this run was completed. *

* * @param completedOn * The date and time when this run was completed. */ public void setCompletedOn(java.util.Date completedOn) { this.completedOn = completedOn; } /** *

* The date and time when this run was completed. *

* * @return The date and time when this run was completed. */ public java.util.Date getCompletedOn() { return this.completedOn; } /** *

* The date and time when this run was completed. *

* * @param completedOn * The date and time when this run was completed. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRulesetEvaluationRunResult withCompletedOn(java.util.Date completedOn) { setCompletedOn(completedOn); return this; } /** *

* The amount of time (in seconds) that the run consumed resources. *

* * @param executionTime * The amount of time (in seconds) that the run consumed resources. */ public void setExecutionTime(Integer executionTime) { this.executionTime = executionTime; } /** *

* The amount of time (in seconds) that the run consumed resources. *

* * @return The amount of time (in seconds) that the run consumed resources. */ public Integer getExecutionTime() { return this.executionTime; } /** *

* The amount of time (in seconds) that the run consumed resources. *

* * @param executionTime * The amount of time (in seconds) that the run consumed resources. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRulesetEvaluationRunResult withExecutionTime(Integer executionTime) { setExecutionTime(executionTime); return this; } /** *

* A list of ruleset names for the run. *

* * @return A list of ruleset names for the run. */ public java.util.List getRulesetNames() { return rulesetNames; } /** *

* A list of ruleset names for the run. *

* * @param rulesetNames * A list of ruleset names for the run. */ public void setRulesetNames(java.util.Collection rulesetNames) { if (rulesetNames == null) { this.rulesetNames = null; return; } this.rulesetNames = new java.util.ArrayList(rulesetNames); } /** *

* A list of ruleset names for the run. *

*

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

* * @param rulesetNames * A list of ruleset names for the run. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRulesetEvaluationRunResult withRulesetNames(String... rulesetNames) { if (this.rulesetNames == null) { setRulesetNames(new java.util.ArrayList(rulesetNames.length)); } for (String ele : rulesetNames) { this.rulesetNames.add(ele); } return this; } /** *

* A list of ruleset names for the run. *

* * @param rulesetNames * A list of ruleset names for the run. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRulesetEvaluationRunResult withRulesetNames(java.util.Collection rulesetNames) { setRulesetNames(rulesetNames); return this; } /** *

* A list of result IDs for the data quality results for the run. *

* * @return A list of result IDs for the data quality results for the run. */ public java.util.List getResultIds() { return resultIds; } /** *

* A list of result IDs for the data quality results for the run. *

* * @param resultIds * A list of result IDs for the data quality results for the run. */ public void setResultIds(java.util.Collection resultIds) { if (resultIds == null) { this.resultIds = null; return; } this.resultIds = new java.util.ArrayList(resultIds); } /** *

* A list of result IDs for the data quality results for the run. *

*

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

* * @param resultIds * A list of result IDs for the data quality results for the run. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRulesetEvaluationRunResult withResultIds(String... resultIds) { if (this.resultIds == null) { setResultIds(new java.util.ArrayList(resultIds.length)); } for (String ele : resultIds) { this.resultIds.add(ele); } return this; } /** *

* A list of result IDs for the data quality results for the run. *

* * @param resultIds * A list of result IDs for the data quality results for the run. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRulesetEvaluationRunResult withResultIds(java.util.Collection resultIds) { setResultIds(resultIds); return this; } /** *

* A map of reference strings to additional data sources you can specify for an evaluation run. *

* * @return A map of reference strings to additional data sources you can specify for an evaluation run. */ public java.util.Map getAdditionalDataSources() { return additionalDataSources; } /** *

* A map of reference strings to additional data sources you can specify for an evaluation run. *

* * @param additionalDataSources * A map of reference strings to additional data sources you can specify for an evaluation run. */ public void setAdditionalDataSources(java.util.Map additionalDataSources) { this.additionalDataSources = additionalDataSources; } /** *

* A map of reference strings to additional data sources you can specify for an evaluation run. *

* * @param additionalDataSources * A map of reference strings to additional data sources you can specify for an evaluation run. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRulesetEvaluationRunResult withAdditionalDataSources(java.util.Map additionalDataSources) { setAdditionalDataSources(additionalDataSources); return this; } /** * Add a single AdditionalDataSources entry * * @see GetDataQualityRulesetEvaluationRunResult#withAdditionalDataSources * @returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRulesetEvaluationRunResult addAdditionalDataSourcesEntry(String key, DataSource 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 GetDataQualityRulesetEvaluationRunResult clearAdditionalDataSourcesEntries() { this.additionalDataSources = null; 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 (getRunId() != null) sb.append("RunId: ").append(getRunId()).append(","); if (getDataSource() != null) sb.append("DataSource: ").append(getDataSource()).append(","); if (getRole() != null) sb.append("Role: ").append(getRole()).append(","); if (getNumberOfWorkers() != null) sb.append("NumberOfWorkers: ").append(getNumberOfWorkers()).append(","); if (getTimeout() != null) sb.append("Timeout: ").append(getTimeout()).append(","); if (getAdditionalRunOptions() != null) sb.append("AdditionalRunOptions: ").append(getAdditionalRunOptions()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getErrorString() != null) sb.append("ErrorString: ").append(getErrorString()).append(","); if (getStartedOn() != null) sb.append("StartedOn: ").append(getStartedOn()).append(","); if (getLastModifiedOn() != null) sb.append("LastModifiedOn: ").append(getLastModifiedOn()).append(","); if (getCompletedOn() != null) sb.append("CompletedOn: ").append(getCompletedOn()).append(","); if (getExecutionTime() != null) sb.append("ExecutionTime: ").append(getExecutionTime()).append(","); if (getRulesetNames() != null) sb.append("RulesetNames: ").append(getRulesetNames()).append(","); if (getResultIds() != null) sb.append("ResultIds: ").append(getResultIds()).append(","); if (getAdditionalDataSources() != null) sb.append("AdditionalDataSources: ").append(getAdditionalDataSources()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetDataQualityRulesetEvaluationRunResult == false) return false; GetDataQualityRulesetEvaluationRunResult other = (GetDataQualityRulesetEvaluationRunResult) obj; if (other.getRunId() == null ^ this.getRunId() == null) return false; if (other.getRunId() != null && other.getRunId().equals(this.getRunId()) == false) return false; if (other.getDataSource() == null ^ this.getDataSource() == null) return false; if (other.getDataSource() != null && other.getDataSource().equals(this.getDataSource()) == false) return false; if (other.getRole() == null ^ this.getRole() == null) return false; if (other.getRole() != null && other.getRole().equals(this.getRole()) == false) return false; if (other.getNumberOfWorkers() == null ^ this.getNumberOfWorkers() == null) return false; if (other.getNumberOfWorkers() != null && other.getNumberOfWorkers().equals(this.getNumberOfWorkers()) == false) return false; if (other.getTimeout() == null ^ this.getTimeout() == null) return false; if (other.getTimeout() != null && other.getTimeout().equals(this.getTimeout()) == false) return false; if (other.getAdditionalRunOptions() == null ^ this.getAdditionalRunOptions() == null) return false; if (other.getAdditionalRunOptions() != null && other.getAdditionalRunOptions().equals(this.getAdditionalRunOptions()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getErrorString() == null ^ this.getErrorString() == null) return false; if (other.getErrorString() != null && other.getErrorString().equals(this.getErrorString()) == false) return false; if (other.getStartedOn() == null ^ this.getStartedOn() == null) return false; if (other.getStartedOn() != null && other.getStartedOn().equals(this.getStartedOn()) == false) return false; if (other.getLastModifiedOn() == null ^ this.getLastModifiedOn() == null) return false; if (other.getLastModifiedOn() != null && other.getLastModifiedOn().equals(this.getLastModifiedOn()) == false) return false; if (other.getCompletedOn() == null ^ this.getCompletedOn() == null) return false; if (other.getCompletedOn() != null && other.getCompletedOn().equals(this.getCompletedOn()) == false) return false; if (other.getExecutionTime() == null ^ this.getExecutionTime() == null) return false; if (other.getExecutionTime() != null && other.getExecutionTime().equals(this.getExecutionTime()) == false) return false; if (other.getRulesetNames() == null ^ this.getRulesetNames() == null) return false; if (other.getRulesetNames() != null && other.getRulesetNames().equals(this.getRulesetNames()) == false) return false; if (other.getResultIds() == null ^ this.getResultIds() == null) return false; if (other.getResultIds() != null && other.getResultIds().equals(this.getResultIds()) == false) return false; if (other.getAdditionalDataSources() == null ^ this.getAdditionalDataSources() == null) return false; if (other.getAdditionalDataSources() != null && other.getAdditionalDataSources().equals(this.getAdditionalDataSources()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRunId() == null) ? 0 : getRunId().hashCode()); hashCode = prime * hashCode + ((getDataSource() == null) ? 0 : getDataSource().hashCode()); hashCode = prime * hashCode + ((getRole() == null) ? 0 : getRole().hashCode()); hashCode = prime * hashCode + ((getNumberOfWorkers() == null) ? 0 : getNumberOfWorkers().hashCode()); hashCode = prime * hashCode + ((getTimeout() == null) ? 0 : getTimeout().hashCode()); hashCode = prime * hashCode + ((getAdditionalRunOptions() == null) ? 0 : getAdditionalRunOptions().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getErrorString() == null) ? 0 : getErrorString().hashCode()); hashCode = prime * hashCode + ((getStartedOn() == null) ? 0 : getStartedOn().hashCode()); hashCode = prime * hashCode + ((getLastModifiedOn() == null) ? 0 : getLastModifiedOn().hashCode()); hashCode = prime * hashCode + ((getCompletedOn() == null) ? 0 : getCompletedOn().hashCode()); hashCode = prime * hashCode + ((getExecutionTime() == null) ? 0 : getExecutionTime().hashCode()); hashCode = prime * hashCode + ((getRulesetNames() == null) ? 0 : getRulesetNames().hashCode()); hashCode = prime * hashCode + ((getResultIds() == null) ? 0 : getResultIds().hashCode()); hashCode = prime * hashCode + ((getAdditionalDataSources() == null) ? 0 : getAdditionalDataSources().hashCode()); return hashCode; } @Override public GetDataQualityRulesetEvaluationRunResult clone() { try { return (GetDataQualityRulesetEvaluationRunResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }