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

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

/**
 * The AWS::NetworkManager::GlobalNetwork type specifies a global network of the user's account
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property createdAt The date and time that the global network was created.
 * @property description The description of the global network.
 * @property state The state of the global network.
 * @property tags The tags for the global network.
 */
public data class GlobalNetworkArgs(
    public val createdAt: Output? = null,
    public val description: Output? = null,
    public val state: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.networkmanager.GlobalNetworkArgs =
        com.pulumi.awsnative.networkmanager.GlobalNetworkArgs.builder()
            .createdAt(createdAt?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .state(state?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [GlobalNetworkArgs].
 */
@PulumiTagMarker
public class GlobalNetworkArgsBuilder internal constructor() {
    private var createdAt: Output? = null

    private var description: Output? = null

    private var state: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The date and time that the global network was created.
     */
    @JvmName("buaylsbsyoecgemt")
    public suspend fun createdAt(`value`: Output) {
        this.createdAt = value
    }

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

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

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

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

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

    /**
     * @param value The date and time that the global network was created.
     */
    @JvmName("cqxwixvbhkopmsqv")
    public suspend fun createdAt(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.createdAt = mapped
    }

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

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

    /**
     * @param value The tags for the global network.
     */
    @JvmName("uinyequmsalcgdhf")
    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 global network.
     */
    @JvmName("goblcbovjpynwmgm")
    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 global network.
     */
    @JvmName("naofrkrqpnarhdyl")
    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 global network.
     */
    @JvmName("fajabkpksrerfgki")
    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 global network.
     */
    @JvmName("hroxrxjrohtncrjg")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): GlobalNetworkArgs = GlobalNetworkArgs(
        createdAt = createdAt,
        description = description,
        state = state,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy