com.pulumi.awsnative.connect.kotlin.inputs.HoursOfOperationTimeSliceArgs.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.connect.kotlin.inputs
import com.pulumi.awsnative.connect.inputs.HoursOfOperationTimeSliceArgs.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 start time or end time for an hours of operation.
* @property hours The hours.
* @property minutes The minutes.
*/
public data class HoursOfOperationTimeSliceArgs(
public val hours: Output,
public val minutes: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.connect.inputs.HoursOfOperationTimeSliceArgs =
com.pulumi.awsnative.connect.inputs.HoursOfOperationTimeSliceArgs.builder()
.hours(hours.applyValue({ args0 -> args0 }))
.minutes(minutes.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [HoursOfOperationTimeSliceArgs].
*/
@PulumiTagMarker
public class HoursOfOperationTimeSliceArgsBuilder internal constructor() {
private var hours: Output? = null
private var minutes: Output? = null
/**
* @param value The hours.
*/
@JvmName("viuittnyntfrmpdq")
public suspend fun hours(`value`: Output) {
this.hours = value
}
/**
* @param value The minutes.
*/
@JvmName("mvnvtbkrkhrnifoi")
public suspend fun minutes(`value`: Output) {
this.minutes = value
}
/**
* @param value The hours.
*/
@JvmName("vodfdhmnrufxodwe")
public suspend fun hours(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.hours = mapped
}
/**
* @param value The minutes.
*/
@JvmName("ndegoiwftrldvngd")
public suspend fun minutes(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.minutes = mapped
}
internal fun build(): HoursOfOperationTimeSliceArgs = HoursOfOperationTimeSliceArgs(
hours = hours ?: throw PulumiNullFieldException("hours"),
minutes = minutes ?: throw PulumiNullFieldException("minutes"),
)
}