commonMain.aws.sdk.kotlin.services.nimble.model.StreamConfigurationSessionBackup.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nimble-jvm Show documentation
Show all versions of nimble-jvm Show documentation
The AWS SDK for Kotlin client for nimble
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.nimble.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Configures how streaming sessions are backed up when launched from this launch profile.
*/
public class StreamConfigurationSessionBackup private constructor(builder: Builder) {
/**
* The maximum number of backups that each streaming session created from this launch profile can have.
*/
public val maxBackupsToRetain: kotlin.Int = builder.maxBackupsToRetain
/**
* 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 val mode: aws.sdk.kotlin.services.nimble.model.SessionBackupMode? = builder.mode
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.nimble.model.StreamConfigurationSessionBackup = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StreamConfigurationSessionBackup(")
append("maxBackupsToRetain=$maxBackupsToRetain,")
append("mode=$mode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maxBackupsToRetain
result = 31 * result + (mode?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as StreamConfigurationSessionBackup
if (maxBackupsToRetain != other.maxBackupsToRetain) return false
if (mode != other.mode) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.nimble.model.StreamConfigurationSessionBackup = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The maximum number of backups that each streaming session created from this launch profile can have.
*/
public var maxBackupsToRetain: kotlin.Int = 0
/**
* 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 var mode: aws.sdk.kotlin.services.nimble.model.SessionBackupMode? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.nimble.model.StreamConfigurationSessionBackup) : this() {
this.maxBackupsToRetain = x.maxBackupsToRetain
this.mode = x.mode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.nimble.model.StreamConfigurationSessionBackup = StreamConfigurationSessionBackup(this)
internal fun correctErrors(): Builder {
return this
}
}
}