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

com.pulumi.googlenative.compute.v1.kotlin.enums.BackendServiceCompressionMode.kt Maven / Gradle / Ivy

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

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

import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress

/**
 * Compress text responses using Brotli or gzip compression, based on the client's Accept-Encoding header.
 */
public enum class BackendServiceCompressionMode(
    public val javaValue: com.pulumi.googlenative.compute.v1.enums.BackendServiceCompressionMode,
) : ConvertibleToJava {
    /**
     * Automatically uses the best compression based on the Accept-Encoding header sent by the client.
     */
    Automatic(com.pulumi.googlenative.compute.v1.enums.BackendServiceCompressionMode.Automatic),

    /**
     * Disables compression. Existing compressed responses cached by Cloud CDN will not be served to clients.
     */
    Disabled(com.pulumi.googlenative.compute.v1.enums.BackendServiceCompressionMode.Disabled),
    ;

    override fun toJava(): com.pulumi.googlenative.compute.v1.enums.BackendServiceCompressionMode =
        javaValue

    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.compute.v1.enums.BackendServiceCompressionMode): BackendServiceCompressionMode =
            BackendServiceCompressionMode.values().first { it.javaValue == javaType }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy