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

com.pulumi.azurenative.storsimple.kotlin.inputs.TimeArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.storsimple.kotlin.inputs

import com.pulumi.azurenative.storsimple.inputs.TimeArgs.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.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The time.
 * @property hours The hour.
 * @property minutes The minute.
 * @property seconds The second.
 */
public data class TimeArgs(
    public val hours: Output,
    public val minutes: Output,
    public val seconds: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.storsimple.inputs.TimeArgs =
        com.pulumi.azurenative.storsimple.inputs.TimeArgs.builder()
            .hours(hours.applyValue({ args0 -> args0 }))
            .minutes(minutes.applyValue({ args0 -> args0 }))
            .seconds(seconds.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TimeArgs].
 */
@PulumiTagMarker
public class TimeArgsBuilder internal constructor() {
    private var hours: Output? = null

    private var minutes: Output? = null

    private var seconds: Output? = null

    /**
     * @param value The hour.
     */
    @JvmName("bhuyiqjirwtouilk")
    public suspend fun hours(`value`: Output) {
        this.hours = value
    }

    /**
     * @param value The minute.
     */
    @JvmName("srtabvdbnmrbrdjm")
    public suspend fun minutes(`value`: Output) {
        this.minutes = value
    }

    /**
     * @param value The second.
     */
    @JvmName("gfqtwhhjackongss")
    public suspend fun seconds(`value`: Output) {
        this.seconds = value
    }

    /**
     * @param value The hour.
     */
    @JvmName("xlhwgpkjwrqxldpx")
    public suspend fun hours(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.hours = mapped
    }

    /**
     * @param value The minute.
     */
    @JvmName("ssnrkxcoxresvvqj")
    public suspend fun minutes(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.minutes = mapped
    }

    /**
     * @param value The second.
     */
    @JvmName("tlhjsrbbfhxmmrfo")
    public suspend fun seconds(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.seconds = mapped
    }

    internal fun build(): TimeArgs = TimeArgs(
        hours = hours ?: throw PulumiNullFieldException("hours"),
        minutes = minutes ?: throw PulumiNullFieldException("minutes"),
        seconds = seconds ?: throw PulumiNullFieldException("seconds"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy