com.pulumi.gcp.compute.kotlin.inputs.RegionInstanceTemplateNetworkInterfaceAliasIpRangeArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.RegionInstanceTemplateNetworkInterfaceAliasIpRangeArgs.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 RegionInstanceTemplateNetworkInterfaceAliasIpRangeArgs(
public val ipCidrRange: Output,
public val subnetworkRangeName: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.RegionInstanceTemplateNetworkInterfaceAliasIpRangeArgs =
com.pulumi.gcp.compute.inputs.RegionInstanceTemplateNetworkInterfaceAliasIpRangeArgs.builder()
.ipCidrRange(ipCidrRange.applyValue({ args0 -> args0 }))
.subnetworkRangeName(subnetworkRangeName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RegionInstanceTemplateNetworkInterfaceAliasIpRangeArgs].
*/
@PulumiTagMarker
public class RegionInstanceTemplateNetworkInterfaceAliasIpRangeArgsBuilder 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("jbywltoqtepvcydh")
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("aftmqtymciqahacr")
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("ogxdxmmjoigkhnju")
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("fueanftbmndbhoay")
public suspend fun subnetworkRangeName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.subnetworkRangeName = mapped
}
internal fun build(): RegionInstanceTemplateNetworkInterfaceAliasIpRangeArgs =
RegionInstanceTemplateNetworkInterfaceAliasIpRangeArgs(
ipCidrRange = ipCidrRange ?: throw PulumiNullFieldException("ipCidrRange"),
subnetworkRangeName = subnetworkRangeName,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy