![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.orbital.kotlin.inputs.EndPointArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.orbital.kotlin.inputs
import com.pulumi.azurenative.orbital.inputs.EndPointArgs.builder
import com.pulumi.azurenative.orbital.kotlin.enums.Protocol
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.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Customer end point to store and retrieve data during a contact with the spacecraft.
* @property endPointName Name of an end point.
* @property ipAddress IP Address (IPv4).
* @property port TCP port to listen on to receive data.
* @property protocol Protocol either UDP or TCP.
*/
public data class EndPointArgs(
public val endPointName: Output,
public val ipAddress: Output,
public val port: Output,
public val protocol: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.orbital.inputs.EndPointArgs =
com.pulumi.azurenative.orbital.inputs.EndPointArgs.builder()
.endPointName(endPointName.applyValue({ args0 -> args0 }))
.ipAddress(ipAddress.applyValue({ args0 -> args0 }))
.port(port.applyValue({ args0 -> args0 }))
.protocol(
protocol.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [EndPointArgs].
*/
@PulumiTagMarker
public class EndPointArgsBuilder 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("txfajvgsqethyrcc")
public suspend fun endPointName(`value`: Output) {
this.endPointName = value
}
/**
* @param value IP Address (IPv4).
*/
@JvmName("txbvqbifghjhkgcr")
public suspend fun ipAddress(`value`: Output) {
this.ipAddress = value
}
/**
* @param value TCP port to listen on to receive data.
*/
@JvmName("vnttgbsfulypfaca")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value Protocol either UDP or TCP.
*/
@JvmName("qvmoepahdebauryn")
public suspend fun protocol(`value`: Output>) {
this.protocol = value
}
/**
* @param value Name of an end point.
*/
@JvmName("irlplgirdhcvvyuc")
public suspend fun endPointName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.endPointName = mapped
}
/**
* @param value IP Address (IPv4).
*/
@JvmName("icntxlshglvyncky")
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("ladigtemildjfhtu")
public suspend fun port(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.port = mapped
}
/**
* @param value Protocol either UDP or TCP.
*/
@JvmName("jmhqkrdefyiqjiya")
public suspend fun protocol(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.protocol = mapped
}
/**
* @param value Protocol either UDP or TCP.
*/
@JvmName("iovrmwiavcaxnrgg")
public fun protocol(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.protocol = mapped
}
/**
* @param value Protocol either UDP or TCP.
*/
@JvmName("kxmtnuojvgtsgwcp")
public fun protocol(`value`: Protocol) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.protocol = mapped
}
internal fun build(): EndPointArgs = EndPointArgs(
endPointName = endPointName ?: throw PulumiNullFieldException("endPointName"),
ipAddress = ipAddress ?: throw PulumiNullFieldException("ipAddress"),
port = port ?: throw PulumiNullFieldException("port"),
protocol = protocol ?: throw PulumiNullFieldException("protocol"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy