com.pulumi.awsnative.batch.kotlin.inputs.JobDefinitionNodePropertiesArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-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.awsnative.batch.kotlin.inputs
import com.pulumi.awsnative.batch.inputs.JobDefinitionNodePropertiesArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property mainNode Specifies the node index for the main node of a multi-node parallel job. This node index value must be fewer than the number of nodes.
* @property nodeRangeProperties A list of node ranges and their properties that are associated with a multi-node parallel job.
* @property numNodes The number of nodes that are associated with a multi-node parallel job.
*/
public data class JobDefinitionNodePropertiesArgs(
public val mainNode: Output,
public val nodeRangeProperties: Output>,
public val numNodes: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.batch.inputs.JobDefinitionNodePropertiesArgs =
com.pulumi.awsnative.batch.inputs.JobDefinitionNodePropertiesArgs.builder()
.mainNode(mainNode.applyValue({ args0 -> args0 }))
.nodeRangeProperties(
nodeRangeProperties.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.numNodes(numNodes.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [JobDefinitionNodePropertiesArgs].
*/
@PulumiTagMarker
public class JobDefinitionNodePropertiesArgsBuilder internal constructor() {
private var mainNode: Output? = null
private var nodeRangeProperties: Output>? = null
private var numNodes: Output? = null
/**
* @param value Specifies the node index for the main node of a multi-node parallel job. This node index value must be fewer than the number of nodes.
*/
@JvmName("hqdffukamkjlvnmj")
public suspend fun mainNode(`value`: Output) {
this.mainNode = value
}
/**
* @param value A list of node ranges and their properties that are associated with a multi-node parallel job.
*/
@JvmName("obulkqwrfgstaiqw")
public suspend fun nodeRangeProperties(`value`: Output>) {
this.nodeRangeProperties = value
}
@JvmName("hodxevkryhscmjlo")
public suspend fun nodeRangeProperties(vararg values: Output) {
this.nodeRangeProperties = Output.all(values.asList())
}
/**
* @param values A list of node ranges and their properties that are associated with a multi-node parallel job.
*/
@JvmName("wrhjkbnafbvabswl")
public suspend fun nodeRangeProperties(values: List