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

com.pulumi.gcp.compute.kotlin.outputs.GetRouterResult.kt Maven / Gradle / Ivy

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

package com.pulumi.gcp.compute.kotlin.outputs

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

/**
 * A collection of values returned by getRouter.
 * @property bgps
 * @property creationTimestamp
 * @property description
 * @property encryptedInterconnectRouter
 * @property id The provider-assigned unique ID for this managed resource.
 * @property name
 * @property network
 * @property project
 * @property region
 * @property selfLink
 */
public data class GetRouterResult(
    public val bgps: List,
    public val creationTimestamp: String,
    public val description: String,
    public val encryptedInterconnectRouter: Boolean,
    public val id: String,
    public val name: String,
    public val network: String,
    public val project: String? = null,
    public val region: String? = null,
    public val selfLink: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetRouterResult): GetRouterResult =
            GetRouterResult(
                bgps = javaType.bgps().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.compute.kotlin.outputs.GetRouterBgp.Companion.toKotlin(args0)
                    })
                }),
                creationTimestamp = javaType.creationTimestamp(),
                description = javaType.description(),
                encryptedInterconnectRouter = javaType.encryptedInterconnectRouter(),
                id = javaType.id(),
                name = javaType.name(),
                network = javaType.network(),
                project = javaType.project().map({ args0 -> args0 }).orElse(null),
                region = javaType.region().map({ args0 -> args0 }).orElse(null),
                selfLink = javaType.selfLink(),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy