All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.cloudflare.kotlin.inputs.ZoneLockdownConfigurationArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.ZoneLockdownConfigurationArgs.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 target The request property to target. Available values: `ip`, `ip_range`.
 * @property value The value to target. Depends on target's type. IP addresses should just be standard IPv4/IPv6 notation i.e. `192.0.2.1` or `2001:db8::/32` and IP ranges in CIDR format i.e. `192.0.2.0/24`.
 */
public data class ZoneLockdownConfigurationArgs(
    public val target: Output,
    public val `value`: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.ZoneLockdownConfigurationArgs =
        com.pulumi.cloudflare.inputs.ZoneLockdownConfigurationArgs.builder()
            .target(target.applyValue({ args0 -> args0 }))
            .`value`(`value`.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ZoneLockdownConfigurationArgs].
 */
@PulumiTagMarker
public class ZoneLockdownConfigurationArgsBuilder internal constructor() {
    private var target: Output? = null

    private var `value`: Output? = null

    /**
     * @param value The request property to target. Available values: `ip`, `ip_range`.
     */
    @JvmName("wugxyqykmwmixdxc")
    public suspend fun target(`value`: Output) {
        this.target = value
    }

    /**
     * @param value The value to target. Depends on target's type. IP addresses should just be standard IPv4/IPv6 notation i.e. `192.0.2.1` or `2001:db8::/32` and IP ranges in CIDR format i.e. `192.0.2.0/24`.
     */
    @JvmName("iytjhebucemokfgw")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The request property to target. Available values: `ip`, `ip_range`.
     */
    @JvmName("xexdwsfifnklorsh")
    public suspend fun target(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.target = mapped
    }

    /**
     * @param value The value to target. Depends on target's type. IP addresses should just be standard IPv4/IPv6 notation i.e. `192.0.2.1` or `2001:db8::/32` and IP ranges in CIDR format i.e. `192.0.2.0/24`.
     */
    @JvmName("ochkrqqgeephdldc")
    public suspend fun `value`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): ZoneLockdownConfigurationArgs = ZoneLockdownConfigurationArgs(
        target = target ?: throw PulumiNullFieldException("target"),
        `value` = `value` ?: throw PulumiNullFieldException("value"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy