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

com.pulumi.gcp.cloudrun.kotlin.inputs.ServiceTemplateSpecContainerLivenessProbeHttpGetArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudrun.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerLivenessProbeHttpGetArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property httpHeaders Custom headers to set in the request. HTTP allows repeated headers.
 * Structure is documented below.
 * @property path Path to access on the HTTP server. If set, it should not be empty string.
 * @property port Port number to access on the container. Number must be in the range 1 to 65535.
 * If not specified, defaults to the same value as container.ports[0].containerPort.
 */
public data class ServiceTemplateSpecContainerLivenessProbeHttpGetArgs(
    public val httpHeaders: Output>? = null,
    public val path: Output? = null,
    public val port: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerLivenessProbeHttpGetArgs =
        com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerLivenessProbeHttpGetArgs.builder()
            .httpHeaders(
                httpHeaders?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .path(path?.applyValue({ args0 -> args0 }))
            .port(port?.applyValue({ args0 -> args0 })).build()
}

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

    private var path: Output? = null

    private var port: Output? = null

    /**
     * @param value Custom headers to set in the request. HTTP allows repeated headers.
     * Structure is documented below.
     */
    @JvmName("bwcujhxbbikxencm")
    public suspend fun httpHeaders(`value`: Output>) {
        this.httpHeaders = value
    }

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

    /**
     * @param values Custom headers to set in the request. HTTP allows repeated headers.
     * Structure is documented below.
     */
    @JvmName("fclghumbtuqrqixr")
    public suspend fun httpHeaders(values: List>) {
        this.httpHeaders = Output.all(values)
    }

    /**
     * @param value Path to access on the HTTP server. If set, it should not be empty string.
     */
    @JvmName("dwkfufopnnhymuem")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value Port number to access on the container. Number must be in the range 1 to 65535.
     * If not specified, defaults to the same value as container.ports[0].containerPort.
     */
    @JvmName("jwvjawwkuwprqmop")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value Custom headers to set in the request. HTTP allows repeated headers.
     * Structure is documented below.
     */
    @JvmName("iojysgcuglpadiqq")
    public suspend fun httpHeaders(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpHeaders = mapped
    }

    /**
     * @param argument Custom headers to set in the request. HTTP allows repeated headers.
     * Structure is documented below.
     */
    @JvmName("bwbrpkgdjkbmxpel")
    public suspend fun httpHeaders(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ServiceTemplateSpecContainerLivenessProbeHttpGetHttpHeaderArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.httpHeaders = mapped
    }

    /**
     * @param argument Custom headers to set in the request. HTTP allows repeated headers.
     * Structure is documented below.
     */
    @JvmName("immhnwiepwfoejkl")
    public suspend fun httpHeaders(vararg argument: suspend ServiceTemplateSpecContainerLivenessProbeHttpGetHttpHeaderArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ServiceTemplateSpecContainerLivenessProbeHttpGetHttpHeaderArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.httpHeaders = mapped
    }

    /**
     * @param argument Custom headers to set in the request. HTTP allows repeated headers.
     * Structure is documented below.
     */
    @JvmName("imckgfyynxaicdvh")
    public suspend fun httpHeaders(argument: suspend ServiceTemplateSpecContainerLivenessProbeHttpGetHttpHeaderArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ServiceTemplateSpecContainerLivenessProbeHttpGetHttpHeaderArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.httpHeaders = mapped
    }

    /**
     * @param values Custom headers to set in the request. HTTP allows repeated headers.
     * Structure is documented below.
     */
    @JvmName("hkutplhepkyrkcow")
    public suspend fun httpHeaders(vararg values: ServiceTemplateSpecContainerLivenessProbeHttpGetHttpHeaderArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.httpHeaders = mapped
    }

    /**
     * @param value Path to access on the HTTP server. If set, it should not be empty string.
     */
    @JvmName("kapdbfcyqxlftdcd")
    public suspend fun path(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.path = mapped
    }

    /**
     * @param value Port number to access on the container. Number must be in the range 1 to 65535.
     * If not specified, defaults to the same value as container.ports[0].containerPort.
     */
    @JvmName("xmcowflfytuhmyni")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    internal fun build(): ServiceTemplateSpecContainerLivenessProbeHttpGetArgs =
        ServiceTemplateSpecContainerLivenessProbeHttpGetArgs(
            httpHeaders = httpHeaders,
            path = path,
            port = port,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy