All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.digitalocean.kotlin.inputs.AppSpecIngressRuleComponentArgs.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.AppSpecIngressRuleComponentArgs.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 name The name of the component to route to.
 * @property preservePathPrefix An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component.
 * @property rewrite An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preserve_path_prefix`.
 */
public data class AppSpecIngressRuleComponentArgs(
    public val name: Output? = null,
    public val preservePathPrefix: Output? = null,
    public val rewrite: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecIngressRuleComponentArgs =
        com.pulumi.digitalocean.inputs.AppSpecIngressRuleComponentArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .preservePathPrefix(preservePathPrefix?.applyValue({ args0 -> args0 }))
            .rewrite(rewrite?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AppSpecIngressRuleComponentArgs].
 */
@PulumiTagMarker
public class AppSpecIngressRuleComponentArgsBuilder internal constructor() {
    private var name: Output? = null

    private var preservePathPrefix: Output? = null

    private var rewrite: Output? = null

    /**
     * @param value The name of the component to route to.
     */
    @JvmName("dmhsrxjxgjoqduaw")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component.
     */
    @JvmName("brvtpinbodmkcoif")
    public suspend fun preservePathPrefix(`value`: Output) {
        this.preservePathPrefix = value
    }

    /**
     * @param value An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preserve_path_prefix`.
     */
    @JvmName("fmyeqddnumyuqvmy")
    public suspend fun rewrite(`value`: Output) {
        this.rewrite = value
    }

    /**
     * @param value The name of the component to route to.
     */
    @JvmName("bomgavqovrqpbidq")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value An optional boolean flag to preserve the path that is forwarded to the backend service. By default, the HTTP request path will be trimmed from the left when forwarded to the component.
     */
    @JvmName("axfmxfannneomgle")
    public suspend fun preservePathPrefix(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preservePathPrefix = mapped
    }

    /**
     * @param value An optional field that will rewrite the path of the component to be what is specified here. This is mutually exclusive with `preserve_path_prefix`.
     */
    @JvmName("dnjtbphgddtkslir")
    public suspend fun rewrite(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rewrite = mapped
    }

    internal fun build(): AppSpecIngressRuleComponentArgs = AppSpecIngressRuleComponentArgs(
        name = name,
        preservePathPrefix = preservePathPrefix,
        rewrite = rewrite,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy