
commonMain.aws.sdk.kotlin.services.braket.model.JobStoppingCondition.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.braket.model
/**
* Specifies limits for how long an Amazon Braket job can run.
*/
public class JobStoppingCondition private constructor(builder: Builder) {
/**
* The maximum length of time, in seconds, that an Amazon Braket job can run.
*/
public val maxRuntimeInSeconds: kotlin.Int? = builder.maxRuntimeInSeconds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.braket.model.JobStoppingCondition = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("JobStoppingCondition(")
append("maxRuntimeInSeconds=$maxRuntimeInSeconds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maxRuntimeInSeconds ?: 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 JobStoppingCondition
if (maxRuntimeInSeconds != other.maxRuntimeInSeconds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.braket.model.JobStoppingCondition = Builder(this).apply(block).build()
public class Builder {
/**
* The maximum length of time, in seconds, that an Amazon Braket job can run.
*/
public var maxRuntimeInSeconds: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.braket.model.JobStoppingCondition) : this() {
this.maxRuntimeInSeconds = x.maxRuntimeInSeconds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.braket.model.JobStoppingCondition = JobStoppingCondition(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy