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

com.pulumi.azurenative.hybridcontainerservice.kotlin.inputs.NamedAgentPoolProfileArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.hybridcontainerservice.kotlin.inputs

import com.pulumi.azurenative.hybridcontainerservice.inputs.NamedAgentPoolProfileArgs.builder
import com.pulumi.azurenative.hybridcontainerservice.kotlin.enums.Mode
import com.pulumi.azurenative.hybridcontainerservice.kotlin.enums.OsType
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 com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Agent pool profile along with a name parameter
 * @property availabilityZones AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones
 * @property cloudProviderProfile The underlying cloud infra provider properties.
 * @property count Count - Number of agents to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.
 * @property maxCount The maximum number of nodes for auto-scaling
 * @property maxPods The maximum number of pods that can run on a node.
 * @property minCount The minimum number of nodes for auto-scaling
 * @property mode Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'
 * @property name Unique name of the agent pool profile in the context of the subscription and resource group.
 * @property nodeImageVersion The version of node image
 * @property nodeLabels NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.
 * @property nodeTaints NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
 * @property osType OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
 * @property vmSize VmSize - The size of the agent pool VMs.
 */
public data class NamedAgentPoolProfileArgs(
    public val availabilityZones: Output>? = null,
    public val cloudProviderProfile: Output? = null,
    public val count: Output? = null,
    public val maxCount: Output? = null,
    public val maxPods: Output? = null,
    public val minCount: Output? = null,
    public val mode: Output>? = null,
    public val name: Output? = null,
    public val nodeImageVersion: Output? = null,
    public val nodeLabels: Output>? = null,
    public val nodeTaints: Output>? = null,
    public val osType: Output>? = null,
    public val vmSize: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.hybridcontainerservice.inputs.NamedAgentPoolProfileArgs =
        com.pulumi.azurenative.hybridcontainerservice.inputs.NamedAgentPoolProfileArgs.builder()
            .availabilityZones(availabilityZones?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .cloudProviderProfile(
                cloudProviderProfile?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .count(count?.applyValue({ args0 -> args0 }))
            .maxCount(maxCount?.applyValue({ args0 -> args0 }))
            .maxPods(maxPods?.applyValue({ args0 -> args0 }))
            .minCount(minCount?.applyValue({ args0 -> args0 }))
            .mode(
                mode?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .nodeImageVersion(nodeImageVersion?.applyValue({ args0 -> args0 }))
            .nodeLabels(
                nodeLabels?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .nodeTaints(nodeTaints?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .osType(
                osType?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .vmSize(vmSize?.applyValue({ args0 -> args0 })).build()
}

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

    private var cloudProviderProfile: Output? = null

    private var count: Output? = null

    private var maxCount: Output? = null

    private var maxPods: Output? = null

    private var minCount: Output? = null

    private var mode: Output>? = null

    private var name: Output? = null

    private var nodeImageVersion: Output? = null

    private var nodeLabels: Output>? = null

    private var nodeTaints: Output>? = null

    private var osType: Output>? = null

    private var vmSize: Output? = null

    /**
     * @param value AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones
     */
    @JvmName("hvnnuvtxthtlwysy")
    public suspend fun availabilityZones(`value`: Output>) {
        this.availabilityZones = value
    }

    @JvmName("kxkhxosarfxutcun")
    public suspend fun availabilityZones(vararg values: Output) {
        this.availabilityZones = Output.all(values.asList())
    }

    /**
     * @param values AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones
     */
    @JvmName("yxngypmehhmkbxxj")
    public suspend fun availabilityZones(values: List>) {
        this.availabilityZones = Output.all(values)
    }

    /**
     * @param value The underlying cloud infra provider properties.
     */
    @JvmName("fmsiytyaqwuqaxns")
    public suspend fun cloudProviderProfile(`value`: Output) {
        this.cloudProviderProfile = value
    }

    /**
     * @param value Count - Number of agents to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.
     */
    @JvmName("geahjewfrsreemva")
    public suspend fun count(`value`: Output) {
        this.count = value
    }

    /**
     * @param value The maximum number of nodes for auto-scaling
     */
    @JvmName("jjojjateqjjiwtcr")
    public suspend fun maxCount(`value`: Output) {
        this.maxCount = value
    }

    /**
     * @param value The maximum number of pods that can run on a node.
     */
    @JvmName("uvbtppykieddpkaj")
    public suspend fun maxPods(`value`: Output) {
        this.maxPods = value
    }

    /**
     * @param value The minimum number of nodes for auto-scaling
     */
    @JvmName("opnbeumnlinqbshe")
    public suspend fun minCount(`value`: Output) {
        this.minCount = value
    }

    /**
     * @param value Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'
     */
    @JvmName("vrkuijdhepobnylu")
    public suspend fun mode(`value`: Output>) {
        this.mode = value
    }

    /**
     * @param value Unique name of the agent pool profile in the context of the subscription and resource group.
     */
    @JvmName("fkehuipxrldawvxs")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The version of node image
     */
    @JvmName("kkyhdbrqumkpedcj")
    public suspend fun nodeImageVersion(`value`: Output) {
        this.nodeImageVersion = value
    }

    /**
     * @param value NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.
     */
    @JvmName("topmbuavbmhsjbwj")
    public suspend fun nodeLabels(`value`: Output>) {
        this.nodeLabels = value
    }

    /**
     * @param value NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
     */
    @JvmName("qkwggywvebquxkfi")
    public suspend fun nodeTaints(`value`: Output>) {
        this.nodeTaints = value
    }

    @JvmName("uecrsidbkmemvpgc")
    public suspend fun nodeTaints(vararg values: Output) {
        this.nodeTaints = Output.all(values.asList())
    }

    /**
     * @param values NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
     */
    @JvmName("icfpuklanbhxgqtt")
    public suspend fun nodeTaints(values: List>) {
        this.nodeTaints = Output.all(values)
    }

    /**
     * @param value OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
     */
    @JvmName("jkxmqphvkdeamvek")
    public suspend fun osType(`value`: Output>) {
        this.osType = value
    }

    /**
     * @param value VmSize - The size of the agent pool VMs.
     */
    @JvmName("yfeykykysdxqyony")
    public suspend fun vmSize(`value`: Output) {
        this.vmSize = value
    }

    /**
     * @param value AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones
     */
    @JvmName("htlqbjmmlpjyknbt")
    public suspend fun availabilityZones(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.availabilityZones = mapped
    }

    /**
     * @param values AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones
     */
    @JvmName("idngxfylxutbhfsl")
    public suspend fun availabilityZones(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.availabilityZones = mapped
    }

    /**
     * @param value The underlying cloud infra provider properties.
     */
    @JvmName("hqsohxuvrcgtyrkc")
    public suspend fun cloudProviderProfile(`value`: CloudProviderProfileArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cloudProviderProfile = mapped
    }

    /**
     * @param argument The underlying cloud infra provider properties.
     */
    @JvmName("rrvnpvusrjeictap")
    public suspend fun cloudProviderProfile(argument: suspend CloudProviderProfileArgsBuilder.() -> Unit) {
        val toBeMapped = CloudProviderProfileArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.cloudProviderProfile = mapped
    }

    /**
     * @param value Count - Number of agents to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.
     */
    @JvmName("nrrlxokifonyjrko")
    public suspend fun count(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.count = mapped
    }

    /**
     * @param value The maximum number of nodes for auto-scaling
     */
    @JvmName("qjqyutcvvanbpmqb")
    public suspend fun maxCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxCount = mapped
    }

    /**
     * @param value The maximum number of pods that can run on a node.
     */
    @JvmName("thuwduqmfmwhngaj")
    public suspend fun maxPods(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxPods = mapped
    }

    /**
     * @param value The minimum number of nodes for auto-scaling
     */
    @JvmName("ewhjbyavbyojasmy")
    public suspend fun minCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minCount = mapped
    }

    /**
     * @param value Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'
     */
    @JvmName("jgoppjbobolgtqop")
    public suspend fun mode(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'
     */
    @JvmName("pmigtjkpglwjlcjh")
    public fun mode(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'
     */
    @JvmName("ldwhfvmyvwmrtydj")
    public fun mode(`value`: Mode) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value Unique name of the agent pool profile in the context of the subscription and resource group.
     */
    @JvmName("nycvhjfewxpoabxn")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The version of node image
     */
    @JvmName("myrwoexfbihvilqv")
    public suspend fun nodeImageVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeImageVersion = mapped
    }

    /**
     * @param value NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.
     */
    @JvmName("nqggkhpyimeqejpr")
    public suspend fun nodeLabels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeLabels = mapped
    }

    /**
     * @param values NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.
     */
    @JvmName("ghpslvnnpslpxgnh")
    public fun nodeLabels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nodeLabels = mapped
    }

    /**
     * @param value NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
     */
    @JvmName("wxxfstyvrfrjpggj")
    public suspend fun nodeTaints(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeTaints = mapped
    }

    /**
     * @param values NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.
     */
    @JvmName("tiuagfhjyenvycvm")
    public suspend fun nodeTaints(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nodeTaints = mapped
    }

    /**
     * @param value OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
     */
    @JvmName("gvsaevtkgndtrvor")
    public suspend fun osType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.osType = mapped
    }

    /**
     * @param value OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
     */
    @JvmName("xafyueyugqybhxfg")
    public fun osType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.osType = mapped
    }

    /**
     * @param value OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'
     */
    @JvmName("vrxotgnmghqjicng")
    public fun osType(`value`: OsType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.osType = mapped
    }

    /**
     * @param value VmSize - The size of the agent pool VMs.
     */
    @JvmName("kuuiloyddxhmcoow")
    public suspend fun vmSize(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vmSize = mapped
    }

    internal fun build(): NamedAgentPoolProfileArgs = NamedAgentPoolProfileArgs(
        availabilityZones = availabilityZones,
        cloudProviderProfile = cloudProviderProfile,
        count = count,
        maxCount = maxCount,
        maxPods = maxPods,
        minCount = minCount,
        mode = mode,
        name = name,
        nodeImageVersion = nodeImageVersion,
        nodeLabels = nodeLabels,
        nodeTaints = nodeTaints,
        osType = osType,
        vmSize = vmSize,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy