com.pulumi.gcp.compute.kotlin.inputs.InstanceGroupNamedPortArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.InstanceGroupNamedPortArgs.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 which the port will be mapped to.
* @property port The port number to map the name to.
*/
public data class InstanceGroupNamedPortArgs(
public val name: Output,
public val port: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceGroupNamedPortArgs =
com.pulumi.gcp.compute.inputs.InstanceGroupNamedPortArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.port(port.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InstanceGroupNamedPortArgs].
*/
@PulumiTagMarker
public class InstanceGroupNamedPortArgsBuilder internal constructor() {
private var name: Output? = null
private var port: Output? = null
/**
* @param value The name which the port will be mapped to.
*/
@JvmName("cqypwumutafrqndc")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The port number to map the name to.
*/
@JvmName("bsbvdqfyllvlpnnd")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value The name which the port will be mapped to.
*/
@JvmName("kkmlxnjwjmajdaey")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The port number to map the name to.
*/
@JvmName("bnonvwebkrtpthvs")
public suspend fun port(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.port = mapped
}
internal fun build(): InstanceGroupNamedPortArgs = InstanceGroupNamedPortArgs(
name = name ?: throw PulumiNullFieldException("name"),
port = port ?: throw PulumiNullFieldException("port"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy