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

com.pulumi.azure.containerservice.kotlin.inputs.GroupContainerPortArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.containerservice.kotlin.inputs

import com.pulumi.azure.containerservice.inputs.GroupContainerPortArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property port The port number the container will expose. Changing this forces a new resource to be created.
 * @property protocol The network protocol associated with port. Possible values are `TCP` & `UDP`. Changing this forces a new resource to be created. Defaults to `TCP`.
 * > **Note:** Omitting these blocks will default the exposed ports on the group to all ports on all containers defined in the `container` blocks of this group.
 */
public data class GroupContainerPortArgs(
    public val port: Output? = null,
    public val protocol: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerservice.inputs.GroupContainerPortArgs =
        com.pulumi.azure.containerservice.inputs.GroupContainerPortArgs.builder()
            .port(port?.applyValue({ args0 -> args0 }))
            .protocol(protocol?.applyValue({ args0 -> args0 })).build()
}

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

    private var protocol: Output? = null

    /**
     * @param value The port number the container will expose. Changing this forces a new resource to be created.
     */
    @JvmName("xkuvugkiqodpvuee")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value The network protocol associated with port. Possible values are `TCP` & `UDP`. Changing this forces a new resource to be created. Defaults to `TCP`.
     * > **Note:** Omitting these blocks will default the exposed ports on the group to all ports on all containers defined in the `container` blocks of this group.
     */
    @JvmName("mfjofmeqbpgneona")
    public suspend fun protocol(`value`: Output) {
        this.protocol = value
    }

    /**
     * @param value The port number the container will expose. Changing this forces a new resource to be created.
     */
    @JvmName("dodfhcqnwcfkqwqv")
    public suspend fun port(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.port = mapped
    }

    /**
     * @param value The network protocol associated with port. Possible values are `TCP` & `UDP`. Changing this forces a new resource to be created. Defaults to `TCP`.
     * > **Note:** Omitting these blocks will default the exposed ports on the group to all ports on all containers defined in the `container` blocks of this group.
     */
    @JvmName("cighmqigcqkgekqk")
    public suspend fun protocol(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.protocol = mapped
    }

    internal fun build(): GroupContainerPortArgs = GroupContainerPortArgs(
        port = port,
        protocol = protocol,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy