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

com.pulumi.cloudflare.kotlin.inputs.SpectrumApplicationEdgeIpsArgs.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: 5.47.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.SpectrumApplicationEdgeIpsArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property connectivity The IP versions supported for inbound connections on Spectrum anycast IPs. Required when `type` is not `static`. Available values: `all`, `ipv4`, `ipv6`.
 * @property ips The collection of customer owned IPs to broadcast via anycast for this hostname and application. Requires [Bring Your Own IP](https://developers.cloudflare.com/spectrum/getting-started/byoip/) provisioned.
 * @property type The type of edge IP configuration specified. Available values: `dynamic`, `static`.
 */
public data class SpectrumApplicationEdgeIpsArgs(
    public val connectivity: Output? = null,
    public val ips: Output>? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.SpectrumApplicationEdgeIpsArgs =
        com.pulumi.cloudflare.inputs.SpectrumApplicationEdgeIpsArgs.builder()
            .connectivity(connectivity?.applyValue({ args0 -> args0 }))
            .ips(ips?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SpectrumApplicationEdgeIpsArgs].
 */
@PulumiTagMarker
public class SpectrumApplicationEdgeIpsArgsBuilder internal constructor() {
    private var connectivity: Output? = null

    private var ips: Output>? = null

    private var type: Output? = null

    /**
     * @param value The IP versions supported for inbound connections on Spectrum anycast IPs. Required when `type` is not `static`. Available values: `all`, `ipv4`, `ipv6`.
     */
    @JvmName("kydgorfkpnpondpg")
    public suspend fun connectivity(`value`: Output) {
        this.connectivity = value
    }

    /**
     * @param value The collection of customer owned IPs to broadcast via anycast for this hostname and application. Requires [Bring Your Own IP](https://developers.cloudflare.com/spectrum/getting-started/byoip/) provisioned.
     */
    @JvmName("jtgopdfsegpfrguc")
    public suspend fun ips(`value`: Output>) {
        this.ips = value
    }

    @JvmName("wvlqoywmmytkjfio")
    public suspend fun ips(vararg values: Output) {
        this.ips = Output.all(values.asList())
    }

    /**
     * @param values The collection of customer owned IPs to broadcast via anycast for this hostname and application. Requires [Bring Your Own IP](https://developers.cloudflare.com/spectrum/getting-started/byoip/) provisioned.
     */
    @JvmName("ckttqlqxhoomwwrs")
    public suspend fun ips(values: List>) {
        this.ips = Output.all(values)
    }

    /**
     * @param value The type of edge IP configuration specified. Available values: `dynamic`, `static`.
     */
    @JvmName("dbeaavlejttcctbv")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The IP versions supported for inbound connections on Spectrum anycast IPs. Required when `type` is not `static`. Available values: `all`, `ipv4`, `ipv6`.
     */
    @JvmName("qrskkhobmawofgph")
    public suspend fun connectivity(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectivity = mapped
    }

    /**
     * @param value The collection of customer owned IPs to broadcast via anycast for this hostname and application. Requires [Bring Your Own IP](https://developers.cloudflare.com/spectrum/getting-started/byoip/) provisioned.
     */
    @JvmName("hhdyvqclihigflqr")
    public suspend fun ips(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ips = mapped
    }

    /**
     * @param values The collection of customer owned IPs to broadcast via anycast for this hostname and application. Requires [Bring Your Own IP](https://developers.cloudflare.com/spectrum/getting-started/byoip/) provisioned.
     */
    @JvmName("qxdyfknbopivbfhm")
    public suspend fun ips(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ips = mapped
    }

    /**
     * @param value The type of edge IP configuration specified. Available values: `dynamic`, `static`.
     */
    @JvmName("ictpqovgotpksdfg")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): SpectrumApplicationEdgeIpsArgs = SpectrumApplicationEdgeIpsArgs(
        connectivity = connectivity,
        ips = ips,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy