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

com.pulumi.azurenative.networkcloud.kotlin.inputs.AgentOptionsArgs.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.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.networkcloud.kotlin.inputs

import com.pulumi.azurenative.networkcloud.inputs.AgentOptionsArgs.builder
import com.pulumi.azurenative.networkcloud.kotlin.enums.HugepagesSize
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property hugepagesCount The number of hugepages to allocate.
 * @property hugepagesSize The size of the hugepages to allocate.
 */
public data class AgentOptionsArgs(
    public val hugepagesCount: Output,
    public val hugepagesSize: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.networkcloud.inputs.AgentOptionsArgs =
        com.pulumi.azurenative.networkcloud.inputs.AgentOptionsArgs.builder()
            .hugepagesCount(hugepagesCount.applyValue({ args0 -> args0 }))
            .hugepagesSize(
                hugepagesSize?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [AgentOptionsArgs].
 */
@PulumiTagMarker
public class AgentOptionsArgsBuilder internal constructor() {
    private var hugepagesCount: Output? = null

    private var hugepagesSize: Output>? = null

    /**
     * @param value The number of hugepages to allocate.
     */
    @JvmName("bigvrmqqkbhsicdg")
    public suspend fun hugepagesCount(`value`: Output) {
        this.hugepagesCount = value
    }

    /**
     * @param value The size of the hugepages to allocate.
     */
    @JvmName("uknhdeheuaoweyxf")
    public suspend fun hugepagesSize(`value`: Output>) {
        this.hugepagesSize = value
    }

    /**
     * @param value The number of hugepages to allocate.
     */
    @JvmName("ogcrvekgoymwhkgf")
    public suspend fun hugepagesCount(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hugepagesCount = mapped
    }

    /**
     * @param value The size of the hugepages to allocate.
     */
    @JvmName("gkggpwipwcnntldx")
    public suspend fun hugepagesSize(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hugepagesSize = mapped
    }

    /**
     * @param value The size of the hugepages to allocate.
     */
    @JvmName("fcsmarperscypvlb")
    public fun hugepagesSize(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hugepagesSize = mapped
    }

    /**
     * @param value The size of the hugepages to allocate.
     */
    @JvmName("ebkheaasxkkidayy")
    public fun hugepagesSize(`value`: HugepagesSize) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hugepagesSize = mapped
    }

    internal fun build(): AgentOptionsArgs = AgentOptionsArgs(
        hugepagesCount = hugepagesCount ?: throw PulumiNullFieldException("hugepagesCount"),
        hugepagesSize = hugepagesSize,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy