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

com.pulumi.azure.pim.kotlin.inputs.ActiveRoleAssignmentScheduleExpirationArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azure.pim.inputs.ActiveRoleAssignmentScheduleExpirationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property durationDays The duration of the role assignment in days. Changing this forces a new resource to be created.
 * @property durationHours The duration of the role assignment in hours. Changing this forces a new resource to be created.
 * @property endDateTime The end date/time of the role assignment. Changing this forces a new resource to be created.
 * > Note: Only one of `duration_days`, `duration_hours` or `end_date_time` should be specified.
 */
public data class ActiveRoleAssignmentScheduleExpirationArgs(
    public val durationDays: Output? = null,
    public val durationHours: Output? = null,
    public val endDateTime: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.pim.inputs.ActiveRoleAssignmentScheduleExpirationArgs =
        com.pulumi.azure.pim.inputs.ActiveRoleAssignmentScheduleExpirationArgs.builder()
            .durationDays(durationDays?.applyValue({ args0 -> args0 }))
            .durationHours(durationHours?.applyValue({ args0 -> args0 }))
            .endDateTime(endDateTime?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ActiveRoleAssignmentScheduleExpirationArgs].
 */
@PulumiTagMarker
public class ActiveRoleAssignmentScheduleExpirationArgsBuilder internal constructor() {
    private var durationDays: Output? = null

    private var durationHours: Output? = null

    private var endDateTime: Output? = null

    /**
     * @param value The duration of the role assignment in days. Changing this forces a new resource to be created.
     */
    @JvmName("kitamlbfngyiwxle")
    public suspend fun durationDays(`value`: Output) {
        this.durationDays = value
    }

    /**
     * @param value The duration of the role assignment in hours. Changing this forces a new resource to be created.
     */
    @JvmName("txktgewcireglpif")
    public suspend fun durationHours(`value`: Output) {
        this.durationHours = value
    }

    /**
     * @param value The end date/time of the role assignment. Changing this forces a new resource to be created.
     * > Note: Only one of `duration_days`, `duration_hours` or `end_date_time` should be specified.
     */
    @JvmName("hawedqfhvicsqywe")
    public suspend fun endDateTime(`value`: Output) {
        this.endDateTime = value
    }

    /**
     * @param value The duration of the role assignment in days. Changing this forces a new resource to be created.
     */
    @JvmName("npcnhkcjtvrgbano")
    public suspend fun durationDays(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.durationDays = mapped
    }

    /**
     * @param value The duration of the role assignment in hours. Changing this forces a new resource to be created.
     */
    @JvmName("tdlbefcjywbrimna")
    public suspend fun durationHours(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.durationHours = mapped
    }

    /**
     * @param value The end date/time of the role assignment. Changing this forces a new resource to be created.
     * > Note: Only one of `duration_days`, `duration_hours` or `end_date_time` should be specified.
     */
    @JvmName("yucagfigprhlwbkx")
    public suspend fun endDateTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endDateTime = mapped
    }

    internal fun build(): ActiveRoleAssignmentScheduleExpirationArgs =
        ActiveRoleAssignmentScheduleExpirationArgs(
            durationDays = durationDays,
            durationHours = durationHours,
            endDateTime = endDateTime,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy