
commonMain.aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chimesdkmediapipelines.model
/**
* The configuration of an Kinesis video stream.
*/
public class KinesisVideoStreamConfiguration private constructor(builder: Builder) {
/**
* The amount of time that data is retained.
*/
public val dataRetentionInHours: kotlin.Int? = builder.dataRetentionInHours
/**
* The Amazon Web Services Region of the video stream.
*/
public val region: kotlin.String = requireNotNull(builder.region) { "A non-null value must be provided for region" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("KinesisVideoStreamConfiguration(")
append("dataRetentionInHours=$dataRetentionInHours,")
append("region=$region")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dataRetentionInHours ?: 0
result = 31 * result + (region.hashCode())
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 KinesisVideoStreamConfiguration
if (dataRetentionInHours != other.dataRetentionInHours) return false
if (region != other.region) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* The amount of time that data is retained.
*/
public var dataRetentionInHours: kotlin.Int? = null
/**
* The Amazon Web Services Region of the video stream.
*/
public var region: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamConfiguration) : this() {
this.dataRetentionInHours = x.dataRetentionInHours
this.region = x.region
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chimesdkmediapipelines.model.KinesisVideoStreamConfiguration = KinesisVideoStreamConfiguration(this)
internal fun correctErrors(): Builder {
if (region == null) region = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy