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

com.pulumi.azure.apimanagement.kotlin.outputs.ApiOperationResponseHeader.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property defaultValue The default value for this Header.
 * @property description A description of this Header.
 * @property examples One or more `example` blocks as defined above.
 * @property name The Name of this Header.
 * @property required Is this Header Required?
 * @property schemaId The name of the Schema.
 * @property type The Type of this Header, such as a `string`.
 * @property typeName The type name defined by the Schema.
 * @property values One or more acceptable values for this Header.
 */
public data class ApiOperationResponseHeader(
    public val defaultValue: String? = null,
    public val description: String? = null,
    public val examples: List? = null,
    public val name: String,
    public val required: Boolean,
    public val schemaId: String? = null,
    public val type: String,
    public val typeName: String? = null,
    public val values: List? = null,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.apimanagement.outputs.ApiOperationResponseHeader):
            ApiOperationResponseHeader = ApiOperationResponseHeader(
            defaultValue = javaType.defaultValue().map({ args0 -> args0 }).orElse(null),
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            examples = javaType.examples().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.apimanagement.kotlin.outputs.ApiOperationResponseHeaderExample.Companion.toKotlin(args0)
                })
            }),
            name = javaType.name(),
            required = javaType.required(),
            schemaId = javaType.schemaId().map({ args0 -> args0 }).orElse(null),
            type = javaType.type(),
            typeName = javaType.typeName().map({ args0 -> args0 }).orElse(null),
            values = javaType.values().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy