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

com.pulumi.gcp.vmwareengine.kotlin.inputs.ExternalAccessRuleSourceIpRangeArgs.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.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.vmwareengine.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.vmwareengine.inputs.ExternalAccessRuleSourceIpRangeArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property ipAddress A single IP address.
 * @property ipAddressRange An IP address range in the CIDR format.
 */
public data class ExternalAccessRuleSourceIpRangeArgs(
    public val ipAddress: Output? = null,
    public val ipAddressRange: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.vmwareengine.inputs.ExternalAccessRuleSourceIpRangeArgs =
        com.pulumi.gcp.vmwareengine.inputs.ExternalAccessRuleSourceIpRangeArgs.builder()
            .ipAddress(ipAddress?.applyValue({ args0 -> args0 }))
            .ipAddressRange(ipAddressRange?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ExternalAccessRuleSourceIpRangeArgs].
 */
@PulumiTagMarker
public class ExternalAccessRuleSourceIpRangeArgsBuilder internal constructor() {
    private var ipAddress: Output? = null

    private var ipAddressRange: Output? = null

    /**
     * @param value A single IP address.
     */
    @JvmName("fxrqejitcohafuqf")
    public suspend fun ipAddress(`value`: Output) {
        this.ipAddress = value
    }

    /**
     * @param value An IP address range in the CIDR format.
     */
    @JvmName("stpcygobsdaxkmha")
    public suspend fun ipAddressRange(`value`: Output) {
        this.ipAddressRange = value
    }

    /**
     * @param value A single IP address.
     */
    @JvmName("eeigtkrbquqhtyvr")
    public suspend fun ipAddress(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipAddress = mapped
    }

    /**
     * @param value An IP address range in the CIDR format.
     */
    @JvmName("kungwjrubalqvymb")
    public suspend fun ipAddressRange(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipAddressRange = mapped
    }

    internal fun build(): ExternalAccessRuleSourceIpRangeArgs = ExternalAccessRuleSourceIpRangeArgs(
        ipAddress = ipAddress,
        ipAddressRange = ipAddressRange,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy