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

com.pulumi.awsnative.ec2.kotlin.inputs.NetworkInsightsAccessScopeAccessScopePathRequestArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ec2.kotlin.inputs

import com.pulumi.awsnative.ec2.inputs.NetworkInsightsAccessScopeAccessScopePathRequestArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property destination The destination.
 * @property source The source.
 * @property throughResources The through resources.
 */
public data class NetworkInsightsAccessScopeAccessScopePathRequestArgs(
    public val destination: Output? = null,
    public val source: Output? = null,
    public val throughResources: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.inputs.NetworkInsightsAccessScopeAccessScopePathRequestArgs =
        com.pulumi.awsnative.ec2.inputs.NetworkInsightsAccessScopeAccessScopePathRequestArgs.builder()
            .destination(destination?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .source(source?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .throughResources(
                throughResources?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [NetworkInsightsAccessScopeAccessScopePathRequestArgs].
 */
@PulumiTagMarker
public class NetworkInsightsAccessScopeAccessScopePathRequestArgsBuilder internal constructor() {
    private var destination: Output? = null

    private var source: Output? = null

    private var throughResources:
        Output>? = null

    /**
     * @param value The destination.
     */
    @JvmName("andbiajkfkavtgfy")
    public suspend fun destination(`value`: Output) {
        this.destination = value
    }

    /**
     * @param value The source.
     */
    @JvmName("eefejdffwlaxwlsy")
    public suspend fun source(`value`: Output) {
        this.source = value
    }

    /**
     * @param value The through resources.
     */
    @JvmName("saeewfxgfqgtoyil")
    public suspend fun throughResources(`value`: Output>) {
        this.throughResources = value
    }

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

    /**
     * @param values The through resources.
     */
    @JvmName("gewofbdradaagcii")
    public suspend fun throughResources(values: List>) {
        this.throughResources = Output.all(values)
    }

    /**
     * @param value The destination.
     */
    @JvmName("xommvvjppeykwmjq")
    public suspend fun destination(`value`: NetworkInsightsAccessScopePathStatementRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destination = mapped
    }

    /**
     * @param argument The destination.
     */
    @JvmName("aaofwgmxalrfmxtm")
    public suspend fun destination(argument: suspend NetworkInsightsAccessScopePathStatementRequestArgsBuilder.() -> Unit) {
        val toBeMapped = NetworkInsightsAccessScopePathStatementRequestArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.destination = mapped
    }

    /**
     * @param value The source.
     */
    @JvmName("apbfqpxpvwuwaugh")
    public suspend fun source(`value`: NetworkInsightsAccessScopePathStatementRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.source = mapped
    }

    /**
     * @param argument The source.
     */
    @JvmName("qsdembkavavvijud")
    public suspend fun source(argument: suspend NetworkInsightsAccessScopePathStatementRequestArgsBuilder.() -> Unit) {
        val toBeMapped = NetworkInsightsAccessScopePathStatementRequestArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.source = mapped
    }

    /**
     * @param value The through resources.
     */
    @JvmName("gemolmhfdnwsucyk")
    public suspend fun throughResources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.throughResources = mapped
    }

    /**
     * @param argument The through resources.
     */
    @JvmName("gqecglajekluhtdi")
    public suspend fun throughResources(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NetworkInsightsAccessScopeThroughResourcesStatementRequestArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.throughResources = mapped
    }

    /**
     * @param argument The through resources.
     */
    @JvmName("favxsabuahagdbgq")
    public suspend fun throughResources(vararg argument: suspend NetworkInsightsAccessScopeThroughResourcesStatementRequestArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            NetworkInsightsAccessScopeThroughResourcesStatementRequestArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.throughResources = mapped
    }

    /**
     * @param argument The through resources.
     */
    @JvmName("ekviyfcybjmdocfk")
    public suspend fun throughResources(argument: suspend NetworkInsightsAccessScopeThroughResourcesStatementRequestArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                NetworkInsightsAccessScopeThroughResourcesStatementRequestArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.throughResources = mapped
    }

    /**
     * @param values The through resources.
     */
    @JvmName("bgbryfnjkjuavoks")
    public suspend fun throughResources(vararg values: NetworkInsightsAccessScopeThroughResourcesStatementRequestArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.throughResources = mapped
    }

    internal fun build(): NetworkInsightsAccessScopeAccessScopePathRequestArgs =
        NetworkInsightsAccessScopeAccessScopePathRequestArgs(
            destination = destination,
            source = source,
            throughResources = throughResources,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy