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

com.pulumi.awsnative.pipes.kotlin.inputs.PipeDimensionMappingArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.pipes.kotlin.inputs

import com.pulumi.awsnative.pipes.inputs.PipeDimensionMappingArgs.builder
import com.pulumi.awsnative.pipes.kotlin.enums.PipeDimensionValueType
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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property dimensionName The metadata attributes of the time series. For example, the name and Availability Zone of an Amazon EC2 instance or the name of the manufacturer of a wind turbine are dimensions.
 * @property dimensionValue Dynamic path to the dimension value in the source event.
 * @property dimensionValueType The data type of the dimension for the time-series data.
 */
public data class PipeDimensionMappingArgs(
    public val dimensionName: Output,
    public val dimensionValue: Output,
    public val dimensionValueType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.pipes.inputs.PipeDimensionMappingArgs =
        com.pulumi.awsnative.pipes.inputs.PipeDimensionMappingArgs.builder()
            .dimensionName(dimensionName.applyValue({ args0 -> args0 }))
            .dimensionValue(dimensionValue.applyValue({ args0 -> args0 }))
            .dimensionValueType(
                dimensionValueType.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [PipeDimensionMappingArgs].
 */
@PulumiTagMarker
public class PipeDimensionMappingArgsBuilder internal constructor() {
    private var dimensionName: Output? = null

    private var dimensionValue: Output? = null

    private var dimensionValueType: Output? = null

    /**
     * @param value The metadata attributes of the time series. For example, the name and Availability Zone of an Amazon EC2 instance or the name of the manufacturer of a wind turbine are dimensions.
     */
    @JvmName("tygecrkvkupuuhvk")
    public suspend fun dimensionName(`value`: Output) {
        this.dimensionName = value
    }

    /**
     * @param value Dynamic path to the dimension value in the source event.
     */
    @JvmName("aiholpvlfixdncrx")
    public suspend fun dimensionValue(`value`: Output) {
        this.dimensionValue = value
    }

    /**
     * @param value The data type of the dimension for the time-series data.
     */
    @JvmName("xtcpeuiuspeheoeq")
    public suspend fun dimensionValueType(`value`: Output) {
        this.dimensionValueType = value
    }

    /**
     * @param value The metadata attributes of the time series. For example, the name and Availability Zone of an Amazon EC2 instance or the name of the manufacturer of a wind turbine are dimensions.
     */
    @JvmName("yfvinywbyvxjtgly")
    public suspend fun dimensionName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dimensionName = mapped
    }

    /**
     * @param value Dynamic path to the dimension value in the source event.
     */
    @JvmName("hpktqidonadipafq")
    public suspend fun dimensionValue(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dimensionValue = mapped
    }

    /**
     * @param value The data type of the dimension for the time-series data.
     */
    @JvmName("resahcngewepsxjc")
    public suspend fun dimensionValueType(`value`: PipeDimensionValueType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dimensionValueType = mapped
    }

    internal fun build(): PipeDimensionMappingArgs = PipeDimensionMappingArgs(
        dimensionName = dimensionName ?: throw PulumiNullFieldException("dimensionName"),
        dimensionValue = dimensionValue ?: throw PulumiNullFieldException("dimensionValue"),
        dimensionValueType = dimensionValueType ?: throw PulumiNullFieldException("dimensionValueType"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy