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

com.pulumi.gcp.composer.kotlin.inputs.EnvironmentConfigWebServerNetworkAccessControlAllowedIpRangeArgs.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.

There is a newer version: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.composer.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.composer.inputs.EnvironmentConfigWebServerNetworkAccessControlAllowedIpRangeArgs.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 A description of this ip range.
 * @property value IP address or range, defined using CIDR notation, of requests that this rule applies to. Examples: 192.168.1.1 or 192.168.0.0/16 or 2001:db8::/32 or 2001:0db8:0000:0042:0000:8a2e:0370:7334. IP range prefixes should be properly truncated. For example, 1.2.3.4/24 should be truncated to 1.2.3.0/24. Similarly, for IPv6, 2001:db8::1/32 should be truncated to 2001:db8::/32.
 */
public data class EnvironmentConfigWebServerNetworkAccessControlAllowedIpRangeArgs(
    public val description: Output? = null,
    public val `value`: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.composer.inputs.EnvironmentConfigWebServerNetworkAccessControlAllowedIpRangeArgs =
        com.pulumi.gcp.composer.inputs.EnvironmentConfigWebServerNetworkAccessControlAllowedIpRangeArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .`value`(`value`.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EnvironmentConfigWebServerNetworkAccessControlAllowedIpRangeArgs].
 */
@PulumiTagMarker
public class EnvironmentConfigWebServerNetworkAccessControlAllowedIpRangeArgsBuilder internal constructor() {
    private var description: Output? = null

    private var `value`: Output? = null

    /**
     * @param value A description of this ip range.
     */
    @JvmName("murlivwfydeopgtj")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value IP address or range, defined using CIDR notation, of requests that this rule applies to. Examples: 192.168.1.1 or 192.168.0.0/16 or 2001:db8::/32 or 2001:0db8:0000:0042:0000:8a2e:0370:7334. IP range prefixes should be properly truncated. For example, 1.2.3.4/24 should be truncated to 1.2.3.0/24. Similarly, for IPv6, 2001:db8::1/32 should be truncated to 2001:db8::/32.
     */
    @JvmName("ioofqlyoukcubwuf")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value A description of this ip range.
     */
    @JvmName("gqjaklhjghqnmqyo")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value IP address or range, defined using CIDR notation, of requests that this rule applies to. Examples: 192.168.1.1 or 192.168.0.0/16 or 2001:db8::/32 or 2001:0db8:0000:0042:0000:8a2e:0370:7334. IP range prefixes should be properly truncated. For example, 1.2.3.4/24 should be truncated to 1.2.3.0/24. Similarly, for IPv6, 2001:db8::1/32 should be truncated to 2001:db8::/32.
     */
    @JvmName("ebprfelnwitaekhk")
    public suspend fun `value`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): EnvironmentConfigWebServerNetworkAccessControlAllowedIpRangeArgs =
        EnvironmentConfigWebServerNetworkAccessControlAllowedIpRangeArgs(
            description = description,
            `value` = `value` ?: throw PulumiNullFieldException("value"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy