commonMain.aws.sdk.kotlin.services.glue.model.ExecutionProperty.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An execution property of a job.
*/
public class ExecutionProperty private constructor(builder: Builder) {
/**
* The maximum number of concurrent runs allowed for the job. The default is 1. An error is returned when this threshold is reached. The maximum value you can specify is controlled by a service limit.
*/
public val maxConcurrentRuns: kotlin.Int = builder.maxConcurrentRuns
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.ExecutionProperty = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExecutionProperty(")
append("maxConcurrentRuns=$maxConcurrentRuns")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maxConcurrentRuns
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 ExecutionProperty
if (maxConcurrentRuns != other.maxConcurrentRuns) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.ExecutionProperty = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The maximum number of concurrent runs allowed for the job. The default is 1. An error is returned when this threshold is reached. The maximum value you can specify is controlled by a service limit.
*/
public var maxConcurrentRuns: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.ExecutionProperty) : this() {
this.maxConcurrentRuns = x.maxConcurrentRuns
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.ExecutionProperty = ExecutionProperty(this)
internal fun correctErrors(): Builder {
return this
}
}
}