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

com.pulumi.kubernetes.resource.v1alpha3.kotlin.inputs.ResourceClaimTemplateSpecPatchArgs.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.resource.v1alpha3.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.v1alpha3.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.v1alpha3.inputs.ResourceClaimTemplateSpecPatchArgs =
        com.pulumi.kubernetes.resource.v1alpha3.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("dejodvtvouttwevb")
    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("houggufdqnqebmgs")
    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("rouekjrlnitkscac")
    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("fouhyrornphrmwmj")
    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("sggrqjnwwqitflpy")
    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("ifpksdjeohfwbeei")
    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