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

com.pulumi.kubernetes.discovery.v1.kotlin.inputs.EndpointConditionsArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.discovery.v1.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.kubernetes.discovery.v1.inputs.EndpointConditionsArgs.builder
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * EndpointConditions represents the current condition of an endpoint.
 * @property ready ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be "true" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag.
 * @property serving serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.
 * @property terminating terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.
 */
public data class EndpointConditionsArgs(
    public val ready: Output? = null,
    public val serving: Output? = null,
    public val terminating: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.discovery.v1.inputs.EndpointConditionsArgs =
        com.pulumi.kubernetes.discovery.v1.inputs.EndpointConditionsArgs.builder()
            .ready(ready?.applyValue({ args0 -> args0 }))
            .serving(serving?.applyValue({ args0 -> args0 }))
            .terminating(terminating?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EndpointConditionsArgs].
 */
@PulumiTagMarker
public class EndpointConditionsArgsBuilder internal constructor() {
    private var ready: Output? = null

    private var serving: Output? = null

    private var terminating: Output? = null

    /**
     * @param value ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be "true" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag.
     */
    @JvmName("ypvlqghqtynmthud")
    public suspend fun ready(`value`: Output) {
        this.ready = value
    }

    /**
     * @param value serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.
     */
    @JvmName("cpxuvlopjersdqdb")
    public suspend fun serving(`value`: Output) {
        this.serving = value
    }

    /**
     * @param value terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.
     */
    @JvmName("kbafylfjrujtywte")
    public suspend fun terminating(`value`: Output) {
        this.terminating = value
    }

    /**
     * @param value ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be "true" for terminating endpoints, except when the normal readiness behavior is being explicitly overridden, for example when the associated Service has set the publishNotReadyAddresses flag.
     */
    @JvmName("gcvpeunmpkfddkxd")
    public suspend fun ready(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ready = mapped
    }

    /**
     * @param value serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.
     */
    @JvmName("iidthlhfonxmppmr")
    public suspend fun serving(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serving = mapped
    }

    /**
     * @param value terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.
     */
    @JvmName("qkmjglolmcpynuei")
    public suspend fun terminating(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.terminating = mapped
    }

    internal fun build(): EndpointConditionsArgs = EndpointConditionsArgs(
        ready = ready,
        serving = serving,
        terminating = terminating,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy