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

com.pulumi.azurenative.app.kotlin.outputs.ErrorEntityResponse.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.app.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * Body of the error response returned from the API.
 * @property code Basic error code.
 * @property details Error Details.
 * @property extendedCode Type of error.
 * @property innerErrors Inner errors.
 * @property message Any details of the error.
 * @property messageTemplate Message template.
 * @property parameters Parameters for the template.
 * @property target The error target.
 */
public data class ErrorEntityResponse(
    public val code: String? = null,
    public val details: List? = null,
    public val extendedCode: String? = null,
    public val innerErrors: List? = null,
    public val message: String? = null,
    public val messageTemplate: String? = null,
    public val parameters: List? = null,
    public val target: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azurenative.app.outputs.ErrorEntityResponse): ErrorEntityResponse = ErrorEntityResponse(
            code = javaType.code().map({ args0 -> args0 }).orElse(null),
            details = javaType.details().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azurenative.app.kotlin.outputs.ErrorEntityResponse.Companion.toKotlin(args0)
                })
            }),
            extendedCode = javaType.extendedCode().map({ args0 -> args0 }).orElse(null),
            innerErrors = javaType.innerErrors().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azurenative.app.kotlin.outputs.ErrorEntityResponse.Companion.toKotlin(args0)
                })
            }),
            message = javaType.message().map({ args0 -> args0 }).orElse(null),
            messageTemplate = javaType.messageTemplate().map({ args0 -> args0 }).orElse(null),
            parameters = javaType.parameters().map({ args0 -> args0 }),
            target = javaType.target().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy