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

com.pulumi.gcp.dataproc.kotlin.inputs.WorkflowTemplatePlacementManagedClusterConfigEndpointConfigArgs.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.dataproc.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataproc.inputs.WorkflowTemplatePlacementManagedClusterConfigEndpointConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property enableHttpPortAccess If true, enable http access to specific ports on the cluster from external sources. Defaults to false.
 * @property httpPorts Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.
 */
public data class WorkflowTemplatePlacementManagedClusterConfigEndpointConfigArgs(
    public val enableHttpPortAccess: Output? = null,
    public val httpPorts: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.WorkflowTemplatePlacementManagedClusterConfigEndpointConfigArgs =
        com.pulumi.gcp.dataproc.inputs.WorkflowTemplatePlacementManagedClusterConfigEndpointConfigArgs.builder()
            .enableHttpPortAccess(enableHttpPortAccess?.applyValue({ args0 -> args0 }))
            .httpPorts(
                httpPorts?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [WorkflowTemplatePlacementManagedClusterConfigEndpointConfigArgs].
 */
@PulumiTagMarker
public class WorkflowTemplatePlacementManagedClusterConfigEndpointConfigArgsBuilder internal constructor() {
    private var enableHttpPortAccess: Output? = null

    private var httpPorts: Output>? = null

    /**
     * @param value If true, enable http access to specific ports on the cluster from external sources. Defaults to false.
     */
    @JvmName("vsgkfhvbjdbiaojv")
    public suspend fun enableHttpPortAccess(`value`: Output) {
        this.enableHttpPortAccess = value
    }

    /**
     * @param value Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.
     */
    @JvmName("sqoscsbumfflkcnw")
    public suspend fun httpPorts(`value`: Output>) {
        this.httpPorts = value
    }

    /**
     * @param value If true, enable http access to specific ports on the cluster from external sources. Defaults to false.
     */
    @JvmName("xmphfgrlfmbfxjhm")
    public suspend fun enableHttpPortAccess(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableHttpPortAccess = mapped
    }

    /**
     * @param value Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.
     */
    @JvmName("nmniyexwjsntvtpp")
    public suspend fun httpPorts(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpPorts = mapped
    }

    /**
     * @param values Output only. The map of port descriptions to URLs. Will only be populated if enable_http_port_access is true.
     */
    @JvmName("ltdkfganjjjyugwf")
    public fun httpPorts(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.httpPorts = mapped
    }

    internal fun build(): WorkflowTemplatePlacementManagedClusterConfigEndpointConfigArgs =
        WorkflowTemplatePlacementManagedClusterConfigEndpointConfigArgs(
            enableHttpPortAccess = enableHttpPortAccess,
            httpPorts = httpPorts,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy