com.pulumi.awsnative.iot.kotlin.inputs.TopicRuleAssetPropertyTimestampArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iot.kotlin.inputs
import com.pulumi.awsnative.iot.inputs.TopicRuleAssetPropertyTimestampArgs.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
/**
*
* @property offsetInNanos Optional. A string that contains the nanosecond time offset. Accepts substitution templates.
* @property timeInSeconds A string that contains the time in seconds since epoch. Accepts substitution templates.
*/
public data class TopicRuleAssetPropertyTimestampArgs(
public val offsetInNanos: Output? = null,
public val timeInSeconds: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.iot.inputs.TopicRuleAssetPropertyTimestampArgs =
com.pulumi.awsnative.iot.inputs.TopicRuleAssetPropertyTimestampArgs.builder()
.offsetInNanos(offsetInNanos?.applyValue({ args0 -> args0 }))
.timeInSeconds(timeInSeconds.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TopicRuleAssetPropertyTimestampArgs].
*/
@PulumiTagMarker
public class TopicRuleAssetPropertyTimestampArgsBuilder internal constructor() {
private var offsetInNanos: Output? = null
private var timeInSeconds: Output? = null
/**
* @param value Optional. A string that contains the nanosecond time offset. Accepts substitution templates.
*/
@JvmName("olvjdxnpxhcknfwf")
public suspend fun offsetInNanos(`value`: Output) {
this.offsetInNanos = value
}
/**
* @param value A string that contains the time in seconds since epoch. Accepts substitution templates.
*/
@JvmName("xekheapftemytlal")
public suspend fun timeInSeconds(`value`: Output) {
this.timeInSeconds = value
}
/**
* @param value Optional. A string that contains the nanosecond time offset. Accepts substitution templates.
*/
@JvmName("ciysyloomrokrnom")
public suspend fun offsetInNanos(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.offsetInNanos = mapped
}
/**
* @param value A string that contains the time in seconds since epoch. Accepts substitution templates.
*/
@JvmName("bmbwppbwhypiavhy")
public suspend fun timeInSeconds(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.timeInSeconds = mapped
}
internal fun build(): TopicRuleAssetPropertyTimestampArgs = TopicRuleAssetPropertyTimestampArgs(
offsetInNanos = offsetInNanos,
timeInSeconds = timeInSeconds ?: throw PulumiNullFieldException("timeInSeconds"),
)
}