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

com.pulumi.azurenative.hdinsight.kotlin.inputs.ErrorsArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.hdinsight.kotlin.inputs

import com.pulumi.azurenative.hdinsight.inputs.ErrorsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The error message associated with the cluster creation.
 * @property code The error code.
 * @property message The error message.
 */
public data class ErrorsArgs(
    public val code: Output? = null,
    public val message: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.hdinsight.inputs.ErrorsArgs =
        com.pulumi.azurenative.hdinsight.inputs.ErrorsArgs.builder()
            .code(code?.applyValue({ args0 -> args0 }))
            .message(message?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ErrorsArgs].
 */
@PulumiTagMarker
public class ErrorsArgsBuilder internal constructor() {
    private var code: Output? = null

    private var message: Output? = null

    /**
     * @param value The error code.
     */
    @JvmName("rxoleecyhuifdofe")
    public suspend fun code(`value`: Output) {
        this.code = value
    }

    /**
     * @param value The error message.
     */
    @JvmName("pstkpjdumljfjpib")
    public suspend fun message(`value`: Output) {
        this.message = value
    }

    /**
     * @param value The error code.
     */
    @JvmName("gluvonwrfvgbfpiw")
    public suspend fun code(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.code = mapped
    }

    /**
     * @param value The error message.
     */
    @JvmName("mtuttkwmwgcbedfa")
    public suspend fun message(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.message = mapped
    }

    internal fun build(): ErrorsArgs = ErrorsArgs(
        code = code,
        message = message,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy