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

com.pulumi.awsnative.networkmanager.kotlin.LinkArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.networkmanager.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.networkmanager.LinkArgs.builder
import com.pulumi.awsnative.networkmanager.kotlin.inputs.LinkBandwidthArgs
import com.pulumi.awsnative.networkmanager.kotlin.inputs.LinkBandwidthArgsBuilder
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 AWS::NetworkManager::Link type describes a link.
 * @property bandwidth The Bandwidth for the link.
 * @property description The description of the link.
 * @property globalNetworkId The ID of the global network.
 * @property provider The provider of the link.
 * @property siteId The ID of the site
 * @property tags The tags for the link.
 * @property type The type of the link.
 */
public data class LinkArgs(
    public val bandwidth: Output? = null,
    public val description: Output? = null,
    public val globalNetworkId: Output? = null,
    public val provider: Output? = null,
    public val siteId: Output? = null,
    public val tags: Output>? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.networkmanager.LinkArgs =
        com.pulumi.awsnative.networkmanager.LinkArgs.builder()
            .bandwidth(bandwidth?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .globalNetworkId(globalNetworkId?.applyValue({ args0 -> args0 }))
            .provider(provider?.applyValue({ args0 -> args0 }))
            .siteId(siteId?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LinkArgs].
 */
@PulumiTagMarker
public class LinkArgsBuilder internal constructor() {
    private var bandwidth: Output? = null

    private var description: Output? = null

    private var globalNetworkId: Output? = null

    private var provider: Output? = null

    private var siteId: Output? = null

    private var tags: Output>? = null

    private var type: Output? = null

    /**
     * @param value The Bandwidth for the link.
     */
    @JvmName("agjpetvwpgkalddy")
    public suspend fun bandwidth(`value`: Output) {
        this.bandwidth = value
    }

    /**
     * @param value The description of the link.
     */
    @JvmName("atneedqilvssmqvn")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The ID of the global network.
     */
    @JvmName("ypgkxoqxdjomivpf")
    public suspend fun globalNetworkId(`value`: Output) {
        this.globalNetworkId = value
    }

    /**
     * @param value The provider of the link.
     */
    @JvmName("wlklnryiohjrfxhc")
    public suspend fun provider(`value`: Output) {
        this.provider = value
    }

    /**
     * @param value The ID of the site
     */
    @JvmName("qklwyojstfbkgprp")
    public suspend fun siteId(`value`: Output) {
        this.siteId = value
    }

    /**
     * @param value The tags for the link.
     */
    @JvmName("hefpxplnekyucrbi")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags for the link.
     */
    @JvmName("dtkalowgkjpexlbo")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The type of the link.
     */
    @JvmName("sqtytiayogximwuo")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The Bandwidth for the link.
     */
    @JvmName("uwhrjboombfsyvvm")
    public suspend fun bandwidth(`value`: LinkBandwidthArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bandwidth = mapped
    }

    /**
     * @param argument The Bandwidth for the link.
     */
    @JvmName("lwwkyoggddkummhj")
    public suspend fun bandwidth(argument: suspend LinkBandwidthArgsBuilder.() -> Unit) {
        val toBeMapped = LinkBandwidthArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.bandwidth = mapped
    }

    /**
     * @param value The description of the link.
     */
    @JvmName("hbtrayrpwobgqhdi")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The ID of the global network.
     */
    @JvmName("ndkbtqycvrcrtcrc")
    public suspend fun globalNetworkId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.globalNetworkId = mapped
    }

    /**
     * @param value The provider of the link.
     */
    @JvmName("hbvglngxfyogrdrp")
    public suspend fun provider(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provider = mapped
    }

    /**
     * @param value The ID of the site
     */
    @JvmName("mkekolqvjqqhknbt")
    public suspend fun siteId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.siteId = mapped
    }

    /**
     * @param value The tags for the link.
     */
    @JvmName("lcpuoewovhyrmtby")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags for the link.
     */
    @JvmName("nrretoakwhfujdby")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags for the link.
     */
    @JvmName("hrjqcauuqjecjnds")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags for the link.
     */
    @JvmName("ivhpvfbwcbnrxeof")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags for the link.
     */
    @JvmName("kjlyjnqxsnocodum")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The type of the link.
     */
    @JvmName("jsmckwmjbdwkbgjq")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): LinkArgs = LinkArgs(
        bandwidth = bandwidth,
        description = description,
        globalNetworkId = globalNetworkId,
        provider = provider,
        siteId = siteId,
        tags = tags,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy