commonMain.aws.sdk.kotlin.services.deadline.model.TaskSearchSummary.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deadline-jvm Show documentation
Show all versions of deadline-jvm Show documentation
The AWS SDK for Kotlin client for deadline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* The details of a task search.
*/
public class TaskSearchSummary private constructor(builder: Builder) {
/**
* The date and time the resource ended running.
*/
public val endedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.endedAt
/**
* The number of times that the task failed and was retried.
*/
public val failureRetryCount: kotlin.Int? = builder.failureRetryCount
/**
* The job ID.
*/
public val jobId: kotlin.String? = builder.jobId
/**
* The parameters to search for.
*/
public val parameters: Map? = builder.parameters
/**
* The queue ID.
*/
public val queueId: kotlin.String? = builder.queueId
/**
* The run status of the task.
*/
public val runStatus: aws.sdk.kotlin.services.deadline.model.TaskRunStatus? = builder.runStatus
/**
* The date and time the resource started running.
*/
public val startedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.startedAt
/**
* The step ID.
*/
public val stepId: kotlin.String? = builder.stepId
/**
* The run status that the task is being updated to.
*/
public val targetRunStatus: aws.sdk.kotlin.services.deadline.model.TaskTargetRunStatus? = builder.targetRunStatus
/**
* The task ID.
*/
public val taskId: kotlin.String? = builder.taskId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.TaskSearchSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TaskSearchSummary(")
append("endedAt=$endedAt,")
append("failureRetryCount=$failureRetryCount,")
append("jobId=$jobId,")
append("parameters=*** Sensitive Data Redacted ***,")
append("queueId=$queueId,")
append("runStatus=$runStatus,")
append("startedAt=$startedAt,")
append("stepId=$stepId,")
append("targetRunStatus=$targetRunStatus,")
append("taskId=$taskId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = endedAt?.hashCode() ?: 0
result = 31 * result + (failureRetryCount ?: 0)
result = 31 * result + (jobId?.hashCode() ?: 0)
result = 31 * result + (parameters?.hashCode() ?: 0)
result = 31 * result + (queueId?.hashCode() ?: 0)
result = 31 * result + (runStatus?.hashCode() ?: 0)
result = 31 * result + (startedAt?.hashCode() ?: 0)
result = 31 * result + (stepId?.hashCode() ?: 0)
result = 31 * result + (targetRunStatus?.hashCode() ?: 0)
result = 31 * result + (taskId?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as TaskSearchSummary
if (endedAt != other.endedAt) return false
if (failureRetryCount != other.failureRetryCount) return false
if (jobId != other.jobId) return false
if (parameters != other.parameters) return false
if (queueId != other.queueId) return false
if (runStatus != other.runStatus) return false
if (startedAt != other.startedAt) return false
if (stepId != other.stepId) return false
if (targetRunStatus != other.targetRunStatus) return false
if (taskId != other.taskId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.TaskSearchSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The date and time the resource ended running.
*/
public var endedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The number of times that the task failed and was retried.
*/
public var failureRetryCount: kotlin.Int? = null
/**
* The job ID.
*/
public var jobId: kotlin.String? = null
/**
* The parameters to search for.
*/
public var parameters: Map? = null
/**
* The queue ID.
*/
public var queueId: kotlin.String? = null
/**
* The run status of the task.
*/
public var runStatus: aws.sdk.kotlin.services.deadline.model.TaskRunStatus? = null
/**
* The date and time the resource started running.
*/
public var startedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The step ID.
*/
public var stepId: kotlin.String? = null
/**
* The run status that the task is being updated to.
*/
public var targetRunStatus: aws.sdk.kotlin.services.deadline.model.TaskTargetRunStatus? = null
/**
* The task ID.
*/
public var taskId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.TaskSearchSummary) : this() {
this.endedAt = x.endedAt
this.failureRetryCount = x.failureRetryCount
this.jobId = x.jobId
this.parameters = x.parameters
this.queueId = x.queueId
this.runStatus = x.runStatus
this.startedAt = x.startedAt
this.stepId = x.stepId
this.targetRunStatus = x.targetRunStatus
this.taskId = x.taskId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.TaskSearchSummary = TaskSearchSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}