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

com.pulumi.azurenative.azurestackhci.kotlin.inputs.ClusterDesiredPropertiesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.azurestackhci.kotlin.inputs

import com.pulumi.azurenative.azurestackhci.inputs.ClusterDesiredPropertiesArgs.builder
import com.pulumi.azurenative.azurestackhci.kotlin.enums.DiagnosticLevel
import com.pulumi.azurenative.azurestackhci.kotlin.enums.WindowsServerSubscription
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Desired properties of the cluster.
 * @property diagnosticLevel Desired level of diagnostic data emitted by the cluster.
 * @property windowsServerSubscription Desired state of Windows Server Subscription.
 */
public data class ClusterDesiredPropertiesArgs(
    public val diagnosticLevel: Output>? = null,
    public val windowsServerSubscription: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.azurestackhci.inputs.ClusterDesiredPropertiesArgs =
        com.pulumi.azurenative.azurestackhci.inputs.ClusterDesiredPropertiesArgs.builder()
            .diagnosticLevel(
                diagnosticLevel?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .windowsServerSubscription(
                windowsServerSubscription?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            ).build()
}

/**
 * Builder for [ClusterDesiredPropertiesArgs].
 */
@PulumiTagMarker
public class ClusterDesiredPropertiesArgsBuilder internal constructor() {
    private var diagnosticLevel: Output>? = null

    private var windowsServerSubscription: Output>? = null

    /**
     * @param value Desired level of diagnostic data emitted by the cluster.
     */
    @JvmName("hcsultpscbkmdycf")
    public suspend fun diagnosticLevel(`value`: Output>) {
        this.diagnosticLevel = value
    }

    /**
     * @param value Desired state of Windows Server Subscription.
     */
    @JvmName("aipyxjctdvisllyc")
    public suspend fun windowsServerSubscription(`value`: Output>) {
        this.windowsServerSubscription = value
    }

    /**
     * @param value Desired level of diagnostic data emitted by the cluster.
     */
    @JvmName("ivktgdhalnviwecx")
    public suspend fun diagnosticLevel(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diagnosticLevel = mapped
    }

    /**
     * @param value Desired level of diagnostic data emitted by the cluster.
     */
    @JvmName("juhqmkiiuqswvpya")
    public fun diagnosticLevel(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.diagnosticLevel = mapped
    }

    /**
     * @param value Desired level of diagnostic data emitted by the cluster.
     */
    @JvmName("qcmgkimgqghcfvxl")
    public fun diagnosticLevel(`value`: DiagnosticLevel) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.diagnosticLevel = mapped
    }

    /**
     * @param value Desired state of Windows Server Subscription.
     */
    @JvmName("qjfysupavkjxmcdw")
    public suspend fun windowsServerSubscription(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.windowsServerSubscription = mapped
    }

    /**
     * @param value Desired state of Windows Server Subscription.
     */
    @JvmName("vgackjfcaptkgsle")
    public fun windowsServerSubscription(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.windowsServerSubscription = mapped
    }

    /**
     * @param value Desired state of Windows Server Subscription.
     */
    @JvmName("vcklhghascyglipp")
    public fun windowsServerSubscription(`value`: WindowsServerSubscription) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.windowsServerSubscription = mapped
    }

    internal fun build(): ClusterDesiredPropertiesArgs = ClusterDesiredPropertiesArgs(
        diagnosticLevel = diagnosticLevel,
        windowsServerSubscription = windowsServerSubscription,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy