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

com.pulumi.digitalocean.kotlin.outputs.AppSpecIngressRuleComponent.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.digitalocean.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 AppSpecIngressRuleComponent(
    public val name: String? = null,
    public val preservePathPrefix: Boolean? = null,
    public val rewrite: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.AppSpecIngressRuleComponent): AppSpecIngressRuleComponent = AppSpecIngressRuleComponent(
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            preservePathPrefix = javaType.preservePathPrefix().map({ args0 -> args0 }).orElse(null),
            rewrite = javaType.rewrite().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy