
commonMain.aws.sdk.kotlin.services.pipes.model.BatchJobDependency.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pipes.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An object that represents an Batch job dependency.
*/
public class BatchJobDependency private constructor(builder: Builder) {
/**
* The job ID of the Batch job that's associated with this dependency.
*/
public val jobId: kotlin.String? = builder.jobId
/**
* The type of the job dependency.
*/
public val type: aws.sdk.kotlin.services.pipes.model.BatchJobDependencyType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pipes.model.BatchJobDependency = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchJobDependency(")
append("jobId=$jobId,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = jobId?.hashCode() ?: 0
result = 31 * result + (type?.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 BatchJobDependency
if (jobId != other.jobId) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pipes.model.BatchJobDependency = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The job ID of the Batch job that's associated with this dependency.
*/
public var jobId: kotlin.String? = null
/**
* The type of the job dependency.
*/
public var type: aws.sdk.kotlin.services.pipes.model.BatchJobDependencyType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pipes.model.BatchJobDependency) : this() {
this.jobId = x.jobId
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pipes.model.BatchJobDependency = BatchJobDependency(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy