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

com.pulumi.gcp.cloudrunv2.kotlin.inputs.ServiceTemplateContainerStartupProbeHttpGetArgs.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.cloudrunv2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateContainerStartupProbeHttpGetArgs.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. Defaults to '/'.
 * @property port Port number to access on the container. Must be in the range 1 to 65535.
 * If not specified, defaults to the same value as container.ports[0].containerPort.
 */
public data class ServiceTemplateContainerStartupProbeHttpGetArgs(
    public val httpHeaders: Output>? =
        null,
    public val path: Output? = null,
    public val port: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateContainerStartupProbeHttpGetArgs =
        com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateContainerStartupProbeHttpGetArgs.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 [ServiceTemplateContainerStartupProbeHttpGetArgs].
 */
@PulumiTagMarker
public class ServiceTemplateContainerStartupProbeHttpGetArgsBuilder 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("srjrmodrywjlvgwh")
    public suspend fun httpHeaders(`value`: Output>) {
        this.httpHeaders = value
    }

    @JvmName("lyboslagtctgjtbq")
    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("wmoyhjqmumnjkhgh")
    public suspend fun httpHeaders(values: List>) {
        this.httpHeaders = Output.all(values)
    }

    /**
     * @param value Path to access on the HTTP server. Defaults to '/'.
     */
    @JvmName("bfdrrqsspfvmcvra")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value Port number to access on the container. Must be in the range 1 to 65535.
     * If not specified, defaults to the same value as container.ports[0].containerPort.
     */
    @JvmName("yiobipafadsvtnnv")
    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("pqwqdrnxylvwnhey")
    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("vphmccuxyqrtbcek")
    public suspend fun httpHeaders(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ServiceTemplateContainerStartupProbeHttpGetHttpHeaderArgsBuilder().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("vjbtdbtwajldnxtu")
    public suspend fun httpHeaders(vararg argument: suspend ServiceTemplateContainerStartupProbeHttpGetHttpHeaderArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ServiceTemplateContainerStartupProbeHttpGetHttpHeaderArgsBuilder().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("rvkaseuuetefifax")
    public suspend fun httpHeaders(argument: suspend ServiceTemplateContainerStartupProbeHttpGetHttpHeaderArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ServiceTemplateContainerStartupProbeHttpGetHttpHeaderArgsBuilder().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("ibqbhufadptwsldr")
    public suspend fun httpHeaders(vararg values: ServiceTemplateContainerStartupProbeHttpGetHttpHeaderArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.httpHeaders = mapped
    }

    /**
     * @param value Path to access on the HTTP server. Defaults to '/'.
     */
    @JvmName("yrjavbjisrjtqbwq")
    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. Must be in the range 1 to 65535.
     * If not specified, defaults to the same value as container.ports[0].containerPort.
     */
    @JvmName("pvnkdloyhsmfxogi")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy