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

com.pulumi.azurenative.insights.kotlin.inputs.AccessModeSettingsArgs.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.insights.kotlin.inputs

import com.pulumi.azurenative.insights.inputs.AccessModeSettingsArgs.builder
import com.pulumi.azurenative.insights.kotlin.enums.AccessMode
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.PulumiNullFieldException
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

/**
 * Properties that define the scope private link mode settings.
 * @property exclusions List of exclusions that override the default access mode settings for specific private endpoint connections.
 * @property ingestionAccessMode Specifies the default access mode of ingestion through associated private endpoints in scope. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.
 * @property queryAccessMode Specifies the default access mode of queries through associated private endpoints in scope. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.
 */
public data class AccessModeSettingsArgs(
    public val exclusions: Output>? = null,
    public val ingestionAccessMode: Output>,
    public val queryAccessMode: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.insights.inputs.AccessModeSettingsArgs =
        com.pulumi.azurenative.insights.inputs.AccessModeSettingsArgs.builder()
            .exclusions(
                exclusions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .ingestionAccessMode(
                ingestionAccessMode.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .queryAccessMode(
                queryAccessMode.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

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

    private var ingestionAccessMode: Output>? = null

    private var queryAccessMode: Output>? = null

    /**
     * @param value List of exclusions that override the default access mode settings for specific private endpoint connections.
     */
    @JvmName("lukwcscoxasqowsb")
    public suspend fun exclusions(`value`: Output>) {
        this.exclusions = value
    }

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

    /**
     * @param values List of exclusions that override the default access mode settings for specific private endpoint connections.
     */
    @JvmName("hdmklsxsulujpbfl")
    public suspend fun exclusions(values: List>) {
        this.exclusions = Output.all(values)
    }

    /**
     * @param value Specifies the default access mode of ingestion through associated private endpoints in scope. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.
     */
    @JvmName("ukmbxjumkljflllt")
    public suspend fun ingestionAccessMode(`value`: Output>) {
        this.ingestionAccessMode = value
    }

    /**
     * @param value Specifies the default access mode of queries through associated private endpoints in scope. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.
     */
    @JvmName("iihqwqhnsvoqynlc")
    public suspend fun queryAccessMode(`value`: Output>) {
        this.queryAccessMode = value
    }

    /**
     * @param value List of exclusions that override the default access mode settings for specific private endpoint connections.
     */
    @JvmName("xbplfytglfetmlrw")
    public suspend fun exclusions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exclusions = mapped
    }

    /**
     * @param argument List of exclusions that override the default access mode settings for specific private endpoint connections.
     */
    @JvmName("qhljojgkrwocalhn")
    public suspend fun exclusions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AccessModeSettingsExclusionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.exclusions = mapped
    }

    /**
     * @param argument List of exclusions that override the default access mode settings for specific private endpoint connections.
     */
    @JvmName("whstyujrljtwbdhv")
    public suspend fun exclusions(vararg argument: suspend AccessModeSettingsExclusionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AccessModeSettingsExclusionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.exclusions = mapped
    }

    /**
     * @param argument List of exclusions that override the default access mode settings for specific private endpoint connections.
     */
    @JvmName("ppxqlnobqfxvauck")
    public suspend fun exclusions(argument: suspend AccessModeSettingsExclusionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AccessModeSettingsExclusionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.exclusions = mapped
    }

    /**
     * @param values List of exclusions that override the default access mode settings for specific private endpoint connections.
     */
    @JvmName("qhowakfpswsmqyox")
    public suspend fun exclusions(vararg values: AccessModeSettingsExclusionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.exclusions = mapped
    }

    /**
     * @param value Specifies the default access mode of ingestion through associated private endpoints in scope. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.
     */
    @JvmName("hrkimocdyihbcned")
    public suspend fun ingestionAccessMode(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ingestionAccessMode = mapped
    }

    /**
     * @param value Specifies the default access mode of ingestion through associated private endpoints in scope. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.
     */
    @JvmName("dqiwqcstkumbqejx")
    public fun ingestionAccessMode(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ingestionAccessMode = mapped
    }

    /**
     * @param value Specifies the default access mode of ingestion through associated private endpoints in scope. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.
     */
    @JvmName("rricjflbhaopbeib")
    public fun ingestionAccessMode(`value`: AccessMode) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ingestionAccessMode = mapped
    }

    /**
     * @param value Specifies the default access mode of queries through associated private endpoints in scope. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.
     */
    @JvmName("ausnrfvejqoaswuc")
    public suspend fun queryAccessMode(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queryAccessMode = mapped
    }

    /**
     * @param value Specifies the default access mode of queries through associated private endpoints in scope. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.
     */
    @JvmName("qvmkhjbxomwkxmle")
    public fun queryAccessMode(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queryAccessMode = mapped
    }

    /**
     * @param value Specifies the default access mode of queries through associated private endpoints in scope. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array.
     */
    @JvmName("kokkupfwrsekbjit")
    public fun queryAccessMode(`value`: AccessMode) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.queryAccessMode = mapped
    }

    internal fun build(): AccessModeSettingsArgs = AccessModeSettingsArgs(
        exclusions = exclusions,
        ingestionAccessMode = ingestionAccessMode ?: throw PulumiNullFieldException("ingestionAccessMode"),
        queryAccessMode = queryAccessMode ?: throw PulumiNullFieldException("queryAccessMode"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy