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

com.pulumi.awsnative.iotevents.kotlin.inputs.DetectorModelAssetPropertyTimestampArgs.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.iotevents.kotlin.inputs

import com.pulumi.awsnative.iotevents.inputs.DetectorModelAssetPropertyTimestampArgs.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 DetectorModelAssetPropertyTimestampArgs(
    public val offsetInNanos: Output? = null,
    public val timeInSeconds: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotevents.inputs.DetectorModelAssetPropertyTimestampArgs =
        com.pulumi.awsnative.iotevents.inputs.DetectorModelAssetPropertyTimestampArgs.builder()
            .offsetInNanos(offsetInNanos?.applyValue({ args0 -> args0 }))
            .timeInSeconds(timeInSeconds.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DetectorModelAssetPropertyTimestampArgs].
 */
@PulumiTagMarker
public class DetectorModelAssetPropertyTimestampArgsBuilder 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("dheeqimyrngqejoq")
    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("peabtlnvxmarvhhj")
    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("lmurgsujxmervyda")
    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("leepdxycjdkilnfa")
    public suspend fun timeInSeconds(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.timeInSeconds = mapped
    }

    internal fun build(): DetectorModelAssetPropertyTimestampArgs =
        DetectorModelAssetPropertyTimestampArgs(
            offsetInNanos = offsetInNanos,
            timeInSeconds = timeInSeconds ?: throw PulumiNullFieldException("timeInSeconds"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy