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

com.pulumi.awsnative.connect.kotlin.inputs.InstanceStorageConfigKinesisVideoStreamConfigArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.connect.kotlin.inputs

import com.pulumi.awsnative.connect.inputs.InstanceStorageConfigKinesisVideoStreamConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property encryptionConfig The encryption configuration.
 * @property prefix The prefix of the video stream.
 * @property retentionPeriodHours The number of hours data is retained in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream.
 * The default value is 0, indicating that the stream does not persist data.
 */
public data class InstanceStorageConfigKinesisVideoStreamConfigArgs(
    public val encryptionConfig: Output,
    public val prefix: Output,
    public val retentionPeriodHours: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.connect.inputs.InstanceStorageConfigKinesisVideoStreamConfigArgs =
        com.pulumi.awsnative.connect.inputs.InstanceStorageConfigKinesisVideoStreamConfigArgs.builder()
            .encryptionConfig(encryptionConfig.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .prefix(prefix.applyValue({ args0 -> args0 }))
            .retentionPeriodHours(retentionPeriodHours.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceStorageConfigKinesisVideoStreamConfigArgs].
 */
@PulumiTagMarker
public class InstanceStorageConfigKinesisVideoStreamConfigArgsBuilder internal constructor() {
    private var encryptionConfig: Output? = null

    private var prefix: Output? = null

    private var retentionPeriodHours: Output? = null

    /**
     * @param value The encryption configuration.
     */
    @JvmName("qvgtarydltefjlge")
    public suspend fun encryptionConfig(`value`: Output) {
        this.encryptionConfig = value
    }

    /**
     * @param value The prefix of the video stream.
     */
    @JvmName("osykwmxefilssrfp")
    public suspend fun prefix(`value`: Output) {
        this.prefix = value
    }

    /**
     * @param value The number of hours data is retained in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream.
     * The default value is 0, indicating that the stream does not persist data.
     */
    @JvmName("ysrxrglwxcuwrqkt")
    public suspend fun retentionPeriodHours(`value`: Output) {
        this.retentionPeriodHours = value
    }

    /**
     * @param value The encryption configuration.
     */
    @JvmName("gdptqflwgtdkiejw")
    public suspend fun encryptionConfig(`value`: InstanceStorageConfigEncryptionConfigArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.encryptionConfig = mapped
    }

    /**
     * @param argument The encryption configuration.
     */
    @JvmName("xxetnanknerusqrv")
    public suspend fun encryptionConfig(argument: suspend InstanceStorageConfigEncryptionConfigArgsBuilder.() -> Unit) {
        val toBeMapped = InstanceStorageConfigEncryptionConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.encryptionConfig = mapped
    }

    /**
     * @param value The prefix of the video stream.
     */
    @JvmName("kmebfnjjlicjknug")
    public suspend fun prefix(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.prefix = mapped
    }

    /**
     * @param value The number of hours data is retained in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream.
     * The default value is 0, indicating that the stream does not persist data.
     */
    @JvmName("vmkthskmgyvmokla")
    public suspend fun retentionPeriodHours(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.retentionPeriodHours = mapped
    }

    internal fun build(): InstanceStorageConfigKinesisVideoStreamConfigArgs =
        InstanceStorageConfigKinesisVideoStreamConfigArgs(
            encryptionConfig = encryptionConfig ?: throw PulumiNullFieldException("encryptionConfig"),
            prefix = prefix ?: throw PulumiNullFieldException("prefix"),
            retentionPeriodHours = retentionPeriodHours ?: throw
                PulumiNullFieldException("retentionPeriodHours"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy