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

com.pulumi.azure.automation.kotlin.inputs.SoftwareUpdateConfigurationTargetAzureQueryArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.automation.kotlin.inputs

import com.pulumi.azure.automation.inputs.SoftwareUpdateConfigurationTargetAzureQueryArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property locations Specifies a list of locations to scope the query to.
 * @property scopes Specifies a list of Subscription or Resource Group ARM Ids to query.
 * @property tagFilter Specifies how the specified tags to filter VMs. Possible values are `Any` and `All`.
 * @property tags A mapping of tags used for query filter. One or more `tags` block as defined below.
 */
public data class SoftwareUpdateConfigurationTargetAzureQueryArgs(
    public val locations: Output>? = null,
    public val scopes: Output>? = null,
    public val tagFilter: Output? = null,
    public val tags: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.automation.inputs.SoftwareUpdateConfigurationTargetAzureQueryArgs =
        com.pulumi.azure.automation.inputs.SoftwareUpdateConfigurationTargetAzureQueryArgs.builder()
            .locations(locations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .scopes(scopes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tagFilter(tagFilter?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var scopes: Output>? = null

    private var tagFilter: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Specifies a list of locations to scope the query to.
     */
    @JvmName("eocjpvobxljfqijt")
    public suspend fun locations(`value`: Output>) {
        this.locations = value
    }

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

    /**
     * @param values Specifies a list of locations to scope the query to.
     */
    @JvmName("wprqyqnuufdjqfqf")
    public suspend fun locations(values: List>) {
        this.locations = Output.all(values)
    }

    /**
     * @param value Specifies a list of Subscription or Resource Group ARM Ids to query.
     */
    @JvmName("qmjwaeueegmrupbo")
    public suspend fun scopes(`value`: Output>) {
        this.scopes = value
    }

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

    /**
     * @param values Specifies a list of Subscription or Resource Group ARM Ids to query.
     */
    @JvmName("dpwgtsxnxqxodtbv")
    public suspend fun scopes(values: List>) {
        this.scopes = Output.all(values)
    }

    /**
     * @param value Specifies how the specified tags to filter VMs. Possible values are `Any` and `All`.
     */
    @JvmName("kyholqgwqnjhjtaw")
    public suspend fun tagFilter(`value`: Output) {
        this.tagFilter = value
    }

    /**
     * @param value A mapping of tags used for query filter. One or more `tags` block as defined below.
     */
    @JvmName("cqbeimaighfldbeb")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A mapping of tags used for query filter. One or more `tags` block as defined below.
     */
    @JvmName("vpfpbkwokkoenamm")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Specifies a list of locations to scope the query to.
     */
    @JvmName("hgyyhggegcfbaxts")
    public suspend fun locations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.locations = mapped
    }

    /**
     * @param values Specifies a list of locations to scope the query to.
     */
    @JvmName("ybwdbqfapeyfhssa")
    public suspend fun locations(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.locations = mapped
    }

    /**
     * @param value Specifies a list of Subscription or Resource Group ARM Ids to query.
     */
    @JvmName("tuaabdybdfvjkqgo")
    public suspend fun scopes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    /**
     * @param values Specifies a list of Subscription or Resource Group ARM Ids to query.
     */
    @JvmName("yexvuwhprtrphftg")
    public suspend fun scopes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.scopes = mapped
    }

    /**
     * @param value Specifies how the specified tags to filter VMs. Possible values are `Any` and `All`.
     */
    @JvmName("prdvuwchbtawjkkt")
    public suspend fun tagFilter(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tagFilter = mapped
    }

    /**
     * @param value A mapping of tags used for query filter. One or more `tags` block as defined below.
     */
    @JvmName("rxhwneglcitroybm")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A mapping of tags used for query filter. One or more `tags` block as defined below.
     */
    @JvmName("borbgbpctpybnrko")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SoftwareUpdateConfigurationTargetAzureQueryTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A mapping of tags used for query filter. One or more `tags` block as defined below.
     */
    @JvmName("rcfaejlddrkwscuv")
    public suspend fun tags(vararg argument: suspend SoftwareUpdateConfigurationTargetAzureQueryTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SoftwareUpdateConfigurationTargetAzureQueryTagArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A mapping of tags used for query filter. One or more `tags` block as defined below.
     */
    @JvmName("wlercctwieuvxbmf")
    public suspend fun tags(argument: suspend SoftwareUpdateConfigurationTargetAzureQueryTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            SoftwareUpdateConfigurationTargetAzureQueryTagArgsBuilder().applySuspend
                { argument() }.build(),
        )
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags used for query filter. One or more `tags` block as defined below.
     */
    @JvmName("qkkoxdahrjroixhy")
    public suspend fun tags(vararg values: SoftwareUpdateConfigurationTargetAzureQueryTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): SoftwareUpdateConfigurationTargetAzureQueryArgs =
        SoftwareUpdateConfigurationTargetAzureQueryArgs(
            locations = locations,
            scopes = scopes,
            tagFilter = tagFilter,
            tags = tags,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy