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

com.pulumi.azure.apimanagement.kotlin.outputs.ApiOperationResponseRepresentation.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.apimanagement.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property contentType The Content Type of this representation, such as `application/json`.
 * @property examples One or more `example` blocks as defined above.
 * @property formParameters One or more `form_parameter` block as defined above.
 * > **NOTE:** This is Required when `content_type` is set to `application/x-www-form-urlencoded` or `multipart/form-data`.
 * @property schemaId The ID of an API Management Schema which represents this Response.
 * > **NOTE:** This can only be specified when `content_type` is not set to `application/x-www-form-urlencoded` or `multipart/form-data`.
 * @property typeName The Type Name defined by the Schema.
 * > **NOTE:** This can only be specified when `content_type` is not set to `application/x-www-form-urlencoded` or `multipart/form-data`.
 */
public data class ApiOperationResponseRepresentation(
    public val contentType: String,
    public val examples: List? = null,
    public val formParameters: List? = null,
    public val schemaId: String? = null,
    public val typeName: String? = null,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.apimanagement.outputs.ApiOperationResponseRepresentation):
            ApiOperationResponseRepresentation = ApiOperationResponseRepresentation(
            contentType = javaType.contentType(),
            examples = javaType.examples().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.apimanagement.kotlin.outputs.ApiOperationResponseRepresentationExample.Companion.toKotlin(args0)
                })
            }),
            formParameters = javaType.formParameters().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.apimanagement.kotlin.outputs.ApiOperationResponseRepresentationFormParameter.Companion.toKotlin(args0)
                })
            }),
            schemaId = javaType.schemaId().map({ args0 -> args0 }).orElse(null),
            typeName = javaType.typeName().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy