com.pulumi.digitalocean.kotlin.inputs.AppSpecFunctionRouteArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.digitalocean.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.digitalocean.inputs.AppSpecFunctionRouteArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property path Paths must start with `/` and must be unique within the app.
* @property preservePathPrefix An optional flag to preserve the path that is forwarded to the backend service.
*/
public data class AppSpecFunctionRouteArgs(
public val path: Output? = null,
public val preservePathPrefix: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecFunctionRouteArgs =
com.pulumi.digitalocean.inputs.AppSpecFunctionRouteArgs.builder()
.path(path?.applyValue({ args0 -> args0 }))
.preservePathPrefix(preservePathPrefix?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppSpecFunctionRouteArgs].
*/
@PulumiTagMarker
public class AppSpecFunctionRouteArgsBuilder internal constructor() {
private var path: Output? = null
private var preservePathPrefix: Output? = null
/**
* @param value Paths must start with `/` and must be unique within the app.
*/
@JvmName("xoyaeffoktopudnl")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value An optional flag to preserve the path that is forwarded to the backend service.
*/
@JvmName("duyefixvvwvriuhf")
public suspend fun preservePathPrefix(`value`: Output) {
this.preservePathPrefix = value
}
/**
* @param value Paths must start with `/` and must be unique within the app.
*/
@JvmName("smuihmwyaxdrxhmr")
public suspend fun path(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.path = mapped
}
/**
* @param value An optional flag to preserve the path that is forwarded to the backend service.
*/
@JvmName("rjgkigeaaqblknvv")
public suspend fun preservePathPrefix(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.preservePathPrefix = mapped
}
internal fun build(): AppSpecFunctionRouteArgs = AppSpecFunctionRouteArgs(
path = path,
preservePathPrefix = preservePathPrefix,
)
}