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

com.pulumi.kubernetes.discovery.v1.kotlin.inputs.EndpointHintsPatchArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.discovery.v1.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.kubernetes.discovery.v1.inputs.EndpointHintsPatchArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * EndpointHints provides hints describing how an endpoint should be consumed.
 * @property forZones forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.
 */
public data class EndpointHintsPatchArgs(
    public val forZones: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.discovery.v1.inputs.EndpointHintsPatchArgs =
        com.pulumi.kubernetes.discovery.v1.inputs.EndpointHintsPatchArgs.builder()
            .forZones(
                forZones?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [EndpointHintsPatchArgs].
 */
@PulumiTagMarker
public class EndpointHintsPatchArgsBuilder internal constructor() {
    private var forZones: Output>? = null

    /**
     * @param value forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.
     */
    @JvmName("qfekodksuoqakenw")
    public suspend fun forZones(`value`: Output>) {
        this.forZones = value
    }

    @JvmName("taaqwoejpxexwuat")
    public suspend fun forZones(vararg values: Output) {
        this.forZones = Output.all(values.asList())
    }

    /**
     * @param values forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.
     */
    @JvmName("vvyggbqphgwikkct")
    public suspend fun forZones(values: List>) {
        this.forZones = Output.all(values)
    }

    /**
     * @param value forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.
     */
    @JvmName("iitrxyiqxetamcul")
    public suspend fun forZones(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.forZones = mapped
    }

    /**
     * @param argument forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.
     */
    @JvmName("mlcdywhjjojemwbd")
    public suspend fun forZones(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ForZonePatchArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.forZones = mapped
    }

    /**
     * @param argument forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.
     */
    @JvmName("ocxvbrgkorddvupp")
    public suspend fun forZones(vararg argument: suspend ForZonePatchArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ForZonePatchArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.forZones = mapped
    }

    /**
     * @param argument forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.
     */
    @JvmName("tsllglticwqnxnqf")
    public suspend fun forZones(argument: suspend ForZonePatchArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ForZonePatchArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.forZones = mapped
    }

    /**
     * @param values forZones indicates the zone(s) this endpoint should be consumed by to enable topology aware routing.
     */
    @JvmName("ckldnssitrsfkvrw")
    public suspend fun forZones(vararg values: ForZonePatchArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.forZones = mapped
    }

    internal fun build(): EndpointHintsPatchArgs = EndpointHintsPatchArgs(
        forZones = forZones,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy