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

com.pulumi.gcp.cloudrunv2.kotlin.inputs.ServiceTemplateContainerLivenessProbeTcpSocketArgs.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.ServiceTemplateContainerLivenessProbeTcpSocketArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @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 ServiceTemplateContainerLivenessProbeTcpSocketArgs(
    public val port: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateContainerLivenessProbeTcpSocketArgs =
        com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateContainerLivenessProbeTcpSocketArgs.builder()
            .port(port.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceTemplateContainerLivenessProbeTcpSocketArgs].
 */
@PulumiTagMarker
public class ServiceTemplateContainerLivenessProbeTcpSocketArgsBuilder internal constructor() {
    private var port: Output? = null

    /**
     * @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("fsufuhvrtwbwbrhd")
    public suspend fun port(`value`: Output) {
        this.port = 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("mxiusmtimftolgpd")
    public suspend fun port(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.port = mapped
    }

    internal fun build(): ServiceTemplateContainerLivenessProbeTcpSocketArgs =
        ServiceTemplateContainerLivenessProbeTcpSocketArgs(
            port = port ?: throw PulumiNullFieldException("port"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy