commonMain.aws.sdk.kotlin.services.eventbridge.model.BatchArrayProperties.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eventbridge-jvm Show documentation
Show all versions of eventbridge-jvm Show documentation
The AWS SDK for Kotlin client for EventBridge
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.eventbridge.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The array properties for the submitted job, such as the size of the array. The array size can be between 2 and 10,000. If you specify array properties for a job, it becomes an array job. This parameter is used only if the target is an Batch job.
*/
public class BatchArrayProperties private constructor(builder: Builder) {
/**
* The size of the array, if this is an array batch job. Valid values are integers between 2 and 10,000.
*/
public val size: kotlin.Int = builder.size
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eventbridge.model.BatchArrayProperties = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchArrayProperties(")
append("size=$size")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = size
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 BatchArrayProperties
if (size != other.size) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eventbridge.model.BatchArrayProperties = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The size of the array, if this is an array batch job. Valid values are integers between 2 and 10,000.
*/
public var size: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eventbridge.model.BatchArrayProperties) : this() {
this.size = x.size
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eventbridge.model.BatchArrayProperties = BatchArrayProperties(this)
internal fun correctErrors(): Builder {
return this
}
}
}