com.pulumi.awsnative.apigateway.kotlin.enums.MethodIntegrationContentHandling.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.apigateway.kotlin.enums
import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress
/**
* Specifies how to handle request payload content type conversions. Supported values are ``CONVERT_TO_BINARY`` and ``CONVERT_TO_TEXT``, with the following behaviors:
* If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the ``passthroughBehavior`` is configured to support payload pass-through.
*/
public enum class MethodIntegrationContentHandling(
public val javaValue: com.pulumi.awsnative.apigateway.enums.MethodIntegrationContentHandling,
) : ConvertibleToJava {
ConvertToBinary(com.pulumi.awsnative.apigateway.enums.MethodIntegrationContentHandling.ConvertToBinary),
ConvertToText(com.pulumi.awsnative.apigateway.enums.MethodIntegrationContentHandling.ConvertToText),
;
override fun toJava(): com.pulumi.awsnative.apigateway.enums.MethodIntegrationContentHandling =
javaValue
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.apigateway.enums.MethodIntegrationContentHandling): MethodIntegrationContentHandling =
MethodIntegrationContentHandling.values().first { it.javaValue == javaType }
}
}