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

com.pulumi.kubernetes.extensions.v1beta1.kotlin.inputs.HTTPIngressRuleValueArgs.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.extensions.v1beta1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.extensions.v1beta1.inputs.HTTPIngressRuleValueArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.
 * @property paths A collection of paths that map requests to backends.
 */
public data class HTTPIngressRuleValueArgs(
    public val paths: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.extensions.v1beta1.inputs.HTTPIngressRuleValueArgs =
        com.pulumi.kubernetes.extensions.v1beta1.inputs.HTTPIngressRuleValueArgs.builder()
            .paths(
                paths.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value A collection of paths that map requests to backends.
     */
    @JvmName("lgojckbjlcvjjofi")
    public suspend fun paths(`value`: Output>) {
        this.paths = value
    }

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

    /**
     * @param values A collection of paths that map requests to backends.
     */
    @JvmName("xgmvqrtaltchchkj")
    public suspend fun paths(values: List>) {
        this.paths = Output.all(values)
    }

    /**
     * @param value A collection of paths that map requests to backends.
     */
    @JvmName("ytpbjiftggjqqgai")
    public suspend fun paths(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.paths = mapped
    }

    /**
     * @param argument A collection of paths that map requests to backends.
     */
    @JvmName("qphmiiffnqwvsoca")
    public suspend fun paths(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            HTTPIngressPathArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.paths = mapped
    }

    /**
     * @param argument A collection of paths that map requests to backends.
     */
    @JvmName("pqerahkuysextoxu")
    public suspend fun paths(vararg argument: suspend HTTPIngressPathArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            HTTPIngressPathArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.paths = mapped
    }

    /**
     * @param argument A collection of paths that map requests to backends.
     */
    @JvmName("iyiijhkbgsncsark")
    public suspend fun paths(argument: suspend HTTPIngressPathArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(HTTPIngressPathArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.paths = mapped
    }

    /**
     * @param values A collection of paths that map requests to backends.
     */
    @JvmName("khvdvgwmbyvrjxlh")
    public suspend fun paths(vararg values: HTTPIngressPathArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.paths = mapped
    }

    internal fun build(): HTTPIngressRuleValueArgs = HTTPIngressRuleValueArgs(
        paths = paths ?: throw PulumiNullFieldException("paths"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy