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

com.pulumi.awsnative.eventschemas.kotlin.SchemaArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.eventschemas.kotlin

import com.pulumi.awsnative.eventschemas.SchemaArgs.builder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::EventSchemas::Schema
 * ## Example Usage
 * ### Example
 * No Java example available.
 * @property content The source of the schema definition.
 * @property description A description of the schema.
 * @property registryName The name of the schema registry.
 * @property schemaName The name of the schema.
 * @property tags Tags associated with the resource.
 * @property type The type of schema. Valid types include OpenApi3 and JSONSchemaDraft4.
 */
public data class SchemaArgs(
    public val content: Output? = null,
    public val description: Output? = null,
    public val registryName: Output? = null,
    public val schemaName: Output? = null,
    public val tags: Output>? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.eventschemas.SchemaArgs =
        com.pulumi.awsnative.eventschemas.SchemaArgs.builder()
            .content(content?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .registryName(registryName?.applyValue({ args0 -> args0 }))
            .schemaName(schemaName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SchemaArgs].
 */
@PulumiTagMarker
public class SchemaArgsBuilder internal constructor() {
    private var content: Output? = null

    private var description: Output? = null

    private var registryName: Output? = null

    private var schemaName: Output? = null

    private var tags: Output>? = null

    private var type: Output? = null

    /**
     * @param value The source of the schema definition.
     */
    @JvmName("rmpgjeliscqvrdes")
    public suspend fun content(`value`: Output) {
        this.content = value
    }

    /**
     * @param value A description of the schema.
     */
    @JvmName("rdrvwwplfqejugxm")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the schema registry.
     */
    @JvmName("pumksrifmtocxogy")
    public suspend fun registryName(`value`: Output) {
        this.registryName = value
    }

    /**
     * @param value The name of the schema.
     */
    @JvmName("drfuttadoupymwrh")
    public suspend fun schemaName(`value`: Output) {
        this.schemaName = value
    }

    /**
     * @param value Tags associated with the resource.
     */
    @JvmName("itnexnbpeyytrons")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("togqgvmwqbajwymb")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values Tags associated with the resource.
     */
    @JvmName("digvgcxgoqrehqqo")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The type of schema. Valid types include OpenApi3 and JSONSchemaDraft4.
     */
    @JvmName("gcctgsyakofxqgxv")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The source of the schema definition.
     */
    @JvmName("xeydcoucjtkxxvtq")
    public suspend fun content(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.content = mapped
    }

    /**
     * @param value A description of the schema.
     */
    @JvmName("petqeialmebhxoli")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The name of the schema registry.
     */
    @JvmName("vdecrltexthbxbfm")
    public suspend fun registryName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.registryName = mapped
    }

    /**
     * @param value The name of the schema.
     */
    @JvmName("mmpiuppptkejqunh")
    public suspend fun schemaName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schemaName = mapped
    }

    /**
     * @param value Tags associated with the resource.
     */
    @JvmName("gunnwbevwhfkojti")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Tags associated with the resource.
     */
    @JvmName("dcxoxcxetkspvnms")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Tags associated with the resource.
     */
    @JvmName("oqfkihihboiutmiu")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Tags associated with the resource.
     */
    @JvmName("vydjkctlhxnnatti")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Tags associated with the resource.
     */
    @JvmName("ricjfhskhoripjqh")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The type of schema. Valid types include OpenApi3 and JSONSchemaDraft4.
     */
    @JvmName("ryyvpucxqudhbryq")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): SchemaArgs = SchemaArgs(
        content = content,
        description = description,
        registryName = registryName,
        schemaName = schemaName,
        tags = tags,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy