com.pulumi.kubernetes.extensions.v1beta1.kotlin.inputs.IngressStatusArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.kubernetes.extensions.v1beta1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.core.v1.kotlin.inputs.LoadBalancerStatusArgs
import com.pulumi.kubernetes.core.v1.kotlin.inputs.LoadBalancerStatusArgsBuilder
import com.pulumi.kubernetes.extensions.v1beta1.inputs.IngressStatusArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* IngressStatus describe the current state of the Ingress.
* @property loadBalancer LoadBalancer contains the current status of the load-balancer.
*/
public data class IngressStatusArgs(
public val loadBalancer: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.extensions.v1beta1.inputs.IngressStatusArgs =
com.pulumi.kubernetes.extensions.v1beta1.inputs.IngressStatusArgs.builder()
.loadBalancer(loadBalancer?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [IngressStatusArgs].
*/
@PulumiTagMarker
public class IngressStatusArgsBuilder internal constructor() {
private var loadBalancer: Output? = null
/**
* @param value LoadBalancer contains the current status of the load-balancer.
*/
@JvmName("bdnidrftwlxqiyjg")
public suspend fun loadBalancer(`value`: Output) {
this.loadBalancer = value
}
/**
* @param value LoadBalancer contains the current status of the load-balancer.
*/
@JvmName("gnrkihhputbdkwkh")
public suspend fun loadBalancer(`value`: LoadBalancerStatusArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.loadBalancer = mapped
}
/**
* @param argument LoadBalancer contains the current status of the load-balancer.
*/
@JvmName("yeyqxlvcymkrbxaa")
public suspend fun loadBalancer(argument: suspend LoadBalancerStatusArgsBuilder.() -> Unit) {
val toBeMapped = LoadBalancerStatusArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.loadBalancer = mapped
}
internal fun build(): IngressStatusArgs = IngressStatusArgs(
loadBalancer = loadBalancer,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy