com.pulumi.awsnative.connect.kotlin.inputs.HoursOfOperationConfigArgs.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.HoursOfOperationConfigArgs.builder
import com.pulumi.awsnative.connect.kotlin.enums.HoursOfOperationConfigDay
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 com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Contains information about the hours of operation.
* @property day The day that the hours of operation applies to.
* @property endTime The end time that your contact center closes.
* @property startTime The start time that your contact center opens.
*/
public data class HoursOfOperationConfigArgs(
public val day: Output,
public val endTime: Output,
public val startTime: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.connect.inputs.HoursOfOperationConfigArgs =
com.pulumi.awsnative.connect.inputs.HoursOfOperationConfigArgs.builder()
.day(day.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.endTime(endTime.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.startTime(startTime.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [HoursOfOperationConfigArgs].
*/
@PulumiTagMarker
public class HoursOfOperationConfigArgsBuilder internal constructor() {
private var day: Output? = null
private var endTime: Output? = null
private var startTime: Output? = null
/**
* @param value The day that the hours of operation applies to.
*/
@JvmName("fxnxiaooxqiltkkd")
public suspend fun day(`value`: Output) {
this.day = value
}
/**
* @param value The end time that your contact center closes.
*/
@JvmName("ttknmtrgcknyewxk")
public suspend fun endTime(`value`: Output) {
this.endTime = value
}
/**
* @param value The start time that your contact center opens.
*/
@JvmName("pvslkmlmbvrbpavu")
public suspend fun startTime(`value`: Output) {
this.startTime = value
}
/**
* @param value The day that the hours of operation applies to.
*/
@JvmName("pklruqaplcnompsl")
public suspend fun day(`value`: HoursOfOperationConfigDay) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.day = mapped
}
/**
* @param value The end time that your contact center closes.
*/
@JvmName("gahkpavagmwxcrpb")
public suspend fun endTime(`value`: HoursOfOperationTimeSliceArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.endTime = mapped
}
/**
* @param argument The end time that your contact center closes.
*/
@JvmName("vsodjnpinoofcrgh")
public suspend fun endTime(argument: suspend HoursOfOperationTimeSliceArgsBuilder.() -> Unit) {
val toBeMapped = HoursOfOperationTimeSliceArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.endTime = mapped
}
/**
* @param value The start time that your contact center opens.
*/
@JvmName("kljrdtwlxsosbovo")
public suspend fun startTime(`value`: HoursOfOperationTimeSliceArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.startTime = mapped
}
/**
* @param argument The start time that your contact center opens.
*/
@JvmName("vftcrctryshshysl")
public suspend fun startTime(argument: suspend HoursOfOperationTimeSliceArgsBuilder.() -> Unit) {
val toBeMapped = HoursOfOperationTimeSliceArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.startTime = mapped
}
internal fun build(): HoursOfOperationConfigArgs = HoursOfOperationConfigArgs(
day = day ?: throw PulumiNullFieldException("day"),
endTime = endTime ?: throw PulumiNullFieldException("endTime"),
startTime = startTime ?: throw PulumiNullFieldException("startTime"),
)
}