
commonMain.aws.sdk.kotlin.services.ivs.model.DestinationConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ivs.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A complex type that describes a location where recorded videos will be stored. Each member represents a type of destination configuration. For recording, you define one and only one type of destination configuration.
*/
public class DestinationConfiguration private constructor(builder: Builder) {
/**
* An S3 destination configuration where recorded videos will be stored.
*/
public val s3: aws.sdk.kotlin.services.ivs.model.S3DestinationConfiguration? = builder.s3
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ivs.model.DestinationConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DestinationConfiguration(")
append("s3=$s3")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = s3?.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 DestinationConfiguration
if (s3 != other.s3) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ivs.model.DestinationConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An S3 destination configuration where recorded videos will be stored.
*/
public var s3: aws.sdk.kotlin.services.ivs.model.S3DestinationConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ivs.model.DestinationConfiguration) : this() {
this.s3 = x.s3
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ivs.model.DestinationConfiguration = DestinationConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.ivs.model.S3DestinationConfiguration] inside the given [block]
*/
public fun s3(block: aws.sdk.kotlin.services.ivs.model.S3DestinationConfiguration.Builder.() -> kotlin.Unit) {
this.s3 = aws.sdk.kotlin.services.ivs.model.S3DestinationConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy