
com.pulumi.awsnative.iotevents.kotlin.outputs.AlarmModelAssetPropertyTimestamp.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iotevents.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* 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 AlarmModelAssetPropertyTimestamp(
public val offsetInNanos: String? = null,
public val timeInSeconds: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iotevents.outputs.AlarmModelAssetPropertyTimestamp): AlarmModelAssetPropertyTimestamp = AlarmModelAssetPropertyTimestamp(
offsetInNanos = javaType.offsetInNanos().map({ args0 -> args0 }).orElse(null),
timeInSeconds = javaType.timeInSeconds(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy