All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.nomad.kotlin.outputs.ExternalVolumeTopologyRequest.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.4.0.0
Show newest version
@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),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy