com.pulumi.gcp.networkservices.kotlin.inputs.HttpRouteRuleMatchHeaderRangeMatchArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.networkservices.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkservices.inputs.HttpRouteRuleMatchHeaderRangeMatchArgs.builder
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 End of the range (exclusive).
* @property start Start of the range (inclusive).
*/
public data class HttpRouteRuleMatchHeaderRangeMatchArgs(
public val end: Output,
public val start: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.networkservices.inputs.HttpRouteRuleMatchHeaderRangeMatchArgs =
com.pulumi.gcp.networkservices.inputs.HttpRouteRuleMatchHeaderRangeMatchArgs.builder()
.end(end.applyValue({ args0 -> args0 }))
.start(start.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [HttpRouteRuleMatchHeaderRangeMatchArgs].
*/
@PulumiTagMarker
public class HttpRouteRuleMatchHeaderRangeMatchArgsBuilder internal constructor() {
private var end: Output? = null
private var start: Output? = null
/**
* @param value End of the range (exclusive).
*/
@JvmName("yqbhludmtouiikbn")
public suspend fun end(`value`: Output) {
this.end = value
}
/**
* @param value Start of the range (inclusive).
*/
@JvmName("bhlrdowrxevptdpd")
public suspend fun start(`value`: Output) {
this.start = value
}
/**
* @param value End of the range (exclusive).
*/
@JvmName("ucqgqsppatsqwhfp")
public suspend fun end(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.end = mapped
}
/**
* @param value Start of the range (inclusive).
*/
@JvmName("hqenxlaxrnjwgfgy")
public suspend fun start(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.start = mapped
}
internal fun build(): HttpRouteRuleMatchHeaderRangeMatchArgs =
HttpRouteRuleMatchHeaderRangeMatchArgs(
end = end ?: throw PulumiNullFieldException("end"),
start = start ?: throw PulumiNullFieldException("start"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy