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

com.pulumi.azurenative.healthcareapis.kotlin.inputs.ServicesPropertiesArgs.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.healthcareapis.kotlin.inputs

import com.pulumi.azurenative.healthcareapis.inputs.ServicesPropertiesArgs.builder
import com.pulumi.azurenative.healthcareapis.kotlin.enums.PublicNetworkAccess
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

/**
 * The properties of a service instance.
 * @property accessPolicies The access policies of the service instance.
 * @property acrConfiguration The azure container registry settings used for convert data operation of the service instance.
 * @property authenticationConfiguration The authentication configuration for the service instance.
 * @property corsConfiguration The settings for the CORS configuration of the service instance.
 * @property cosmosDbConfiguration The settings for the Cosmos DB database backing the service.
 * @property exportConfiguration The settings for the export operation of the service instance.
 * @property importConfiguration The settings for the import operation of the service instance.
 * @property privateEndpointConnections The list of private endpoint connections that are set up for this resource.
 * @property publicNetworkAccess Control permission for data plane traffic coming from public networks while private endpoint is enabled.
 */
public data class ServicesPropertiesArgs(
    public val accessPolicies: Output>? = null,
    public val acrConfiguration: Output? = null,
    public val authenticationConfiguration: Output? =
        null,
    public val corsConfiguration: Output? = null,
    public val cosmosDbConfiguration: Output? = null,
    public val exportConfiguration: Output? = null,
    public val importConfiguration: Output? = null,
    public val privateEndpointConnections: Output>? = null,
    public val publicNetworkAccess: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.healthcareapis.inputs.ServicesPropertiesArgs =
        com.pulumi.azurenative.healthcareapis.inputs.ServicesPropertiesArgs.builder()
            .accessPolicies(
                accessPolicies?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .acrConfiguration(acrConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .authenticationConfiguration(
                authenticationConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .corsConfiguration(corsConfiguration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .cosmosDbConfiguration(
                cosmosDbConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .exportConfiguration(
                exportConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .importConfiguration(
                importConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .privateEndpointConnections(
                privateEndpointConnections?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .publicNetworkAccess(
                publicNetworkAccess?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            ).build()
}

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

    private var acrConfiguration: Output? = null

    private var authenticationConfiguration: Output? =
        null

    private var corsConfiguration: Output? = null

    private var cosmosDbConfiguration: Output? = null

    private var exportConfiguration: Output? = null

    private var importConfiguration: Output? = null

    private var privateEndpointConnections: Output>? = null

    private var publicNetworkAccess: Output>? = null

    /**
     * @param value The access policies of the service instance.
     */
    @JvmName("ynpalsnttdqqhpmm")
    public suspend fun accessPolicies(`value`: Output>) {
        this.accessPolicies = value
    }

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

    /**
     * @param values The access policies of the service instance.
     */
    @JvmName("rdkvobqbkwsqdspy")
    public suspend fun accessPolicies(values: List>) {
        this.accessPolicies = Output.all(values)
    }

    /**
     * @param value The azure container registry settings used for convert data operation of the service instance.
     */
    @JvmName("ydjkxllpotywvxwi")
    public suspend fun acrConfiguration(`value`: Output) {
        this.acrConfiguration = value
    }

    /**
     * @param value The authentication configuration for the service instance.
     */
    @JvmName("ivjxaitwvdbgnmat")
    public suspend fun authenticationConfiguration(`value`: Output) {
        this.authenticationConfiguration = value
    }

    /**
     * @param value The settings for the CORS configuration of the service instance.
     */
    @JvmName("cxcxhlkmsdjydkpi")
    public suspend fun corsConfiguration(`value`: Output) {
        this.corsConfiguration = value
    }

    /**
     * @param value The settings for the Cosmos DB database backing the service.
     */
    @JvmName("hxiapmwnfairyget")
    public suspend fun cosmosDbConfiguration(`value`: Output) {
        this.cosmosDbConfiguration = value
    }

    /**
     * @param value The settings for the export operation of the service instance.
     */
    @JvmName("bndbnrptsivsjnop")
    public suspend fun exportConfiguration(`value`: Output) {
        this.exportConfiguration = value
    }

    /**
     * @param value The settings for the import operation of the service instance.
     */
    @JvmName("okdtgulkqdluaewm")
    public suspend fun importConfiguration(`value`: Output) {
        this.importConfiguration = value
    }

    /**
     * @param value The list of private endpoint connections that are set up for this resource.
     */
    @JvmName("rdqasbmhngjojnxb")
    public suspend fun privateEndpointConnections(`value`: Output>) {
        this.privateEndpointConnections = value
    }

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

    /**
     * @param values The list of private endpoint connections that are set up for this resource.
     */
    @JvmName("vgbwyvwicdilhnnt")
    public suspend fun privateEndpointConnections(values: List>) {
        this.privateEndpointConnections = Output.all(values)
    }

    /**
     * @param value Control permission for data plane traffic coming from public networks while private endpoint is enabled.
     */
    @JvmName("pphmjodggoaywvhb")
    public suspend fun publicNetworkAccess(`value`: Output>) {
        this.publicNetworkAccess = value
    }

    /**
     * @param value The access policies of the service instance.
     */
    @JvmName("sbwwajwxcqqfbvsr")
    public suspend fun accessPolicies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessPolicies = mapped
    }

    /**
     * @param argument The access policies of the service instance.
     */
    @JvmName("unhcntmgycbbqrvo")
    public suspend fun accessPolicies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ServiceAccessPolicyEntryArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.accessPolicies = mapped
    }

    /**
     * @param argument The access policies of the service instance.
     */
    @JvmName("tfntljcsedjykjns")
    public suspend fun accessPolicies(vararg argument: suspend ServiceAccessPolicyEntryArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ServiceAccessPolicyEntryArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.accessPolicies = mapped
    }

    /**
     * @param argument The access policies of the service instance.
     */
    @JvmName("lswkglslkuidxaut")
    public suspend fun accessPolicies(argument: suspend ServiceAccessPolicyEntryArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ServiceAccessPolicyEntryArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.accessPolicies = mapped
    }

    /**
     * @param values The access policies of the service instance.
     */
    @JvmName("drdstoxqrcamgvfm")
    public suspend fun accessPolicies(vararg values: ServiceAccessPolicyEntryArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.accessPolicies = mapped
    }

    /**
     * @param value The azure container registry settings used for convert data operation of the service instance.
     */
    @JvmName("qflpdxpclrwbhxci")
    public suspend fun acrConfiguration(`value`: ServiceAcrConfigurationInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.acrConfiguration = mapped
    }

    /**
     * @param argument The azure container registry settings used for convert data operation of the service instance.
     */
    @JvmName("fdmwvqbgffuwsonx")
    public suspend fun acrConfiguration(argument: suspend ServiceAcrConfigurationInfoArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceAcrConfigurationInfoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.acrConfiguration = mapped
    }

    /**
     * @param value The authentication configuration for the service instance.
     */
    @JvmName("dawopdauaoaflvif")
    public suspend fun authenticationConfiguration(`value`: ServiceAuthenticationConfigurationInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authenticationConfiguration = mapped
    }

    /**
     * @param argument The authentication configuration for the service instance.
     */
    @JvmName("gqiehsdwqarvnuui")
    public suspend fun authenticationConfiguration(argument: suspend ServiceAuthenticationConfigurationInfoArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceAuthenticationConfigurationInfoArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.authenticationConfiguration = mapped
    }

    /**
     * @param value The settings for the CORS configuration of the service instance.
     */
    @JvmName("nteummrrsggevcjf")
    public suspend fun corsConfiguration(`value`: ServiceCorsConfigurationInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.corsConfiguration = mapped
    }

    /**
     * @param argument The settings for the CORS configuration of the service instance.
     */
    @JvmName("jbiqeutyenyjxrbt")
    public suspend fun corsConfiguration(argument: suspend ServiceCorsConfigurationInfoArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceCorsConfigurationInfoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.corsConfiguration = mapped
    }

    /**
     * @param value The settings for the Cosmos DB database backing the service.
     */
    @JvmName("pgbfueqipbquvhqy")
    public suspend fun cosmosDbConfiguration(`value`: ServiceCosmosDbConfigurationInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cosmosDbConfiguration = mapped
    }

    /**
     * @param argument The settings for the Cosmos DB database backing the service.
     */
    @JvmName("jwwyyevmryjctowo")
    public suspend fun cosmosDbConfiguration(argument: suspend ServiceCosmosDbConfigurationInfoArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceCosmosDbConfigurationInfoArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.cosmosDbConfiguration = mapped
    }

    /**
     * @param value The settings for the export operation of the service instance.
     */
    @JvmName("moohifesxkjnirpv")
    public suspend fun exportConfiguration(`value`: ServiceExportConfigurationInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exportConfiguration = mapped
    }

    /**
     * @param argument The settings for the export operation of the service instance.
     */
    @JvmName("ylqxnnokuohhsapa")
    public suspend fun exportConfiguration(argument: suspend ServiceExportConfigurationInfoArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceExportConfigurationInfoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.exportConfiguration = mapped
    }

    /**
     * @param value The settings for the import operation of the service instance.
     */
    @JvmName("bbjrkckgtpeqtddo")
    public suspend fun importConfiguration(`value`: ServiceImportConfigurationInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.importConfiguration = mapped
    }

    /**
     * @param argument The settings for the import operation of the service instance.
     */
    @JvmName("yebxtxurprsnwixb")
    public suspend fun importConfiguration(argument: suspend ServiceImportConfigurationInfoArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceImportConfigurationInfoArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.importConfiguration = mapped
    }

    /**
     * @param value The list of private endpoint connections that are set up for this resource.
     */
    @JvmName("hiirnbijgaspiknw")
    public suspend fun privateEndpointConnections(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateEndpointConnections = mapped
    }

    /**
     * @param argument The list of private endpoint connections that are set up for this resource.
     */
    @JvmName("ksrjpyibjmhomdwn")
    public suspend fun privateEndpointConnections(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PrivateEndpointConnectionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.privateEndpointConnections = mapped
    }

    /**
     * @param argument The list of private endpoint connections that are set up for this resource.
     */
    @JvmName("nmdqscbsgyxensss")
    public suspend fun privateEndpointConnections(vararg argument: suspend PrivateEndpointConnectionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PrivateEndpointConnectionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.privateEndpointConnections = mapped
    }

    /**
     * @param argument The list of private endpoint connections that are set up for this resource.
     */
    @JvmName("oesfpecpowinwipa")
    public suspend fun privateEndpointConnections(argument: suspend PrivateEndpointConnectionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            PrivateEndpointConnectionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.privateEndpointConnections = mapped
    }

    /**
     * @param values The list of private endpoint connections that are set up for this resource.
     */
    @JvmName("hvhthqeflpkwvvae")
    public suspend fun privateEndpointConnections(vararg values: PrivateEndpointConnectionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.privateEndpointConnections = mapped
    }

    /**
     * @param value Control permission for data plane traffic coming from public networks while private endpoint is enabled.
     */
    @JvmName("oladvubeduhirydr")
    public suspend fun publicNetworkAccess(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicNetworkAccess = mapped
    }

    /**
     * @param value Control permission for data plane traffic coming from public networks while private endpoint is enabled.
     */
    @JvmName("shltrdngjmaedlld")
    public fun publicNetworkAccess(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicNetworkAccess = mapped
    }

    /**
     * @param value Control permission for data plane traffic coming from public networks while private endpoint is enabled.
     */
    @JvmName("tjpfjqavnyecylal")
    public fun publicNetworkAccess(`value`: PublicNetworkAccess) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicNetworkAccess = mapped
    }

    internal fun build(): ServicesPropertiesArgs = ServicesPropertiesArgs(
        accessPolicies = accessPolicies,
        acrConfiguration = acrConfiguration,
        authenticationConfiguration = authenticationConfiguration,
        corsConfiguration = corsConfiguration,
        cosmosDbConfiguration = cosmosDbConfiguration,
        exportConfiguration = exportConfiguration,
        importConfiguration = importConfiguration,
        privateEndpointConnections = privateEndpointConnections,
        publicNetworkAccess = publicNetworkAccess,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy