commonMain.aws.sdk.kotlin.services.kinesisvideo.model.UpdateImageGenerationConfigurationRequest.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
public class UpdateImageGenerationConfigurationRequest private constructor(builder: Builder) {
/**
* The structure that contains the information required for the KVS images delivery. If the structure is null, the configuration will be deleted from the stream.
*/
public val imageGenerationConfiguration: aws.sdk.kotlin.services.kinesisvideo.model.ImageGenerationConfiguration? = builder.imageGenerationConfiguration
/**
* The Amazon Resource Name (ARN) of the Kinesis video stream from where you want to update the image generation configuration. You must specify either the `StreamName` or the `StreamARN`.
*/
public val streamArn: kotlin.String? = builder.streamArn
/**
* The name of the stream from which to update the image generation configuration. You must specify either the `StreamName` or the `StreamARN`.
*/
public val streamName: kotlin.String? = builder.streamName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesisvideo.model.UpdateImageGenerationConfigurationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateImageGenerationConfigurationRequest(")
append("imageGenerationConfiguration=$imageGenerationConfiguration,")
append("streamArn=$streamArn,")
append("streamName=$streamName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = imageGenerationConfiguration?.hashCode() ?: 0
result = 31 * result + (streamArn?.hashCode() ?: 0)
result = 31 * result + (streamName?.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 UpdateImageGenerationConfigurationRequest
if (imageGenerationConfiguration != other.imageGenerationConfiguration) return false
if (streamArn != other.streamArn) return false
if (streamName != other.streamName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesisvideo.model.UpdateImageGenerationConfigurationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The structure that contains the information required for the KVS images delivery. If the structure is null, the configuration will be deleted from the stream.
*/
public var imageGenerationConfiguration: aws.sdk.kotlin.services.kinesisvideo.model.ImageGenerationConfiguration? = null
/**
* The Amazon Resource Name (ARN) of the Kinesis video stream from where you want to update the image generation configuration. You must specify either the `StreamName` or the `StreamARN`.
*/
public var streamArn: kotlin.String? = null
/**
* The name of the stream from which to update the image generation configuration. You must specify either the `StreamName` or the `StreamARN`.
*/
public var streamName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesisvideo.model.UpdateImageGenerationConfigurationRequest) : this() {
this.imageGenerationConfiguration = x.imageGenerationConfiguration
this.streamArn = x.streamArn
this.streamName = x.streamName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesisvideo.model.UpdateImageGenerationConfigurationRequest = UpdateImageGenerationConfigurationRequest(this)
/**
* construct an [aws.sdk.kotlin.services.kinesisvideo.model.ImageGenerationConfiguration] inside the given [block]
*/
public fun imageGenerationConfiguration(block: aws.sdk.kotlin.services.kinesisvideo.model.ImageGenerationConfiguration.Builder.() -> kotlin.Unit) {
this.imageGenerationConfiguration = aws.sdk.kotlin.services.kinesisvideo.model.ImageGenerationConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}