![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.customerprofiles.kotlin.inputs.CalculatedAttributeDefinitionRangeArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.customerprofiles.kotlin.inputs
import com.pulumi.awsnative.customerprofiles.inputs.CalculatedAttributeDefinitionRangeArgs.builder
import com.pulumi.awsnative.customerprofiles.kotlin.enums.CalculatedAttributeDefinitionRangeUnit
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.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* The relative time period over which data is included in the aggregation.
* @property unit The unit of time.
* @property value The amount of time of the specified unit.
*/
public data class CalculatedAttributeDefinitionRangeArgs(
public val unit: Output,
public val `value`: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.customerprofiles.inputs.CalculatedAttributeDefinitionRangeArgs =
com.pulumi.awsnative.customerprofiles.inputs.CalculatedAttributeDefinitionRangeArgs.builder()
.unit(unit.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CalculatedAttributeDefinitionRangeArgs].
*/
@PulumiTagMarker
public class CalculatedAttributeDefinitionRangeArgsBuilder internal constructor() {
private var unit: Output? = null
private var `value`: Output? = null
/**
* @param value The unit of time.
*/
@JvmName("fwkemowgdulfjneo")
public suspend fun unit(`value`: Output) {
this.unit = value
}
/**
* @param value The amount of time of the specified unit.
*/
@JvmName("rahyalgmuocqlpyn")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value The unit of time.
*/
@JvmName("baquycocwvscmnkd")
public suspend fun unit(`value`: CalculatedAttributeDefinitionRangeUnit) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.unit = mapped
}
/**
* @param value The amount of time of the specified unit.
*/
@JvmName("glnqdtcrbjvyngto")
public suspend fun `value`(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): CalculatedAttributeDefinitionRangeArgs =
CalculatedAttributeDefinitionRangeArgs(
unit = unit ?: throw PulumiNullFieldException("unit"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy