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

com.pulumi.gcp.networkconnectivity.kotlin.outputs.PolicyBasedRouteWarning.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.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.networkconnectivity.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 *
 * @property code (Output)
 * A warning code, if applicable.
 * @property data (Output)
 * Metadata about this warning in key: value format. The key should provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement.
 * @property warningMessage (Output)
 * A human-readable description of the warning code.
 */
public data class PolicyBasedRouteWarning(
    public val code: String? = null,
    public val `data`: Map? = null,
    public val warningMessage: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.networkconnectivity.outputs.PolicyBasedRouteWarning): PolicyBasedRouteWarning = PolicyBasedRouteWarning(
            code = javaType.code().map({ args0 -> args0 }).orElse(null),
            `data` = javaType.`data`().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            warningMessage = javaType.warningMessage().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy