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

com.pulumi.gcp.datastream.kotlin.outputs.StreamDestinationConfigGcsDestinationConfig.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.datastream.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property avroFileFormat AVRO file format configuration.
 * @property fileRotationInterval The maximum duration for which new events are added before a file is closed and a new file is created.
 * A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Defaults to 900s.
 * @property fileRotationMb The maximum file size to be saved in the bucket.
 * @property jsonFileFormat JSON file format configuration.
 * Structure is documented below.
 * @property path Path inside the Cloud Storage bucket to write data to.
 */
public data class StreamDestinationConfigGcsDestinationConfig(
    public val avroFileFormat: StreamDestinationConfigGcsDestinationConfigAvroFileFormat? = null,
    public val fileRotationInterval: String? = null,
    public val fileRotationMb: Int? = null,
    public val jsonFileFormat: StreamDestinationConfigGcsDestinationConfigJsonFileFormat? = null,
    public val path: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.datastream.outputs.StreamDestinationConfigGcsDestinationConfig): StreamDestinationConfigGcsDestinationConfig = StreamDestinationConfigGcsDestinationConfig(
            avroFileFormat = javaType.avroFileFormat().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.datastream.kotlin.outputs.StreamDestinationConfigGcsDestinationConfigAvroFileFormat.Companion.toKotlin(args0)
                })
            }).orElse(null),
            fileRotationInterval = javaType.fileRotationInterval().map({ args0 -> args0 }).orElse(null),
            fileRotationMb = javaType.fileRotationMb().map({ args0 -> args0 }).orElse(null),
            jsonFileFormat = javaType.jsonFileFormat().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.datastream.kotlin.outputs.StreamDestinationConfigGcsDestinationConfigJsonFileFormat.Companion.toKotlin(args0)
                })
            }).orElse(null),
            path = javaType.path().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy