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

com.pulumi.gcp.dataproc.kotlin.inputs.JobPlacementArgs.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.JobPlacementArgs.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 clusterName The name of the cluster where the job will be submitted
 * @property clusterUuid Output-only. A cluster UUID generated by the Cloud Dataproc service when the job is submitted
 */
public data class JobPlacementArgs(
    public val clusterName: Output,
    public val clusterUuid: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.JobPlacementArgs =
        com.pulumi.gcp.dataproc.inputs.JobPlacementArgs.builder()
            .clusterName(clusterName.applyValue({ args0 -> args0 }))
            .clusterUuid(clusterUuid?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [JobPlacementArgs].
 */
@PulumiTagMarker
public class JobPlacementArgsBuilder internal constructor() {
    private var clusterName: Output? = null

    private var clusterUuid: Output? = null

    /**
     * @param value The name of the cluster where the job will be submitted
     */
    @JvmName("piinftphadxoapej")
    public suspend fun clusterName(`value`: Output) {
        this.clusterName = value
    }

    /**
     * @param value Output-only. A cluster UUID generated by the Cloud Dataproc service when the job is submitted
     */
    @JvmName("xcyalngdebfextni")
    public suspend fun clusterUuid(`value`: Output) {
        this.clusterUuid = value
    }

    /**
     * @param value The name of the cluster where the job will be submitted
     */
    @JvmName("pavaudetlerirpcm")
    public suspend fun clusterName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clusterName = mapped
    }

    /**
     * @param value Output-only. A cluster UUID generated by the Cloud Dataproc service when the job is submitted
     */
    @JvmName("wxsuudwjjgtigver")
    public suspend fun clusterUuid(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clusterUuid = mapped
    }

    internal fun build(): JobPlacementArgs = JobPlacementArgs(
        clusterName = clusterName ?: throw PulumiNullFieldException("clusterName"),
        clusterUuid = clusterUuid,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy