com.pulumi.aws.waf.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.waf.kotlin.inputs
import com.pulumi.aws.waf.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 Type of the IP address - `IPV4` or `IPV6`.
* @property value An IPv4 or IPv6 address specified via CIDR notationE.g., `192.0.2.44/32` or `1111:0000:0000:0000:0000:0000:0000:0000/64`
*/
public data class IpSetIpSetDescriptorArgs(
public val type: Output,
public val `value`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.waf.inputs.IpSetIpSetDescriptorArgs =
com.pulumi.aws.waf.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 Type of the IP address - `IPV4` or `IPV6`.
*/
@JvmName("xcllhctvcxxyuyex")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value An IPv4 or IPv6 address specified via CIDR notationE.g., `192.0.2.44/32` or `1111:0000:0000:0000:0000:0000:0000:0000/64`
*/
@JvmName("ijgfqantsglpnhen")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value Type of the IP address - `IPV4` or `IPV6`.
*/
@JvmName("tipjkqjqodunrguo")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value An IPv4 or IPv6 address specified via CIDR notationE.g., `192.0.2.44/32` or `1111:0000:0000:0000:0000:0000:0000:0000/64`
*/
@JvmName("csdtxdrsetamcjjh")
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