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

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

/**
 *
 * @property containerPort Port number the container listens on. This must be a valid TCP port number, 0 < containerPort < 65536.
 * @property name If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
 */
public data class JobTemplateTemplateContainerPortArgs(
    public val containerPort: Output? = null,
    public val name: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateContainerPortArgs =
        com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateContainerPortArgs.builder()
            .containerPort(containerPort?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [JobTemplateTemplateContainerPortArgs].
 */
@PulumiTagMarker
public class JobTemplateTemplateContainerPortArgsBuilder internal constructor() {
    private var containerPort: Output? = null

    private var name: Output? = null

    /**
     * @param value Port number the container listens on. This must be a valid TCP port number, 0 < containerPort < 65536.
     */
    @JvmName("evtqcpajgdgbuvou")
    public suspend fun containerPort(`value`: Output) {
        this.containerPort = value
    }

    /**
     * @param value If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
     */
    @JvmName("icskdqocogkmcvxa")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Port number the container listens on. This must be a valid TCP port number, 0 < containerPort < 65536.
     */
    @JvmName("aqoihmfehehcreqj")
    public suspend fun containerPort(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerPort = mapped
    }

    /**
     * @param value If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
     */
    @JvmName("taiiuknjrqsxjxrf")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): JobTemplateTemplateContainerPortArgs = JobTemplateTemplateContainerPortArgs(
        containerPort = containerPort,
        name = name,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy