
commonMain.aws.sdk.kotlin.services.batch.model.RuntimePlatform.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 compute environment architecture for Batch jobs on Fargate.
*/
public class RuntimePlatform private constructor(builder: Builder) {
/**
* The vCPU architecture. The default value is `X86_64`. Valid values are `X86_64` and `ARM64`.
*
* This parameter must be set to `X86_64` for Windows containers.
*/
public val cpuArchitecture: kotlin.String? = builder.cpuArchitecture
/**
* The operating system for the compute environment. Valid values are: `LINUX` (default), `WINDOWS_SERVER_2019_CORE`, `WINDOWS_SERVER_2019_FULL`, `WINDOWS_SERVER_2022_CORE`, and `WINDOWS_SERVER_2022_FULL`.
*
* The following parameters can’t be set for Windows containers: `linuxParameters`, `privileged`, `user`, `ulimits`, `readonlyRootFilesystem`, and `efsVolumeConfiguration`.
*
* The Batch Scheduler checks before registering a task definition with Fargate. If the job requires a Windows container and the first compute environment is `LINUX`, the compute environment is skipped and the next is checked until a Windows-based compute environment is found.
*
* Fargate Spot is not supported for Windows-based containers on Fargate. A job queue will be blocked if a Fargate Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both `FARGATE` and `FARGATE_SPOT` compute environments to the same job queue.
*/
public val operatingSystemFamily: kotlin.String? = builder.operatingSystemFamily
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.batch.model.RuntimePlatform = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RuntimePlatform(")
append("cpuArchitecture=$cpuArchitecture,")
append("operatingSystemFamily=$operatingSystemFamily")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cpuArchitecture?.hashCode() ?: 0
result = 31 * result + (operatingSystemFamily?.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 RuntimePlatform
if (cpuArchitecture != other.cpuArchitecture) return false
if (operatingSystemFamily != other.operatingSystemFamily) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.batch.model.RuntimePlatform = Builder(this).apply(block).build()
public class Builder {
/**
* The vCPU architecture. The default value is `X86_64`. Valid values are `X86_64` and `ARM64`.
*
* This parameter must be set to `X86_64` for Windows containers.
*/
public var cpuArchitecture: kotlin.String? = null
/**
* The operating system for the compute environment. Valid values are: `LINUX` (default), `WINDOWS_SERVER_2019_CORE`, `WINDOWS_SERVER_2019_FULL`, `WINDOWS_SERVER_2022_CORE`, and `WINDOWS_SERVER_2022_FULL`.
*
* The following parameters can’t be set for Windows containers: `linuxParameters`, `privileged`, `user`, `ulimits`, `readonlyRootFilesystem`, and `efsVolumeConfiguration`.
*
* The Batch Scheduler checks before registering a task definition with Fargate. If the job requires a Windows container and the first compute environment is `LINUX`, the compute environment is skipped and the next is checked until a Windows-based compute environment is found.
*
* Fargate Spot is not supported for Windows-based containers on Fargate. A job queue will be blocked if a Fargate Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach both `FARGATE` and `FARGATE_SPOT` compute environments to the same job queue.
*/
public var operatingSystemFamily: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.batch.model.RuntimePlatform) : this() {
this.cpuArchitecture = x.cpuArchitecture
this.operatingSystemFamily = x.operatingSystemFamily
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.batch.model.RuntimePlatform = RuntimePlatform(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy