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

com.pulumi.azurenative.network.kotlin.inputs.ExpressRouteLinkArgs.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.network.kotlin.inputs

import com.pulumi.azurenative.network.inputs.ExpressRouteLinkArgs.builder
import com.pulumi.azurenative.network.kotlin.enums.ExpressRouteLinkAdminState
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.jvm.JvmName

/**
 * ExpressRouteLink child resource definition.
 * @property adminState Administrative state of the physical port.
 * @property id Resource ID.
 * @property macSecConfig MacSec configuration.
 * @property name Name of child port resource that is unique among child port resources of the parent.
 */
public data class ExpressRouteLinkArgs(
    public val adminState: Output>? = null,
    public val id: Output? = null,
    public val macSecConfig: Output? = null,
    public val name: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.network.inputs.ExpressRouteLinkArgs =
        com.pulumi.azurenative.network.inputs.ExpressRouteLinkArgs.builder()
            .adminState(
                adminState?.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .id(id?.applyValue({ args0 -> args0 }))
            .macSecConfig(macSecConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 })).build()
}

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

    private var id: Output? = null

    private var macSecConfig: Output? = null

    private var name: Output? = null

    /**
     * @param value Administrative state of the physical port.
     */
    @JvmName("ynbvhxqfgqxcjeps")
    public suspend fun adminState(`value`: Output>) {
        this.adminState = value
    }

    /**
     * @param value Resource ID.
     */
    @JvmName("suibelpvaxkdbsqs")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value MacSec configuration.
     */
    @JvmName("xkhkfsgkqbgvpbvs")
    public suspend fun macSecConfig(`value`: Output) {
        this.macSecConfig = value
    }

    /**
     * @param value Name of child port resource that is unique among child port resources of the parent.
     */
    @JvmName("adufifjdyuhbhyxb")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Administrative state of the physical port.
     */
    @JvmName("wmomoitcleeuccwi")
    public suspend fun adminState(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.adminState = mapped
    }

    /**
     * @param value Administrative state of the physical port.
     */
    @JvmName("ejygnpvqksdevqtm")
    public fun adminState(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.adminState = mapped
    }

    /**
     * @param value Administrative state of the physical port.
     */
    @JvmName("nxooiiuaxqmwixck")
    public fun adminState(`value`: ExpressRouteLinkAdminState) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.adminState = mapped
    }

    /**
     * @param value Resource ID.
     */
    @JvmName("mfbhwbebgwryxawl")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value MacSec configuration.
     */
    @JvmName("bogbasxxlxomxepc")
    public suspend fun macSecConfig(`value`: ExpressRouteLinkMacSecConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.macSecConfig = mapped
    }

    /**
     * @param argument MacSec configuration.
     */
    @JvmName("pgrimmcejihdowky")
    public suspend fun macSecConfig(argument: suspend ExpressRouteLinkMacSecConfigArgsBuilder.() -> Unit) {
        val toBeMapped = ExpressRouteLinkMacSecConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.macSecConfig = mapped
    }

    /**
     * @param value Name of child port resource that is unique among child port resources of the parent.
     */
    @JvmName("yrcshetxcdsvxbae")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): ExpressRouteLinkArgs = ExpressRouteLinkArgs(
        adminState = adminState,
        id = id,
        macSecConfig = macSecConfig,
        name = name,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy