
com.amazonaws.services.deadline.model.JobSummary Maven / Gradle / Ivy
/*
* Copyright 2019-2024 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.deadline.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* A summary of job details.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class JobSummary implements Serializable, Cloneable, StructuredPojo {
/**
*
* The date and time the resource was created.
*
*/
private java.util.Date createdAt;
/**
*
* The user or system that created this resource.
*
*/
private String createdBy;
/**
*
* The date and time the resource ended running.
*
*/
private java.util.Date endedAt;
/**
*
* The job ID.
*
*/
private String jobId;
/**
*
* The life cycle status.
*
*/
private String lifecycleStatus;
/**
*
* The life cycle status message.
*
*/
private String lifecycleStatusMessage;
/**
*
* The number of task failures before the job stops running and is marked as FAILED
.
*
*/
private Integer maxFailedTasksCount;
/**
*
* The maximum number of retries for a job.
*
*/
private Integer maxRetriesPerTask;
/**
*
* The job name.
*
*/
private String name;
/**
*
* The job priority.
*
*/
private Integer priority;
/**
*
* The date and time the resource started running.
*
*/
private java.util.Date startedAt;
/**
*
* The task status to start with on the job.
*
*/
private String targetTaskRunStatus;
/**
*
* The task run status for the job.
*
*
* -
*
* PENDING
–pending and waiting for resources.
*
*
* -
*
* READY
–ready to be processed.
*
*
* -
*
* ASSIGNED
–assigned and will run next on a worker.
*
*
* -
*
* SCHEDULED
–scheduled to be run on a worker.
*
*
* -
*
* INTERRUPTING
–being interrupted.
*
*
* -
*
* RUNNING
–running on a worker.
*
*
* -
*
* SUSPENDED
–the task is suspended.
*
*
* -
*
* CANCELED
–the task has been canceled.
*
*
* -
*
* FAILED
–the task has failed.
*
*
* -
*
* SUCCEEDED
–the task has succeeded.
*
*
*
*/
private String taskRunStatus;
/**
*
* The number of tasks running on the job.
*
*/
private java.util.Map taskRunStatusCounts;
/**
*
* The date and time the resource was updated.
*
*/
private java.util.Date updatedAt;
/**
*
* The user or system that updated this resource.
*
*/
private String updatedBy;
/**
*
* The date and time the resource was created.
*
*
* @param createdAt
* The date and time the resource was created.
*/
public void setCreatedAt(java.util.Date createdAt) {
this.createdAt = createdAt;
}
/**
*
* The date and time the resource was created.
*
*
* @return The date and time the resource was created.
*/
public java.util.Date getCreatedAt() {
return this.createdAt;
}
/**
*
* The date and time the resource was created.
*
*
* @param createdAt
* The date and time the resource was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobSummary withCreatedAt(java.util.Date createdAt) {
setCreatedAt(createdAt);
return this;
}
/**
*
* The user or system that created this resource.
*
*
* @param createdBy
* The user or system that created this resource.
*/
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
/**
*
* The user or system that created this resource.
*
*
* @return The user or system that created this resource.
*/
public String getCreatedBy() {
return this.createdBy;
}
/**
*
* The user or system that created this resource.
*
*
* @param createdBy
* The user or system that created this resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobSummary withCreatedBy(String createdBy) {
setCreatedBy(createdBy);
return this;
}
/**
*
* The date and time the resource ended running.
*
*
* @param endedAt
* The date and time the resource ended running.
*/
public void setEndedAt(java.util.Date endedAt) {
this.endedAt = endedAt;
}
/**
*
* The date and time the resource ended running.
*
*
* @return The date and time the resource ended running.
*/
public java.util.Date getEndedAt() {
return this.endedAt;
}
/**
*
* The date and time the resource ended running.
*
*
* @param endedAt
* The date and time the resource ended running.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobSummary withEndedAt(java.util.Date endedAt) {
setEndedAt(endedAt);
return this;
}
/**
*
* The job ID.
*
*
* @param jobId
* The job ID.
*/
public void setJobId(String jobId) {
this.jobId = jobId;
}
/**
*
* The job ID.
*
*
* @return The job ID.
*/
public String getJobId() {
return this.jobId;
}
/**
*
* The job ID.
*
*
* @param jobId
* The job ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobSummary withJobId(String jobId) {
setJobId(jobId);
return this;
}
/**
*
* The life cycle status.
*
*
* @param lifecycleStatus
* The life cycle status.
* @see JobLifecycleStatus
*/
public void setLifecycleStatus(String lifecycleStatus) {
this.lifecycleStatus = lifecycleStatus;
}
/**
*
* The life cycle status.
*
*
* @return The life cycle status.
* @see JobLifecycleStatus
*/
public String getLifecycleStatus() {
return this.lifecycleStatus;
}
/**
*
* The life cycle status.
*
*
* @param lifecycleStatus
* The life cycle status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobLifecycleStatus
*/
public JobSummary withLifecycleStatus(String lifecycleStatus) {
setLifecycleStatus(lifecycleStatus);
return this;
}
/**
*
* The life cycle status.
*
*
* @param lifecycleStatus
* The life cycle status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobLifecycleStatus
*/
public JobSummary withLifecycleStatus(JobLifecycleStatus lifecycleStatus) {
this.lifecycleStatus = lifecycleStatus.toString();
return this;
}
/**
*
* The life cycle status message.
*
*
* @param lifecycleStatusMessage
* The life cycle status message.
*/
public void setLifecycleStatusMessage(String lifecycleStatusMessage) {
this.lifecycleStatusMessage = lifecycleStatusMessage;
}
/**
*
* The life cycle status message.
*
*
* @return The life cycle status message.
*/
public String getLifecycleStatusMessage() {
return this.lifecycleStatusMessage;
}
/**
*
* The life cycle status message.
*
*
* @param lifecycleStatusMessage
* The life cycle status message.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobSummary withLifecycleStatusMessage(String lifecycleStatusMessage) {
setLifecycleStatusMessage(lifecycleStatusMessage);
return this;
}
/**
*
* The number of task failures before the job stops running and is marked as FAILED
.
*
*
* @param maxFailedTasksCount
* The number of task failures before the job stops running and is marked as FAILED
.
*/
public void setMaxFailedTasksCount(Integer maxFailedTasksCount) {
this.maxFailedTasksCount = maxFailedTasksCount;
}
/**
*
* The number of task failures before the job stops running and is marked as FAILED
.
*
*
* @return The number of task failures before the job stops running and is marked as FAILED
.
*/
public Integer getMaxFailedTasksCount() {
return this.maxFailedTasksCount;
}
/**
*
* The number of task failures before the job stops running and is marked as FAILED
.
*
*
* @param maxFailedTasksCount
* The number of task failures before the job stops running and is marked as FAILED
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobSummary withMaxFailedTasksCount(Integer maxFailedTasksCount) {
setMaxFailedTasksCount(maxFailedTasksCount);
return this;
}
/**
*
* The maximum number of retries for a job.
*
*
* @param maxRetriesPerTask
* The maximum number of retries for a job.
*/
public void setMaxRetriesPerTask(Integer maxRetriesPerTask) {
this.maxRetriesPerTask = maxRetriesPerTask;
}
/**
*
* The maximum number of retries for a job.
*
*
* @return The maximum number of retries for a job.
*/
public Integer getMaxRetriesPerTask() {
return this.maxRetriesPerTask;
}
/**
*
* The maximum number of retries for a job.
*
*
* @param maxRetriesPerTask
* The maximum number of retries for a job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobSummary withMaxRetriesPerTask(Integer maxRetriesPerTask) {
setMaxRetriesPerTask(maxRetriesPerTask);
return this;
}
/**
*
* The job name.
*
*
* @param name
* The job name.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The job name.
*
*
* @return The job name.
*/
public String getName() {
return this.name;
}
/**
*
* The job name.
*
*
* @param name
* The job name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobSummary withName(String name) {
setName(name);
return this;
}
/**
*
* The job priority.
*
*
* @param priority
* The job priority.
*/
public void setPriority(Integer priority) {
this.priority = priority;
}
/**
*
* The job priority.
*
*
* @return The job priority.
*/
public Integer getPriority() {
return this.priority;
}
/**
*
* The job priority.
*
*
* @param priority
* The job priority.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobSummary withPriority(Integer priority) {
setPriority(priority);
return this;
}
/**
*
* The date and time the resource started running.
*
*
* @param startedAt
* The date and time the resource started running.
*/
public void setStartedAt(java.util.Date startedAt) {
this.startedAt = startedAt;
}
/**
*
* The date and time the resource started running.
*
*
* @return The date and time the resource started running.
*/
public java.util.Date getStartedAt() {
return this.startedAt;
}
/**
*
* The date and time the resource started running.
*
*
* @param startedAt
* The date and time the resource started running.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobSummary withStartedAt(java.util.Date startedAt) {
setStartedAt(startedAt);
return this;
}
/**
*
* The task status to start with on the job.
*
*
* @param targetTaskRunStatus
* The task status to start with on the job.
* @see JobTargetTaskRunStatus
*/
public void setTargetTaskRunStatus(String targetTaskRunStatus) {
this.targetTaskRunStatus = targetTaskRunStatus;
}
/**
*
* The task status to start with on the job.
*
*
* @return The task status to start with on the job.
* @see JobTargetTaskRunStatus
*/
public String getTargetTaskRunStatus() {
return this.targetTaskRunStatus;
}
/**
*
* The task status to start with on the job.
*
*
* @param targetTaskRunStatus
* The task status to start with on the job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobTargetTaskRunStatus
*/
public JobSummary withTargetTaskRunStatus(String targetTaskRunStatus) {
setTargetTaskRunStatus(targetTaskRunStatus);
return this;
}
/**
*
* The task status to start with on the job.
*
*
* @param targetTaskRunStatus
* The task status to start with on the job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see JobTargetTaskRunStatus
*/
public JobSummary withTargetTaskRunStatus(JobTargetTaskRunStatus targetTaskRunStatus) {
this.targetTaskRunStatus = targetTaskRunStatus.toString();
return this;
}
/**
*
* The task run status for the job.
*
*
* -
*
* PENDING
–pending and waiting for resources.
*
*
* -
*
* READY
–ready to be processed.
*
*
* -
*
* ASSIGNED
–assigned and will run next on a worker.
*
*
* -
*
* SCHEDULED
–scheduled to be run on a worker.
*
*
* -
*
* INTERRUPTING
–being interrupted.
*
*
* -
*
* RUNNING
–running on a worker.
*
*
* -
*
* SUSPENDED
–the task is suspended.
*
*
* -
*
* CANCELED
–the task has been canceled.
*
*
* -
*
* FAILED
–the task has failed.
*
*
* -
*
* SUCCEEDED
–the task has succeeded.
*
*
*
*
* @param taskRunStatus
* The task run status for the job.
*
* -
*
* PENDING
–pending and waiting for resources.
*
*
* -
*
* READY
–ready to be processed.
*
*
* -
*
* ASSIGNED
–assigned and will run next on a worker.
*
*
* -
*
* SCHEDULED
–scheduled to be run on a worker.
*
*
* -
*
* INTERRUPTING
–being interrupted.
*
*
* -
*
* RUNNING
–running on a worker.
*
*
* -
*
* SUSPENDED
–the task is suspended.
*
*
* -
*
* CANCELED
–the task has been canceled.
*
*
* -
*
* FAILED
–the task has failed.
*
*
* -
*
* SUCCEEDED
–the task has succeeded.
*
*
* @see TaskRunStatus
*/
public void setTaskRunStatus(String taskRunStatus) {
this.taskRunStatus = taskRunStatus;
}
/**
*
* The task run status for the job.
*
*
* -
*
* PENDING
–pending and waiting for resources.
*
*
* -
*
* READY
–ready to be processed.
*
*
* -
*
* ASSIGNED
–assigned and will run next on a worker.
*
*
* -
*
* SCHEDULED
–scheduled to be run on a worker.
*
*
* -
*
* INTERRUPTING
–being interrupted.
*
*
* -
*
* RUNNING
–running on a worker.
*
*
* -
*
* SUSPENDED
–the task is suspended.
*
*
* -
*
* CANCELED
–the task has been canceled.
*
*
* -
*
* FAILED
–the task has failed.
*
*
* -
*
* SUCCEEDED
–the task has succeeded.
*
*
*
*
* @return The task run status for the job.
*
* -
*
* PENDING
–pending and waiting for resources.
*
*
* -
*
* READY
–ready to be processed.
*
*
* -
*
* ASSIGNED
–assigned and will run next on a worker.
*
*
* -
*
* SCHEDULED
–scheduled to be run on a worker.
*
*
* -
*
* INTERRUPTING
–being interrupted.
*
*
* -
*
* RUNNING
–running on a worker.
*
*
* -
*
* SUSPENDED
–the task is suspended.
*
*
* -
*
* CANCELED
–the task has been canceled.
*
*
* -
*
* FAILED
–the task has failed.
*
*
* -
*
* SUCCEEDED
–the task has succeeded.
*
*
* @see TaskRunStatus
*/
public String getTaskRunStatus() {
return this.taskRunStatus;
}
/**
*
* The task run status for the job.
*
*
* -
*
* PENDING
–pending and waiting for resources.
*
*
* -
*
* READY
–ready to be processed.
*
*
* -
*
* ASSIGNED
–assigned and will run next on a worker.
*
*
* -
*
* SCHEDULED
–scheduled to be run on a worker.
*
*
* -
*
* INTERRUPTING
–being interrupted.
*
*
* -
*
* RUNNING
–running on a worker.
*
*
* -
*
* SUSPENDED
–the task is suspended.
*
*
* -
*
* CANCELED
–the task has been canceled.
*
*
* -
*
* FAILED
–the task has failed.
*
*
* -
*
* SUCCEEDED
–the task has succeeded.
*
*
*
*
* @param taskRunStatus
* The task run status for the job.
*
* -
*
* PENDING
–pending and waiting for resources.
*
*
* -
*
* READY
–ready to be processed.
*
*
* -
*
* ASSIGNED
–assigned and will run next on a worker.
*
*
* -
*
* SCHEDULED
–scheduled to be run on a worker.
*
*
* -
*
* INTERRUPTING
–being interrupted.
*
*
* -
*
* RUNNING
–running on a worker.
*
*
* -
*
* SUSPENDED
–the task is suspended.
*
*
* -
*
* CANCELED
–the task has been canceled.
*
*
* -
*
* FAILED
–the task has failed.
*
*
* -
*
* SUCCEEDED
–the task has succeeded.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see TaskRunStatus
*/
public JobSummary withTaskRunStatus(String taskRunStatus) {
setTaskRunStatus(taskRunStatus);
return this;
}
/**
*
* The task run status for the job.
*
*
* -
*
* PENDING
–pending and waiting for resources.
*
*
* -
*
* READY
–ready to be processed.
*
*
* -
*
* ASSIGNED
–assigned and will run next on a worker.
*
*
* -
*
* SCHEDULED
–scheduled to be run on a worker.
*
*
* -
*
* INTERRUPTING
–being interrupted.
*
*
* -
*
* RUNNING
–running on a worker.
*
*
* -
*
* SUSPENDED
–the task is suspended.
*
*
* -
*
* CANCELED
–the task has been canceled.
*
*
* -
*
* FAILED
–the task has failed.
*
*
* -
*
* SUCCEEDED
–the task has succeeded.
*
*
*
*
* @param taskRunStatus
* The task run status for the job.
*
* -
*
* PENDING
–pending and waiting for resources.
*
*
* -
*
* READY
–ready to be processed.
*
*
* -
*
* ASSIGNED
–assigned and will run next on a worker.
*
*
* -
*
* SCHEDULED
–scheduled to be run on a worker.
*
*
* -
*
* INTERRUPTING
–being interrupted.
*
*
* -
*
* RUNNING
–running on a worker.
*
*
* -
*
* SUSPENDED
–the task is suspended.
*
*
* -
*
* CANCELED
–the task has been canceled.
*
*
* -
*
* FAILED
–the task has failed.
*
*
* -
*
* SUCCEEDED
–the task has succeeded.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see TaskRunStatus
*/
public JobSummary withTaskRunStatus(TaskRunStatus taskRunStatus) {
this.taskRunStatus = taskRunStatus.toString();
return this;
}
/**
*
* The number of tasks running on the job.
*
*
* @return The number of tasks running on the job.
*/
public java.util.Map getTaskRunStatusCounts() {
return taskRunStatusCounts;
}
/**
*
* The number of tasks running on the job.
*
*
* @param taskRunStatusCounts
* The number of tasks running on the job.
*/
public void setTaskRunStatusCounts(java.util.Map taskRunStatusCounts) {
this.taskRunStatusCounts = taskRunStatusCounts;
}
/**
*
* The number of tasks running on the job.
*
*
* @param taskRunStatusCounts
* The number of tasks running on the job.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobSummary withTaskRunStatusCounts(java.util.Map taskRunStatusCounts) {
setTaskRunStatusCounts(taskRunStatusCounts);
return this;
}
/**
* Add a single TaskRunStatusCounts entry
*
* @see JobSummary#withTaskRunStatusCounts
* @returns a reference to this object so that method calls can be chained together.
*/
public JobSummary addTaskRunStatusCountsEntry(String key, Integer value) {
if (null == this.taskRunStatusCounts) {
this.taskRunStatusCounts = new java.util.HashMap();
}
if (this.taskRunStatusCounts.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.taskRunStatusCounts.put(key, value);
return this;
}
/**
* Removes all the entries added into TaskRunStatusCounts.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobSummary clearTaskRunStatusCountsEntries() {
this.taskRunStatusCounts = null;
return this;
}
/**
*
* The date and time the resource was updated.
*
*
* @param updatedAt
* The date and time the resource was updated.
*/
public void setUpdatedAt(java.util.Date updatedAt) {
this.updatedAt = updatedAt;
}
/**
*
* The date and time the resource was updated.
*
*
* @return The date and time the resource was updated.
*/
public java.util.Date getUpdatedAt() {
return this.updatedAt;
}
/**
*
* The date and time the resource was updated.
*
*
* @param updatedAt
* The date and time the resource was updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobSummary withUpdatedAt(java.util.Date updatedAt) {
setUpdatedAt(updatedAt);
return this;
}
/**
*
* The user or system that updated this resource.
*
*
* @param updatedBy
* The user or system that updated this resource.
*/
public void setUpdatedBy(String updatedBy) {
this.updatedBy = updatedBy;
}
/**
*
* The user or system that updated this resource.
*
*
* @return The user or system that updated this resource.
*/
public String getUpdatedBy() {
return this.updatedBy;
}
/**
*
* The user or system that updated this resource.
*
*
* @param updatedBy
* The user or system that updated this resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public JobSummary withUpdatedBy(String updatedBy) {
setUpdatedBy(updatedBy);
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 (getCreatedAt() != null)
sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
if (getCreatedBy() != null)
sb.append("CreatedBy: ").append(getCreatedBy()).append(",");
if (getEndedAt() != null)
sb.append("EndedAt: ").append(getEndedAt()).append(",");
if (getJobId() != null)
sb.append("JobId: ").append(getJobId()).append(",");
if (getLifecycleStatus() != null)
sb.append("LifecycleStatus: ").append(getLifecycleStatus()).append(",");
if (getLifecycleStatusMessage() != null)
sb.append("LifecycleStatusMessage: ").append(getLifecycleStatusMessage()).append(",");
if (getMaxFailedTasksCount() != null)
sb.append("MaxFailedTasksCount: ").append(getMaxFailedTasksCount()).append(",");
if (getMaxRetriesPerTask() != null)
sb.append("MaxRetriesPerTask: ").append(getMaxRetriesPerTask()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getPriority() != null)
sb.append("Priority: ").append(getPriority()).append(",");
if (getStartedAt() != null)
sb.append("StartedAt: ").append(getStartedAt()).append(",");
if (getTargetTaskRunStatus() != null)
sb.append("TargetTaskRunStatus: ").append(getTargetTaskRunStatus()).append(",");
if (getTaskRunStatus() != null)
sb.append("TaskRunStatus: ").append(getTaskRunStatus()).append(",");
if (getTaskRunStatusCounts() != null)
sb.append("TaskRunStatusCounts: ").append(getTaskRunStatusCounts()).append(",");
if (getUpdatedAt() != null)
sb.append("UpdatedAt: ").append(getUpdatedAt()).append(",");
if (getUpdatedBy() != null)
sb.append("UpdatedBy: ").append(getUpdatedBy());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof JobSummary == false)
return false;
JobSummary other = (JobSummary) obj;
if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
return false;
if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false)
return false;
if (other.getCreatedBy() == null ^ this.getCreatedBy() == null)
return false;
if (other.getCreatedBy() != null && other.getCreatedBy().equals(this.getCreatedBy()) == false)
return false;
if (other.getEndedAt() == null ^ this.getEndedAt() == null)
return false;
if (other.getEndedAt() != null && other.getEndedAt().equals(this.getEndedAt()) == false)
return false;
if (other.getJobId() == null ^ this.getJobId() == null)
return false;
if (other.getJobId() != null && other.getJobId().equals(this.getJobId()) == false)
return false;
if (other.getLifecycleStatus() == null ^ this.getLifecycleStatus() == null)
return false;
if (other.getLifecycleStatus() != null && other.getLifecycleStatus().equals(this.getLifecycleStatus()) == false)
return false;
if (other.getLifecycleStatusMessage() == null ^ this.getLifecycleStatusMessage() == null)
return false;
if (other.getLifecycleStatusMessage() != null && other.getLifecycleStatusMessage().equals(this.getLifecycleStatusMessage()) == false)
return false;
if (other.getMaxFailedTasksCount() == null ^ this.getMaxFailedTasksCount() == null)
return false;
if (other.getMaxFailedTasksCount() != null && other.getMaxFailedTasksCount().equals(this.getMaxFailedTasksCount()) == false)
return false;
if (other.getMaxRetriesPerTask() == null ^ this.getMaxRetriesPerTask() == null)
return false;
if (other.getMaxRetriesPerTask() != null && other.getMaxRetriesPerTask().equals(this.getMaxRetriesPerTask()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getPriority() == null ^ this.getPriority() == null)
return false;
if (other.getPriority() != null && other.getPriority().equals(this.getPriority()) == false)
return false;
if (other.getStartedAt() == null ^ this.getStartedAt() == null)
return false;
if (other.getStartedAt() != null && other.getStartedAt().equals(this.getStartedAt()) == false)
return false;
if (other.getTargetTaskRunStatus() == null ^ this.getTargetTaskRunStatus() == null)
return false;
if (other.getTargetTaskRunStatus() != null && other.getTargetTaskRunStatus().equals(this.getTargetTaskRunStatus()) == false)
return false;
if (other.getTaskRunStatus() == null ^ this.getTaskRunStatus() == null)
return false;
if (other.getTaskRunStatus() != null && other.getTaskRunStatus().equals(this.getTaskRunStatus()) == false)
return false;
if (other.getTaskRunStatusCounts() == null ^ this.getTaskRunStatusCounts() == null)
return false;
if (other.getTaskRunStatusCounts() != null && other.getTaskRunStatusCounts().equals(this.getTaskRunStatusCounts()) == false)
return false;
if (other.getUpdatedAt() == null ^ this.getUpdatedAt() == null)
return false;
if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == false)
return false;
if (other.getUpdatedBy() == null ^ this.getUpdatedBy() == null)
return false;
if (other.getUpdatedBy() != null && other.getUpdatedBy().equals(this.getUpdatedBy()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
hashCode = prime * hashCode + ((getEndedAt() == null) ? 0 : getEndedAt().hashCode());
hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode());
hashCode = prime * hashCode + ((getLifecycleStatus() == null) ? 0 : getLifecycleStatus().hashCode());
hashCode = prime * hashCode + ((getLifecycleStatusMessage() == null) ? 0 : getLifecycleStatusMessage().hashCode());
hashCode = prime * hashCode + ((getMaxFailedTasksCount() == null) ? 0 : getMaxFailedTasksCount().hashCode());
hashCode = prime * hashCode + ((getMaxRetriesPerTask() == null) ? 0 : getMaxRetriesPerTask().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getPriority() == null) ? 0 : getPriority().hashCode());
hashCode = prime * hashCode + ((getStartedAt() == null) ? 0 : getStartedAt().hashCode());
hashCode = prime * hashCode + ((getTargetTaskRunStatus() == null) ? 0 : getTargetTaskRunStatus().hashCode());
hashCode = prime * hashCode + ((getTaskRunStatus() == null) ? 0 : getTaskRunStatus().hashCode());
hashCode = prime * hashCode + ((getTaskRunStatusCounts() == null) ? 0 : getTaskRunStatusCounts().hashCode());
hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
hashCode = prime * hashCode + ((getUpdatedBy() == null) ? 0 : getUpdatedBy().hashCode());
return hashCode;
}
@Override
public JobSummary clone() {
try {
return (JobSummary) 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.deadline.model.transform.JobSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}