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

com.pulumi.cloudflare.kotlin.outputs.RateLimitMatch.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 5.47.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.outputs

import kotlin.Suppress

/**
 *
 * @property request Matches HTTP requests (from the client to Cloudflare).
 * @property response Matches HTTP responses before they are returned to the client from Cloudflare. If this is defined, then the entire counting of traffic occurs at this stage.
 */
public data class RateLimitMatch(
    public val request: RateLimitMatchRequest? = null,
    public val response: RateLimitMatchResponse? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.RateLimitMatch): RateLimitMatch =
            RateLimitMatch(
                request = javaType.request().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.cloudflare.kotlin.outputs.RateLimitMatchRequest.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                response = javaType.response().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.cloudflare.kotlin.outputs.RateLimitMatchResponse.Companion.toKotlin(args0)
                    })
                }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy