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

com.pulumi.kubernetes.apiregistration.v1beta1.kotlin.inputs.APIServiceStatusArgs.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.apiregistration.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.apiregistration.v1beta1.inputs.APIServiceStatusArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * APIServiceStatus contains derived information about an API server
 * @property conditions Current service state of apiService.
 */
public data class APIServiceStatusArgs(
    public val conditions: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.apiregistration.v1beta1.inputs.APIServiceStatusArgs =
        com.pulumi.kubernetes.apiregistration.v1beta1.inputs.APIServiceStatusArgs.builder()
            .conditions(
                conditions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [APIServiceStatusArgs].
 */
@PulumiTagMarker
public class APIServiceStatusArgsBuilder internal constructor() {
    private var conditions: Output>? = null

    /**
     * @param value Current service state of apiService.
     */
    @JvmName("cklcwidyospkdtfq")
    public suspend fun conditions(`value`: Output>) {
        this.conditions = value
    }

    @JvmName("vlvwlkbmxpxowekt")
    public suspend fun conditions(vararg values: Output) {
        this.conditions = Output.all(values.asList())
    }

    /**
     * @param values Current service state of apiService.
     */
    @JvmName("bamadsjsueitoltc")
    public suspend fun conditions(values: List>) {
        this.conditions = Output.all(values)
    }

    /**
     * @param value Current service state of apiService.
     */
    @JvmName("geaagluekaheakyx")
    public suspend fun conditions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    /**
     * @param argument Current service state of apiService.
     */
    @JvmName("wixfslmtpomxcnjj")
    public suspend fun conditions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            APIServiceConditionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param argument Current service state of apiService.
     */
    @JvmName("lckejwddmvmxvxcv")
    public suspend fun conditions(vararg argument: suspend APIServiceConditionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            APIServiceConditionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param argument Current service state of apiService.
     */
    @JvmName("kcaonhjxwenheccj")
    public suspend fun conditions(argument: suspend APIServiceConditionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(APIServiceConditionArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param values Current service state of apiService.
     */
    @JvmName("aplttxpxdwiefpln")
    public suspend fun conditions(vararg values: APIServiceConditionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    internal fun build(): APIServiceStatusArgs = APIServiceStatusArgs(
        conditions = conditions,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy