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

com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalClusterProxyArgs.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.gkeonprem.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterProxyArgs.builder
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 noProxies A list of IPs, hostnames, and domains that should skip the proxy.
 * Examples: ["127.0.0.1", "example.com", ".corp", "localhost"].
 * @property uri Specifies the address of your proxy server.
 * Examples: http://domain
 * WARNING: Do not provide credentials in the format
 * http://(username:password@)domain these will be rejected by the server.
 */
public data class BareMetalClusterProxyArgs(
    public val noProxies: Output>? = null,
    public val uri: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterProxyArgs =
        com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterProxyArgs.builder()
            .noProxies(noProxies?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .uri(uri.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BareMetalClusterProxyArgs].
 */
@PulumiTagMarker
public class BareMetalClusterProxyArgsBuilder internal constructor() {
    private var noProxies: Output>? = null

    private var uri: Output? = null

    /**
     * @param value A list of IPs, hostnames, and domains that should skip the proxy.
     * Examples: ["127.0.0.1", "example.com", ".corp", "localhost"].
     */
    @JvmName("tvljcetobutdejtc")
    public suspend fun noProxies(`value`: Output>) {
        this.noProxies = value
    }

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

    /**
     * @param values A list of IPs, hostnames, and domains that should skip the proxy.
     * Examples: ["127.0.0.1", "example.com", ".corp", "localhost"].
     */
    @JvmName("ppnelbbgwsbcmsps")
    public suspend fun noProxies(values: List>) {
        this.noProxies = Output.all(values)
    }

    /**
     * @param value Specifies the address of your proxy server.
     * Examples: http://domain
     * WARNING: Do not provide credentials in the format
     * http://(username:password@)domain these will be rejected by the server.
     */
    @JvmName("rbpjuneaghyunyps")
    public suspend fun uri(`value`: Output) {
        this.uri = value
    }

    /**
     * @param value A list of IPs, hostnames, and domains that should skip the proxy.
     * Examples: ["127.0.0.1", "example.com", ".corp", "localhost"].
     */
    @JvmName("envfxvgoiaxmxkop")
    public suspend fun noProxies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.noProxies = mapped
    }

    /**
     * @param values A list of IPs, hostnames, and domains that should skip the proxy.
     * Examples: ["127.0.0.1", "example.com", ".corp", "localhost"].
     */
    @JvmName("alienpxnvhqwpqsf")
    public suspend fun noProxies(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.noProxies = mapped
    }

    /**
     * @param value Specifies the address of your proxy server.
     * Examples: http://domain
     * WARNING: Do not provide credentials in the format
     * http://(username:password@)domain these will be rejected by the server.
     */
    @JvmName("wqfynxbqqndtyfkg")
    public suspend fun uri(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.uri = mapped
    }

    internal fun build(): BareMetalClusterProxyArgs = BareMetalClusterProxyArgs(
        noProxies = noProxies,
        uri = uri ?: throw PulumiNullFieldException("uri"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy