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

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

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

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

import com.pulumi.azurenative.azurestackhci.inputs.IntentsArgs.builder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The Intents of a cluster.
 * @property adapter Array of network interfaces used for the network intent.
 * @property adapterPropertyOverrides Set Adapter PropertyOverrides for cluster.
 * @property name Name of the network intent you wish to create.
 * @property overrideAdapterProperty This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation.
 * @property overrideQosPolicy This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation.
 * @property overrideVirtualSwitchConfiguration This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation.
 * @property qosPolicyOverrides Set QoS PolicyOverrides for cluster.
 * @property trafficType List of network traffic types. Only allowed values are 'Compute', 'Storage', 'Management'.
 * @property virtualSwitchConfigurationOverrides Set virtualSwitch ConfigurationOverrides for cluster.
 */
public data class IntentsArgs(
    public val adapter: Output>? = null,
    public val adapterPropertyOverrides: Output? = null,
    public val name: Output? = null,
    public val overrideAdapterProperty: Output? = null,
    public val overrideQosPolicy: Output? = null,
    public val overrideVirtualSwitchConfiguration: Output? = null,
    public val qosPolicyOverrides: Output? = null,
    public val trafficType: Output>? = null,
    public val virtualSwitchConfigurationOverrides: Output? =
        null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.azurestackhci.inputs.IntentsArgs =
        com.pulumi.azurenative.azurestackhci.inputs.IntentsArgs.builder()
            .adapter(adapter?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .adapterPropertyOverrides(
                adapterPropertyOverrides?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .overrideAdapterProperty(overrideAdapterProperty?.applyValue({ args0 -> args0 }))
            .overrideQosPolicy(overrideQosPolicy?.applyValue({ args0 -> args0 }))
            .overrideVirtualSwitchConfiguration(
                overrideVirtualSwitchConfiguration?.applyValue({ args0 ->
                    args0
                }),
            )
            .qosPolicyOverrides(
                qosPolicyOverrides?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .trafficType(trafficType?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .virtualSwitchConfigurationOverrides(
                virtualSwitchConfigurationOverrides?.applyValue({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }),
            ).build()
}

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

    private var adapterPropertyOverrides: Output? = null

    private var name: Output? = null

    private var overrideAdapterProperty: Output? = null

    private var overrideQosPolicy: Output? = null

    private var overrideVirtualSwitchConfiguration: Output? = null

    private var qosPolicyOverrides: Output? = null

    private var trafficType: Output>? = null

    private var virtualSwitchConfigurationOverrides: Output? =
        null

    /**
     * @param value Array of network interfaces used for the network intent.
     */
    @JvmName("ecrbysevnglaglhl")
    public suspend fun adapter(`value`: Output>) {
        this.adapter = value
    }

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

    /**
     * @param values Array of network interfaces used for the network intent.
     */
    @JvmName("kmywqcjcgnoqwmac")
    public suspend fun adapter(values: List>) {
        this.adapter = Output.all(values)
    }

    /**
     * @param value Set Adapter PropertyOverrides for cluster.
     */
    @JvmName("xgumruyeasgxfdfo")
    public suspend fun adapterPropertyOverrides(`value`: Output) {
        this.adapterPropertyOverrides = value
    }

    /**
     * @param value Name of the network intent you wish to create.
     */
    @JvmName("ilgtcsnqowahhtqs")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation.
     */
    @JvmName("slseilqbmktcloue")
    public suspend fun overrideAdapterProperty(`value`: Output) {
        this.overrideAdapterProperty = value
    }

    /**
     * @param value This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation.
     */
    @JvmName("dqifadggxabmqsls")
    public suspend fun overrideQosPolicy(`value`: Output) {
        this.overrideQosPolicy = value
    }

    /**
     * @param value This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation.
     */
    @JvmName("lecwhltquvheyawo")
    public suspend fun overrideVirtualSwitchConfiguration(`value`: Output) {
        this.overrideVirtualSwitchConfiguration = value
    }

    /**
     * @param value Set QoS PolicyOverrides for cluster.
     */
    @JvmName("ffufrxymwsygdgkg")
    public suspend fun qosPolicyOverrides(`value`: Output) {
        this.qosPolicyOverrides = value
    }

    /**
     * @param value List of network traffic types. Only allowed values are 'Compute', 'Storage', 'Management'.
     */
    @JvmName("yitijnlolrrmksee")
    public suspend fun trafficType(`value`: Output>) {
        this.trafficType = value
    }

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

    /**
     * @param values List of network traffic types. Only allowed values are 'Compute', 'Storage', 'Management'.
     */
    @JvmName("xkycepedmfniplra")
    public suspend fun trafficType(values: List>) {
        this.trafficType = Output.all(values)
    }

    /**
     * @param value Set virtualSwitch ConfigurationOverrides for cluster.
     */
    @JvmName("wfobesnhufapnwqi")
    public suspend fun virtualSwitchConfigurationOverrides(`value`: Output) {
        this.virtualSwitchConfigurationOverrides = value
    }

    /**
     * @param value Array of network interfaces used for the network intent.
     */
    @JvmName("rshbttqklneiofdx")
    public suspend fun adapter(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.adapter = mapped
    }

    /**
     * @param values Array of network interfaces used for the network intent.
     */
    @JvmName("khycbhaubqotpdbx")
    public suspend fun adapter(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.adapter = mapped
    }

    /**
     * @param value Set Adapter PropertyOverrides for cluster.
     */
    @JvmName("jmuyttucxxkgjurl")
    public suspend fun adapterPropertyOverrides(`value`: AdapterPropertyOverridesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.adapterPropertyOverrides = mapped
    }

    /**
     * @param argument Set Adapter PropertyOverrides for cluster.
     */
    @JvmName("lbfshdikdmyqwssl")
    public suspend fun adapterPropertyOverrides(argument: suspend AdapterPropertyOverridesArgsBuilder.() -> Unit) {
        val toBeMapped = AdapterPropertyOverridesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.adapterPropertyOverrides = mapped
    }

    /**
     * @param value Name of the network intent you wish to create.
     */
    @JvmName("nkycgkxhuoaxeygq")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation.
     */
    @JvmName("pofcnfxosoccyvnh")
    public suspend fun overrideAdapterProperty(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.overrideAdapterProperty = mapped
    }

    /**
     * @param value This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation.
     */
    @JvmName("spfpvoxdilhmwjxf")
    public suspend fun overrideQosPolicy(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.overrideQosPolicy = mapped
    }

    /**
     * @param value This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation.
     */
    @JvmName("sotdioaqefgsxlqh")
    public suspend fun overrideVirtualSwitchConfiguration(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.overrideVirtualSwitchConfiguration = mapped
    }

    /**
     * @param value Set QoS PolicyOverrides for cluster.
     */
    @JvmName("bgqjbtppuicdschh")
    public suspend fun qosPolicyOverrides(`value`: QosPolicyOverridesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.qosPolicyOverrides = mapped
    }

    /**
     * @param argument Set QoS PolicyOverrides for cluster.
     */
    @JvmName("oggjknpukhikdigg")
    public suspend fun qosPolicyOverrides(argument: suspend QosPolicyOverridesArgsBuilder.() -> Unit) {
        val toBeMapped = QosPolicyOverridesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.qosPolicyOverrides = mapped
    }

    /**
     * @param value List of network traffic types. Only allowed values are 'Compute', 'Storage', 'Management'.
     */
    @JvmName("htkierxbadcxdfkm")
    public suspend fun trafficType(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trafficType = mapped
    }

    /**
     * @param values List of network traffic types. Only allowed values are 'Compute', 'Storage', 'Management'.
     */
    @JvmName("bjfarnudwrrsofvw")
    public suspend fun trafficType(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.trafficType = mapped
    }

    /**
     * @param value Set virtualSwitch ConfigurationOverrides for cluster.
     */
    @JvmName("itfanvnanekdvhvf")
    public suspend fun virtualSwitchConfigurationOverrides(`value`: VirtualSwitchConfigurationOverridesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.virtualSwitchConfigurationOverrides = mapped
    }

    /**
     * @param argument Set virtualSwitch ConfigurationOverrides for cluster.
     */
    @JvmName("grhdjmvohvqwotpa")
    public suspend fun virtualSwitchConfigurationOverrides(argument: suspend VirtualSwitchConfigurationOverridesArgsBuilder.() -> Unit) {
        val toBeMapped = VirtualSwitchConfigurationOverridesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.virtualSwitchConfigurationOverrides = mapped
    }

    internal fun build(): IntentsArgs = IntentsArgs(
        adapter = adapter,
        adapterPropertyOverrides = adapterPropertyOverrides,
        name = name,
        overrideAdapterProperty = overrideAdapterProperty,
        overrideQosPolicy = overrideQosPolicy,
        overrideVirtualSwitchConfiguration = overrideVirtualSwitchConfiguration,
        qosPolicyOverrides = qosPolicyOverrides,
        trafficType = trafficType,
        virtualSwitchConfigurationOverrides = virtualSwitchConfigurationOverrides,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy