com.pulumi.kubernetes.resource.v1alpha2.kotlin.outputs.NamedResourcesAttribute.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.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 NamedResourcesAttribute(
public val bool: Boolean? = null,
public val int: Int? = null,
public val intSlice: NamedResourcesIntSlice? = null,
public val name: String,
public val quantity: String? = null,
public val string: String? = null,
public val stringSlice: NamedResourcesStringSlice? = null,
public val version: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha2.outputs.NamedResourcesAttribute): NamedResourcesAttribute = NamedResourcesAttribute(
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.NamedResourcesIntSlice.Companion.toKotlin(args0)
})
}).orElse(null),
name = javaType.name(),
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.NamedResourcesStringSlice.Companion.toKotlin(args0)
})
}).orElse(null),
version = javaType.version().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy