com.pulumi.azure.pim.kotlin.inputs.EligibleRoleAssignmentScheduleArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.pim.kotlin.inputs
import com.pulumi.azure.pim.inputs.EligibleRoleAssignmentScheduleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property expiration An `expiration` block as defined above.
* @property startDateTime The start date/time of the role assignment. Changing this forces a new resource to be created.
*/
public data class EligibleRoleAssignmentScheduleArgs(
public val expiration: Output? = null,
public val startDateTime: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.pim.inputs.EligibleRoleAssignmentScheduleArgs =
com.pulumi.azure.pim.inputs.EligibleRoleAssignmentScheduleArgs.builder()
.expiration(expiration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.startDateTime(startDateTime?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EligibleRoleAssignmentScheduleArgs].
*/
@PulumiTagMarker
public class EligibleRoleAssignmentScheduleArgsBuilder internal constructor() {
private var expiration: Output? = null
private var startDateTime: Output? = null
/**
* @param value An `expiration` block as defined above.
*/
@JvmName("lsynqsdostqsfbaw")
public suspend fun expiration(`value`: Output) {
this.expiration = value
}
/**
* @param value The start date/time of the role assignment. Changing this forces a new resource to be created.
*/
@JvmName("yjsdibavfivfcfbt")
public suspend fun startDateTime(`value`: Output) {
this.startDateTime = value
}
/**
* @param value An `expiration` block as defined above.
*/
@JvmName("ucdxsbarpqcupfjd")
public suspend fun expiration(`value`: EligibleRoleAssignmentScheduleExpirationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.expiration = mapped
}
/**
* @param argument An `expiration` block as defined above.
*/
@JvmName("ykgbqvyomqrxcbdl")
public suspend fun expiration(argument: suspend EligibleRoleAssignmentScheduleExpirationArgsBuilder.() -> Unit) {
val toBeMapped = EligibleRoleAssignmentScheduleExpirationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.expiration = mapped
}
/**
* @param value The start date/time of the role assignment. Changing this forces a new resource to be created.
*/
@JvmName("mjmlywwflrqqjolo")
public suspend fun startDateTime(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.startDateTime = mapped
}
internal fun build(): EligibleRoleAssignmentScheduleArgs = EligibleRoleAssignmentScheduleArgs(
expiration = expiration,
startDateTime = startDateTime,
)
}