
com.pulumi.azure.batch.kotlin.inputs.PoolNodePlacementArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.batch.kotlin.inputs
import com.pulumi.azure.batch.inputs.PoolNodePlacementArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property policy The placement policy for allocating nodes in the pool. Values are: "Regional": All nodes in the pool will be allocated in the same region; "Zonal": Nodes in the pool will be spread across different zones with the best effort balancing. Defaults to `Regional`.
*/
public data class PoolNodePlacementArgs(
public val policy: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.batch.inputs.PoolNodePlacementArgs =
com.pulumi.azure.batch.inputs.PoolNodePlacementArgs.builder()
.policy(policy?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PoolNodePlacementArgs].
*/
@PulumiTagMarker
public class PoolNodePlacementArgsBuilder internal constructor() {
private var policy: Output? = null
/**
* @param value The placement policy for allocating nodes in the pool. Values are: "Regional": All nodes in the pool will be allocated in the same region; "Zonal": Nodes in the pool will be spread across different zones with the best effort balancing. Defaults to `Regional`.
*/
@JvmName("fydqxmqmvhewqoid")
public suspend fun policy(`value`: Output) {
this.policy = value
}
/**
* @param value The placement policy for allocating nodes in the pool. Values are: "Regional": All nodes in the pool will be allocated in the same region; "Zonal": Nodes in the pool will be spread across different zones with the best effort balancing. Defaults to `Regional`.
*/
@JvmName("wfrwmufhavwxmbwr")
public suspend fun policy(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policy = mapped
}
internal fun build(): PoolNodePlacementArgs = PoolNodePlacementArgs(
policy = policy,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy