![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.machinelearningservices.kotlin.inputs.MpiArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.machinelearningservices.kotlin.inputs
import com.pulumi.azurenative.machinelearningservices.inputs.MpiArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* MPI distribution configuration.
* @property distributionType Enum to determine the job distribution type.
* Expected value is 'Mpi'.
* @property processCountPerInstance Number of processes per MPI node.
*/
public data class MpiArgs(
public val distributionType: Output,
public val processCountPerInstance: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.machinelearningservices.inputs.MpiArgs =
com.pulumi.azurenative.machinelearningservices.inputs.MpiArgs.builder()
.distributionType(distributionType.applyValue({ args0 -> args0 }))
.processCountPerInstance(processCountPerInstance?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MpiArgs].
*/
@PulumiTagMarker
public class MpiArgsBuilder internal constructor() {
private var distributionType: Output? = null
private var processCountPerInstance: Output? = null
/**
* @param value Enum to determine the job distribution type.
* Expected value is 'Mpi'.
*/
@JvmName("xpcamrfxpcmayekv")
public suspend fun distributionType(`value`: Output) {
this.distributionType = value
}
/**
* @param value Number of processes per MPI node.
*/
@JvmName("irthakkkjwytnvwa")
public suspend fun processCountPerInstance(`value`: Output) {
this.processCountPerInstance = value
}
/**
* @param value Enum to determine the job distribution type.
* Expected value is 'Mpi'.
*/
@JvmName("kpomywotdveelvcs")
public suspend fun distributionType(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.distributionType = mapped
}
/**
* @param value Number of processes per MPI node.
*/
@JvmName("tomfydtbsomusvqq")
public suspend fun processCountPerInstance(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.processCountPerInstance = mapped
}
internal fun build(): MpiArgs = MpiArgs(
distributionType = distributionType ?: throw PulumiNullFieldException("distributionType"),
processCountPerInstance = processCountPerInstance,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy