com.pulumi.kubernetes.apiextensions.v1beta1.kotlin.inputs.CustomResourceValidationPatchArgs.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.
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.CustomResourceValidationPatchArgs.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 CustomResourceValidationPatchArgs(
public val openAPIV3Schema: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceValidationPatchArgs =
com.pulumi.kubernetes.apiextensions.v1beta1.inputs.CustomResourceValidationPatchArgs.builder()
.openAPIV3Schema(
openAPIV3Schema?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [CustomResourceValidationPatchArgs].
*/
@PulumiTagMarker
public class CustomResourceValidationPatchArgsBuilder internal constructor() {
private var openAPIV3Schema: Output? = null
/**
* @param value openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
*/
@JvmName("ybdpljorhkeisgif")
public suspend fun openAPIV3Schema(`value`: Output) {
this.openAPIV3Schema = value
}
/**
* @param value openAPIV3Schema is the OpenAPI v3 schema to use for validation and pruning.
*/
@JvmName("hxinenwicdxgsbuc")
public suspend fun openAPIV3Schema(`value`: JSONSchemaPropsPatchArgs?) {
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("junkosnyadobxcxt")
public suspend fun openAPIV3Schema(argument: suspend JSONSchemaPropsPatchArgsBuilder.() -> Unit) {
val toBeMapped = JSONSchemaPropsPatchArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.openAPIV3Schema = mapped
}
internal fun build(): CustomResourceValidationPatchArgs = CustomResourceValidationPatchArgs(
openAPIV3Schema = openAPIV3Schema,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy