com.pulumi.azure.orbital.kotlin.inputs.ContactProfileLinkChannelEndPointArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.orbital.kotlin.inputs
import com.pulumi.azure.orbital.inputs.ContactProfileLinkChannelEndPointArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property endPointName Name of an end point.
* @property ipAddress IP address of an end point.
* @property port TCP port to listen on to receive data.
* @property protocol Protocol of an end point. Possible values are `TCP` and `UDP`.
*/
public data class ContactProfileLinkChannelEndPointArgs(
public val endPointName: Output,
public val ipAddress: Output? = null,
public val port: Output,
public val protocol: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.orbital.inputs.ContactProfileLinkChannelEndPointArgs =
com.pulumi.azure.orbital.inputs.ContactProfileLinkChannelEndPointArgs.builder()
.endPointName(endPointName.applyValue({ args0 -> args0 }))
.ipAddress(ipAddress?.applyValue({ args0 -> args0 }))
.port(port.applyValue({ args0 -> args0 }))
.protocol(protocol.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ContactProfileLinkChannelEndPointArgs].
*/
@PulumiTagMarker
public class ContactProfileLinkChannelEndPointArgsBuilder internal constructor() {
private var endPointName: Output? = null
private var ipAddress: Output? = null
private var port: Output? = null
private var protocol: Output? = null
/**
* @param value Name of an end point.
*/
@JvmName("imxlavhfviamqlla")
public suspend fun endPointName(`value`: Output) {
this.endPointName = value
}
/**
* @param value IP address of an end point.
*/
@JvmName("ngnxffipkysmokmh")
public suspend fun ipAddress(`value`: Output) {
this.ipAddress = value
}
/**
* @param value TCP port to listen on to receive data.
*/
@JvmName("hjpefxfkaaicuccb")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value Protocol of an end point. Possible values are `TCP` and `UDP`.
*/
@JvmName("ipljwtpreomfoqny")
public suspend fun protocol(`value`: Output) {
this.protocol = value
}
/**
* @param value Name of an end point.
*/
@JvmName("ehknigflyqxdijkc")
public suspend fun endPointName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.endPointName = mapped
}
/**
* @param value IP address of an end point.
*/
@JvmName("bwaerpetdmvlnwpn")
public suspend fun ipAddress(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ipAddress = mapped
}
/**
* @param value TCP port to listen on to receive data.
*/
@JvmName("jxvdpppyvekxensc")
public suspend fun port(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.port = mapped
}
/**
* @param value Protocol of an end point. Possible values are `TCP` and `UDP`.
*/
@JvmName("xytrcpwmabkcnqtk")
public suspend fun protocol(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.protocol = mapped
}
internal fun build(): ContactProfileLinkChannelEndPointArgs =
ContactProfileLinkChannelEndPointArgs(
endPointName = endPointName ?: throw PulumiNullFieldException("endPointName"),
ipAddress = ipAddress,
port = port ?: throw PulumiNullFieldException("port"),
protocol = protocol ?: throw PulumiNullFieldException("protocol"),
)
}