commonMain.aws.sdk.kotlin.services.deadline.model.StepDetailsEntity.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.content.Document
/**
* The details of a step entity.
*/
public class StepDetailsEntity private constructor(builder: Builder) {
/**
* The dependencies for a step.
*/
public val dependencies: List = requireNotNull(builder.dependencies) { "A non-null value must be provided for dependencies" }
/**
* The job ID.
*/
public val jobId: kotlin.String = requireNotNull(builder.jobId) { "A non-null value must be provided for jobId" }
/**
* The schema version for a step template.
*/
public val schemaVersion: kotlin.String = requireNotNull(builder.schemaVersion) { "A non-null value must be provided for schemaVersion" }
/**
* The step ID.
*/
public val stepId: kotlin.String = requireNotNull(builder.stepId) { "A non-null value must be provided for stepId" }
/**
* The template for a step.
*/
public val template: aws.smithy.kotlin.runtime.content.Document? = builder.template
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.deadline.model.StepDetailsEntity = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StepDetailsEntity(")
append("dependencies=$dependencies,")
append("jobId=$jobId,")
append("schemaVersion=$schemaVersion,")
append("stepId=$stepId,")
append("template=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dependencies.hashCode()
result = 31 * result + (jobId.hashCode())
result = 31 * result + (schemaVersion.hashCode())
result = 31 * result + (stepId.hashCode())
result = 31 * result + (template?.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 StepDetailsEntity
if (dependencies != other.dependencies) return false
if (jobId != other.jobId) return false
if (schemaVersion != other.schemaVersion) return false
if (stepId != other.stepId) return false
if (template != other.template) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.deadline.model.StepDetailsEntity = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The dependencies for a step.
*/
public var dependencies: List? = null
/**
* The job ID.
*/
public var jobId: kotlin.String? = null
/**
* The schema version for a step template.
*/
public var schemaVersion: kotlin.String? = null
/**
* The step ID.
*/
public var stepId: kotlin.String? = null
/**
* The template for a step.
*/
public var template: aws.smithy.kotlin.runtime.content.Document? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.deadline.model.StepDetailsEntity) : this() {
this.dependencies = x.dependencies
this.jobId = x.jobId
this.schemaVersion = x.schemaVersion
this.stepId = x.stepId
this.template = x.template
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.deadline.model.StepDetailsEntity = StepDetailsEntity(this)
internal fun correctErrors(): Builder {
if (dependencies == null) dependencies = emptyList()
if (jobId == null) jobId = ""
if (schemaVersion == null) schemaVersion = ""
if (stepId == null) stepId = ""
return this
}
}
}