com.pulumi.azure.cdn.kotlin.outputs.FrontdoorRuleActions.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.cdn.kotlin.outputs
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property requestHeaderActions A `request_header_action` block as defined below.
* @property responseHeaderActions A `response_header_action` block as defined below.
* @property routeConfigurationOverrideAction A `route_configuration_override_action` block as defined below.
* @property urlRedirectAction A `url_redirect_action` block as defined below. You may **not** have a `url_redirect_action` **and** a `url_rewrite_action` defined in the same `actions` block.
* @property urlRewriteAction A `url_rewrite_action` block as defined below. You may **not** have a `url_rewrite_action` **and** a `url_redirect_action` defined in the same `actions` block.
*/
public data class FrontdoorRuleActions(
public val requestHeaderActions: List? = null,
public val responseHeaderActions: List? = null,
public val routeConfigurationOverrideAction: FrontdoorRuleActionsRouteConfigurationOverrideAction? =
null,
public val urlRedirectAction: FrontdoorRuleActionsUrlRedirectAction? = null,
public val urlRewriteAction: FrontdoorRuleActionsUrlRewriteAction? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.cdn.outputs.FrontdoorRuleActions): FrontdoorRuleActions = FrontdoorRuleActions(
requestHeaderActions = javaType.requestHeaderActions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.cdn.kotlin.outputs.FrontdoorRuleActionsRequestHeaderAction.Companion.toKotlin(args0)
})
}),
responseHeaderActions = javaType.responseHeaderActions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.cdn.kotlin.outputs.FrontdoorRuleActionsResponseHeaderAction.Companion.toKotlin(args0)
})
}),
routeConfigurationOverrideAction = javaType.routeConfigurationOverrideAction().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.cdn.kotlin.outputs.FrontdoorRuleActionsRouteConfigurationOverrideAction.Companion.toKotlin(args0)
})
}).orElse(null),
urlRedirectAction = javaType.urlRedirectAction().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.cdn.kotlin.outputs.FrontdoorRuleActionsUrlRedirectAction.Companion.toKotlin(args0)
})
}).orElse(null),
urlRewriteAction = javaType.urlRewriteAction().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.cdn.kotlin.outputs.FrontdoorRuleActionsUrlRewriteAction.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}