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

com.pulumi.kubernetes.resource.v1alpha3.kotlin.outputs.DeviceAttribute.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.outputs

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

/**
 * DeviceAttribute must have exactly one field set.
 * @property bool BoolValue is a true/false value.
 * @property int IntValue is a number.
 * @property string StringValue is a string. Must not be longer than 64 characters.
 * @property version VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
 */
public data class DeviceAttribute(
    public val bool: Boolean? = null,
    public val int: Int? = null,
    public val string: String? = null,
    public val version: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.resource.v1alpha3.outputs.DeviceAttribute): DeviceAttribute = DeviceAttribute(
            bool = javaType.bool().map({ args0 -> args0 }).orElse(null),
            int = javaType.int_().map({ args0 -> args0 }).orElse(null),
            string = javaType.string().map({ args0 -> args0 }).orElse(null),
            version = javaType.version().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy