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

com.pulumi.gcp.gkeonprem.kotlin.inputs.VMwareClusterNetworkConfigStaticIpConfigIpBlockIpArgs.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.gkeonprem.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkeonprem.inputs.VMwareClusterNetworkConfigStaticIpConfigIpBlockIpArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property hostname Hostname of the machine. VM's name will be used if this field is empty.
 * @property ip IP could be an IP address (like 1.2.3.4) or a CIDR (like 1.2.3.0/24).
 */
public data class VMwareClusterNetworkConfigStaticIpConfigIpBlockIpArgs(
    public val hostname: Output? = null,
    public val ip: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.VMwareClusterNetworkConfigStaticIpConfigIpBlockIpArgs =
        com.pulumi.gcp.gkeonprem.inputs.VMwareClusterNetworkConfigStaticIpConfigIpBlockIpArgs.builder()
            .hostname(hostname?.applyValue({ args0 -> args0 }))
            .ip(ip.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VMwareClusterNetworkConfigStaticIpConfigIpBlockIpArgs].
 */
@PulumiTagMarker
public class VMwareClusterNetworkConfigStaticIpConfigIpBlockIpArgsBuilder internal constructor() {
    private var hostname: Output? = null

    private var ip: Output? = null

    /**
     * @param value Hostname of the machine. VM's name will be used if this field is empty.
     */
    @JvmName("envssfmsecbxuhct")
    public suspend fun hostname(`value`: Output) {
        this.hostname = value
    }

    /**
     * @param value IP could be an IP address (like 1.2.3.4) or a CIDR (like 1.2.3.0/24).
     */
    @JvmName("wngcrqqmdpmnngqm")
    public suspend fun ip(`value`: Output) {
        this.ip = value
    }

    /**
     * @param value Hostname of the machine. VM's name will be used if this field is empty.
     */
    @JvmName("jjqyybkimqobaksv")
    public suspend fun hostname(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostname = mapped
    }

    /**
     * @param value IP could be an IP address (like 1.2.3.4) or a CIDR (like 1.2.3.0/24).
     */
    @JvmName("byhuidpqaixayprc")
    public suspend fun ip(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ip = mapped
    }

    internal fun build(): VMwareClusterNetworkConfigStaticIpConfigIpBlockIpArgs =
        VMwareClusterNetworkConfigStaticIpConfigIpBlockIpArgs(
            hostname = hostname,
            ip = ip ?: throw PulumiNullFieldException("ip"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy