com.pulumi.digitalocean.kotlin.inputs.AppSpecServiceRouteArgs.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.AppSpecServiceRouteArgs.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 AppSpecServiceRouteArgs(
public val path: Output? = null,
public val preservePathPrefix: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecServiceRouteArgs =
com.pulumi.digitalocean.inputs.AppSpecServiceRouteArgs.builder()
.path(path?.applyValue({ args0 -> args0 }))
.preservePathPrefix(preservePathPrefix?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AppSpecServiceRouteArgs].
*/
@PulumiTagMarker
public class AppSpecServiceRouteArgsBuilder 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("utcsbgfaicvkioak")
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("baaiehjeygniiawa")
public suspend fun preservePathPrefix(`value`: Output) {
this.preservePathPrefix = value
}
/**
* @param value Paths must start with `/` and must be unique within the app.
*/
@JvmName("doupfqyiqrtrerhx")
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("jqwngihyralrasxr")
public suspend fun preservePathPrefix(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.preservePathPrefix = mapped
}
internal fun build(): AppSpecServiceRouteArgs = AppSpecServiceRouteArgs(
path = path,
preservePathPrefix = preservePathPrefix,
)
}