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

com.pulumi.azure.compute.kotlin.inputs.ScaleSetPacketCaptureMachineScopeArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.compute.kotlin.inputs

import com.pulumi.azure.compute.inputs.ScaleSetPacketCaptureMachineScopeArgs.builder
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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property excludeInstanceIds A list of Virtual Machine Scale Set instance IDs which should be excluded from running Packet Capture, e.g. `["0", "2"]`. Changing this forces a new resource to be created.
 * @property includeInstanceIds A list of Virtual Machine Scale Set instance IDs which should be included for Packet Capture, e.g. `["1", "3"]`. Changing this forces a new resource to be created.
 */
public data class ScaleSetPacketCaptureMachineScopeArgs(
    public val excludeInstanceIds: Output>? = null,
    public val includeInstanceIds: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.inputs.ScaleSetPacketCaptureMachineScopeArgs =
        com.pulumi.azure.compute.inputs.ScaleSetPacketCaptureMachineScopeArgs.builder()
            .excludeInstanceIds(excludeInstanceIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .includeInstanceIds(
                includeInstanceIds?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

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

    private var includeInstanceIds: Output>? = null

    /**
     * @param value A list of Virtual Machine Scale Set instance IDs which should be excluded from running Packet Capture, e.g. `["0", "2"]`. Changing this forces a new resource to be created.
     */
    @JvmName("qjjxglkilhcdkbxv")
    public suspend fun excludeInstanceIds(`value`: Output>) {
        this.excludeInstanceIds = value
    }

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

    /**
     * @param values A list of Virtual Machine Scale Set instance IDs which should be excluded from running Packet Capture, e.g. `["0", "2"]`. Changing this forces a new resource to be created.
     */
    @JvmName("npqxfhaahpimjtxu")
    public suspend fun excludeInstanceIds(values: List>) {
        this.excludeInstanceIds = Output.all(values)
    }

    /**
     * @param value A list of Virtual Machine Scale Set instance IDs which should be included for Packet Capture, e.g. `["1", "3"]`. Changing this forces a new resource to be created.
     */
    @JvmName("jsfxchnmkkchccwu")
    public suspend fun includeInstanceIds(`value`: Output>) {
        this.includeInstanceIds = value
    }

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

    /**
     * @param values A list of Virtual Machine Scale Set instance IDs which should be included for Packet Capture, e.g. `["1", "3"]`. Changing this forces a new resource to be created.
     */
    @JvmName("nbiedplgcticxhcm")
    public suspend fun includeInstanceIds(values: List>) {
        this.includeInstanceIds = Output.all(values)
    }

    /**
     * @param value A list of Virtual Machine Scale Set instance IDs which should be excluded from running Packet Capture, e.g. `["0", "2"]`. Changing this forces a new resource to be created.
     */
    @JvmName("tcoictcglhjejvhp")
    public suspend fun excludeInstanceIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludeInstanceIds = mapped
    }

    /**
     * @param values A list of Virtual Machine Scale Set instance IDs which should be excluded from running Packet Capture, e.g. `["0", "2"]`. Changing this forces a new resource to be created.
     */
    @JvmName("wqactkfyscwfhepo")
    public suspend fun excludeInstanceIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.excludeInstanceIds = mapped
    }

    /**
     * @param value A list of Virtual Machine Scale Set instance IDs which should be included for Packet Capture, e.g. `["1", "3"]`. Changing this forces a new resource to be created.
     */
    @JvmName("yweejnfennlyeswg")
    public suspend fun includeInstanceIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includeInstanceIds = mapped
    }

    /**
     * @param values A list of Virtual Machine Scale Set instance IDs which should be included for Packet Capture, e.g. `["1", "3"]`. Changing this forces a new resource to be created.
     */
    @JvmName("yfcsjhxcyktnoutg")
    public suspend fun includeInstanceIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includeInstanceIds = mapped
    }

    internal fun build(): ScaleSetPacketCaptureMachineScopeArgs =
        ScaleSetPacketCaptureMachineScopeArgs(
            excludeInstanceIds = excludeInstanceIds,
            includeInstanceIds = includeInstanceIds,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy