com.pulumi.nomad.kotlin.outputs.ExternalVolumeTopologyRequest.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.outputs
import kotlin.Suppress
/**
*
* @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 ExternalVolumeTopologyRequest(
public val preferred: ExternalVolumeTopologyRequestPreferred? = null,
public val required: ExternalVolumeTopologyRequestRequired? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.nomad.outputs.ExternalVolumeTopologyRequest): ExternalVolumeTopologyRequest = ExternalVolumeTopologyRequest(
preferred = javaType.preferred().map({ args0 ->
args0.let({ args0 ->
com.pulumi.nomad.kotlin.outputs.ExternalVolumeTopologyRequestPreferred.Companion.toKotlin(args0)
})
}).orElse(null),
required = javaType.required().map({ args0 ->
args0.let({ args0 ->
com.pulumi.nomad.kotlin.outputs.ExternalVolumeTopologyRequestRequired.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}