com.pulumi.kubernetes.meta.v1.kotlin.inputs.StatusCauseArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.kubernetes.meta.v1.inputs.StatusCauseArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.
* @property field The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.
* Examples:
* "name" - the field "name" on the current resource
* "items[0].name" - the field "name" on the first array entry in "items"
* @property message A human-readable description of the cause of the error. This field may be presented as-is to a reader.
* @property reason A machine-readable description of the cause of the error. If this value is empty there is no information available.
*/
public data class StatusCauseArgs(
public val `field`: Output? = null,
public val message: Output? = null,
public val reason: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.meta.v1.inputs.StatusCauseArgs =
com.pulumi.kubernetes.meta.v1.inputs.StatusCauseArgs.builder()
.`field`(`field`?.applyValue({ args0 -> args0 }))
.message(message?.applyValue({ args0 -> args0 }))
.reason(reason?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [StatusCauseArgs].
*/
@PulumiTagMarker
public class StatusCauseArgsBuilder internal constructor() {
private var `field`: Output? = null
private var message: Output? = null
private var reason: Output? = null
/**
* @param value The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.
* Examples:
* "name" - the field "name" on the current resource
* "items[0].name" - the field "name" on the first array entry in "items"
*/
@JvmName("lkfyugtfmqbeaobe")
public suspend fun `field`(`value`: Output) {
this.`field` = value
}
/**
* @param value A human-readable description of the cause of the error. This field may be presented as-is to a reader.
*/
@JvmName("cxtltqwreawdrnux")
public suspend fun message(`value`: Output) {
this.message = value
}
/**
* @param value A machine-readable description of the cause of the error. If this value is empty there is no information available.
*/
@JvmName("ymrlsyqlcfmwvnmx")
public suspend fun reason(`value`: Output) {
this.reason = value
}
/**
* @param value The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.
* Examples:
* "name" - the field "name" on the current resource
* "items[0].name" - the field "name" on the first array entry in "items"
*/
@JvmName("qifvprjaereuivjj")
public suspend fun `field`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`field` = mapped
}
/**
* @param value A human-readable description of the cause of the error. This field may be presented as-is to a reader.
*/
@JvmName("hamypvglyfowsclm")
public suspend fun message(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.message = mapped
}
/**
* @param value A machine-readable description of the cause of the error. If this value is empty there is no information available.
*/
@JvmName("tvnotbwsfpnqpmig")
public suspend fun reason(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.reason = mapped
}
internal fun build(): StatusCauseArgs = StatusCauseArgs(
`field` = `field`,
message = message,
reason = reason,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy