com.pulumi.gcp.networkservices.kotlin.outputs.TcpRouteRuleAction.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.networkservices.kotlin.outputs
import kotlin.Boolean
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property destinations The destination services to which traffic should be forwarded. At least one destination service is required.
* Structure is documented below.
* @property originalDestination If true, Router will use the destination IP and port of the original connection as the destination of the request.
*/
public data class TcpRouteRuleAction(
public val destinations: List? = null,
public val originalDestination: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.networkservices.outputs.TcpRouteRuleAction): TcpRouteRuleAction = TcpRouteRuleAction(
destinations = javaType.destinations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.networkservices.kotlin.outputs.TcpRouteRuleActionDestination.Companion.toKotlin(args0)
})
}),
originalDestination = javaType.originalDestination().map({ args0 -> args0 }).orElse(null),
)
}
}