All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.googlenative.compute.v1.kotlin.outputs.HttpFaultDelayResponse.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.compute.v1.kotlin.outputs

import kotlin.Double
import kotlin.Suppress

/**
 * Specifies the delay introduced by the load balancer before forwarding the request to the backend service as part of fault injection.
 * @property fixedDelay Specifies the value of the fixed delay interval.
 * @property percentage The percentage of traffic for connections, operations, or requests for which a delay is introduced as part of fault injection. The value must be from 0.0 to 100.0 inclusive.
 */
public data class HttpFaultDelayResponse(
    public val fixedDelay: DurationResponse,
    public val percentage: Double,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.compute.v1.outputs.HttpFaultDelayResponse): HttpFaultDelayResponse = HttpFaultDelayResponse(
            fixedDelay = javaType.fixedDelay().let({ args0 ->
                com.pulumi.googlenative.compute.v1.kotlin.outputs.DurationResponse.Companion.toKotlin(args0)
            }),
            percentage = javaType.percentage(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy