com.pulumi.azure.network.kotlin.outputs.ApplicationGatewayUrlPathMap.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.network.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property defaultBackendAddressPoolId The ID of the Default Backend Address Pool.
* @property defaultBackendAddressPoolName The Name of the Default Backend Address Pool which should be used for this URL Path Map. Cannot be set if `default_redirect_configuration_name` is set.
* @property defaultBackendHttpSettingsId The ID of the Default Backend HTTP Settings Collection.
* @property defaultBackendHttpSettingsName The Name of the Default Backend HTTP Settings Collection which should be used for this URL Path Map. Cannot be set if `default_redirect_configuration_name` is set.
* @property defaultRedirectConfigurationId The ID of the Default Redirect Configuration.
* @property defaultRedirectConfigurationName The Name of the Default Redirect Configuration which should be used for this URL Path Map. Cannot be set if either `default_backend_address_pool_name` or `default_backend_http_settings_name` is set.
* > **NOTE:** Both `default_backend_address_pool_name` and `default_backend_http_settings_name` or `default_redirect_configuration_name` should be specified.
* @property defaultRewriteRuleSetId
* @property defaultRewriteRuleSetName The Name of the Default Rewrite Rule Set which should be used for this URL Path Map. Only valid for v2 SKUs.
* @property id The ID of the Rewrite Rule Set
* @property name The Name of the URL Path Map.
* @property pathRules One or more `path_rule` blocks as defined above.
*/
public data class ApplicationGatewayUrlPathMap(
public val defaultBackendAddressPoolId: String? = null,
public val defaultBackendAddressPoolName: String? = null,
public val defaultBackendHttpSettingsId: String? = null,
public val defaultBackendHttpSettingsName: String? = null,
public val defaultRedirectConfigurationId: String? = null,
public val defaultRedirectConfigurationName: String? = null,
public val defaultRewriteRuleSetId: String? = null,
public val defaultRewriteRuleSetName: String? = null,
public val id: String? = null,
public val name: String,
public val pathRules: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.network.outputs.ApplicationGatewayUrlPathMap): ApplicationGatewayUrlPathMap = ApplicationGatewayUrlPathMap(
defaultBackendAddressPoolId = javaType.defaultBackendAddressPoolId().map({ args0 ->
args0
}).orElse(null),
defaultBackendAddressPoolName = javaType.defaultBackendAddressPoolName().map({ args0 ->
args0
}).orElse(null),
defaultBackendHttpSettingsId = javaType.defaultBackendHttpSettingsId().map({ args0 ->
args0
}).orElse(null),
defaultBackendHttpSettingsName = javaType.defaultBackendHttpSettingsName().map({ args0 ->
args0
}).orElse(null),
defaultRedirectConfigurationId = javaType.defaultRedirectConfigurationId().map({ args0 ->
args0
}).orElse(null),
defaultRedirectConfigurationName = javaType.defaultRedirectConfigurationName().map({ args0 ->
args0
}).orElse(null),
defaultRewriteRuleSetId = javaType.defaultRewriteRuleSetId().map({ args0 -> args0 }).orElse(null),
defaultRewriteRuleSetName = javaType.defaultRewriteRuleSetName().map({ args0 ->
args0
}).orElse(null),
id = javaType.id().map({ args0 -> args0 }).orElse(null),
name = javaType.name(),
pathRules = javaType.pathRules().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.network.kotlin.outputs.ApplicationGatewayUrlPathMapPathRule.Companion.toKotlin(args0)
})
}),
)
}
}