com.pulumi.aws.wafregional.kotlin.inputs.IpSetIpSetDescriptorArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.wafregional.kotlin.inputs
import com.pulumi.aws.wafregional.inputs.IpSetIpSetDescriptorArgs.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 type The string like IPV4 or IPV6.
* @property value The CIDR notation.
*/
public data class IpSetIpSetDescriptorArgs(
public val type: Output,
public val `value`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.wafregional.inputs.IpSetIpSetDescriptorArgs =
com.pulumi.aws.wafregional.inputs.IpSetIpSetDescriptorArgs.builder()
.type(type.applyValue({ args0 -> args0 }))
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IpSetIpSetDescriptorArgs].
*/
@PulumiTagMarker
public class IpSetIpSetDescriptorArgsBuilder internal constructor() {
private var type: Output? = null
private var `value`: Output? = null
/**
* @param value The string like IPV4 or IPV6.
*/
@JvmName("tjqdeldotbvmlslk")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value The CIDR notation.
*/
@JvmName("uihfdovifwelrvfb")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value The string like IPV4 or IPV6.
*/
@JvmName("xvilvywwbxhidkkq")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value The CIDR notation.
*/
@JvmName("rgvybuixaslsuwhn")
public suspend fun `value`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): IpSetIpSetDescriptorArgs = IpSetIpSetDescriptorArgs(
type = type ?: throw PulumiNullFieldException("type"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy