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

com.pulumi.kubernetes.resource.v1alpha2.kotlin.inputs.NamedResourcesAttributePatchArgs.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.v1alpha2.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.resource.v1alpha2.inputs.NamedResourcesAttributePatchArgs.builder
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * NamedResourcesAttribute is a combination of an attribute name and its value.
 * @property bool BoolValue is a true/false value.
 * @property int IntValue is a 64-bit integer.
 * @property intSlice IntSliceValue is an array of 64-bit integers.
 * @property name Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
 * @property quantity QuantityValue is a quantity.
 * @property string StringValue is a string.
 * @property stringSlice StringSliceValue is an array of strings.
 * @property version VersionValue is a semantic version according to semver.org spec 2.0.0.
 */
public data class NamedResourcesAttributePatchArgs(
    public val bool: Output? = null,
    public val int: Output? = null,
    public val intSlice: Output? = null,
    public val name: Output? = null,
    public val quantity: Output? = null,
    public val string: Output? = null,
    public val stringSlice: Output? = null,
    public val version: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesAttributePatchArgs =
        com.pulumi.kubernetes.resource.v1alpha2.inputs.NamedResourcesAttributePatchArgs.builder()
            .bool(bool?.applyValue({ args0 -> args0 }))
            .int_(int?.applyValue({ args0 -> args0 }))
            .intSlice(intSlice?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .quantity(quantity?.applyValue({ args0 -> args0 }))
            .string(string?.applyValue({ args0 -> args0 }))
            .stringSlice(stringSlice?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .version(version?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [NamedResourcesAttributePatchArgs].
 */
@PulumiTagMarker
public class NamedResourcesAttributePatchArgsBuilder internal constructor() {
    private var bool: Output? = null

    private var int: Output? = null

    private var intSlice: Output? = null

    private var name: Output? = null

    private var quantity: Output? = null

    private var string: Output? = null

    private var stringSlice: Output? = null

    private var version: Output? = null

    /**
     * @param value BoolValue is a true/false value.
     */
    @JvmName("mhfjhluilsidduot")
    public suspend fun bool(`value`: Output) {
        this.bool = value
    }

    /**
     * @param value IntValue is a 64-bit integer.
     */
    @JvmName("bpbougicfnxhbora")
    public suspend fun int(`value`: Output) {
        this.int = value
    }

    /**
     * @param value IntSliceValue is an array of 64-bit integers.
     */
    @JvmName("evxvxumwhewusscl")
    public suspend fun intSlice(`value`: Output) {
        this.intSlice = value
    }

    /**
     * @param value Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
     */
    @JvmName("fvydtuiexxeonrhn")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value QuantityValue is a quantity.
     */
    @JvmName("etaofhoxhueussqt")
    public suspend fun quantity(`value`: Output) {
        this.quantity = value
    }

    /**
     * @param value StringValue is a string.
     */
    @JvmName("sgsewueimwgqgfmx")
    public suspend fun string(`value`: Output) {
        this.string = value
    }

    /**
     * @param value StringSliceValue is an array of strings.
     */
    @JvmName("icyelubqshuhfjhl")
    public suspend fun stringSlice(`value`: Output) {
        this.stringSlice = value
    }

    /**
     * @param value VersionValue is a semantic version according to semver.org spec 2.0.0.
     */
    @JvmName("frolntwbalrhdnxm")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value BoolValue is a true/false value.
     */
    @JvmName("fdrderjhgmrqfuji")
    public suspend fun bool(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bool = mapped
    }

    /**
     * @param value IntValue is a 64-bit integer.
     */
    @JvmName("mberedhlwluydbfu")
    public suspend fun int(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.int = mapped
    }

    /**
     * @param value IntSliceValue is an array of 64-bit integers.
     */
    @JvmName("qjqpccluonvchker")
    public suspend fun intSlice(`value`: NamedResourcesIntSlicePatchArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.intSlice = mapped
    }

    /**
     * @param argument IntSliceValue is an array of 64-bit integers.
     */
    @JvmName("qdrymwmpvumsacpa")
    public suspend fun intSlice(argument: suspend NamedResourcesIntSlicePatchArgsBuilder.() -> Unit) {
        val toBeMapped = NamedResourcesIntSlicePatchArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.intSlice = mapped
    }

    /**
     * @param value Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
     */
    @JvmName("bmtrosweuervaskl")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value QuantityValue is a quantity.
     */
    @JvmName("vhvvyxhditrhukhk")
    public suspend fun quantity(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.quantity = mapped
    }

    /**
     * @param value StringValue is a string.
     */
    @JvmName("fimbuuraigpdfuni")
    public suspend fun string(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.string = mapped
    }

    /**
     * @param value StringSliceValue is an array of strings.
     */
    @JvmName("pyopuwujbepyxcur")
    public suspend fun stringSlice(`value`: NamedResourcesStringSlicePatchArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.stringSlice = mapped
    }

    /**
     * @param argument StringSliceValue is an array of strings.
     */
    @JvmName("wmyjidwfmoeobalo")
    public suspend fun stringSlice(argument: suspend NamedResourcesStringSlicePatchArgsBuilder.() -> Unit) {
        val toBeMapped = NamedResourcesStringSlicePatchArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.stringSlice = mapped
    }

    /**
     * @param value VersionValue is a semantic version according to semver.org spec 2.0.0.
     */
    @JvmName("rqmycswcmrjcowwi")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): NamedResourcesAttributePatchArgs = NamedResourcesAttributePatchArgs(
        bool = bool,
        int = int,
        intSlice = intSlice,
        name = name,
        quantity = quantity,
        string = string,
        stringSlice = stringSlice,
        version = version,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy