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

com.pulumi.azurenative.storage.kotlin.inputs.RoutingPreferenceArgs.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.storage.kotlin.inputs

import com.pulumi.azurenative.storage.inputs.RoutingPreferenceArgs.builder
import com.pulumi.azurenative.storage.kotlin.enums.RoutingChoice
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 kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Routing preference defines the type of network, either microsoft or internet routing to be used to deliver the user data, the default option is microsoft routing
 * @property publishInternetEndpoints A boolean flag which indicates whether internet routing storage endpoints are to be published
 * @property publishMicrosoftEndpoints A boolean flag which indicates whether microsoft routing storage endpoints are to be published
 * @property routingChoice Routing Choice defines the kind of network routing opted by the user.
 */
public data class RoutingPreferenceArgs(
    public val publishInternetEndpoints: Output? = null,
    public val publishMicrosoftEndpoints: Output? = null,
    public val routingChoice: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.storage.inputs.RoutingPreferenceArgs =
        com.pulumi.azurenative.storage.inputs.RoutingPreferenceArgs.builder()
            .publishInternetEndpoints(publishInternetEndpoints?.applyValue({ args0 -> args0 }))
            .publishMicrosoftEndpoints(publishMicrosoftEndpoints?.applyValue({ args0 -> args0 }))
            .routingChoice(
                routingChoice?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [RoutingPreferenceArgs].
 */
@PulumiTagMarker
public class RoutingPreferenceArgsBuilder internal constructor() {
    private var publishInternetEndpoints: Output? = null

    private var publishMicrosoftEndpoints: Output? = null

    private var routingChoice: Output>? = null

    /**
     * @param value A boolean flag which indicates whether internet routing storage endpoints are to be published
     */
    @JvmName("bcrighfyekoaxsek")
    public suspend fun publishInternetEndpoints(`value`: Output) {
        this.publishInternetEndpoints = value
    }

    /**
     * @param value A boolean flag which indicates whether microsoft routing storage endpoints are to be published
     */
    @JvmName("mgeddicenwfyhcfh")
    public suspend fun publishMicrosoftEndpoints(`value`: Output) {
        this.publishMicrosoftEndpoints = value
    }

    /**
     * @param value Routing Choice defines the kind of network routing opted by the user.
     */
    @JvmName("sksvlsveggfffjok")
    public suspend fun routingChoice(`value`: Output>) {
        this.routingChoice = value
    }

    /**
     * @param value A boolean flag which indicates whether internet routing storage endpoints are to be published
     */
    @JvmName("utjxuxmkrbamlcsa")
    public suspend fun publishInternetEndpoints(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publishInternetEndpoints = mapped
    }

    /**
     * @param value A boolean flag which indicates whether microsoft routing storage endpoints are to be published
     */
    @JvmName("uiajpkdxjwuopukp")
    public suspend fun publishMicrosoftEndpoints(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publishMicrosoftEndpoints = mapped
    }

    /**
     * @param value Routing Choice defines the kind of network routing opted by the user.
     */
    @JvmName("vmerwbabsueaykda")
    public suspend fun routingChoice(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.routingChoice = mapped
    }

    /**
     * @param value Routing Choice defines the kind of network routing opted by the user.
     */
    @JvmName("bektpemtbulagkty")
    public fun routingChoice(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.routingChoice = mapped
    }

    /**
     * @param value Routing Choice defines the kind of network routing opted by the user.
     */
    @JvmName("paxpmhrkqhivbabh")
    public fun routingChoice(`value`: RoutingChoice) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.routingChoice = mapped
    }

    internal fun build(): RoutingPreferenceArgs = RoutingPreferenceArgs(
        publishInternetEndpoints = publishInternetEndpoints,
        publishMicrosoftEndpoints = publishMicrosoftEndpoints,
        routingChoice = routingChoice,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy