com.pulumi.awsnative.nimblestudio.kotlin.inputs.LaunchProfileStreamConfigurationSessionBackupArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.nimblestudio.kotlin.inputs
import com.pulumi.awsnative.nimblestudio.inputs.LaunchProfileStreamConfigurationSessionBackupArgs.builder
import com.pulumi.awsnative.nimblestudio.kotlin.enums.LaunchProfileSessionBackupMode
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Configures how streaming sessions are backed up when launched from this launch
* profile.
* @property maxBackupsToRetain The maximum number of backups that each streaming session created from this launch
* profile can have.
* @property mode Specifies how artists sessions are backed up.
* Configures backups for streaming sessions launched with this launch profile. The default value is `DEACTIVATED` , which means that backups are deactivated. To allow backups, set this value to `AUTOMATIC` .
*/
public data class LaunchProfileStreamConfigurationSessionBackupArgs(
public val maxBackupsToRetain: Output? = null,
public val mode: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.nimblestudio.inputs.LaunchProfileStreamConfigurationSessionBackupArgs =
com.pulumi.awsnative.nimblestudio.inputs.LaunchProfileStreamConfigurationSessionBackupArgs.builder()
.maxBackupsToRetain(maxBackupsToRetain?.applyValue({ args0 -> args0 }))
.mode(mode?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [LaunchProfileStreamConfigurationSessionBackupArgs].
*/
@PulumiTagMarker
public class LaunchProfileStreamConfigurationSessionBackupArgsBuilder internal constructor() {
private var maxBackupsToRetain: Output? = null
private var mode: Output? = null
/**
* @param value The maximum number of backups that each streaming session created from this launch
* profile can have.
*/
@JvmName("uwvwknqmwbbnmsly")
public suspend fun maxBackupsToRetain(`value`: Output) {
this.maxBackupsToRetain = value
}
/**
* @param value Specifies how artists sessions are backed up.
* Configures backups for streaming sessions launched with this launch profile. The default value is `DEACTIVATED` , which means that backups are deactivated. To allow backups, set this value to `AUTOMATIC` .
*/
@JvmName("frxrdagqyheexwxb")
public suspend fun mode(`value`: Output) {
this.mode = value
}
/**
* @param value The maximum number of backups that each streaming session created from this launch
* profile can have.
*/
@JvmName("vjbvuksmwcgrygxx")
public suspend fun maxBackupsToRetain(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxBackupsToRetain = mapped
}
/**
* @param value Specifies how artists sessions are backed up.
* Configures backups for streaming sessions launched with this launch profile. The default value is `DEACTIVATED` , which means that backups are deactivated. To allow backups, set this value to `AUTOMATIC` .
*/
@JvmName("gxfieydtnilahdji")
public suspend fun mode(`value`: LaunchProfileSessionBackupMode?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.mode = mapped
}
internal fun build(): LaunchProfileStreamConfigurationSessionBackupArgs =
LaunchProfileStreamConfigurationSessionBackupArgs(
maxBackupsToRetain = maxBackupsToRetain,
mode = mode,
)
}