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

com.pulumi.kubernetes.meta.v1.kotlin.inputs.StatusDetailsPatchArgs.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.StatusDetailsPatchArgs.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 StatusDetailsPatchArgs(
    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.StatusDetailsPatchArgs =
        com.pulumi.kubernetes.meta.v1.inputs.StatusDetailsPatchArgs.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 [StatusDetailsPatchArgs].
 */
@PulumiTagMarker
public class StatusDetailsPatchArgsBuilder 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("yikqeuuqseblrpcs")
    public suspend fun causes(`value`: Output>) {
        this.causes = value
    }

    @JvmName("kldencjmrmlvlmxe")
    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("lrsfgqcltejqjhja")
    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("vbrsmkjqoplpsvnt")
    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("nwuxcysknewkjqky")
    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("xnjmvutnbfmmhino")
    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("lsmsttiwgadmlcfv")
    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("ihkmiycuaawqlgym")
    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("yonairymgvigbeac")
    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("pvagrthfujruimoy")
    public suspend fun causes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            StatusCausePatchArgsBuilder().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("uxenduxppbynnhxl")
    public suspend fun causes(vararg argument: suspend StatusCausePatchArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            StatusCausePatchArgsBuilder().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("dwyltkvqgrlqvylu")
    public suspend fun causes(argument: suspend StatusCausePatchArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(StatusCausePatchArgsBuilder().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("xlpvxklxvtsiqfqd")
    public suspend fun causes(vararg values: StatusCausePatchArgs) {
        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("doybyospwtutpvys")
    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("rabfsayqobfoxjnv")
    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("xbiugnornspvmrmt")
    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("xonjkewwegkrfbbp")
    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("bjsjoyefpvuccyxv")
    public suspend fun uid(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.uid = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy