
commonMain.aws.sdk.kotlin.services.deadline.model.TaskRunSessionActionDefinitionSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.deadline.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The details of a task run in a session action.
*/
public class TaskRunSessionActionDefinitionSummary private constructor(builder: Builder) {
/**
* The step ID.
*/
public val stepId: kotlin.String = requireNotNull(builder.stepId) { "A non-null value must be provided for stepId" }
/**
* The task ID.
*/
public val taskId: kotlin.String = requireNotNull(builder.taskId) { "A non-null value must be provided for taskId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.TaskRunSessionActionDefinitionSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TaskRunSessionActionDefinitionSummary(")
append("stepId=$stepId,")
append("taskId=$taskId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = stepId.hashCode()
result = 31 * result + (taskId.hashCode())
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 TaskRunSessionActionDefinitionSummary
if (stepId != other.stepId) return false
if (taskId != other.taskId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.TaskRunSessionActionDefinitionSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The step ID.
*/
public var stepId: kotlin.String? = null
/**
* The task ID.
*/
public var taskId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.TaskRunSessionActionDefinitionSummary) : this() {
this.stepId = x.stepId
this.taskId = x.taskId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.TaskRunSessionActionDefinitionSummary = TaskRunSessionActionDefinitionSummary(this)
internal fun correctErrors(): Builder {
if (stepId == null) stepId = ""
if (taskId == null) taskId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy