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

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

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

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 * A collection of values returned by getNetworkEndpointGroup.
 * @property defaultPort The NEG default port.
 * @property description The NEG description.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property name
 * @property network The network to which all network endpoints in the NEG belong.
 * @property networkEndpointType Type of network endpoints in this network endpoint group.
 * @property project
 * @property selfLink
 * @property size Number of network endpoints in the network endpoint group.
 * @property subnetwork subnetwork to which all network endpoints in the NEG belong.
 * @property zone
 */
public data class GetNetworkEndpointGroupResult(
    public val defaultPort: Int,
    public val description: String,
    public val id: String,
    public val name: String? = null,
    public val network: String,
    public val networkEndpointType: String,
    public val project: String? = null,
    public val selfLink: String? = null,
    public val size: Int,
    public val subnetwork: String,
    public val zone: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetNetworkEndpointGroupResult): GetNetworkEndpointGroupResult = GetNetworkEndpointGroupResult(
            defaultPort = javaType.defaultPort(),
            description = javaType.description(),
            id = javaType.id(),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            network = javaType.network(),
            networkEndpointType = javaType.networkEndpointType(),
            project = javaType.project().map({ args0 -> args0 }).orElse(null),
            selfLink = javaType.selfLink().map({ args0 -> args0 }).orElse(null),
            size = javaType.size(),
            subnetwork = javaType.subnetwork(),
            zone = javaType.zone().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy