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

com.pulumi.kubernetes.apiextensions.v1beta1.kotlin.inputs.CustomResourceValidationArgs.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.apiextensions.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.apiextensions.v1beta1.inputs.CustomResourceValidationArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * CustomResourceValidation is a list of validation methods for CustomResources.
 * @property openAPIV3Schema openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
 */
public data class CustomResourceValidationArgs(
    public val openAPIV3Schema: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceValidationArgs =
        com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceValidationArgs.builder()
            .openAPIV3Schema(
                openAPIV3Schema?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [CustomResourceValidationArgs].
 */
@PulumiTagMarker
public class CustomResourceValidationArgsBuilder internal constructor() {
    private var openAPIV3Schema: Output? = null

    /**
     * @param value openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
     */
    @JvmName("nfjqtyailmylhcpi")
    public suspend fun openAPIV3Schema(`value`: Output) {
        this.openAPIV3Schema = value
    }

    /**
     * @param value openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
     */
    @JvmName("rknjvgsmwxyknfmi")
    public suspend fun openAPIV3Schema(`value`: JSONSchemaPropsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.openAPIV3Schema = mapped
    }

    /**
     * @param argument openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
     */
    @JvmName("ddwwdwjeorgbinve")
    public suspend fun openAPIV3Schema(argument: suspend JSONSchemaPropsArgsBuilder.() -> Unit) {
        val toBeMapped = JSONSchemaPropsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.openAPIV3Schema = mapped
    }

    internal fun build(): CustomResourceValidationArgs = CustomResourceValidationArgs(
        openAPIV3Schema = openAPIV3Schema,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy