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

com.pulumi.azure.network.kotlin.inputs.TrafficManagerExternalEndpointSubnetArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.network.kotlin.inputs

import com.pulumi.azure.network.inputs.TrafficManagerExternalEndpointSubnetArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property first The first IP Address in this subnet.
 * @property last The last IP Address in this subnet.
 * @property scope The block size (number of leading bits in the subnet mask).
 */
public data class TrafficManagerExternalEndpointSubnetArgs(
    public val first: Output,
    public val last: Output? = null,
    public val scope: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.TrafficManagerExternalEndpointSubnetArgs =
        com.pulumi.azure.network.inputs.TrafficManagerExternalEndpointSubnetArgs.builder()
            .first(first.applyValue({ args0 -> args0 }))
            .last(last?.applyValue({ args0 -> args0 }))
            .scope(scope?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TrafficManagerExternalEndpointSubnetArgs].
 */
@PulumiTagMarker
public class TrafficManagerExternalEndpointSubnetArgsBuilder internal constructor() {
    private var first: Output? = null

    private var last: Output? = null

    private var scope: Output? = null

    /**
     * @param value The first IP Address in this subnet.
     */
    @JvmName("siqxylqnqcbrbcef")
    public suspend fun first(`value`: Output) {
        this.first = value
    }

    /**
     * @param value The last IP Address in this subnet.
     */
    @JvmName("eyaffhvremfhmhrq")
    public suspend fun last(`value`: Output) {
        this.last = value
    }

    /**
     * @param value The block size (number of leading bits in the subnet mask).
     */
    @JvmName("qpdboiuelbwgkhps")
    public suspend fun scope(`value`: Output) {
        this.scope = value
    }

    /**
     * @param value The first IP Address in this subnet.
     */
    @JvmName("kqhcnmghsunjyeex")
    public suspend fun first(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.first = mapped
    }

    /**
     * @param value The last IP Address in this subnet.
     */
    @JvmName("jablnscjtyywktgl")
    public suspend fun last(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.last = mapped
    }

    /**
     * @param value The block size (number of leading bits in the subnet mask).
     */
    @JvmName("halfqbuidyaiyjdj")
    public suspend fun scope(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.scope = mapped
    }

    internal fun build(): TrafficManagerExternalEndpointSubnetArgs =
        TrafficManagerExternalEndpointSubnetArgs(
            first = first ?: throw PulumiNullFieldException("first"),
            last = last,
            scope = scope,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy