
com.pulumi.azurenative.connectedvmwarevsphere.kotlin.inputs.NicIPSettingsArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.connectedvmwarevsphere.kotlin.inputs
import com.pulumi.azurenative.connectedvmwarevsphere.inputs.NicIPSettingsArgs.builder
import com.pulumi.azurenative.connectedvmwarevsphere.kotlin.enums.IPAddressAllocationMethod
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Defines the network interface ip settings.
* @property allocationMethod Gets or sets the nic allocation method.
* @property dnsServers Gets or sets the dns servers.
* @property gateway Gets or sets the gateway.
* @property ipAddress Gets or sets the ip address for the nic.
* @property subnetMask Gets or sets the mask.
*/
public data class NicIPSettingsArgs(
public val allocationMethod: Output>? = null,
public val dnsServers: Output>? = null,
public val gateway: Output>? = null,
public val ipAddress: Output? = null,
public val subnetMask: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.connectedvmwarevsphere.inputs.NicIPSettingsArgs =
com.pulumi.azurenative.connectedvmwarevsphere.inputs.NicIPSettingsArgs.builder()
.allocationMethod(
allocationMethod?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.dnsServers(dnsServers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.gateway(gateway?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.ipAddress(ipAddress?.applyValue({ args0 -> args0 }))
.subnetMask(subnetMask?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NicIPSettingsArgs].
*/
@PulumiTagMarker
public class NicIPSettingsArgsBuilder internal constructor() {
private var allocationMethod: Output>? = null
private var dnsServers: Output>? = null
private var gateway: Output>? = null
private var ipAddress: Output? = null
private var subnetMask: Output? = null
/**
* @param value Gets or sets the nic allocation method.
*/
@JvmName("xsrodyicdcseoqeb")
public suspend fun allocationMethod(`value`: Output>) {
this.allocationMethod = value
}
/**
* @param value Gets or sets the dns servers.
*/
@JvmName("cxpqqnatrpjxnera")
public suspend fun dnsServers(`value`: Output>) {
this.dnsServers = value
}
@JvmName("ipquurlyebkbcfqs")
public suspend fun dnsServers(vararg values: Output) {
this.dnsServers = Output.all(values.asList())
}
/**
* @param values Gets or sets the dns servers.
*/
@JvmName("jkxibrarklliyowm")
public suspend fun dnsServers(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy