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

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

package com.pulumi.gcp.pubsub.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @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 TopicSchemaSettings(
    public val encoding: String? = null,
    public val schema: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.pubsub.outputs.TopicSchemaSettings): TopicSchemaSettings = TopicSchemaSettings(
            encoding = javaType.encoding().map({ args0 -> args0 }).orElse(null),
            schema = javaType.schema(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy