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

com.pulumi.awsnative.elasticloadbalancingv2.kotlin.outputs.LoadBalancerSubnetMapping.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.elasticloadbalancingv2.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 * Specifies a subnet for a load balancer.
 * @property allocationId [Network Load Balancers] The allocation ID of the Elastic IP address for an internet-facing load balancer.
 * @property iPv6Address [Network Load Balancers] The IPv6 address.
 * @property privateIPv4Address [Network Load Balancers] The private IPv4 address for an internal load balancer.
 * @property subnetId The ID of the subnet.
 */
public data class LoadBalancerSubnetMapping(
    public val allocationId: String? = null,
    public val iPv6Address: String? = null,
    public val privateIPv4Address: String? = null,
    public val subnetId: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.elasticloadbalancingv2.outputs.LoadBalancerSubnetMapping): LoadBalancerSubnetMapping = LoadBalancerSubnetMapping(
            allocationId = javaType.allocationId().map({ args0 -> args0 }).orElse(null),
            iPv6Address = javaType.iPv6Address().map({ args0 -> args0 }).orElse(null),
            privateIPv4Address = javaType.privateIPv4Address().map({ args0 -> args0 }).orElse(null),
            subnetId = javaType.subnetId(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy