com.svix.kotlin.models.SinkInOneOf2.kt Maven / Gradle / Ivy
/**
* Svix API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.svix.kotlin.models
import com.svix.kotlin.models.KafkaSecurityProtocolType
import com.squareup.moshi.Json
/**
*
* @param brokers
* @param securityProtocol
* @param topic
* @param type
* @param saslPassword Password for SASL, if `security_protocol` is `sasl-ssl`.
* @param saslUsername Username for SASL, if `security_protocol` is `sasl-ssl`.
*/
data class SinkInOneOf2 (
@Json(name = "brokers")
val brokers: kotlin.String,
@Json(name = "securityProtocol")
val securityProtocol: KafkaSecurityProtocolType,
@Json(name = "topic")
val topic: kotlin.String,
@Json(name = "type")
val type: SinkInOneOf2.Type,
/* Password for SASL, if `security_protocol` is `sasl-ssl`. */
@Json(name = "saslPassword")
val saslPassword: kotlin.String? = null,
/* Username for SASL, if `security_protocol` is `sasl-ssl`. */
@Json(name = "saslUsername")
val saslUsername: kotlin.String? = null
) {
/**
*
* Values: kafka
*/
enum class Type(val value: kotlin.String) {
@Json(name = "kafka") kafka("kafka");
}
}