com.pulumi.cloudflare.kotlin.inputs.SpectrumApplicationOriginPortRangeArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin.inputs
import com.pulumi.cloudflare.inputs.SpectrumApplicationOriginPortRangeArgs.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.Suppress
import kotlin.jvm.JvmName
/**
*
* @property end Upper bound of the origin port range.
* @property start Lower bound of the origin port range.
*/
public data class SpectrumApplicationOriginPortRangeArgs(
public val end: Output,
public val start: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.SpectrumApplicationOriginPortRangeArgs =
com.pulumi.cloudflare.inputs.SpectrumApplicationOriginPortRangeArgs.builder()
.end(end.applyValue({ args0 -> args0 }))
.start(start.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SpectrumApplicationOriginPortRangeArgs].
*/
@PulumiTagMarker
public class SpectrumApplicationOriginPortRangeArgsBuilder internal constructor() {
private var end: Output? = null
private var start: Output? = null
/**
* @param value Upper bound of the origin port range.
*/
@JvmName("smkobqwtitnrhtws")
public suspend fun end(`value`: Output) {
this.end = value
}
/**
* @param value Lower bound of the origin port range.
*/
@JvmName("anlxxreudxfasuoy")
public suspend fun start(`value`: Output) {
this.start = value
}
/**
* @param value Upper bound of the origin port range.
*/
@JvmName("bqoancpvxsviplus")
public suspend fun end(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.end = mapped
}
/**
* @param value Lower bound of the origin port range.
*/
@JvmName("ndmjmnhohtsttgko")
public suspend fun start(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.start = mapped
}
internal fun build(): SpectrumApplicationOriginPortRangeArgs =
SpectrumApplicationOriginPortRangeArgs(
end = end ?: throw PulumiNullFieldException("end"),
start = start ?: throw PulumiNullFieldException("start"),
)
}