com.pulumi.nomad.kotlin.inputs.ExternalVolumeTopologyRequestArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-nomad-kotlin Show documentation
Show all versions of pulumi-nomad-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.nomad.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.nomad.inputs.ExternalVolumeTopologyRequestArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property preferred `(``Topology``: )` - Preferred topologies indicate that the volume should be created in a location accessible from some of the listed topologies.
* @property required `(``Topology``: )` - Required topologies indicate that the volume must be created in a location accessible from all the listed topologies.
*/
public data class ExternalVolumeTopologyRequestArgs(
public val preferred: Output? = null,
public val required: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.nomad.inputs.ExternalVolumeTopologyRequestArgs =
com.pulumi.nomad.inputs.ExternalVolumeTopologyRequestArgs.builder()
.preferred(preferred?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.required(required?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ExternalVolumeTopologyRequestArgs].
*/
@PulumiTagMarker
public class ExternalVolumeTopologyRequestArgsBuilder internal constructor() {
private var preferred: Output? = null
private var required: Output? = null
/**
* @param value `(``Topology``: )` - Preferred topologies indicate that the volume should be created in a location accessible from some of the listed topologies.
*/
@JvmName("omrbhxlpcpvlgpxb")
public suspend fun preferred(`value`: Output) {
this.preferred = value
}
/**
* @param value `(``Topology``: )` - Required topologies indicate that the volume must be created in a location accessible from all the listed topologies.
*/
@JvmName("hvumasobxrlsnonm")
public suspend fun required(`value`: Output) {
this.required = value
}
/**
* @param value `(``Topology``: )` - Preferred topologies indicate that the volume should be created in a location accessible from some of the listed topologies.
*/
@JvmName("cykusjlgetbcmxue")
public suspend fun preferred(`value`: ExternalVolumeTopologyRequestPreferredArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.preferred = mapped
}
/**
* @param argument `(``Topology``: )` - Preferred topologies indicate that the volume should be created in a location accessible from some of the listed topologies.
*/
@JvmName("umtuehndvsfuyaot")
public suspend fun preferred(argument: suspend ExternalVolumeTopologyRequestPreferredArgsBuilder.() -> Unit) {
val toBeMapped = ExternalVolumeTopologyRequestPreferredArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.preferred = mapped
}
/**
* @param value `(``Topology``: )` - Required topologies indicate that the volume must be created in a location accessible from all the listed topologies.
*/
@JvmName("yhuffxjjuevmtrxn")
public suspend fun required(`value`: ExternalVolumeTopologyRequestRequiredArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.required = mapped
}
/**
* @param argument `(``Topology``: )` - Required topologies indicate that the volume must be created in a location accessible from all the listed topologies.
*/
@JvmName("uhvqhabbwwtojvgx")
public suspend fun required(argument: suspend ExternalVolumeTopologyRequestRequiredArgsBuilder.() -> Unit) {
val toBeMapped = ExternalVolumeTopologyRequestRequiredArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.required = mapped
}
internal fun build(): ExternalVolumeTopologyRequestArgs = ExternalVolumeTopologyRequestArgs(
preferred = preferred,
required = required,
)
}