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

com.pulumi.awsnative.iot.kotlin.inputs.TopicRuleTimestampArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iot.kotlin.inputs

import com.pulumi.awsnative.iot.inputs.TopicRuleTimestampArgs.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 unit The precision of the timestamp value that results from the expression described in `value` .
 * @property value An expression that returns a long epoch time value.
 */
public data class TopicRuleTimestampArgs(
    public val unit: Output? = null,
    public val `value`: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iot.inputs.TopicRuleTimestampArgs =
        com.pulumi.awsnative.iot.inputs.TopicRuleTimestampArgs.builder()
            .unit(unit?.applyValue({ args0 -> args0 }))
            .`value`(`value`.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TopicRuleTimestampArgs].
 */
@PulumiTagMarker
public class TopicRuleTimestampArgsBuilder internal constructor() {
    private var unit: Output? = null

    private var `value`: Output? = null

    /**
     * @param value The precision of the timestamp value that results from the expression described in `value` .
     */
    @JvmName("otrtngsvigophtjo")
    public suspend fun unit(`value`: Output) {
        this.unit = value
    }

    /**
     * @param value An expression that returns a long epoch time value.
     */
    @JvmName("atscyvfytcxvnxqh")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The precision of the timestamp value that results from the expression described in `value` .
     */
    @JvmName("ldfuixijeslnacbr")
    public suspend fun unit(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.unit = mapped
    }

    /**
     * @param value An expression that returns a long epoch time value.
     */
    @JvmName("fmqykgmeyfoksdbo")
    public suspend fun `value`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): TopicRuleTimestampArgs = TopicRuleTimestampArgs(
        unit = unit,
        `value` = `value` ?: throw PulumiNullFieldException("value"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy