
com.pulumi.azurenative.servicefabricmesh.kotlin.inputs.HttpRouteMatchPathArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.servicefabricmesh.kotlin.inputs
import com.pulumi.azurenative.servicefabricmesh.inputs.HttpRouteMatchPathArgs.builder
import com.pulumi.azurenative.servicefabricmesh.kotlin.enums.PathMatchType
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
/**
* Path to match for routing.
* @property rewrite replacement string for matched part of the Uri.
* @property type how to match value in the Uri
* @property value Uri path to match for request.
*/
public data class HttpRouteMatchPathArgs(
public val rewrite: Output? = null,
public val type: Output>,
public val `value`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.servicefabricmesh.inputs.HttpRouteMatchPathArgs =
com.pulumi.azurenative.servicefabricmesh.inputs.HttpRouteMatchPathArgs.builder()
.rewrite(rewrite?.applyValue({ args0 -> args0 }))
.type(
type.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [HttpRouteMatchPathArgs].
*/
@PulumiTagMarker
public class HttpRouteMatchPathArgsBuilder internal constructor() {
private var rewrite: Output? = null
private var type: Output>? = null
private var `value`: Output? = null
/**
* @param value replacement string for matched part of the Uri.
*/
@JvmName("psbbntexfdfpurtq")
public suspend fun rewrite(`value`: Output) {
this.rewrite = value
}
/**
* @param value how to match value in the Uri
*/
@JvmName("ltqgyfxyjiuhxwcy")
public suspend fun type(`value`: Output>) {
this.type = value
}
/**
* @param value Uri path to match for request.
*/
@JvmName("mecxxdpichrxfojc")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value replacement string for matched part of the Uri.
*/
@JvmName("iluaytxauqhvhnjy")
public suspend fun rewrite(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.rewrite = mapped
}
/**
* @param value how to match value in the Uri
*/
@JvmName("qvudmjvmgmwpqrfb")
public suspend fun type(`value`: Either) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value how to match value in the Uri
*/
@JvmName("geikhnvdsrxnuqjx")
public fun type(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value how to match value in the Uri
*/
@JvmName("ckjqmmgjlxgkhqbf")
public fun type(`value`: PathMatchType) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value Uri path to match for request.
*/
@JvmName("govswipxsqxtdjvn")
public suspend fun `value`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): HttpRouteMatchPathArgs = HttpRouteMatchPathArgs(
rewrite = rewrite,
type = type ?: throw PulumiNullFieldException("type"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy