com.pulumi.kubernetes.resource.v1alpha1.kotlin.inputs.ResourceClaimTemplateSpecPatchArgs.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.resource.v1alpha1.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.kotlin.inputs.ObjectMetaPatchArgs
import com.pulumi.kubernetes.meta.v1.kotlin.inputs.ObjectMetaPatchArgsBuilder
import com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClaimTemplateSpecPatchArgs.builder
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
* @property metadata ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
* @property spec Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
*/
public data class ResourceClaimTemplateSpecPatchArgs(
public val metadata: Output? = null,
public val spec: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClaimTemplateSpecPatchArgs =
com.pulumi.kubernetes.resource.v1alpha1.inputs.ResourceClaimTemplateSpecPatchArgs.builder()
.metadata(metadata?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.spec(spec?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ResourceClaimTemplateSpecPatchArgs].
*/
@PulumiTagMarker
public class ResourceClaimTemplateSpecPatchArgsBuilder internal constructor() {
private var metadata: Output? = null
private var spec: Output? = null
/**
* @param value ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
*/
@JvmName("hugguxomhjayjdxu")
public suspend fun metadata(`value`: Output) {
this.metadata = value
}
/**
* @param value Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
*/
@JvmName("sojwlhjyfoplvumy")
public suspend fun spec(`value`: Output) {
this.spec = value
}
/**
* @param value ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
*/
@JvmName("jkcuopkexnfuhiph")
public suspend fun metadata(`value`: ObjectMetaPatchArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.metadata = mapped
}
/**
* @param argument ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
*/
@JvmName("wfhcytvwdbmyntub")
public suspend fun metadata(argument: suspend ObjectMetaPatchArgsBuilder.() -> Unit) {
val toBeMapped = ObjectMetaPatchArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.metadata = mapped
}
/**
* @param value Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
*/
@JvmName("pijtcabyewrwxrub")
public suspend fun spec(`value`: ResourceClaimSpecPatchArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.spec = mapped
}
/**
* @param argument Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
*/
@JvmName("uandyajutjqjvtjw")
public suspend fun spec(argument: suspend ResourceClaimSpecPatchArgsBuilder.() -> Unit) {
val toBeMapped = ResourceClaimSpecPatchArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.spec = mapped
}
internal fun build(): ResourceClaimTemplateSpecPatchArgs = ResourceClaimTemplateSpecPatchArgs(
metadata = metadata,
spec = spec,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy