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

com.pulumi.azurenative.recommendationsservice.kotlin.inputs.AccountResourcePropertiesArgs.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.recommendationsservice.kotlin.inputs

import com.pulumi.azurenative.recommendationsservice.inputs.AccountResourcePropertiesArgs.builder
import com.pulumi.azurenative.recommendationsservice.kotlin.enums.AccountConfiguration
import com.pulumi.core.Either
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

/**
 * Account resource properties.
 * @property configuration Account configuration. This can only be set at RecommendationsService Account creation.
 * @property cors The list of CORS details.
 * @property endpointAuthentications The list of service endpoints authentication details.
 * @property reportsConnectionString Connection string to write Accounts reports to.
 */
public data class AccountResourcePropertiesArgs(
    public val configuration: Output>? = null,
    public val cors: Output>? = null,
    public val endpointAuthentications: Output>? = null,
    public val reportsConnectionString: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.recommendationsservice.inputs.AccountResourcePropertiesArgs =
        com.pulumi.azurenative.recommendationsservice.inputs.AccountResourcePropertiesArgs.builder()
            .configuration(
                configuration?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .cors(cors?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .endpointAuthentications(
                endpointAuthentications?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .reportsConnectionString(reportsConnectionString?.applyValue({ args0 -> args0 })).build()
}

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

    private var cors: Output>? = null

    private var endpointAuthentications: Output>? = null

    private var reportsConnectionString: Output? = null

    /**
     * @param value Account configuration. This can only be set at RecommendationsService Account creation.
     */
    @JvmName("btaacnamuinmeqls")
    public suspend fun configuration(`value`: Output>) {
        this.configuration = value
    }

    /**
     * @param value The list of CORS details.
     */
    @JvmName("nvkrjwbacmqadwkj")
    public suspend fun cors(`value`: Output>) {
        this.cors = value
    }

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

    /**
     * @param values The list of CORS details.
     */
    @JvmName("mdssapivropbxcxp")
    public suspend fun cors(values: List>) {
        this.cors = Output.all(values)
    }

    /**
     * @param value The list of service endpoints authentication details.
     */
    @JvmName("racwgimbvaxwuiuy")
    public suspend fun endpointAuthentications(`value`: Output>) {
        this.endpointAuthentications = value
    }

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

    /**
     * @param values The list of service endpoints authentication details.
     */
    @JvmName("lmsaemhlkbijqcvh")
    public suspend fun endpointAuthentications(values: List>) {
        this.endpointAuthentications = Output.all(values)
    }

    /**
     * @param value Connection string to write Accounts reports to.
     */
    @JvmName("vvurmkeigscnpoth")
    public suspend fun reportsConnectionString(`value`: Output) {
        this.reportsConnectionString = value
    }

    /**
     * @param value Account configuration. This can only be set at RecommendationsService Account creation.
     */
    @JvmName("gphpvhforkdytfgs")
    public suspend fun configuration(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configuration = mapped
    }

    /**
     * @param value Account configuration. This can only be set at RecommendationsService Account creation.
     */
    @JvmName("sgyqiuqdoprvwmoo")
    public fun configuration(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.configuration = mapped
    }

    /**
     * @param value Account configuration. This can only be set at RecommendationsService Account creation.
     */
    @JvmName("rhkqdbqhqxikcbum")
    public fun configuration(`value`: AccountConfiguration) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.configuration = mapped
    }

    /**
     * @param value The list of CORS details.
     */
    @JvmName("ssnkwynjdvpnuywh")
    public suspend fun cors(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cors = mapped
    }

    /**
     * @param argument The list of CORS details.
     */
    @JvmName("sengpschwgjcafjg")
    public suspend fun cors(argument: List Unit>) {
        val toBeMapped = argument.toList().map { CorsRuleArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.cors = mapped
    }

    /**
     * @param argument The list of CORS details.
     */
    @JvmName("mmlacthstaqjabqq")
    public suspend fun cors(vararg argument: suspend CorsRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { CorsRuleArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.cors = mapped
    }

    /**
     * @param argument The list of CORS details.
     */
    @JvmName("yythcqavnanjrkbo")
    public suspend fun cors(argument: suspend CorsRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(CorsRuleArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.cors = mapped
    }

    /**
     * @param values The list of CORS details.
     */
    @JvmName("gojjgnwqkwltgboo")
    public suspend fun cors(vararg values: CorsRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cors = mapped
    }

    /**
     * @param value The list of service endpoints authentication details.
     */
    @JvmName("rgoghhaqxknjqxit")
    public suspend fun endpointAuthentications(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpointAuthentications = mapped
    }

    /**
     * @param argument The list of service endpoints authentication details.
     */
    @JvmName("weugnfneqtcfjjak")
    public suspend fun endpointAuthentications(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EndpointAuthenticationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.endpointAuthentications = mapped
    }

    /**
     * @param argument The list of service endpoints authentication details.
     */
    @JvmName("eyikthsylemaxwrq")
    public suspend fun endpointAuthentications(vararg argument: suspend EndpointAuthenticationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EndpointAuthenticationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.endpointAuthentications = mapped
    }

    /**
     * @param argument The list of service endpoints authentication details.
     */
    @JvmName("flqyuakeydakdfop")
    public suspend fun endpointAuthentications(argument: suspend EndpointAuthenticationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(EndpointAuthenticationArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.endpointAuthentications = mapped
    }

    /**
     * @param values The list of service endpoints authentication details.
     */
    @JvmName("edygyaxtocjbhkqf")
    public suspend fun endpointAuthentications(vararg values: EndpointAuthenticationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.endpointAuthentications = mapped
    }

    /**
     * @param value Connection string to write Accounts reports to.
     */
    @JvmName("lnqxkkysedkmotnj")
    public suspend fun reportsConnectionString(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.reportsConnectionString = mapped
    }

    internal fun build(): AccountResourcePropertiesArgs = AccountResourcePropertiesArgs(
        configuration = configuration,
        cors = cors,
        endpointAuthentications = endpointAuthentications,
        reportsConnectionString = reportsConnectionString,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy