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

com.pulumi.awsnative.ec2.kotlin.inputs.GetLocalGatewayRoutePlainArgs.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.ec2.kotlin.inputs

import com.pulumi.awsnative.ec2.inputs.GetLocalGatewayRoutePlainArgs.builder
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

/**
 *
 * @property destinationCidrBlock The CIDR block used for destination matches.
 * @property localGatewayRouteTableId The ID of the local gateway route table.
 */
public data class GetLocalGatewayRoutePlainArgs(
    public val destinationCidrBlock: String,
    public val localGatewayRouteTableId: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.inputs.GetLocalGatewayRoutePlainArgs =
        com.pulumi.awsnative.ec2.inputs.GetLocalGatewayRoutePlainArgs.builder()
            .destinationCidrBlock(destinationCidrBlock.let({ args0 -> args0 }))
            .localGatewayRouteTableId(localGatewayRouteTableId.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetLocalGatewayRoutePlainArgs].
 */
@PulumiTagMarker
public class GetLocalGatewayRoutePlainArgsBuilder internal constructor() {
    private var destinationCidrBlock: String? = null

    private var localGatewayRouteTableId: String? = null

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

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

    internal fun build(): GetLocalGatewayRoutePlainArgs = GetLocalGatewayRoutePlainArgs(
        destinationCidrBlock = destinationCidrBlock ?: throw
            PulumiNullFieldException("destinationCidrBlock"),
        localGatewayRouteTableId = localGatewayRouteTableId ?: throw
            PulumiNullFieldException("localGatewayRouteTableId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy