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

com.pulumi.awsnative.networkmanager.kotlin.ConnectAttachmentArgs.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: 1.24.0.0
Show newest version
@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.ConnectAttachmentArgs.builder
import com.pulumi.awsnative.networkmanager.kotlin.inputs.ConnectAttachmentOptionsArgs
import com.pulumi.awsnative.networkmanager.kotlin.inputs.ConnectAttachmentOptionsArgsBuilder
import com.pulumi.awsnative.networkmanager.kotlin.inputs.ConnectAttachmentProposedSegmentChangeArgs
import com.pulumi.awsnative.networkmanager.kotlin.inputs.ConnectAttachmentProposedSegmentChangeArgsBuilder
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

/**
 * AWS::NetworkManager::ConnectAttachment Resource Type Definition
 * @property coreNetworkId ID of the CoreNetwork that the attachment will be attached to.
 * @property edgeLocation Edge location of the attachment.
 * @property options Protocol options for connect attachment
 * @property proposedSegmentChange The attachment to move from one segment to another.
 * @property tags Tags for the attachment.
 * @property transportAttachmentId Id of transport attachment
 */
public data class ConnectAttachmentArgs(
    public val coreNetworkId: Output? = null,
    public val edgeLocation: Output? = null,
    public val options: Output? = null,
    public val proposedSegmentChange: Output? = null,
    public val tags: Output>? = null,
    public val transportAttachmentId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.networkmanager.ConnectAttachmentArgs =
        com.pulumi.awsnative.networkmanager.ConnectAttachmentArgs.builder()
            .coreNetworkId(coreNetworkId?.applyValue({ args0 -> args0 }))
            .edgeLocation(edgeLocation?.applyValue({ args0 -> args0 }))
            .options(options?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .proposedSegmentChange(
                proposedSegmentChange?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .transportAttachmentId(transportAttachmentId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConnectAttachmentArgs].
 */
@PulumiTagMarker
public class ConnectAttachmentArgsBuilder internal constructor() {
    private var coreNetworkId: Output? = null

    private var edgeLocation: Output? = null

    private var options: Output? = null

    private var proposedSegmentChange: Output? = null

    private var tags: Output>? = null

    private var transportAttachmentId: Output? = null

    /**
     * @param value ID of the CoreNetwork that the attachment will be attached to.
     */
    @JvmName("mokcwvavgtcjdeau")
    public suspend fun coreNetworkId(`value`: Output) {
        this.coreNetworkId = value
    }

    /**
     * @param value Edge location of the attachment.
     */
    @JvmName("epxsmsclkimvsetv")
    public suspend fun edgeLocation(`value`: Output) {
        this.edgeLocation = value
    }

    /**
     * @param value Protocol options for connect attachment
     */
    @JvmName("srrfxxdhaxxrhttm")
    public suspend fun options(`value`: Output) {
        this.options = value
    }

    /**
     * @param value The attachment to move from one segment to another.
     */
    @JvmName("ackguurpcophlwwq")
    public suspend fun proposedSegmentChange(`value`: Output) {
        this.proposedSegmentChange = value
    }

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

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

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

    /**
     * @param value Id of transport attachment
     */
    @JvmName("foouxdjvrrnervwx")
    public suspend fun transportAttachmentId(`value`: Output) {
        this.transportAttachmentId = value
    }

    /**
     * @param value ID of the CoreNetwork that the attachment will be attached to.
     */
    @JvmName("iyfnugntvoctuqwj")
    public suspend fun coreNetworkId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.coreNetworkId = mapped
    }

    /**
     * @param value Edge location of the attachment.
     */
    @JvmName("eiqqhafkwcvgiwhl")
    public suspend fun edgeLocation(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.edgeLocation = mapped
    }

    /**
     * @param value Protocol options for connect attachment
     */
    @JvmName("bteemiagsntgxhlk")
    public suspend fun options(`value`: ConnectAttachmentOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.options = mapped
    }

    /**
     * @param argument Protocol options for connect attachment
     */
    @JvmName("trfquecqqinsowbe")
    public suspend fun options(argument: suspend ConnectAttachmentOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectAttachmentOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.options = mapped
    }

    /**
     * @param value The attachment to move from one segment to another.
     */
    @JvmName("ttwhclwssfkxoawt")
    public suspend fun proposedSegmentChange(`value`: ConnectAttachmentProposedSegmentChangeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.proposedSegmentChange = mapped
    }

    /**
     * @param argument The attachment to move from one segment to another.
     */
    @JvmName("lxekuhbfogrkuvjm")
    public suspend fun proposedSegmentChange(argument: suspend ConnectAttachmentProposedSegmentChangeArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectAttachmentProposedSegmentChangeArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.proposedSegmentChange = mapped
    }

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

    /**
     * @param argument Tags for the attachment.
     */
    @JvmName("nmjgnppdpblittwe")
    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 Tags for the attachment.
     */
    @JvmName("phnqmscajmfqeyaw")
    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 Tags for the attachment.
     */
    @JvmName("oqkqrconubroaeqv")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

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

    /**
     * @param value Id of transport attachment
     */
    @JvmName("amobrwawodcauspa")
    public suspend fun transportAttachmentId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transportAttachmentId = mapped
    }

    internal fun build(): ConnectAttachmentArgs = ConnectAttachmentArgs(
        coreNetworkId = coreNetworkId,
        edgeLocation = edgeLocation,
        options = options,
        proposedSegmentChange = proposedSegmentChange,
        tags = tags,
        transportAttachmentId = transportAttachmentId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy