
commonMain.aws.sdk.kotlin.services.omics.model.SseConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.omics.model
/**
* Server-side encryption (SSE) settings for a store.
*/
public class SseConfig private constructor(builder: Builder) {
/**
* An encryption key ARN.
*/
public val keyArn: kotlin.String? = builder.keyArn
/**
* The encryption type.
*/
public val type: aws.sdk.kotlin.services.omics.model.EncryptionType = requireNotNull(builder.type) { "A non-null value must be provided for type" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.SseConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SseConfig(")
append("keyArn=$keyArn,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = keyArn?.hashCode() ?: 0
result = 31 * result + (type.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 SseConfig
if (keyArn != other.keyArn) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.SseConfig = Builder(this).apply(block).build()
public class Builder {
/**
* An encryption key ARN.
*/
public var keyArn: kotlin.String? = null
/**
* The encryption type.
*/
public var type: aws.sdk.kotlin.services.omics.model.EncryptionType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.SseConfig) : this() {
this.keyArn = x.keyArn
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.SseConfig = SseConfig(this)
internal fun correctErrors(): Builder {
if (type == null) type = EncryptionType.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy