![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.lightsail.kotlin.inputs.ContainerPortInfoArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.lightsail.kotlin.inputs
import com.pulumi.awsnative.lightsail.inputs.ContainerPortInfoArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property port The open firewall ports of the container.
* @property protocol The protocol name for the open ports.
* *Allowed values* : `HTTP` | `HTTPS` | `TCP` | `UDP`
*/
public data class ContainerPortInfoArgs(
public val port: Output? = null,
public val protocol: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.lightsail.inputs.ContainerPortInfoArgs =
com.pulumi.awsnative.lightsail.inputs.ContainerPortInfoArgs.builder()
.port(port?.applyValue({ args0 -> args0 }))
.protocol(protocol?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ContainerPortInfoArgs].
*/
@PulumiTagMarker
public class ContainerPortInfoArgsBuilder internal constructor() {
private var port: Output? = null
private var protocol: Output? = null
/**
* @param value The open firewall ports of the container.
*/
@JvmName("mdmyrfiwaxrmxwqx")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value The protocol name for the open ports.
* *Allowed values* : `HTTP` | `HTTPS` | `TCP` | `UDP`
*/
@JvmName("iwirhpekacblqmpp")
public suspend fun protocol(`value`: Output) {
this.protocol = value
}
/**
* @param value The open firewall ports of the container.
*/
@JvmName("nnyvwabdmqcycvcg")
public suspend fun port(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.port = mapped
}
/**
* @param value The protocol name for the open ports.
* *Allowed values* : `HTTP` | `HTTPS` | `TCP` | `UDP`
*/
@JvmName("hxtkhihiapmxsjeb")
public suspend fun protocol(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.protocol = mapped
}
internal fun build(): ContainerPortInfoArgs = ContainerPortInfoArgs(
port = port,
protocol = protocol,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy