commonMain.aws.sdk.kotlin.services.deadline.model.StepSearchSummary.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 step search.
*/
public class StepSearchSummary private constructor(builder: Builder) {
/**
* The date and time the resource was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The date and time the resource ended running.
*/
public val endedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.endedAt
/**
* The job ID.
*/
public val jobId: kotlin.String? = builder.jobId
/**
* The life cycle status.
*/
public val lifecycleStatus: aws.sdk.kotlin.services.deadline.model.StepLifecycleStatus? = builder.lifecycleStatus
/**
* The life cycle status message.
*/
public val lifecycleStatusMessage: kotlin.String? = builder.lifecycleStatusMessage
/**
* The step name.
*/
public val name: kotlin.String? = builder.name
/**
* The parameters and combination expressions for the search.
*/
public val parameterSpace: aws.sdk.kotlin.services.deadline.model.ParameterSpace? = builder.parameterSpace
/**
* The queue ID.
*/
public val queueId: kotlin.String? = builder.queueId
/**
* 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 task status to start with on the job.
*/
public val targetTaskRunStatus: aws.sdk.kotlin.services.deadline.model.StepTargetTaskRunStatus? = builder.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.
*/
public val taskRunStatus: aws.sdk.kotlin.services.deadline.model.TaskRunStatus? = builder.taskRunStatus
/**
* The number of tasks running on the job.
*/
public val taskRunStatusCounts: Map? = builder.taskRunStatusCounts
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.StepSearchSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StepSearchSummary(")
append("createdAt=$createdAt,")
append("endedAt=$endedAt,")
append("jobId=$jobId,")
append("lifecycleStatus=$lifecycleStatus,")
append("lifecycleStatusMessage=$lifecycleStatusMessage,")
append("name=$name,")
append("parameterSpace=$parameterSpace,")
append("queueId=$queueId,")
append("startedAt=$startedAt,")
append("stepId=$stepId,")
append("targetTaskRunStatus=$targetTaskRunStatus,")
append("taskRunStatus=$taskRunStatus,")
append("taskRunStatusCounts=$taskRunStatusCounts")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (endedAt?.hashCode() ?: 0)
result = 31 * result + (jobId?.hashCode() ?: 0)
result = 31 * result + (lifecycleStatus?.hashCode() ?: 0)
result = 31 * result + (lifecycleStatusMessage?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (parameterSpace?.hashCode() ?: 0)
result = 31 * result + (queueId?.hashCode() ?: 0)
result = 31 * result + (startedAt?.hashCode() ?: 0)
result = 31 * result + (stepId?.hashCode() ?: 0)
result = 31 * result + (targetTaskRunStatus?.hashCode() ?: 0)
result = 31 * result + (taskRunStatus?.hashCode() ?: 0)
result = 31 * result + (taskRunStatusCounts?.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 StepSearchSummary
if (createdAt != other.createdAt) return false
if (endedAt != other.endedAt) return false
if (jobId != other.jobId) return false
if (lifecycleStatus != other.lifecycleStatus) return false
if (lifecycleStatusMessage != other.lifecycleStatusMessage) return false
if (name != other.name) return false
if (parameterSpace != other.parameterSpace) return false
if (queueId != other.queueId) return false
if (startedAt != other.startedAt) return false
if (stepId != other.stepId) return false
if (targetTaskRunStatus != other.targetTaskRunStatus) return false
if (taskRunStatus != other.taskRunStatus) return false
if (taskRunStatusCounts != other.taskRunStatusCounts) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.StepSearchSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The date and time the resource was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The date and time the resource ended running.
*/
public var endedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The job ID.
*/
public var jobId: kotlin.String? = null
/**
* The life cycle status.
*/
public var lifecycleStatus: aws.sdk.kotlin.services.deadline.model.StepLifecycleStatus? = null
/**
* The life cycle status message.
*/
public var lifecycleStatusMessage: kotlin.String? = null
/**
* The step name.
*/
public var name: kotlin.String? = null
/**
* The parameters and combination expressions for the search.
*/
public var parameterSpace: aws.sdk.kotlin.services.deadline.model.ParameterSpace? = null
/**
* The queue ID.
*/
public var queueId: kotlin.String? = 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 task status to start with on the job.
*/
public var targetTaskRunStatus: aws.sdk.kotlin.services.deadline.model.StepTargetTaskRunStatus? = null
/**
* 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.
*/
public var taskRunStatus: aws.sdk.kotlin.services.deadline.model.TaskRunStatus? = null
/**
* The number of tasks running on the job.
*/
public var taskRunStatusCounts: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.StepSearchSummary) : this() {
this.createdAt = x.createdAt
this.endedAt = x.endedAt
this.jobId = x.jobId
this.lifecycleStatus = x.lifecycleStatus
this.lifecycleStatusMessage = x.lifecycleStatusMessage
this.name = x.name
this.parameterSpace = x.parameterSpace
this.queueId = x.queueId
this.startedAt = x.startedAt
this.stepId = x.stepId
this.targetTaskRunStatus = x.targetTaskRunStatus
this.taskRunStatus = x.taskRunStatus
this.taskRunStatusCounts = x.taskRunStatusCounts
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.StepSearchSummary = StepSearchSummary(this)
/**
* construct an [aws.sdk.kotlin.services.deadline.model.ParameterSpace] inside the given [block]
*/
public fun parameterSpace(block: aws.sdk.kotlin.services.deadline.model.ParameterSpace.Builder.() -> kotlin.Unit) {
this.parameterSpace = aws.sdk.kotlin.services.deadline.model.ParameterSpace.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}