/* * 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.gluedatabrew.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Represents one run of a DataBrew job. *

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

* The number of times that DataBrew has attempted to run the job. *

*/ private Integer attempt; /** *

* The date and time when the job completed processing. *

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

* The name of the dataset for the job to process. *

*/ private String datasetName; /** *

* A message indicating an error (if any) that was encountered when the job ran. *

*/ private String errorMessage; /** *

* The amount of time, in seconds, during which a job run consumed resources. *

*/ private Integer executionTime; /** *

* The name of the job being processed during this run. *

*/ private String jobName; /** *

* The unique identifier of the job run. *

*/ private String runId; /** *

* The current state of the job run entity itself. *

*/ private String state; /** *

* The current status of Amazon CloudWatch logging for the job run. *

*/ private String logSubscription; /** *

* The name of an Amazon CloudWatch log group, where the job writes diagnostic messages when it runs. *

*/ private String logGroupName; /** *

* One or more output artifacts from a job run. *

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

* One or more artifacts that represent the Glue Data Catalog output from running the job. *

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

* Represents a list of JDBC database output objects which defines the output destination for a DataBrew recipe job * to write into. *

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

* The set of steps processed by the job. *

*/ private RecipeReference recipeReference; /** *

* The Amazon Resource Name (ARN) of the user who initiated the job run. *

*/ private String startedBy; /** *

* The date and time when the job run began. *

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

* A sample configuration for profile jobs only, which determines the number of rows on which the profile job is * run. If a JobSample value isn't provided, the default is used. The default value is CUSTOM_ROWS for * the mode parameter and 20,000 for the size parameter. *

*/ private JobSample jobSample; /** *

* List of validation configurations that are applied to the profile job run. *

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

* The number of times that DataBrew has attempted to run the job. *

* * @param attempt * The number of times that DataBrew has attempted to run the job. */ public void setAttempt(Integer attempt) { this.attempt = attempt; } /** *

* The number of times that DataBrew has attempted to run the job. *

* * @return The number of times that DataBrew has attempted to run the job. */ public Integer getAttempt() { return this.attempt; } /** *

* The number of times that DataBrew has attempted to run the job. *

* * @param attempt * The number of times that DataBrew has attempted to run the job. * @return Returns a reference to this object so that method calls can be chained together. */ public JobRun withAttempt(Integer attempt) { setAttempt(attempt); return this; } /** *

* The date and time when the job completed processing. *

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

* The date and time when the job completed processing. *

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

* The date and time when the job completed processing. *

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

* The name of the dataset for the job to process. *

* * @param datasetName * The name of the dataset for the job to process. */ public void setDatasetName(String datasetName) { this.datasetName = datasetName; } /** *

* The name of the dataset for the job to process. *

* * @return The name of the dataset for the job to process. */ public String getDatasetName() { return this.datasetName; } /** *

* The name of the dataset for the job to process. *

* * @param datasetName * The name of the dataset for the job to process. * @return Returns a reference to this object so that method calls can be chained together. */ public JobRun withDatasetName(String datasetName) { setDatasetName(datasetName); return this; } /** *

* A message indicating an error (if any) that was encountered when the job ran. *

* * @param errorMessage * A message indicating an error (if any) that was encountered when the job ran. */ public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } /** *

* A message indicating an error (if any) that was encountered when the job ran. *

* * @return A message indicating an error (if any) that was encountered when the job ran. */ public String getErrorMessage() { return this.errorMessage; } /** *

* A message indicating an error (if any) that was encountered when the job ran. *

* * @param errorMessage * A message indicating an error (if any) that was encountered when the job ran. * @return Returns a reference to this object so that method calls can be chained together. */ public JobRun withErrorMessage(String errorMessage) { setErrorMessage(errorMessage); return this; } /** *

* The amount of time, in seconds, during which a job run consumed resources. *

* * @param executionTime * The amount of time, in seconds, during which a job run consumed resources. */ public void setExecutionTime(Integer executionTime) { this.executionTime = executionTime; } /** *

* The amount of time, in seconds, during which a job run consumed resources. *

* * @return The amount of time, in seconds, during which a job run consumed resources. */ public Integer getExecutionTime() { return this.executionTime; } /** *

* The amount of time, in seconds, during which a job run consumed resources. *

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

* The name of the job being processed during this run. *

* * @param jobName * The name of the job being processed during this run. */ public void setJobName(String jobName) { this.jobName = jobName; } /** *

* The name of the job being processed during this run. *

* * @return The name of the job being processed during this run. */ public String getJobName() { return this.jobName; } /** *

* The name of the job being processed during this run. *

* * @param jobName * The name of the job being processed during this run. * @return Returns a reference to this object so that method calls can be chained together. */ public JobRun withJobName(String jobName) { setJobName(jobName); return this; } /** *

* The unique identifier of the job run. *

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

* The unique identifier of the job run. *

* * @return The unique identifier of the job run. */ public String getRunId() { return this.runId; } /** *

* The unique identifier of the job run. *

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

* The current state of the job run entity itself. *

* * @param state * The current state of the job run entity itself. * @see JobRunState */ public void setState(String state) { this.state = state; } /** *

* The current state of the job run entity itself. *

* * @return The current state of the job run entity itself. * @see JobRunState */ public String getState() { return this.state; } /** *

* The current state of the job run entity itself. *

* * @param state * The current state of the job run entity itself. * @return Returns a reference to this object so that method calls can be chained together. * @see JobRunState */ public JobRun withState(String state) { setState(state); return this; } /** *

* The current state of the job run entity itself. *

* * @param state * The current state of the job run entity itself. * @return Returns a reference to this object so that method calls can be chained together. * @see JobRunState */ public JobRun withState(JobRunState state) { this.state = state.toString(); return this; } /** *

* The current status of Amazon CloudWatch logging for the job run. *

* * @param logSubscription * The current status of Amazon CloudWatch logging for the job run. * @see LogSubscription */ public void setLogSubscription(String logSubscription) { this.logSubscription = logSubscription; } /** *

* The current status of Amazon CloudWatch logging for the job run. *

* * @return The current status of Amazon CloudWatch logging for the job run. * @see LogSubscription */ public String getLogSubscription() { return this.logSubscription; } /** *

* The current status of Amazon CloudWatch logging for the job run. *

* * @param logSubscription * The current status of Amazon CloudWatch logging for the job run. * @return Returns a reference to this object so that method calls can be chained together. * @see LogSubscription */ public JobRun withLogSubscription(String logSubscription) { setLogSubscription(logSubscription); return this; } /** *

* The current status of Amazon CloudWatch logging for the job run. *

* * @param logSubscription * The current status of Amazon CloudWatch logging for the job run. * @return Returns a reference to this object so that method calls can be chained together. * @see LogSubscription */ public JobRun withLogSubscription(LogSubscription logSubscription) { this.logSubscription = logSubscription.toString(); return this; } /** *

* The name of an Amazon CloudWatch log group, where the job writes diagnostic messages when it runs. *

* * @param logGroupName * The name of an Amazon CloudWatch log group, where the job writes diagnostic messages when it runs. */ public void setLogGroupName(String logGroupName) { this.logGroupName = logGroupName; } /** *

* The name of an Amazon CloudWatch log group, where the job writes diagnostic messages when it runs. *

* * @return The name of an Amazon CloudWatch log group, where the job writes diagnostic messages when it runs. */ public String getLogGroupName() { return this.logGroupName; } /** *

* The name of an Amazon CloudWatch log group, where the job writes diagnostic messages when it runs. *

* * @param logGroupName * The name of an Amazon CloudWatch log group, where the job writes diagnostic messages when it runs. * @return Returns a reference to this object so that method calls can be chained together. */ public JobRun withLogGroupName(String logGroupName) { setLogGroupName(logGroupName); return this; } /** *

* One or more output artifacts from a job run. *

* * @return One or more output artifacts from a job run. */ public java.util.List getOutputs() { return outputs; } /** *

* One or more output artifacts from a job run. *

* * @param outputs * One or more output artifacts from a job run. */ public void setOutputs(java.util.Collection outputs) { if (outputs == null) { this.outputs = null; return; } this.outputs = new java.util.ArrayList(outputs); } /** *

* One or more output artifacts from a job run. *

*

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

* * @param outputs * One or more output artifacts from a job run. * @return Returns a reference to this object so that method calls can be chained together. */ public JobRun withOutputs(Output... outputs) { if (this.outputs == null) { setOutputs(new java.util.ArrayList(outputs.length)); } for (Output ele : outputs) { this.outputs.add(ele); } return this; } /** *

* One or more output artifacts from a job run. *

* * @param outputs * One or more output artifacts from a job run. * @return Returns a reference to this object so that method calls can be chained together. */ public JobRun withOutputs(java.util.Collection outputs) { setOutputs(outputs); return this; } /** *

* One or more artifacts that represent the Glue Data Catalog output from running the job. *

* * @return One or more artifacts that represent the Glue Data Catalog output from running the job. */ public java.util.List getDataCatalogOutputs() { return dataCatalogOutputs; } /** *

* One or more artifacts that represent the Glue Data Catalog output from running the job. *

* * @param dataCatalogOutputs * One or more artifacts that represent the Glue Data Catalog output from running the job. */ public void setDataCatalogOutputs(java.util.Collection dataCatalogOutputs) { if (dataCatalogOutputs == null) { this.dataCatalogOutputs = null; return; } this.dataCatalogOutputs = new java.util.ArrayList(dataCatalogOutputs); } /** *

* One or more artifacts that represent the Glue Data Catalog output from running the job. *

*

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

* * @param dataCatalogOutputs * One or more artifacts that represent the Glue Data Catalog output from running the job. * @return Returns a reference to this object so that method calls can be chained together. */ public JobRun withDataCatalogOutputs(DataCatalogOutput... dataCatalogOutputs) { if (this.dataCatalogOutputs == null) { setDataCatalogOutputs(new java.util.ArrayList(dataCatalogOutputs.length)); } for (DataCatalogOutput ele : dataCatalogOutputs) { this.dataCatalogOutputs.add(ele); } return this; } /** *

* One or more artifacts that represent the Glue Data Catalog output from running the job. *

* * @param dataCatalogOutputs * One or more artifacts that represent the Glue Data Catalog output from running the job. * @return Returns a reference to this object so that method calls can be chained together. */ public JobRun withDataCatalogOutputs(java.util.Collection dataCatalogOutputs) { setDataCatalogOutputs(dataCatalogOutputs); return this; } /** *

* Represents a list of JDBC database output objects which defines the output destination for a DataBrew recipe job * to write into. *

* * @return Represents a list of JDBC database output objects which defines the output destination for a DataBrew * recipe job to write into. */ public java.util.List getDatabaseOutputs() { return databaseOutputs; } /** *

* Represents a list of JDBC database output objects which defines the output destination for a DataBrew recipe job * to write into. *

* * @param databaseOutputs * Represents a list of JDBC database output objects which defines the output destination for a DataBrew * recipe job to write into. */ public void setDatabaseOutputs(java.util.Collection databaseOutputs) { if (databaseOutputs == null) { this.databaseOutputs = null; return; } this.databaseOutputs = new java.util.ArrayList(databaseOutputs); } /** *

* Represents a list of JDBC database output objects which defines the output destination for a DataBrew recipe job * to write into. *

*

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

* * @param databaseOutputs * Represents a list of JDBC database output objects which defines the output destination for a DataBrew * recipe job to write into. * @return Returns a reference to this object so that method calls can be chained together. */ public JobRun withDatabaseOutputs(DatabaseOutput... databaseOutputs) { if (this.databaseOutputs == null) { setDatabaseOutputs(new java.util.ArrayList(databaseOutputs.length)); } for (DatabaseOutput ele : databaseOutputs) { this.databaseOutputs.add(ele); } return this; } /** *

* Represents a list of JDBC database output objects which defines the output destination for a DataBrew recipe job * to write into. *

* * @param databaseOutputs * Represents a list of JDBC database output objects which defines the output destination for a DataBrew * recipe job to write into. * @return Returns a reference to this object so that method calls can be chained together. */ public JobRun withDatabaseOutputs(java.util.Collection databaseOutputs) { setDatabaseOutputs(databaseOutputs); return this; } /** *

* The set of steps processed by the job. *

* * @param recipeReference * The set of steps processed by the job. */ public void setRecipeReference(RecipeReference recipeReference) { this.recipeReference = recipeReference; } /** *

* The set of steps processed by the job. *

* * @return The set of steps processed by the job. */ public RecipeReference getRecipeReference() { return this.recipeReference; } /** *

* The set of steps processed by the job. *

* * @param recipeReference * The set of steps processed by the job. * @return Returns a reference to this object so that method calls can be chained together. */ public JobRun withRecipeReference(RecipeReference recipeReference) { setRecipeReference(recipeReference); return this; } /** *

* The Amazon Resource Name (ARN) of the user who initiated the job run. *

* * @param startedBy * The Amazon Resource Name (ARN) of the user who initiated the job run. */ public void setStartedBy(String startedBy) { this.startedBy = startedBy; } /** *

* The Amazon Resource Name (ARN) of the user who initiated the job run. *

* * @return The Amazon Resource Name (ARN) of the user who initiated the job run. */ public String getStartedBy() { return this.startedBy; } /** *

* The Amazon Resource Name (ARN) of the user who initiated the job run. *

* * @param startedBy * The Amazon Resource Name (ARN) of the user who initiated the job run. * @return Returns a reference to this object so that method calls can be chained together. */ public JobRun withStartedBy(String startedBy) { setStartedBy(startedBy); return this; } /** *

* The date and time when the job run began. *

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

* The date and time when the job run began. *

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

* The date and time when the job run began. *

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

* A sample configuration for profile jobs only, which determines the number of rows on which the profile job is * run. If a JobSample value isn't provided, the default is used. The default value is CUSTOM_ROWS for * the mode parameter and 20,000 for the size parameter. *

* * @param jobSample * A sample configuration for profile jobs only, which determines the number of rows on which the profile job * is run. If a JobSample value isn't provided, the default is used. The default value is * CUSTOM_ROWS for the mode parameter and 20,000 for the size parameter. */ public void setJobSample(JobSample jobSample) { this.jobSample = jobSample; } /** *

* A sample configuration for profile jobs only, which determines the number of rows on which the profile job is * run. If a JobSample value isn't provided, the default is used. The default value is CUSTOM_ROWS for * the mode parameter and 20,000 for the size parameter. *

* * @return A sample configuration for profile jobs only, which determines the number of rows on which the profile * job is run. If a JobSample value isn't provided, the default is used. The default value is * CUSTOM_ROWS for the mode parameter and 20,000 for the size parameter. */ public JobSample getJobSample() { return this.jobSample; } /** *

* A sample configuration for profile jobs only, which determines the number of rows on which the profile job is * run. If a JobSample value isn't provided, the default is used. The default value is CUSTOM_ROWS for * the mode parameter and 20,000 for the size parameter. *

* * @param jobSample * A sample configuration for profile jobs only, which determines the number of rows on which the profile job * is run. If a JobSample value isn't provided, the default is used. The default value is * CUSTOM_ROWS for the mode parameter and 20,000 for the size parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public JobRun withJobSample(JobSample jobSample) { setJobSample(jobSample); return this; } /** *

* List of validation configurations that are applied to the profile job run. *

* * @return List of validation configurations that are applied to the profile job run. */ public java.util.List getValidationConfigurations() { return validationConfigurations; } /** *

* List of validation configurations that are applied to the profile job run. *

* * @param validationConfigurations * List of validation configurations that are applied to the profile job run. */ public void setValidationConfigurations(java.util.Collection validationConfigurations) { if (validationConfigurations == null) { this.validationConfigurations = null; return; } this.validationConfigurations = new java.util.ArrayList(validationConfigurations); } /** *

* List of validation configurations that are applied to the profile job run. *

*

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

* * @param validationConfigurations * List of validation configurations that are applied to the profile job run. * @return Returns a reference to this object so that method calls can be chained together. */ public JobRun withValidationConfigurations(ValidationConfiguration... validationConfigurations) { if (this.validationConfigurations == null) { setValidationConfigurations(new java.util.ArrayList(validationConfigurations.length)); } for (ValidationConfiguration ele : validationConfigurations) { this.validationConfigurations.add(ele); } return this; } /** *

* List of validation configurations that are applied to the profile job run. *

* * @param validationConfigurations * List of validation configurations that are applied to the profile job run. * @return Returns a reference to this object so that method calls can be chained together. */ public JobRun withValidationConfigurations(java.util.Collection validationConfigurations) { setValidationConfigurations(validationConfigurations); 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 (getAttempt() != null) sb.append("Attempt: ").append(getAttempt()).append(","); if (getCompletedOn() != null) sb.append("CompletedOn: ").append(getCompletedOn()).append(","); if (getDatasetName() != null) sb.append("DatasetName: ").append(getDatasetName()).append(","); if (getErrorMessage() != null) sb.append("ErrorMessage: ").append(getErrorMessage()).append(","); if (getExecutionTime() != null) sb.append("ExecutionTime: ").append(getExecutionTime()).append(","); if (getJobName() != null) sb.append("JobName: ").append(getJobName()).append(","); if (getRunId() != null) sb.append("RunId: ").append(getRunId()).append(","); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getLogSubscription() != null) sb.append("LogSubscription: ").append(getLogSubscription()).append(","); if (getLogGroupName() != null) sb.append("LogGroupName: ").append(getLogGroupName()).append(","); if (getOutputs() != null) sb.append("Outputs: ").append(getOutputs()).append(","); if (getDataCatalogOutputs() != null) sb.append("DataCatalogOutputs: ").append(getDataCatalogOutputs()).append(","); if (getDatabaseOutputs() != null) sb.append("DatabaseOutputs: ").append(getDatabaseOutputs()).append(","); if (getRecipeReference() != null) sb.append("RecipeReference: ").append(getRecipeReference()).append(","); if (getStartedBy() != null) sb.append("StartedBy: ").append(getStartedBy()).append(","); if (getStartedOn() != null) sb.append("StartedOn: ").append(getStartedOn()).append(","); if (getJobSample() != null) sb.append("JobSample: ").append(getJobSample()).append(","); if (getValidationConfigurations() != null) sb.append("ValidationConfigurations: ").append(getValidationConfigurations()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof JobRun == false) return false; JobRun other = (JobRun) obj; if (other.getAttempt() == null ^ this.getAttempt() == null) return false; if (other.getAttempt() != null && other.getAttempt().equals(this.getAttempt()) == 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.getDatasetName() == null ^ this.getDatasetName() == null) return false; if (other.getDatasetName() != null && other.getDatasetName().equals(this.getDatasetName()) == false) return false; if (other.getErrorMessage() == null ^ this.getErrorMessage() == null) return false; if (other.getErrorMessage() != null && other.getErrorMessage().equals(this.getErrorMessage()) == 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.getJobName() == null ^ this.getJobName() == null) return false; if (other.getJobName() != null && other.getJobName().equals(this.getJobName()) == false) return false; if (other.getRunId() == null ^ this.getRunId() == null) return false; if (other.getRunId() != null && other.getRunId().equals(this.getRunId()) == false) return false; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getLogSubscription() == null ^ this.getLogSubscription() == null) return false; if (other.getLogSubscription() != null && other.getLogSubscription().equals(this.getLogSubscription()) == false) return false; if (other.getLogGroupName() == null ^ this.getLogGroupName() == null) return false; if (other.getLogGroupName() != null && other.getLogGroupName().equals(this.getLogGroupName()) == false) return false; if (other.getOutputs() == null ^ this.getOutputs() == null) return false; if (other.getOutputs() != null && other.getOutputs().equals(this.getOutputs()) == false) return false; if (other.getDataCatalogOutputs() == null ^ this.getDataCatalogOutputs() == null) return false; if (other.getDataCatalogOutputs() != null && other.getDataCatalogOutputs().equals(this.getDataCatalogOutputs()) == false) return false; if (other.getDatabaseOutputs() == null ^ this.getDatabaseOutputs() == null) return false; if (other.getDatabaseOutputs() != null && other.getDatabaseOutputs().equals(this.getDatabaseOutputs()) == false) return false; if (other.getRecipeReference() == null ^ this.getRecipeReference() == null) return false; if (other.getRecipeReference() != null && other.getRecipeReference().equals(this.getRecipeReference()) == false) return false; if (other.getStartedBy() == null ^ this.getStartedBy() == null) return false; if (other.getStartedBy() != null && other.getStartedBy().equals(this.getStartedBy()) == 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.getJobSample() == null ^ this.getJobSample() == null) return false; if (other.getJobSample() != null && other.getJobSample().equals(this.getJobSample()) == false) return false; if (other.getValidationConfigurations() == null ^ this.getValidationConfigurations() == null) return false; if (other.getValidationConfigurations() != null && other.getValidationConfigurations().equals(this.getValidationConfigurations()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAttempt() == null) ? 0 : getAttempt().hashCode()); hashCode = prime * hashCode + ((getCompletedOn() == null) ? 0 : getCompletedOn().hashCode()); hashCode = prime * hashCode + ((getDatasetName() == null) ? 0 : getDatasetName().hashCode()); hashCode = prime * hashCode + ((getErrorMessage() == null) ? 0 : getErrorMessage().hashCode()); hashCode = prime * hashCode + ((getExecutionTime() == null) ? 0 : getExecutionTime().hashCode()); hashCode = prime * hashCode + ((getJobName() == null) ? 0 : getJobName().hashCode()); hashCode = prime * hashCode + ((getRunId() == null) ? 0 : getRunId().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getLogSubscription() == null) ? 0 : getLogSubscription().hashCode()); hashCode = prime * hashCode + ((getLogGroupName() == null) ? 0 : getLogGroupName().hashCode()); hashCode = prime * hashCode + ((getOutputs() == null) ? 0 : getOutputs().hashCode()); hashCode = prime * hashCode + ((getDataCatalogOutputs() == null) ? 0 : getDataCatalogOutputs().hashCode()); hashCode = prime * hashCode + ((getDatabaseOutputs() == null) ? 0 : getDatabaseOutputs().hashCode()); hashCode = prime * hashCode + ((getRecipeReference() == null) ? 0 : getRecipeReference().hashCode()); hashCode = prime * hashCode + ((getStartedBy() == null) ? 0 : getStartedBy().hashCode()); hashCode = prime * hashCode + ((getStartedOn() == null) ? 0 : getStartedOn().hashCode()); hashCode = prime * hashCode + ((getJobSample() == null) ? 0 : getJobSample().hashCode()); hashCode = prime * hashCode + ((getValidationConfigurations() == null) ? 0 : getValidationConfigurations().hashCode()); return hashCode; } @Override public JobRun clone() { try { return (JobRun) 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.gluedatabrew.model.transform.JobRunMarshaller.getInstance().marshall(this, protocolMarshaller); } }