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

com.pulumi.kubernetes.meta.v1.kotlin.inputs.StatusDetailsArgs.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.meta.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.kotlin.applySuspend
import com.pulumi.kubernetes.meta.v1.inputs.StatusDetailsArgs.builder
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.
 * @property causes The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.
 * @property group The group attribute of the resource associated with the status StatusReason.
 * @property kind The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
 * @property name The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).
 * @property retryAfterSeconds If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.
 * @property uid UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
 */
public data class StatusDetailsArgs(
    public val causes: Output>? = null,
    public val group: Output? = null,
    public val kind: Output? = null,
    public val name: Output? = null,
    public val retryAfterSeconds: Output? = null,
    public val uid: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.meta.v1.inputs.StatusDetailsArgs =
        com.pulumi.kubernetes.meta.v1.inputs.StatusDetailsArgs.builder()
            .causes(causes?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .group(group?.applyValue({ args0 -> args0 }))
            .kind(kind?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .retryAfterSeconds(retryAfterSeconds?.applyValue({ args0 -> args0 }))
            .uid(uid?.applyValue({ args0 -> args0 })).build()
}

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

    private var group: Output? = null

    private var kind: Output? = null

    private var name: Output? = null

    private var retryAfterSeconds: Output? = null

    private var uid: Output? = null

    /**
     * @param value The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.
     */
    @JvmName("badbqaqchrcobxmm")
    public suspend fun causes(`value`: Output>) {
        this.causes = value
    }

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

    /**
     * @param values The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.
     */
    @JvmName("yrywcrbpsxpvbelc")
    public suspend fun causes(values: List>) {
        this.causes = Output.all(values)
    }

    /**
     * @param value The group attribute of the resource associated with the status StatusReason.
     */
    @JvmName("knanujfrraouljml")
    public suspend fun group(`value`: Output) {
        this.group = value
    }

    /**
     * @param value The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     */
    @JvmName("lsfamliviyyweumv")
    public suspend fun kind(`value`: Output) {
        this.kind = value
    }

    /**
     * @param value The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).
     */
    @JvmName("fhgvprenfbuswisv")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.
     */
    @JvmName("qmfnqvgxgpqbmvoy")
    public suspend fun retryAfterSeconds(`value`: Output) {
        this.retryAfterSeconds = value
    }

    /**
     * @param value UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
     */
    @JvmName("kisbctjiljadbegs")
    public suspend fun uid(`value`: Output) {
        this.uid = value
    }

    /**
     * @param value The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.
     */
    @JvmName("manrmxofqgfvhmtq")
    public suspend fun causes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.causes = mapped
    }

    /**
     * @param argument The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.
     */
    @JvmName("idayacyqpnekwsll")
    public suspend fun causes(argument: List Unit>) {
        val toBeMapped = argument.toList().map { StatusCauseArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.causes = mapped
    }

    /**
     * @param argument The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.
     */
    @JvmName("trgqounkyocqdnsd")
    public suspend fun causes(vararg argument: suspend StatusCauseArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { StatusCauseArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.causes = mapped
    }

    /**
     * @param argument The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.
     */
    @JvmName("rsdbqobdlteatgin")
    public suspend fun causes(argument: suspend StatusCauseArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(StatusCauseArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.causes = mapped
    }

    /**
     * @param values The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.
     */
    @JvmName("jvsngtwsmgehqckg")
    public suspend fun causes(vararg values: StatusCauseArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.causes = mapped
    }

    /**
     * @param value The group attribute of the resource associated with the status StatusReason.
     */
    @JvmName("qhhgxjymvtvbmbge")
    public suspend fun group(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.group = mapped
    }

    /**
     * @param value The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
     */
    @JvmName("obctvjmajctmeipg")
    public suspend fun kind(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kind = mapped
    }

    /**
     * @param value The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).
     */
    @JvmName("vtrdphaxteorkujo")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.
     */
    @JvmName("kdulylwgjysvgbxa")
    public suspend fun retryAfterSeconds(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.retryAfterSeconds = mapped
    }

    /**
     * @param value UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
     */
    @JvmName("gieyrmcahryfthvm")
    public suspend fun uid(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.uid = mapped
    }

    internal fun build(): StatusDetailsArgs = StatusDetailsArgs(
        causes = causes,
        group = group,
        kind = kind,
        name = name,
        retryAfterSeconds = retryAfterSeconds,
        uid = uid,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy