com.pulumi.gcp.compute.kotlin.inputs.NodeTemplateServerBindingArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.compute.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.NodeTemplateServerBindingArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property type Type of server binding policy. If `RESTART_NODE_ON_ANY_SERVER`,
* nodes using this template will restart on any physical server
* following a maintenance event.
* If `RESTART_NODE_ON_MINIMAL_SERVER`, nodes using this template
* will restart on the same physical server following a maintenance
* event, instead of being live migrated to or restarted on a new
* physical server. This option may be useful if you are using
* software licenses tied to the underlying server characteristics
* such as physical sockets or cores, to avoid the need for
* additional licenses when maintenance occurs. However, VMs on such
* nodes will experience outages while maintenance is applied.
* Possible values are: `RESTART_NODE_ON_ANY_SERVER`, `RESTART_NODE_ON_MINIMAL_SERVERS`.
*/
public data class NodeTemplateServerBindingArgs(
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.NodeTemplateServerBindingArgs =
com.pulumi.gcp.compute.inputs.NodeTemplateServerBindingArgs.builder()
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NodeTemplateServerBindingArgs].
*/
@PulumiTagMarker
public class NodeTemplateServerBindingArgsBuilder internal constructor() {
private var type: Output? = null
/**
* @param value Type of server binding policy. If `RESTART_NODE_ON_ANY_SERVER`,
* nodes using this template will restart on any physical server
* following a maintenance event.
* If `RESTART_NODE_ON_MINIMAL_SERVER`, nodes using this template
* will restart on the same physical server following a maintenance
* event, instead of being live migrated to or restarted on a new
* physical server. This option may be useful if you are using
* software licenses tied to the underlying server characteristics
* such as physical sockets or cores, to avoid the need for
* additional licenses when maintenance occurs. However, VMs on such
* nodes will experience outages while maintenance is applied.
* Possible values are: `RESTART_NODE_ON_ANY_SERVER`, `RESTART_NODE_ON_MINIMAL_SERVERS`.
*/
@JvmName("nkwthoajfwnybwou")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Type of server binding policy. If `RESTART_NODE_ON_ANY_SERVER`,
* nodes using this template will restart on any physical server
* following a maintenance event.
* If `RESTART_NODE_ON_MINIMAL_SERVER`, nodes using this template
* will restart on the same physical server following a maintenance
* event, instead of being live migrated to or restarted on a new
* physical server. This option may be useful if you are using
* software licenses tied to the underlying server characteristics
* such as physical sockets or cores, to avoid the need for
* additional licenses when maintenance occurs. However, VMs on such
* nodes will experience outages while maintenance is applied.
* Possible values are: `RESTART_NODE_ON_ANY_SERVER`, `RESTART_NODE_ON_MINIMAL_SERVERS`.
*/
@JvmName("yuorniveaasqxdfe")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): NodeTemplateServerBindingArgs = NodeTemplateServerBindingArgs(
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy