commonMain.aws.sdk.kotlin.services.kinesisvideo.model.ImageGenerationDestinationConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kinesisvideo-jvm Show documentation
Show all versions of kinesisvideo-jvm Show documentation
The AWS SDK for Kotlin client for Kinesis Video
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kinesisvideo.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The structure that contains the information required to deliver images to a customer.
*/
public class ImageGenerationDestinationConfig private constructor(builder: Builder) {
/**
* The Amazon Web Services Region of the S3 bucket where images will be delivered. This `DestinationRegion` must match the Region where the stream is located.
*/
public val destinationRegion: kotlin.String = requireNotNull(builder.destinationRegion) { "A non-null value must be provided for destinationRegion" }
/**
* The Uniform Resource Identifier (URI) that identifies where the images will be delivered.
*/
public val uri: kotlin.String = requireNotNull(builder.uri) { "A non-null value must be provided for uri" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesisvideo.model.ImageGenerationDestinationConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ImageGenerationDestinationConfig(")
append("destinationRegion=$destinationRegion,")
append("uri=$uri")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = destinationRegion.hashCode()
result = 31 * result + (uri.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 ImageGenerationDestinationConfig
if (destinationRegion != other.destinationRegion) return false
if (uri != other.uri) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesisvideo.model.ImageGenerationDestinationConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Web Services Region of the S3 bucket where images will be delivered. This `DestinationRegion` must match the Region where the stream is located.
*/
public var destinationRegion: kotlin.String? = null
/**
* The Uniform Resource Identifier (URI) that identifies where the images will be delivered.
*/
public var uri: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesisvideo.model.ImageGenerationDestinationConfig) : this() {
this.destinationRegion = x.destinationRegion
this.uri = x.uri
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesisvideo.model.ImageGenerationDestinationConfig = ImageGenerationDestinationConfig(this)
internal fun correctErrors(): Builder {
if (destinationRegion == null) destinationRegion = ""
if (uri == null) uri = ""
return this
}
}
}