com.pulumi.digitalocean.kotlin.inputs.AppSpecIngressArgs.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.AppSpecIngressArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property rules Rules for configuring HTTP ingress for component routes, CORS, rewrites, and redirects.
*/
public data class AppSpecIngressArgs(
public val rules: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.digitalocean.inputs.AppSpecIngressArgs =
com.pulumi.digitalocean.inputs.AppSpecIngressArgs.builder()
.rules(
rules?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [AppSpecIngressArgs].
*/
@PulumiTagMarker
public class AppSpecIngressArgsBuilder internal constructor() {
private var rules: Output>? = null
/**
* @param value Rules for configuring HTTP ingress for component routes, CORS, rewrites, and redirects.
*/
@JvmName("lrqfbpgfyheegbmx")
public suspend fun rules(`value`: Output>) {
this.rules = value
}
@JvmName("sqbmdojowgyuxtlu")
public suspend fun rules(vararg values: Output) {
this.rules = Output.all(values.asList())
}
/**
* @param values Rules for configuring HTTP ingress for component routes, CORS, rewrites, and redirects.
*/
@JvmName("oyjbytdivqyatdhq")
public suspend fun rules(values: List