com.pulumi.alicloud.pvtz.kotlin.inputs.EndpointIpConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-alicloud-kotlin Show documentation
Show all versions of pulumi-alicloud-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.alicloud.pvtz.kotlin.inputs
import com.pulumi.alicloud.pvtz.inputs.EndpointIpConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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 cidrBlock The Subnet mask.
* @property ip The IP address within the parameter range of the subnet mask. It is recommended to use the IP address assigned by the system.
* @property vswitchId The Vswitch id.
* @property zoneId The Zone ID.
*/
public data class EndpointIpConfigArgs(
public val cidrBlock: Output,
public val ip: Output? = null,
public val vswitchId: Output,
public val zoneId: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.alicloud.pvtz.inputs.EndpointIpConfigArgs =
com.pulumi.alicloud.pvtz.inputs.EndpointIpConfigArgs.builder()
.cidrBlock(cidrBlock.applyValue({ args0 -> args0 }))
.ip(ip?.applyValue({ args0 -> args0 }))
.vswitchId(vswitchId.applyValue({ args0 -> args0 }))
.zoneId(zoneId.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EndpointIpConfigArgs].
*/
@PulumiTagMarker
public class EndpointIpConfigArgsBuilder internal constructor() {
private var cidrBlock: Output? = null
private var ip: Output? = null
private var vswitchId: Output? = null
private var zoneId: Output? = null
/**
* @param value The Subnet mask.
*/
@JvmName("xpxqjcsejkrswhxh")
public suspend fun cidrBlock(`value`: Output) {
this.cidrBlock = value
}
/**
* @param value The IP address within the parameter range of the subnet mask. It is recommended to use the IP address assigned by the system.
*/
@JvmName("rdgxvhgbdymyksib")
public suspend fun ip(`value`: Output) {
this.ip = value
}
/**
* @param value The Vswitch id.
*/
@JvmName("xmyihfuinuphmtre")
public suspend fun vswitchId(`value`: Output) {
this.vswitchId = value
}
/**
* @param value The Zone ID.
*/
@JvmName("lwlvvhmeejyxgomb")
public suspend fun zoneId(`value`: Output) {
this.zoneId = value
}
/**
* @param value The Subnet mask.
*/
@JvmName("rueiwpccrnficuvl")
public suspend fun cidrBlock(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.cidrBlock = mapped
}
/**
* @param value The IP address within the parameter range of the subnet mask. It is recommended to use the IP address assigned by the system.
*/
@JvmName("ghpjyussbrcanptp")
public suspend fun ip(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ip = mapped
}
/**
* @param value The Vswitch id.
*/
@JvmName("aqslnqnbaimfihos")
public suspend fun vswitchId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.vswitchId = mapped
}
/**
* @param value The Zone ID.
*/
@JvmName("scwashgtwtcbxcfj")
public suspend fun zoneId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.zoneId = mapped
}
internal fun build(): EndpointIpConfigArgs = EndpointIpConfigArgs(
cidrBlock = cidrBlock ?: throw PulumiNullFieldException("cidrBlock"),
ip = ip,
vswitchId = vswitchId ?: throw PulumiNullFieldException("vswitchId"),
zoneId = zoneId ?: throw PulumiNullFieldException("zoneId"),
)
}