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

com.pulumi.gcp.compute.kotlin.inputs.RegionInstanceGroupManagerNamedPortArgs.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.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RegionInstanceGroupManagerNamedPortArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property name The name of the port.
 * @property port The port number.
 * - - -
 */
public data class RegionInstanceGroupManagerNamedPortArgs(
    public val name: Output,
    public val port: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RegionInstanceGroupManagerNamedPortArgs =
        com.pulumi.gcp.compute.inputs.RegionInstanceGroupManagerNamedPortArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .port(port.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [RegionInstanceGroupManagerNamedPortArgs].
 */
@PulumiTagMarker
public class RegionInstanceGroupManagerNamedPortArgsBuilder internal constructor() {
    private var name: Output? = null

    private var port: Output? = null

    /**
     * @param value The name of the port.
     */
    @JvmName("ixymupmjmofjijjp")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The port number.
     * - - -
     */
    @JvmName("pyuoysjwqoxhajif")
    public suspend fun port(`value`: Output) {
        this.port = value
    }

    /**
     * @param value The name of the port.
     */
    @JvmName("yxjsayqjnftprrtn")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The port number.
     * - - -
     */
    @JvmName("pauoplqqkccmyvwq")
    public suspend fun port(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.port = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy