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

com.pulumi.gcp.dataproc.kotlin.inputs.ClusterClusterConfigDataprocMetricConfigMetricArgs.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.ClusterClusterConfigDataprocMetricConfigMetricArgs.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 metricOverrides One or more [available OSS metrics] (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics) to collect for the metric course.
 * - - -
 * @property metricSource A source for the collection of Dataproc OSS metrics (see [available OSS metrics](https://cloud.google.com//dataproc/docs/guides/monitoring#available_oss_metrics)).
 */
public data class ClusterClusterConfigDataprocMetricConfigMetricArgs(
    public val metricOverrides: Output>? = null,
    public val metricSource: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigDataprocMetricConfigMetricArgs =
        com.pulumi.gcp.dataproc.inputs.ClusterClusterConfigDataprocMetricConfigMetricArgs.builder()
            .metricOverrides(metricOverrides?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .metricSource(metricSource.applyValue({ args0 -> args0 })).build()
}

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

    private var metricSource: Output? = null

    /**
     * @param value One or more [available OSS metrics] (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics) to collect for the metric course.
     * - - -
     */
    @JvmName("jkasemsnccthuxqc")
    public suspend fun metricOverrides(`value`: Output>) {
        this.metricOverrides = value
    }

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

    /**
     * @param values One or more [available OSS metrics] (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics) to collect for the metric course.
     * - - -
     */
    @JvmName("qttbslmpcjbmahdd")
    public suspend fun metricOverrides(values: List>) {
        this.metricOverrides = Output.all(values)
    }

    /**
     * @param value A source for the collection of Dataproc OSS metrics (see [available OSS metrics](https://cloud.google.com//dataproc/docs/guides/monitoring#available_oss_metrics)).
     */
    @JvmName("wprmlcdbfdeoymqs")
    public suspend fun metricSource(`value`: Output) {
        this.metricSource = value
    }

    /**
     * @param value One or more [available OSS metrics] (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics) to collect for the metric course.
     * - - -
     */
    @JvmName("qxjvcrmgqrtgbtxm")
    public suspend fun metricOverrides(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metricOverrides = mapped
    }

    /**
     * @param values One or more [available OSS metrics] (https://cloud.google.com/dataproc/docs/guides/monitoring#available_oss_metrics) to collect for the metric course.
     * - - -
     */
    @JvmName("hwppacsketmsmcxv")
    public suspend fun metricOverrides(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.metricOverrides = mapped
    }

    /**
     * @param value A source for the collection of Dataproc OSS metrics (see [available OSS metrics](https://cloud.google.com//dataproc/docs/guides/monitoring#available_oss_metrics)).
     */
    @JvmName("padxwshgfgujygvv")
    public suspend fun metricSource(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.metricSource = mapped
    }

    internal fun build(): ClusterClusterConfigDataprocMetricConfigMetricArgs =
        ClusterClusterConfigDataprocMetricConfigMetricArgs(
            metricOverrides = metricOverrides,
            metricSource = metricSource ?: throw PulumiNullFieldException("metricSource"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy