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

com.pulumi.kubernetes.apiextensions.v1.kotlin.inputs.SelectableFieldArgs.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.apiextensions.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kubernetes.apiextensions.v1.inputs.SelectableFieldArgs.builder
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * SelectableField specifies the JSON path of a field that may be used with field selectors.
 * @property jsonPath jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required.
 */
public data class SelectableFieldArgs(
    public val jsonPath: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.apiextensions.v1.inputs.SelectableFieldArgs =
        com.pulumi.kubernetes.apiextensions.v1.inputs.SelectableFieldArgs.builder()
            .jsonPath(jsonPath.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SelectableFieldArgs].
 */
@PulumiTagMarker
public class SelectableFieldArgsBuilder internal constructor() {
    private var jsonPath: Output? = null

    /**
     * @param value jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required.
     */
    @JvmName("tdufclqquiqtxegx")
    public suspend fun jsonPath(`value`: Output) {
        this.jsonPath = value
    }

    /**
     * @param value jsonPath is a simple JSON path which is evaluated against each custom resource to produce a field selector value. Only JSON paths without the array notation are allowed. Must point to a field of type string, boolean or integer. Types with enum values and strings with formats are allowed. If jsonPath refers to absent field in a resource, the jsonPath evaluates to an empty string. Must not point to metdata fields. Required.
     */
    @JvmName("kifltvgfddfohiyk")
    public suspend fun jsonPath(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.jsonPath = mapped
    }

    internal fun build(): SelectableFieldArgs = SelectableFieldArgs(
        jsonPath = jsonPath ?: throw PulumiNullFieldException("jsonPath"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy