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

com.pulumi.azure.pim.kotlin.inputs.ActiveRoleAssignmentScheduleArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.pim.kotlin.inputs

import com.pulumi.azure.pim.inputs.ActiveRoleAssignmentScheduleArgs.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 ActiveRoleAssignmentScheduleArgs(
    public val expiration: Output? = null,
    public val startDateTime: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.pim.inputs.ActiveRoleAssignmentScheduleArgs =
        com.pulumi.azure.pim.inputs.ActiveRoleAssignmentScheduleArgs.builder()
            .expiration(expiration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .startDateTime(startDateTime?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ActiveRoleAssignmentScheduleArgs].
 */
@PulumiTagMarker
public class ActiveRoleAssignmentScheduleArgsBuilder internal constructor() {
    private var expiration: Output? = null

    private var startDateTime: Output? = null

    /**
     * @param value An `expiration` block as defined above.
     */
    @JvmName("ovdxmlclhoybaope")
    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("jblcuougphfbitdx")
    public suspend fun startDateTime(`value`: Output) {
        this.startDateTime = value
    }

    /**
     * @param value An `expiration` block as defined above.
     */
    @JvmName("dutcahpoivsrkwmr")
    public suspend fun expiration(`value`: ActiveRoleAssignmentScheduleExpirationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.expiration = mapped
    }

    /**
     * @param argument An `expiration` block as defined above.
     */
    @JvmName("rbixbpjrjdgrxqfh")
    public suspend fun expiration(argument: suspend ActiveRoleAssignmentScheduleExpirationArgsBuilder.() -> Unit) {
        val toBeMapped = ActiveRoleAssignmentScheduleExpirationArgsBuilder().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("lffptlqjjfmpniyn")
    public suspend fun startDateTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.startDateTime = mapped
    }

    internal fun build(): ActiveRoleAssignmentScheduleArgs = ActiveRoleAssignmentScheduleArgs(
        expiration = expiration,
        startDateTime = startDateTime,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy