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

com.pulumi.kubernetes.discovery.v1.kotlin.outputs.EndpointConditions.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.

There is a newer version: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.discovery.v1.kotlin.outputs

import kotlin.Boolean
import kotlin.Suppress

/**
 * 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 EndpointConditions(
    public val ready: Boolean? = null,
    public val serving: Boolean? = null,
    public val terminating: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.discovery.v1.outputs.EndpointConditions): EndpointConditions = EndpointConditions(
            ready = javaType.ready().map({ args0 -> args0 }).orElse(null),
            serving = javaType.serving().map({ args0 -> args0 }).orElse(null),
            terminating = javaType.terminating().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy