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

com.pulumi.awsnative.customerprofiles.kotlin.CalculatedAttributeDefinitionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.customerprofiles.kotlin

import com.pulumi.awsnative.customerprofiles.CalculatedAttributeDefinitionArgs.builder
import com.pulumi.awsnative.customerprofiles.kotlin.enums.CalculatedAttributeDefinitionStatistic
import com.pulumi.awsnative.customerprofiles.kotlin.inputs.CalculatedAttributeDefinitionAttributeDetailsArgs
import com.pulumi.awsnative.customerprofiles.kotlin.inputs.CalculatedAttributeDefinitionAttributeDetailsArgsBuilder
import com.pulumi.awsnative.customerprofiles.kotlin.inputs.CalculatedAttributeDefinitionConditionsArgs
import com.pulumi.awsnative.customerprofiles.kotlin.inputs.CalculatedAttributeDefinitionConditionsArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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

/**
 * A calculated attribute definition for Customer Profiles
 * @property attributeDetails Mathematical expression and a list of attribute items specified in that expression.
 * @property calculatedAttributeName The name of an attribute defined in a profile object type.
 * @property conditions The conditions including range, object count, and threshold for the calculated attribute.
 * @property description The description of the calculated attribute.
 * @property displayName The display name of the calculated attribute.
 * @property domainName The unique name of the domain.
 * @property statistic The aggregation operation to perform for the calculated attribute.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class CalculatedAttributeDefinitionArgs(
    public val attributeDetails: Output? = null,
    public val calculatedAttributeName: Output? = null,
    public val conditions: Output? = null,
    public val description: Output? = null,
    public val displayName: Output? = null,
    public val domainName: Output? = null,
    public val statistic: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.customerprofiles.CalculatedAttributeDefinitionArgs =
        com.pulumi.awsnative.customerprofiles.CalculatedAttributeDefinitionArgs.builder()
            .attributeDetails(attributeDetails?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .calculatedAttributeName(calculatedAttributeName?.applyValue({ args0 -> args0 }))
            .conditions(conditions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .displayName(displayName?.applyValue({ args0 -> args0 }))
            .domainName(domainName?.applyValue({ args0 -> args0 }))
            .statistic(statistic?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [CalculatedAttributeDefinitionArgs].
 */
@PulumiTagMarker
public class CalculatedAttributeDefinitionArgsBuilder internal constructor() {
    private var attributeDetails: Output? = null

    private var calculatedAttributeName: Output? = null

    private var conditions: Output? = null

    private var description: Output? = null

    private var displayName: Output? = null

    private var domainName: Output? = null

    private var statistic: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Mathematical expression and a list of attribute items specified in that expression.
     */
    @JvmName("udmrnjvkrwkyafjd")
    public suspend fun attributeDetails(`value`: Output) {
        this.attributeDetails = value
    }

    /**
     * @param value The name of an attribute defined in a profile object type.
     */
    @JvmName("jkmjcshlqmyiltrj")
    public suspend fun calculatedAttributeName(`value`: Output) {
        this.calculatedAttributeName = value
    }

    /**
     * @param value The conditions including range, object count, and threshold for the calculated attribute.
     */
    @JvmName("xvmpfqxftuqrwxxf")
    public suspend fun conditions(`value`: Output) {
        this.conditions = value
    }

    /**
     * @param value The description of the calculated attribute.
     */
    @JvmName("igqngnjgqrrhpkeh")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The display name of the calculated attribute.
     */
    @JvmName("xucdtqpkmhjfqdxi")
    public suspend fun displayName(`value`: Output) {
        this.displayName = value
    }

    /**
     * @param value The unique name of the domain.
     */
    @JvmName("nkrtlvsfmdaqngxv")
    public suspend fun domainName(`value`: Output) {
        this.domainName = value
    }

    /**
     * @param value The aggregation operation to perform for the calculated attribute.
     */
    @JvmName("twbkqkbcgfwffjsf")
    public suspend fun statistic(`value`: Output) {
        this.statistic = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("fuqnogxqqougysjh")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("wcypopfusyelqres")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value Mathematical expression and a list of attribute items specified in that expression.
     */
    @JvmName("dxsuqnrjdfmqscaj")
    public suspend fun attributeDetails(`value`: CalculatedAttributeDefinitionAttributeDetailsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.attributeDetails = mapped
    }

    /**
     * @param argument Mathematical expression and a list of attribute items specified in that expression.
     */
    @JvmName("uebmmsmhrmfyxyvq")
    public suspend fun attributeDetails(argument: suspend CalculatedAttributeDefinitionAttributeDetailsArgsBuilder.() -> Unit) {
        val toBeMapped = CalculatedAttributeDefinitionAttributeDetailsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.attributeDetails = mapped
    }

    /**
     * @param value The name of an attribute defined in a profile object type.
     */
    @JvmName("rycmnlvqhvgixfrd")
    public suspend fun calculatedAttributeName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.calculatedAttributeName = mapped
    }

    /**
     * @param value The conditions including range, object count, and threshold for the calculated attribute.
     */
    @JvmName("mgyqftguyqyhvxxt")
    public suspend fun conditions(`value`: CalculatedAttributeDefinitionConditionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.conditions = mapped
    }

    /**
     * @param argument The conditions including range, object count, and threshold for the calculated attribute.
     */
    @JvmName("xcxiaopsdqfmixyu")
    public suspend fun conditions(argument: suspend CalculatedAttributeDefinitionConditionsArgsBuilder.() -> Unit) {
        val toBeMapped = CalculatedAttributeDefinitionConditionsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.conditions = mapped
    }

    /**
     * @param value The description of the calculated attribute.
     */
    @JvmName("shlsocwsuqikntoy")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The display name of the calculated attribute.
     */
    @JvmName("oxoomuyrutpfrvid")
    public suspend fun displayName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.displayName = mapped
    }

    /**
     * @param value The unique name of the domain.
     */
    @JvmName("nsagfvdkaxnkqpjf")
    public suspend fun domainName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainName = mapped
    }

    /**
     * @param value The aggregation operation to perform for the calculated attribute.
     */
    @JvmName("jguckcafbdbtxiud")
    public suspend fun statistic(`value`: CalculatedAttributeDefinitionStatistic?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.statistic = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("pwsaosuetnubxgay")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("qinbixgikiiwdbdu")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("pialporxjorouisv")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("udmqubokxtqytqwd")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("prekeupexinibwlp")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): CalculatedAttributeDefinitionArgs = CalculatedAttributeDefinitionArgs(
        attributeDetails = attributeDetails,
        calculatedAttributeName = calculatedAttributeName,
        conditions = conditions,
        description = description,
        displayName = displayName,
        domainName = domainName,
        statistic = statistic,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy