
commonMain.aws.sdk.kotlin.services.batch.model.ArrayPropertiesSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.batch.model
/**
* An object that represents the array properties of a job.
*/
public class ArrayPropertiesSummary private constructor(builder: Builder) {
/**
* The job index within the array that's associated with this job. This parameter is returned for children of array jobs.
*/
public val index: kotlin.Int? = builder.index
/**
* The size of the array job. This parameter is returned for parent array jobs.
*/
public val size: kotlin.Int? = builder.size
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.batch.model.ArrayPropertiesSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ArrayPropertiesSummary(")
append("index=$index,")
append("size=$size")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = index ?: 0
result = 31 * result + (size ?: 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 ArrayPropertiesSummary
if (index != other.index) return false
if (size != other.size) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.batch.model.ArrayPropertiesSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The job index within the array that's associated with this job. This parameter is returned for children of array jobs.
*/
public var index: kotlin.Int? = null
/**
* The size of the array job. This parameter is returned for parent array jobs.
*/
public var size: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.batch.model.ArrayPropertiesSummary) : this() {
this.index = x.index
this.size = x.size
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.batch.model.ArrayPropertiesSummary = ArrayPropertiesSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy