com.pulumi.gcp.compute.kotlin.inputs.RouterPeerAdvertisedIpRangeArgs.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.RouterPeerAdvertisedIpRangeArgs.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 description User-specified description for the IP range.
* @property range The IP range to advertise. The value must be a
* CIDR-formatted string.
*/
public data class RouterPeerAdvertisedIpRangeArgs(
public val description: Output? = null,
public val range: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.RouterPeerAdvertisedIpRangeArgs =
com.pulumi.gcp.compute.inputs.RouterPeerAdvertisedIpRangeArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.range(range.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RouterPeerAdvertisedIpRangeArgs].
*/
@PulumiTagMarker
public class RouterPeerAdvertisedIpRangeArgsBuilder internal constructor() {
private var description: Output? = null
private var range: Output? = null
/**
* @param value User-specified description for the IP range.
*/
@JvmName("beagxsfhtcngosrq")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The IP range to advertise. The value must be a
* CIDR-formatted string.
*/
@JvmName("ysqeuidqhvkirftl")
public suspend fun range(`value`: Output) {
this.range = value
}
/**
* @param value User-specified description for the IP range.
*/
@JvmName("pxambxwrevxopgyd")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The IP range to advertise. The value must be a
* CIDR-formatted string.
*/
@JvmName("comnulxmeikqwlrc")
public suspend fun range(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.range = mapped
}
internal fun build(): RouterPeerAdvertisedIpRangeArgs = RouterPeerAdvertisedIpRangeArgs(
description = description,
range = range ?: throw PulumiNullFieldException("range"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy