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

com.pulumi.aws.costexplorer.kotlin.inputs.AnomalySubscriptionThresholdExpressionArgs.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.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.costexplorer.kotlin.inputs

import com.pulumi.aws.costexplorer.inputs.AnomalySubscriptionThresholdExpressionArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property ands Return results that match both Dimension objects.
 * @property costCategory Configuration block for the filter that's based on  values. See Cost Category below.
 * @property dimension Configuration block for the specific Dimension to use for.
 * @property not Return results that do not match the Dimension object.
 * @property ors Return results that match either Dimension object.
 * @property tags Configuration block for the specific Tag to use for. See Tags below.
 */
public data class AnomalySubscriptionThresholdExpressionArgs(
    public val ands: Output>? = null,
    public val costCategory: Output? = null,
    public val dimension: Output? = null,
    public val not: Output? = null,
    public val ors: Output>? = null,
    public val tags: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.costexplorer.inputs.AnomalySubscriptionThresholdExpressionArgs =
        com.pulumi.aws.costexplorer.inputs.AnomalySubscriptionThresholdExpressionArgs.builder()
            .ands(ands?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .costCategory(costCategory?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .dimension(dimension?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .not(not?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .ors(ors?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .tags(tags?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var costCategory: Output? = null

    private var dimension: Output? = null

    private var not: Output? = null

    private var ors: Output>? = null

    private var tags: Output? = null

    /**
     * @param value Return results that match both Dimension objects.
     */
    @JvmName("mfvcxqkeljstxbeu")
    public suspend fun ands(`value`: Output>) {
        this.ands = value
    }

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

    /**
     * @param values Return results that match both Dimension objects.
     */
    @JvmName("rpugabywojwnqvfh")
    public suspend fun ands(values: List>) {
        this.ands = Output.all(values)
    }

    /**
     * @param value Configuration block for the filter that's based on  values. See Cost Category below.
     */
    @JvmName("jippnltiwdfpuvxa")
    public suspend fun costCategory(`value`: Output) {
        this.costCategory = value
    }

    /**
     * @param value Configuration block for the specific Dimension to use for.
     */
    @JvmName("gorvxtabriheleme")
    public suspend fun dimension(`value`: Output) {
        this.dimension = value
    }

    /**
     * @param value Return results that do not match the Dimension object.
     */
    @JvmName("qfhtqwrkmsqsufto")
    public suspend fun not(`value`: Output) {
        this.not = value
    }

    /**
     * @param value Return results that match either Dimension object.
     */
    @JvmName("byexxwavfokxqfct")
    public suspend fun ors(`value`: Output>) {
        this.ors = value
    }

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

    /**
     * @param values Return results that match either Dimension object.
     */
    @JvmName("gbbbgmdsdlglsfly")
    public suspend fun ors(values: List>) {
        this.ors = Output.all(values)
    }

    /**
     * @param value Configuration block for the specific Tag to use for. See Tags below.
     */
    @JvmName("cutofkbhahbwriro")
    public suspend fun tags(`value`: Output) {
        this.tags = value
    }

    /**
     * @param value Return results that match both Dimension objects.
     */
    @JvmName("hwsaaqspoytogqmi")
    public suspend fun ands(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ands = mapped
    }

    /**
     * @param argument Return results that match both Dimension objects.
     */
    @JvmName("qgiadqvkwlkchrxq")
    public suspend fun ands(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AnomalySubscriptionThresholdExpressionAndArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ands = mapped
    }

    /**
     * @param argument Return results that match both Dimension objects.
     */
    @JvmName("wymnmpdvbsmmqgvs")
    public suspend fun ands(vararg argument: suspend AnomalySubscriptionThresholdExpressionAndArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AnomalySubscriptionThresholdExpressionAndArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ands = mapped
    }

    /**
     * @param argument Return results that match both Dimension objects.
     */
    @JvmName("hdtoshkekabtpwow")
    public suspend fun ands(argument: suspend AnomalySubscriptionThresholdExpressionAndArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AnomalySubscriptionThresholdExpressionAndArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.ands = mapped
    }

    /**
     * @param values Return results that match both Dimension objects.
     */
    @JvmName("lvxoddncclhgkgqf")
    public suspend fun ands(vararg values: AnomalySubscriptionThresholdExpressionAndArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ands = mapped
    }

    /**
     * @param value Configuration block for the filter that's based on  values. See Cost Category below.
     */
    @JvmName("xunycrenlpfwufqx")
    public suspend fun costCategory(`value`: AnomalySubscriptionThresholdExpressionCostCategoryArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.costCategory = mapped
    }

    /**
     * @param argument Configuration block for the filter that's based on  values. See Cost Category below.
     */
    @JvmName("nppxtffqxettulrd")
    public suspend fun costCategory(argument: suspend AnomalySubscriptionThresholdExpressionCostCategoryArgsBuilder.() -> Unit) {
        val toBeMapped = AnomalySubscriptionThresholdExpressionCostCategoryArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.costCategory = mapped
    }

    /**
     * @param value Configuration block for the specific Dimension to use for.
     */
    @JvmName("qipeklmryitppadq")
    public suspend fun dimension(`value`: AnomalySubscriptionThresholdExpressionDimensionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dimension = mapped
    }

    /**
     * @param argument Configuration block for the specific Dimension to use for.
     */
    @JvmName("jkcadwutepiawoxu")
    public suspend fun dimension(argument: suspend AnomalySubscriptionThresholdExpressionDimensionArgsBuilder.() -> Unit) {
        val toBeMapped = AnomalySubscriptionThresholdExpressionDimensionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.dimension = mapped
    }

    /**
     * @param value Return results that do not match the Dimension object.
     */
    @JvmName("vcckiafnvfmwrpwg")
    public suspend fun not(`value`: AnomalySubscriptionThresholdExpressionNotArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.not = mapped
    }

    /**
     * @param argument Return results that do not match the Dimension object.
     */
    @JvmName("uwrsdjgckuqtrgde")
    public suspend fun not(argument: suspend AnomalySubscriptionThresholdExpressionNotArgsBuilder.() -> Unit) {
        val toBeMapped = AnomalySubscriptionThresholdExpressionNotArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.not = mapped
    }

    /**
     * @param value Return results that match either Dimension object.
     */
    @JvmName("kdennbgbkbcoqvxh")
    public suspend fun ors(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ors = mapped
    }

    /**
     * @param argument Return results that match either Dimension object.
     */
    @JvmName("spctubgiknprocae")
    public suspend fun ors(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AnomalySubscriptionThresholdExpressionOrArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ors = mapped
    }

    /**
     * @param argument Return results that match either Dimension object.
     */
    @JvmName("ejmikmxwfxgmyteb")
    public suspend fun ors(vararg argument: suspend AnomalySubscriptionThresholdExpressionOrArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AnomalySubscriptionThresholdExpressionOrArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.ors = mapped
    }

    /**
     * @param argument Return results that match either Dimension object.
     */
    @JvmName("ciukqbimwlngivvj")
    public suspend fun ors(argument: suspend AnomalySubscriptionThresholdExpressionOrArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AnomalySubscriptionThresholdExpressionOrArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.ors = mapped
    }

    /**
     * @param values Return results that match either Dimension object.
     */
    @JvmName("tuxylrhhtopwusfo")
    public suspend fun ors(vararg values: AnomalySubscriptionThresholdExpressionOrArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ors = mapped
    }

    /**
     * @param value Configuration block for the specific Tag to use for. See Tags below.
     */
    @JvmName("ewhupxanyqgqrhjl")
    public suspend fun tags(`value`: AnomalySubscriptionThresholdExpressionTagsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Configuration block for the specific Tag to use for. See Tags below.
     */
    @JvmName("xbrtlpinxggaoqbx")
    public suspend fun tags(argument: suspend AnomalySubscriptionThresholdExpressionTagsArgsBuilder.() -> Unit) {
        val toBeMapped = AnomalySubscriptionThresholdExpressionTagsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    internal fun build(): AnomalySubscriptionThresholdExpressionArgs =
        AnomalySubscriptionThresholdExpressionArgs(
            ands = ands,
            costCategory = costCategory,
            dimension = dimension,
            not = not,
            ors = ors,
            tags = tags,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy