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

com.pulumi.awsnative.networkmanager.kotlin.inputs.ConnectAttachmentProposedSegmentChangeArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.networkmanager.kotlin.inputs

import com.pulumi.awsnative.networkmanager.inputs.ConnectAttachmentProposedSegmentChangeArgs.builder
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The attachment to move from one segment to another.
 * @property attachmentPolicyRuleNumber The rule number in the policy document that applies to this change.
 * @property segmentName The name of the segment to change.
 * @property tags The list of key-value tags that changed for the segment.
 */
public data class ConnectAttachmentProposedSegmentChangeArgs(
    public val attachmentPolicyRuleNumber: Output? = null,
    public val segmentName: Output? = null,
    public val tags: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.networkmanager.inputs.ConnectAttachmentProposedSegmentChangeArgs =
        com.pulumi.awsnative.networkmanager.inputs.ConnectAttachmentProposedSegmentChangeArgs.builder()
            .attachmentPolicyRuleNumber(attachmentPolicyRuleNumber?.applyValue({ args0 -> args0 }))
            .segmentName(segmentName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ConnectAttachmentProposedSegmentChangeArgs].
 */
@PulumiTagMarker
public class ConnectAttachmentProposedSegmentChangeArgsBuilder internal constructor() {
    private var attachmentPolicyRuleNumber: Output? = null

    private var segmentName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The rule number in the policy document that applies to this change.
     */
    @JvmName("njfhvxaochvksasb")
    public suspend fun attachmentPolicyRuleNumber(`value`: Output) {
        this.attachmentPolicyRuleNumber = value
    }

    /**
     * @param value The name of the segment to change.
     */
    @JvmName("gjfpglyxyqwupcbx")
    public suspend fun segmentName(`value`: Output) {
        this.segmentName = value
    }

    /**
     * @param value The list of key-value tags that changed for the segment.
     */
    @JvmName("pudqqwkqjleoadbl")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The list of key-value tags that changed for the segment.
     */
    @JvmName("lypvknemfydyqqid")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The rule number in the policy document that applies to this change.
     */
    @JvmName("npxqykxmcnrwqslb")
    public suspend fun attachmentPolicyRuleNumber(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.attachmentPolicyRuleNumber = mapped
    }

    /**
     * @param value The name of the segment to change.
     */
    @JvmName("wovqimqdstjqtqcc")
    public suspend fun segmentName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.segmentName = mapped
    }

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

    /**
     * @param argument The list of key-value tags that changed for the segment.
     */
    @JvmName("neutvmkcpvaladia")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ConnectAttachmentTagArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The list of key-value tags that changed for the segment.
     */
    @JvmName("pvdyebucirxgsuun")
    public suspend fun tags(vararg argument: suspend ConnectAttachmentTagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ConnectAttachmentTagArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The list of key-value tags that changed for the segment.
     */
    @JvmName("vprdjbvqcwaryvpy")
    public suspend fun tags(argument: suspend ConnectAttachmentTagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ConnectAttachmentTagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The list of key-value tags that changed for the segment.
     */
    @JvmName("yruucwegngcijaka")
    public suspend fun tags(vararg values: ConnectAttachmentTagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ConnectAttachmentProposedSegmentChangeArgs =
        ConnectAttachmentProposedSegmentChangeArgs(
            attachmentPolicyRuleNumber = attachmentPolicyRuleNumber,
            segmentName = segmentName,
            tags = tags,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy