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

com.pulumi.azurenative.authorization.kotlin.inputs.AccessReviewInstanceArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.authorization.kotlin.inputs

import com.pulumi.azurenative.authorization.inputs.AccessReviewInstanceArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 * Access Review Instance.
 * @property backupReviewers This is the collection of backup reviewers.
 * @property endDateTime The DateTime when the review instance is scheduled to end.
 * @property reviewers This is the collection of reviewers.
 * @property startDateTime The DateTime when the review instance is scheduled to be start.
 */
public data class AccessReviewInstanceArgs(
    public val backupReviewers: Output>? = null,
    public val endDateTime: Output? = null,
    public val reviewers: Output>? = null,
    public val startDateTime: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.authorization.inputs.AccessReviewInstanceArgs =
        com.pulumi.azurenative.authorization.inputs.AccessReviewInstanceArgs.builder()
            .backupReviewers(
                backupReviewers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .endDateTime(endDateTime?.applyValue({ args0 -> args0 }))
            .reviewers(
                reviewers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .startDateTime(startDateTime?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AccessReviewInstanceArgs].
 */
@PulumiTagMarker
public class AccessReviewInstanceArgsBuilder internal constructor() {
    private var backupReviewers: Output>? = null

    private var endDateTime: Output? = null

    private var reviewers: Output>? = null

    private var startDateTime: Output? = null

    /**
     * @param value This is the collection of backup reviewers.
     */
    @JvmName("rpindsokialldiky")
    public suspend fun backupReviewers(`value`: Output>) {
        this.backupReviewers = value
    }

    @JvmName("uaxrdeawyiaqfuhy")
    public suspend fun backupReviewers(vararg values: Output) {
        this.backupReviewers = Output.all(values.asList())
    }

    /**
     * @param values This is the collection of backup reviewers.
     */
    @JvmName("gkmimfcsjrgxmucb")
    public suspend fun backupReviewers(values: List>) {
        this.backupReviewers = Output.all(values)
    }

    /**
     * @param value The DateTime when the review instance is scheduled to end.
     */
    @JvmName("fybxblfrdmvtjpgf")
    public suspend fun endDateTime(`value`: Output) {
        this.endDateTime = value
    }

    /**
     * @param value This is the collection of reviewers.
     */
    @JvmName("pedvxjocesyivlel")
    public suspend fun reviewers(`value`: Output>) {
        this.reviewers = value
    }

    @JvmName("xjkdloaytohljjne")
    public suspend fun reviewers(vararg values: Output) {
        this.reviewers = Output.all(values.asList())
    }

    /**
     * @param values This is the collection of reviewers.
     */
    @JvmName("ipvjdptvfuyolcxi")
    public suspend fun reviewers(values: List>) {
        this.reviewers = Output.all(values)
    }

    /**
     * @param value The DateTime when the review instance is scheduled to be start.
     */
    @JvmName("qaldqysuldntowxx")
    public suspend fun startDateTime(`value`: Output) {
        this.startDateTime = value
    }

    /**
     * @param value This is the collection of backup reviewers.
     */
    @JvmName("lgfrjbjdwqvclstx")
    public suspend fun backupReviewers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backupReviewers = mapped
    }

    /**
     * @param argument This is the collection of backup reviewers.
     */
    @JvmName("rmwhhbilinwcsjwu")
    public suspend fun backupReviewers(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AccessReviewReviewerArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.backupReviewers = mapped
    }

    /**
     * @param argument This is the collection of backup reviewers.
     */
    @JvmName("ymfryfmihqhtgrsn")
    public suspend fun backupReviewers(vararg argument: suspend AccessReviewReviewerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AccessReviewReviewerArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.backupReviewers = mapped
    }

    /**
     * @param argument This is the collection of backup reviewers.
     */
    @JvmName("gqkqnujdvmdiqosy")
    public suspend fun backupReviewers(argument: suspend AccessReviewReviewerArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(AccessReviewReviewerArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.backupReviewers = mapped
    }

    /**
     * @param values This is the collection of backup reviewers.
     */
    @JvmName("ktwiqijwkbopaoit")
    public suspend fun backupReviewers(vararg values: AccessReviewReviewerArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.backupReviewers = mapped
    }

    /**
     * @param value The DateTime when the review instance is scheduled to end.
     */
    @JvmName("gdqxrgcmjatbsqaj")
    public suspend fun endDateTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endDateTime = mapped
    }

    /**
     * @param value This is the collection of reviewers.
     */
    @JvmName("wnuaudccbtdsykww")
    public suspend fun reviewers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.reviewers = mapped
    }

    /**
     * @param argument This is the collection of reviewers.
     */
    @JvmName("ewnhbjyumncelxkv")
    public suspend fun reviewers(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AccessReviewReviewerArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.reviewers = mapped
    }

    /**
     * @param argument This is the collection of reviewers.
     */
    @JvmName("gwphdaivpdnxlwiy")
    public suspend fun reviewers(vararg argument: suspend AccessReviewReviewerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AccessReviewReviewerArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.reviewers = mapped
    }

    /**
     * @param argument This is the collection of reviewers.
     */
    @JvmName("attdabuovmdwrlru")
    public suspend fun reviewers(argument: suspend AccessReviewReviewerArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(AccessReviewReviewerArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.reviewers = mapped
    }

    /**
     * @param values This is the collection of reviewers.
     */
    @JvmName("brsalkkmadosjkuc")
    public suspend fun reviewers(vararg values: AccessReviewReviewerArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.reviewers = mapped
    }

    /**
     * @param value The DateTime when the review instance is scheduled to be start.
     */
    @JvmName("kvnahvqpnuhjwayc")
    public suspend fun startDateTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.startDateTime = mapped
    }

    internal fun build(): AccessReviewInstanceArgs = AccessReviewInstanceArgs(
        backupReviewers = backupReviewers,
        endDateTime = endDateTime,
        reviewers = reviewers,
        startDateTime = startDateTime,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy