com.pulumi.azure.cdn.kotlin.inputs.EndpointDeliveryRuleUrlRewriteActionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.cdn.kotlin.inputs
import com.pulumi.azure.cdn.inputs.EndpointDeliveryRuleUrlRewriteActionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property destination This value must start with a `/` and can't be longer than 260 characters.
* @property preserveUnmatchedPath Whether preserve an unmatched path. Defaults to `true`.
* @property sourcePattern This value must start with a `/` and can't be longer than 260 characters.
*/
public data class EndpointDeliveryRuleUrlRewriteActionArgs(
public val destination: Output,
public val preserveUnmatchedPath: Output? = null,
public val sourcePattern: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.cdn.inputs.EndpointDeliveryRuleUrlRewriteActionArgs =
com.pulumi.azure.cdn.inputs.EndpointDeliveryRuleUrlRewriteActionArgs.builder()
.destination(destination.applyValue({ args0 -> args0 }))
.preserveUnmatchedPath(preserveUnmatchedPath?.applyValue({ args0 -> args0 }))
.sourcePattern(sourcePattern.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EndpointDeliveryRuleUrlRewriteActionArgs].
*/
@PulumiTagMarker
public class EndpointDeliveryRuleUrlRewriteActionArgsBuilder internal constructor() {
private var destination: Output? = null
private var preserveUnmatchedPath: Output? = null
private var sourcePattern: Output? = null
/**
* @param value This value must start with a `/` and can't be longer than 260 characters.
*/
@JvmName("pguqeqyoavhfdbul")
public suspend fun destination(`value`: Output) {
this.destination = value
}
/**
* @param value Whether preserve an unmatched path. Defaults to `true`.
*/
@JvmName("ivvptjlvlghlkevo")
public suspend fun preserveUnmatchedPath(`value`: Output) {
this.preserveUnmatchedPath = value
}
/**
* @param value This value must start with a `/` and can't be longer than 260 characters.
*/
@JvmName("feymfvxooriijeha")
public suspend fun sourcePattern(`value`: Output) {
this.sourcePattern = value
}
/**
* @param value This value must start with a `/` and can't be longer than 260 characters.
*/
@JvmName("iayqvxgjbphixbtj")
public suspend fun destination(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.destination = mapped
}
/**
* @param value Whether preserve an unmatched path. Defaults to `true`.
*/
@JvmName("cqufprpqwdnrfitd")
public suspend fun preserveUnmatchedPath(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.preserveUnmatchedPath = mapped
}
/**
* @param value This value must start with a `/` and can't be longer than 260 characters.
*/
@JvmName("oojccseymvuqjxoq")
public suspend fun sourcePattern(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.sourcePattern = mapped
}
internal fun build(): EndpointDeliveryRuleUrlRewriteActionArgs =
EndpointDeliveryRuleUrlRewriteActionArgs(
destination = destination ?: throw PulumiNullFieldException("destination"),
preserveUnmatchedPath = preserveUnmatchedPath,
sourcePattern = sourcePattern ?: throw PulumiNullFieldException("sourcePattern"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy