
com.pulumi.awsnative.iotevents.kotlin.inputs.AlarmModelAssetPropertyTimestampArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iotevents.kotlin.inputs
import com.pulumi.awsnative.iotevents.inputs.AlarmModelAssetPropertyTimestampArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A structure that contains timestamp information. For more information, see [TimeInNanos](https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_TimeInNanos.html) in the *AWS IoT SiteWise API Reference*.
* @property offsetInNanos The timestamp, in seconds, in the Unix epoch format. The valid range is between `1-31556889864403199`. You can also specify an expression.
* @property timeInSeconds The nanosecond offset converted from `timeInSeconds`. The valid range is between `0-999999999`. You can also specify an expression.
*/
public data class AlarmModelAssetPropertyTimestampArgs(
public val offsetInNanos: Output? = null,
public val timeInSeconds: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iotevents.inputs.AlarmModelAssetPropertyTimestampArgs = com.pulumi.awsnative.iotevents.inputs.AlarmModelAssetPropertyTimestampArgs.builder()
.offsetInNanos(offsetInNanos?.applyValue({ args0 -> args0 }))
.timeInSeconds(timeInSeconds.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AlarmModelAssetPropertyTimestampArgs].
*/
@PulumiTagMarker
public class AlarmModelAssetPropertyTimestampArgsBuilder internal constructor() {
private var offsetInNanos: Output? = null
private var timeInSeconds: Output? = null
/**
* @param value The timestamp, in seconds, in the Unix epoch format. The valid range is between `1-31556889864403199`. You can also specify an expression.
*/
@JvmName("fcdrgdtvjgfevpsb")
public suspend fun offsetInNanos(`value`: Output) {
this.offsetInNanos = value
}
/**
* @param value The nanosecond offset converted from `timeInSeconds`. The valid range is between `0-999999999`. You can also specify an expression.
*/
@JvmName("kcnlgckdcamsuevn")
public suspend fun timeInSeconds(`value`: Output) {
this.timeInSeconds = value
}
/**
* @param value The timestamp, in seconds, in the Unix epoch format. The valid range is between `1-31556889864403199`. You can also specify an expression.
*/
@JvmName("vtafvegoagxrvwvj")
public suspend fun offsetInNanos(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.offsetInNanos = mapped
}
/**
* @param value The nanosecond offset converted from `timeInSeconds`. The valid range is between `0-999999999`. You can also specify an expression.
*/
@JvmName("huwftqeypfhkauso")
public suspend fun timeInSeconds(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.timeInSeconds = mapped
}
internal fun build(): AlarmModelAssetPropertyTimestampArgs = AlarmModelAssetPropertyTimestampArgs(
offsetInNanos = offsetInNanos,
timeInSeconds = timeInSeconds ?: throw PulumiNullFieldException("timeInSeconds"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy