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

com.pulumi.gcp.pubsub.kotlin.inputs.TopicSchemaSettingsArgs.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.pubsub.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.pubsub.inputs.TopicSchemaSettingsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property encoding The encoding of messages validated against schema.
 * Default value is `ENCODING_UNSPECIFIED`.
 * Possible values are: `ENCODING_UNSPECIFIED`, `JSON`, `BINARY`.
 * @property schema The name of the schema that messages published should be
 * validated against. Format is projects/{project}/schemas/{schema}.
 * The value of this field will be _deleted-schema_
 * if the schema has been deleted.
 */
public data class TopicSchemaSettingsArgs(
    public val encoding: Output? = null,
    public val schema: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.pubsub.inputs.TopicSchemaSettingsArgs =
        com.pulumi.gcp.pubsub.inputs.TopicSchemaSettingsArgs.builder()
            .encoding(encoding?.applyValue({ args0 -> args0 }))
            .schema(schema.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TopicSchemaSettingsArgs].
 */
@PulumiTagMarker
public class TopicSchemaSettingsArgsBuilder internal constructor() {
    private var encoding: Output? = null

    private var schema: Output? = null

    /**
     * @param value The encoding of messages validated against schema.
     * Default value is `ENCODING_UNSPECIFIED`.
     * Possible values are: `ENCODING_UNSPECIFIED`, `JSON`, `BINARY`.
     */
    @JvmName("gcarosuvfypxyaba")
    public suspend fun encoding(`value`: Output) {
        this.encoding = value
    }

    /**
     * @param value The name of the schema that messages published should be
     * validated against. Format is projects/{project}/schemas/{schema}.
     * The value of this field will be _deleted-schema_
     * if the schema has been deleted.
     */
    @JvmName("kmifeclvjkmjjvro")
    public suspend fun schema(`value`: Output) {
        this.schema = value
    }

    /**
     * @param value The encoding of messages validated against schema.
     * Default value is `ENCODING_UNSPECIFIED`.
     * Possible values are: `ENCODING_UNSPECIFIED`, `JSON`, `BINARY`.
     */
    @JvmName("egxyxkqjnsxpemiq")
    public suspend fun encoding(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.encoding = mapped
    }

    /**
     * @param value The name of the schema that messages published should be
     * validated against. Format is projects/{project}/schemas/{schema}.
     * The value of this field will be _deleted-schema_
     * if the schema has been deleted.
     */
    @JvmName("wwsvcvuqnhmfvupp")
    public suspend fun schema(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.schema = mapped
    }

    internal fun build(): TopicSchemaSettingsArgs = TopicSchemaSettingsArgs(
        encoding = encoding,
        schema = schema ?: throw PulumiNullFieldException("schema"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy