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

com.pulumi.gcp.compute.kotlin.inputs.InstanceTemplateNetworkInterfaceAliasIpRangeArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.InstanceTemplateNetworkInterfaceAliasIpRangeArgs.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 ipCidrRange The IP CIDR range represented by this alias IP range. This IP CIDR range
 * must belong to the specified subnetwork and cannot contain IP addresses reserved by
 * system or used by other network interfaces. At the time of writing only a
 * netmask (e.g. /24) may be supplied, with a CIDR format resulting in an API
 * error.
 * @property subnetworkRangeName The subnetwork secondary range name specifying
 * the secondary range from which to allocate the IP CIDR range for this alias IP
 * range. If left unspecified, the primary range of the subnetwork will be used.
 */
public data class InstanceTemplateNetworkInterfaceAliasIpRangeArgs(
    public val ipCidrRange: Output,
    public val subnetworkRangeName: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceTemplateNetworkInterfaceAliasIpRangeArgs =
        com.pulumi.gcp.compute.inputs.InstanceTemplateNetworkInterfaceAliasIpRangeArgs.builder()
            .ipCidrRange(ipCidrRange.applyValue({ args0 -> args0 }))
            .subnetworkRangeName(subnetworkRangeName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceTemplateNetworkInterfaceAliasIpRangeArgs].
 */
@PulumiTagMarker
public class InstanceTemplateNetworkInterfaceAliasIpRangeArgsBuilder internal constructor() {
    private var ipCidrRange: Output? = null

    private var subnetworkRangeName: Output? = null

    /**
     * @param value The IP CIDR range represented by this alias IP range. This IP CIDR range
     * must belong to the specified subnetwork and cannot contain IP addresses reserved by
     * system or used by other network interfaces. At the time of writing only a
     * netmask (e.g. /24) may be supplied, with a CIDR format resulting in an API
     * error.
     */
    @JvmName("caanvhosfqbwdriw")
    public suspend fun ipCidrRange(`value`: Output) {
        this.ipCidrRange = value
    }

    /**
     * @param value The subnetwork secondary range name specifying
     * the secondary range from which to allocate the IP CIDR range for this alias IP
     * range. If left unspecified, the primary range of the subnetwork will be used.
     */
    @JvmName("tmfgouakxiqgaveg")
    public suspend fun subnetworkRangeName(`value`: Output) {
        this.subnetworkRangeName = value
    }

    /**
     * @param value The IP CIDR range represented by this alias IP range. This IP CIDR range
     * must belong to the specified subnetwork and cannot contain IP addresses reserved by
     * system or used by other network interfaces. At the time of writing only a
     * netmask (e.g. /24) may be supplied, with a CIDR format resulting in an API
     * error.
     */
    @JvmName("yyqlgooawrdybpdj")
    public suspend fun ipCidrRange(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipCidrRange = mapped
    }

    /**
     * @param value The subnetwork secondary range name specifying
     * the secondary range from which to allocate the IP CIDR range for this alias IP
     * range. If left unspecified, the primary range of the subnetwork will be used.
     */
    @JvmName("uixgwtgnorwvryft")
    public suspend fun subnetworkRangeName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetworkRangeName = mapped
    }

    internal fun build(): InstanceTemplateNetworkInterfaceAliasIpRangeArgs =
        InstanceTemplateNetworkInterfaceAliasIpRangeArgs(
            ipCidrRange = ipCidrRange ?: throw PulumiNullFieldException("ipCidrRange"),
            subnetworkRangeName = subnetworkRangeName,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy