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

com.pulumi.kubernetes.discovery.v1beta1.kotlin.inputs.EndpointConditionsPatchArgs.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.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.kubernetes.discovery.v1beta1.inputs.EndpointConditionsPatchArgs.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.
 * @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. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.
 * @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. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.
 */
public data class EndpointConditionsPatchArgs(
    public val ready: Output? = null,
    public val serving: Output? = null,
    public val terminating: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.discovery.v1beta1.inputs.EndpointConditionsPatchArgs = com.pulumi.kubernetes.discovery.v1beta1.inputs.EndpointConditionsPatchArgs.builder()
        .ready(ready?.applyValue({ args0 -> args0 }))
        .serving(serving?.applyValue({ args0 -> args0 }))
        .terminating(terminating?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EndpointConditionsPatchArgs].
 */
@PulumiTagMarker
public class EndpointConditionsPatchArgsBuilder 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.
     */
    @JvmName("qmlivgbfvtgqrlpr")
    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. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.
     */
    @JvmName("dlaxxlvfelpuojfv")
    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. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.
     */
    @JvmName("ghuqgoxlxqoluvxe")
    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.
     */
    @JvmName("akaapdqsqwnjkbdy")
    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. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.
     */
    @JvmName("jdvhvkbpelvohmvf")
    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. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.
     */
    @JvmName("avdvfyfelmmivssn")
    public suspend fun terminating(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.terminating = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy