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

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

* When a start rule recommendation run completes, it creates a recommended ruleset (a set of rules). This member * has those rules in Data Quality Definition Language (DQDL) format. *

*/ private String recommendedRuleset; /** *

* The name of the ruleset that was created by the run. *

*/ private String createdRulesetName; /** *

* 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 GetDataQualityRuleRecommendationRunResult withRunId(String runId) { setRunId(runId); return this; } /** *

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

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

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

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

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

* * @param dataSource * The data source (an Glue table) associated with this run. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRuleRecommendationRunResult 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 GetDataQualityRuleRecommendationRunResult 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 GetDataQualityRuleRecommendationRunResult 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 GetDataQualityRuleRecommendationRunResult withTimeout(Integer timeout) { setTimeout(timeout); 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 GetDataQualityRuleRecommendationRunResult 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 GetDataQualityRuleRecommendationRunResult 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 GetDataQualityRuleRecommendationRunResult 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 GetDataQualityRuleRecommendationRunResult 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 GetDataQualityRuleRecommendationRunResult 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 GetDataQualityRuleRecommendationRunResult 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 GetDataQualityRuleRecommendationRunResult withExecutionTime(Integer executionTime) { setExecutionTime(executionTime); return this; } /** *

* When a start rule recommendation run completes, it creates a recommended ruleset (a set of rules). This member * has those rules in Data Quality Definition Language (DQDL) format. *

* * @param recommendedRuleset * When a start rule recommendation run completes, it creates a recommended ruleset (a set of rules). This * member has those rules in Data Quality Definition Language (DQDL) format. */ public void setRecommendedRuleset(String recommendedRuleset) { this.recommendedRuleset = recommendedRuleset; } /** *

* When a start rule recommendation run completes, it creates a recommended ruleset (a set of rules). This member * has those rules in Data Quality Definition Language (DQDL) format. *

* * @return When a start rule recommendation run completes, it creates a recommended ruleset (a set of rules). This * member has those rules in Data Quality Definition Language (DQDL) format. */ public String getRecommendedRuleset() { return this.recommendedRuleset; } /** *

* When a start rule recommendation run completes, it creates a recommended ruleset (a set of rules). This member * has those rules in Data Quality Definition Language (DQDL) format. *

* * @param recommendedRuleset * When a start rule recommendation run completes, it creates a recommended ruleset (a set of rules). This * member has those rules in Data Quality Definition Language (DQDL) format. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRuleRecommendationRunResult withRecommendedRuleset(String recommendedRuleset) { setRecommendedRuleset(recommendedRuleset); return this; } /** *

* The name of the ruleset that was created by the run. *

* * @param createdRulesetName * The name of the ruleset that was created by the run. */ public void setCreatedRulesetName(String createdRulesetName) { this.createdRulesetName = createdRulesetName; } /** *

* The name of the ruleset that was created by the run. *

* * @return The name of the ruleset that was created by the run. */ public String getCreatedRulesetName() { return this.createdRulesetName; } /** *

* The name of the ruleset that was created by the run. *

* * @param createdRulesetName * The name of the ruleset that was created by the run. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataQualityRuleRecommendationRunResult withCreatedRulesetName(String createdRulesetName) { setCreatedRulesetName(createdRulesetName); 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 (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 (getRecommendedRuleset() != null) sb.append("RecommendedRuleset: ").append(getRecommendedRuleset()).append(","); if (getCreatedRulesetName() != null) sb.append("CreatedRulesetName: ").append(getCreatedRulesetName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetDataQualityRuleRecommendationRunResult == false) return false; GetDataQualityRuleRecommendationRunResult other = (GetDataQualityRuleRecommendationRunResult) 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.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.getRecommendedRuleset() == null ^ this.getRecommendedRuleset() == null) return false; if (other.getRecommendedRuleset() != null && other.getRecommendedRuleset().equals(this.getRecommendedRuleset()) == false) return false; if (other.getCreatedRulesetName() == null ^ this.getCreatedRulesetName() == null) return false; if (other.getCreatedRulesetName() != null && other.getCreatedRulesetName().equals(this.getCreatedRulesetName()) == 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 + ((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 + ((getRecommendedRuleset() == null) ? 0 : getRecommendedRuleset().hashCode()); hashCode = prime * hashCode + ((getCreatedRulesetName() == null) ? 0 : getCreatedRulesetName().hashCode()); return hashCode; } @Override public GetDataQualityRuleRecommendationRunResult clone() { try { return (GetDataQualityRuleRecommendationRunResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }