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

com.pulumi.awsnative.iottwinmaker.kotlin.inputs.EntityStatusErrorPropertiesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.iottwinmaker.kotlin.inputs

import com.pulumi.awsnative.iottwinmaker.inputs.EntityStatusErrorPropertiesArgs.builder
import com.pulumi.awsnative.iottwinmaker.kotlin.enums.EntityStatusErrorPropertiesCode
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

/**
 * Error object with Message and Code.
 * @property code
 * @property message
 */
public data class EntityStatusErrorPropertiesArgs(
    public val code: Output? = null,
    public val message: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iottwinmaker.inputs.EntityStatusErrorPropertiesArgs =
        com.pulumi.awsnative.iottwinmaker.inputs.EntityStatusErrorPropertiesArgs.builder()
            .code(code?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .message(message?.applyValue({ args0 -> args0 })).build()
}

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

    private var message: Output? = null

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy