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

com.pulumi.azurenative.chaos.kotlin.inputs.QuerySelectorArgs.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.chaos.kotlin.inputs

import com.pulumi.azurenative.chaos.inputs.QuerySelectorArgs.builder
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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Model that represents a query selector.
 * @property filter Model that represents available filter types that can be applied to a targets list.
 * @property id String of the selector ID.
 * @property queryString Azure Resource Graph (ARG) Query Language query for target resources.
 * @property subscriptionIds Subscription id list to scope resource query.
 * @property type Enum of the selector type.
 * Expected value is 'Query'.
 */
public data class QuerySelectorArgs(
    public val filter: Output? = null,
    public val id: Output,
    public val queryString: Output,
    public val subscriptionIds: Output>,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.chaos.inputs.QuerySelectorArgs =
        com.pulumi.azurenative.chaos.inputs.QuerySelectorArgs.builder()
            .filter(filter?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .id(id.applyValue({ args0 -> args0 }))
            .queryString(queryString.applyValue({ args0 -> args0 }))
            .subscriptionIds(subscriptionIds.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [QuerySelectorArgs].
 */
@PulumiTagMarker
public class QuerySelectorArgsBuilder internal constructor() {
    private var filter: Output? = null

    private var id: Output? = null

    private var queryString: Output? = null

    private var subscriptionIds: Output>? = null

    private var type: Output? = null

    /**
     * @param value Model that represents available filter types that can be applied to a targets list.
     */
    @JvmName("uamxgqadvoycjfpp")
    public suspend fun filter(`value`: Output) {
        this.filter = value
    }

    /**
     * @param value String of the selector ID.
     */
    @JvmName("skkgxgduyhgavdrk")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value Azure Resource Graph (ARG) Query Language query for target resources.
     */
    @JvmName("hghjiurovieslvex")
    public suspend fun queryString(`value`: Output) {
        this.queryString = value
    }

    /**
     * @param value Subscription id list to scope resource query.
     */
    @JvmName("adtmbhhfctwnrmdt")
    public suspend fun subscriptionIds(`value`: Output>) {
        this.subscriptionIds = value
    }

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

    /**
     * @param values Subscription id list to scope resource query.
     */
    @JvmName("iqcokwnipkfgjvcf")
    public suspend fun subscriptionIds(values: List>) {
        this.subscriptionIds = Output.all(values)
    }

    /**
     * @param value Enum of the selector type.
     * Expected value is 'Query'.
     */
    @JvmName("kigebckjnfdxmhah")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value Model that represents available filter types that can be applied to a targets list.
     */
    @JvmName("wxrccmqerdlxcihg")
    public suspend fun filter(`value`: SimpleFilterArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filter = mapped
    }

    /**
     * @param argument Model that represents available filter types that can be applied to a targets list.
     */
    @JvmName("enukyhylcxmxuvgg")
    public suspend fun filter(argument: suspend SimpleFilterArgsBuilder.() -> Unit) {
        val toBeMapped = SimpleFilterArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.filter = mapped
    }

    /**
     * @param value String of the selector ID.
     */
    @JvmName("stjwchqmpxwytoco")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value Azure Resource Graph (ARG) Query Language query for target resources.
     */
    @JvmName("bgvtauggascydnlp")
    public suspend fun queryString(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queryString = mapped
    }

    /**
     * @param value Subscription id list to scope resource query.
     */
    @JvmName("cjedfybavwytbkws")
    public suspend fun subscriptionIds(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subscriptionIds = mapped
    }

    /**
     * @param values Subscription id list to scope resource query.
     */
    @JvmName("lfwjijhhncnatjfa")
    public suspend fun subscriptionIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subscriptionIds = mapped
    }

    /**
     * @param value Enum of the selector type.
     * Expected value is 'Query'.
     */
    @JvmName("jrtybalqgqyardjd")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): QuerySelectorArgs = QuerySelectorArgs(
        filter = filter,
        id = id ?: throw PulumiNullFieldException("id"),
        queryString = queryString ?: throw PulumiNullFieldException("queryString"),
        subscriptionIds = subscriptionIds ?: throw PulumiNullFieldException("subscriptionIds"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy