
commonMain.aws.sdk.kotlin.services.ivsrealtime.model.StorageConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ivsrealtime.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A complex type that describes a location where recorded videos will be stored.
*/
public class StorageConfiguration private constructor(builder: Builder) {
/**
* ARN of the storage configuration.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* Name of the storage configuration.
*/
public val name: kotlin.String? = builder.name
/**
* An S3 destination configuration where recorded videos will be stored.
*/
public val s3: aws.sdk.kotlin.services.ivsrealtime.model.S3StorageConfiguration? = builder.s3
/**
* Tags attached to the resource. Array of maps, each of the form `string:string (key:value)`. See [Best practices and strategies](https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html) in *Tagging AWS Resources and Tag Editor* for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ivsrealtime.model.StorageConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StorageConfiguration(")
append("arn=$arn,")
append("name=$name,")
append("s3=$s3,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn.hashCode()
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (s3?.hashCode() ?: 0)
result = 31 * result + (tags?.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 StorageConfiguration
if (arn != other.arn) return false
if (name != other.name) return false
if (s3 != other.s3) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ivsrealtime.model.StorageConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* ARN of the storage configuration.
*/
public var arn: kotlin.String? = null
/**
* Name of the storage configuration.
*/
public var name: kotlin.String? = null
/**
* An S3 destination configuration where recorded videos will be stored.
*/
public var s3: aws.sdk.kotlin.services.ivsrealtime.model.S3StorageConfiguration? = null
/**
* Tags attached to the resource. Array of maps, each of the form `string:string (key:value)`. See [Best practices and strategies](https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html) in *Tagging AWS Resources and Tag Editor* for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ivsrealtime.model.StorageConfiguration) : this() {
this.arn = x.arn
this.name = x.name
this.s3 = x.s3
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ivsrealtime.model.StorageConfiguration = StorageConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.ivsrealtime.model.S3StorageConfiguration] inside the given [block]
*/
public fun s3(block: aws.sdk.kotlin.services.ivsrealtime.model.S3StorageConfiguration.Builder.() -> kotlin.Unit) {
this.s3 = aws.sdk.kotlin.services.ivsrealtime.model.S3StorageConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy