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

com.pulumi.awsnative.ec2.kotlin.LocalGatewayRouteArgs.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ec2.kotlin

import com.pulumi.awsnative.ec2.LocalGatewayRouteArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Describes a route for a local gateway route table.
 * @property destinationCidrBlock The CIDR block used for destination matches.
 * @property localGatewayRouteTableId The ID of the local gateway route table.
 * @property localGatewayVirtualInterfaceGroupId The ID of the virtual interface group.
 * @property networkInterfaceId The ID of the network interface.
 */
public data class LocalGatewayRouteArgs(
    public val destinationCidrBlock: Output? = null,
    public val localGatewayRouteTableId: Output? = null,
    public val localGatewayVirtualInterfaceGroupId: Output? = null,
    public val networkInterfaceId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.LocalGatewayRouteArgs =
        com.pulumi.awsnative.ec2.LocalGatewayRouteArgs.builder()
            .destinationCidrBlock(destinationCidrBlock?.applyValue({ args0 -> args0 }))
            .localGatewayRouteTableId(localGatewayRouteTableId?.applyValue({ args0 -> args0 }))
            .localGatewayVirtualInterfaceGroupId(
                localGatewayVirtualInterfaceGroupId?.applyValue({ args0 ->
                    args0
                }),
            )
            .networkInterfaceId(networkInterfaceId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LocalGatewayRouteArgs].
 */
@PulumiTagMarker
public class LocalGatewayRouteArgsBuilder internal constructor() {
    private var destinationCidrBlock: Output? = null

    private var localGatewayRouteTableId: Output? = null

    private var localGatewayVirtualInterfaceGroupId: Output? = null

    private var networkInterfaceId: Output? = null

    /**
     * @param value The CIDR block used for destination matches.
     */
    @JvmName("bphoyeaxnpqqwqft")
    public suspend fun destinationCidrBlock(`value`: Output) {
        this.destinationCidrBlock = value
    }

    /**
     * @param value The ID of the local gateway route table.
     */
    @JvmName("buaseaccbmlrwxks")
    public suspend fun localGatewayRouteTableId(`value`: Output) {
        this.localGatewayRouteTableId = value
    }

    /**
     * @param value The ID of the virtual interface group.
     */
    @JvmName("rdwwasahpodjfxqd")
    public suspend fun localGatewayVirtualInterfaceGroupId(`value`: Output) {
        this.localGatewayVirtualInterfaceGroupId = value
    }

    /**
     * @param value The ID of the network interface.
     */
    @JvmName("ffbdivudorhtmlce")
    public suspend fun networkInterfaceId(`value`: Output) {
        this.networkInterfaceId = value
    }

    /**
     * @param value The CIDR block used for destination matches.
     */
    @JvmName("qwlwweeqfwtxvaqd")
    public suspend fun destinationCidrBlock(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destinationCidrBlock = mapped
    }

    /**
     * @param value The ID of the local gateway route table.
     */
    @JvmName("vofdttoehgvqkrlw")
    public suspend fun localGatewayRouteTableId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.localGatewayRouteTableId = mapped
    }

    /**
     * @param value The ID of the virtual interface group.
     */
    @JvmName("gleohfthldnddlna")
    public suspend fun localGatewayVirtualInterfaceGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.localGatewayVirtualInterfaceGroupId = mapped
    }

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

    internal fun build(): LocalGatewayRouteArgs = LocalGatewayRouteArgs(
        destinationCidrBlock = destinationCidrBlock,
        localGatewayRouteTableId = localGatewayRouteTableId,
        localGatewayVirtualInterfaceGroupId = localGatewayVirtualInterfaceGroupId,
        networkInterfaceId = networkInterfaceId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy