commonMain.aws.sdk.kotlin.services.kinesisvideo.model.DescribeMediaStorageConfigurationResponse.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 DescribeMediaStorageConfigurationResponse private constructor(builder: Builder) {
/**
* A structure that encapsulates, or contains, the media storage configuration properties.
*/
public val mediaStorageConfiguration: aws.sdk.kotlin.services.kinesisvideo.model.MediaStorageConfiguration? = builder.mediaStorageConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesisvideo.model.DescribeMediaStorageConfigurationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeMediaStorageConfigurationResponse(")
append("mediaStorageConfiguration=$mediaStorageConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = mediaStorageConfiguration?.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 DescribeMediaStorageConfigurationResponse
if (mediaStorageConfiguration != other.mediaStorageConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesisvideo.model.DescribeMediaStorageConfigurationResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A structure that encapsulates, or contains, the media storage configuration properties.
*/
public var mediaStorageConfiguration: aws.sdk.kotlin.services.kinesisvideo.model.MediaStorageConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesisvideo.model.DescribeMediaStorageConfigurationResponse) : this() {
this.mediaStorageConfiguration = x.mediaStorageConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesisvideo.model.DescribeMediaStorageConfigurationResponse = DescribeMediaStorageConfigurationResponse(this)
/**
* construct an [aws.sdk.kotlin.services.kinesisvideo.model.MediaStorageConfiguration] inside the given [block]
*/
public fun mediaStorageConfiguration(block: aws.sdk.kotlin.services.kinesisvideo.model.MediaStorageConfiguration.Builder.() -> kotlin.Unit) {
this.mediaStorageConfiguration = aws.sdk.kotlin.services.kinesisvideo.model.MediaStorageConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}