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

com.pulumi.kubernetes.resource.v1alpha2.kotlin.outputs.NamedResourcesAttributePatch.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.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 * 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 NamedResourcesAttributePatch(
    public val bool: Boolean? = null,
    public val int: Int? = null,
    public val intSlice: NamedResourcesIntSlicePatch? = null,
    public val name: String? = null,
    public val quantity: String? = null,
    public val string: String? = null,
    public val stringSlice: NamedResourcesStringSlicePatch? = null,
    public val version: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha2.outputs.NamedResourcesAttributePatch): NamedResourcesAttributePatch = NamedResourcesAttributePatch(
            bool = javaType.bool().map({ args0 -> args0 }).orElse(null),
            int = javaType.int_().map({ args0 -> args0 }).orElse(null),
            intSlice = javaType.intSlice().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.resource.v1alpha2.kotlin.outputs.NamedResourcesIntSlicePatch.Companion.toKotlin(args0)
                })
            }).orElse(null),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            quantity = javaType.quantity().map({ args0 -> args0 }).orElse(null),
            string = javaType.string().map({ args0 -> args0 }).orElse(null),
            stringSlice = javaType.stringSlice().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.resource.v1alpha2.kotlin.outputs.NamedResourcesStringSlicePatch.Companion.toKotlin(args0)
                })
            }).orElse(null),
            version = javaType.version().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy