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

com.pulumi.azurenative.eventgrid.kotlin.inputs.PartnerAuthorizationArgs.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.eventgrid.kotlin.inputs

import com.pulumi.azurenative.eventgrid.inputs.PartnerAuthorizationArgs.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.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The partner authorization details.
 * @property authorizedPartnersList The list of authorized partners.
 * @property defaultMaximumExpirationTimeInDays Time used to validate the authorization expiration time for each authorized partner. If DefaultMaximumExpirationTimeInDays is
 * not specified, the default is 7 days. Otherwise, allowed values are between 1 and 365 days.
 */
public data class PartnerAuthorizationArgs(
    public val authorizedPartnersList: Output>? = null,
    public val defaultMaximumExpirationTimeInDays: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.eventgrid.inputs.PartnerAuthorizationArgs =
        com.pulumi.azurenative.eventgrid.inputs.PartnerAuthorizationArgs.builder()
            .authorizedPartnersList(
                authorizedPartnersList?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .defaultMaximumExpirationTimeInDays(
                defaultMaximumExpirationTimeInDays?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

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

    private var defaultMaximumExpirationTimeInDays: Output? = null

    /**
     * @param value The list of authorized partners.
     */
    @JvmName("ugkndeglhwbdjbry")
    public suspend fun authorizedPartnersList(`value`: Output>) {
        this.authorizedPartnersList = value
    }

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

    /**
     * @param values The list of authorized partners.
     */
    @JvmName("tuvittogdvnvgbbu")
    public suspend fun authorizedPartnersList(values: List>) {
        this.authorizedPartnersList = Output.all(values)
    }

    /**
     * @param value Time used to validate the authorization expiration time for each authorized partner. If DefaultMaximumExpirationTimeInDays is
     * not specified, the default is 7 days. Otherwise, allowed values are between 1 and 365 days.
     */
    @JvmName("smsmojuptekurxjr")
    public suspend fun defaultMaximumExpirationTimeInDays(`value`: Output) {
        this.defaultMaximumExpirationTimeInDays = value
    }

    /**
     * @param value The list of authorized partners.
     */
    @JvmName("lsoeqgosnvjmxpcn")
    public suspend fun authorizedPartnersList(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authorizedPartnersList = mapped
    }

    /**
     * @param argument The list of authorized partners.
     */
    @JvmName("tmvqufdstxqxavan")
    public suspend fun authorizedPartnersList(argument: List Unit>) {
        val toBeMapped = argument.toList().map { PartnerArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.authorizedPartnersList = mapped
    }

    /**
     * @param argument The list of authorized partners.
     */
    @JvmName("oxrekafntrajpnph")
    public suspend fun authorizedPartnersList(vararg argument: suspend PartnerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { PartnerArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.authorizedPartnersList = mapped
    }

    /**
     * @param argument The list of authorized partners.
     */
    @JvmName("qthapxboygregrlk")
    public suspend fun authorizedPartnersList(argument: suspend PartnerArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(PartnerArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.authorizedPartnersList = mapped
    }

    /**
     * @param values The list of authorized partners.
     */
    @JvmName("wrxkqcwirhclvmqs")
    public suspend fun authorizedPartnersList(vararg values: PartnerArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.authorizedPartnersList = mapped
    }

    /**
     * @param value Time used to validate the authorization expiration time for each authorized partner. If DefaultMaximumExpirationTimeInDays is
     * not specified, the default is 7 days. Otherwise, allowed values are between 1 and 365 days.
     */
    @JvmName("eqilgsvwbtuthces")
    public suspend fun defaultMaximumExpirationTimeInDays(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultMaximumExpirationTimeInDays = mapped
    }

    internal fun build(): PartnerAuthorizationArgs = PartnerAuthorizationArgs(
        authorizedPartnersList = authorizedPartnersList,
        defaultMaximumExpirationTimeInDays = defaultMaximumExpirationTimeInDays,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy