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

com.pulumi.awsnative.mediaconnect.kotlin.inputs.GatewayNetworkArgs.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.mediaconnect.kotlin.inputs

import com.pulumi.awsnative.mediaconnect.inputs.GatewayNetworkArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The network settings for a gateway.
 * @property cidrBlock A unique IP address range to use for this network. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
 * @property name The name of the network. This name is used to reference the network and must be unique among networks in this gateway.
 */
public data class GatewayNetworkArgs(
    public val cidrBlock: Output,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediaconnect.inputs.GatewayNetworkArgs =
        com.pulumi.awsnative.mediaconnect.inputs.GatewayNetworkArgs.builder()
            .cidrBlock(cidrBlock.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GatewayNetworkArgs].
 */
@PulumiTagMarker
public class GatewayNetworkArgsBuilder internal constructor() {
    private var cidrBlock: Output? = null

    private var name: Output? = null

    /**
     * @param value A unique IP address range to use for this network. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
     */
    @JvmName("akngfrpxptmhrsqt")
    public suspend fun cidrBlock(`value`: Output) {
        this.cidrBlock = value
    }

    /**
     * @param value The name of the network. This name is used to reference the network and must be unique among networks in this gateway.
     */
    @JvmName("uvncdobxhdiojfvh")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A unique IP address range to use for this network. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
     */
    @JvmName("jabicdnwhcevnknv")
    public suspend fun cidrBlock(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cidrBlock = mapped
    }

    /**
     * @param value The name of the network. This name is used to reference the network and must be unique among networks in this gateway.
     */
    @JvmName("wvqxowfjluxnjcag")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): GatewayNetworkArgs = GatewayNetworkArgs(
        cidrBlock = cidrBlock ?: throw PulumiNullFieldException("cidrBlock"),
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy