com.pulumi.gcp.cloudrun.kotlin.inputs.ServiceTemplateSpecContainerPortArgs.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.cloudrun.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerPortArgs.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 port number (between 1 and 65535). Defaults to "8080".
* @property name If specified, used to specify which protocol to use. Allowed values are "http1" (HTTP/1) and "h2c" (HTTP/2 end-to-end). Defaults to "http1".
* @property protocol Protocol for port. Must be "TCP". Defaults to "TCP".
*/
public data class ServiceTemplateSpecContainerPortArgs(
public val containerPort: Output? = null,
public val name: Output? = null,
public val protocol: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerPortArgs =
com.pulumi.gcp.cloudrun.inputs.ServiceTemplateSpecContainerPortArgs.builder()
.containerPort(containerPort?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.protocol(protocol?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceTemplateSpecContainerPortArgs].
*/
@PulumiTagMarker
public class ServiceTemplateSpecContainerPortArgsBuilder internal constructor() {
private var containerPort: Output? = null
private var name: Output? = null
private var protocol: Output? = null
/**
* @param value Port number the container listens on. This must be a valid port number (between 1 and 65535). Defaults to "8080".
*/
@JvmName("kpyrlgjvsormwgeu")
public suspend fun containerPort(`value`: Output) {
this.containerPort = value
}
/**
* @param value If specified, used to specify which protocol to use. Allowed values are "http1" (HTTP/1) and "h2c" (HTTP/2 end-to-end). Defaults to "http1".
*/
@JvmName("nksrsiihdsncqjkx")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Protocol for port. Must be "TCP". Defaults to "TCP".
*/
@JvmName("pjkxhxeqvonqilnm")
public suspend fun protocol(`value`: Output) {
this.protocol = value
}
/**
* @param value Port number the container listens on. This must be a valid port number (between 1 and 65535). Defaults to "8080".
*/
@JvmName("vrrtyxgreujpikkd")
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" (HTTP/1) and "h2c" (HTTP/2 end-to-end). Defaults to "http1".
*/
@JvmName("wxhrpsshlbpcthpw")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Protocol for port. Must be "TCP". Defaults to "TCP".
*/
@JvmName("strldhhdcpsilcis")
public suspend fun protocol(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.protocol = mapped
}
internal fun build(): ServiceTemplateSpecContainerPortArgs = ServiceTemplateSpecContainerPortArgs(
containerPort = containerPort,
name = name,
protocol = protocol,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy