
commonMain.aws.sdk.kotlin.services.s3control.model.GeneratedManifestEncryption.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
/**
* The encryption configuration to use when storing the generated manifest.
*/
public class GeneratedManifestEncryption private constructor(builder: Builder) {
/**
* Configuration details on how SSE-KMS is used to encrypt generated manifest objects.
*/
public val ssekms: aws.sdk.kotlin.services.s3control.model.SsekmsEncryption? = builder.ssekms
/**
* Specifies the use of SSE-S3 to encrypt generated manifest objects.
*/
public val sses3: aws.sdk.kotlin.services.s3control.model.Sses3Encryption? = builder.sses3
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.GeneratedManifestEncryption = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GeneratedManifestEncryption(")
append("ssekms=$ssekms,")
append("sses3=$sses3")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = ssekms?.hashCode() ?: 0
result = 31 * result + (sses3?.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 GeneratedManifestEncryption
if (ssekms != other.ssekms) return false
if (sses3 != other.sses3) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.GeneratedManifestEncryption = Builder(this).apply(block).build()
public class Builder {
/**
* Configuration details on how SSE-KMS is used to encrypt generated manifest objects.
*/
public var ssekms: aws.sdk.kotlin.services.s3control.model.SsekmsEncryption? = null
/**
* Specifies the use of SSE-S3 to encrypt generated manifest objects.
*/
public var sses3: aws.sdk.kotlin.services.s3control.model.Sses3Encryption? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.GeneratedManifestEncryption) : this() {
this.ssekms = x.ssekms
this.sses3 = x.sses3
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.GeneratedManifestEncryption = GeneratedManifestEncryption(this)
/**
* construct an [aws.sdk.kotlin.services.s3control.model.SsekmsEncryption] inside the given [block]
*/
public fun ssekms(block: aws.sdk.kotlin.services.s3control.model.SsekmsEncryption.Builder.() -> kotlin.Unit) {
this.ssekms = aws.sdk.kotlin.services.s3control.model.SsekmsEncryption.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.s3control.model.Sses3Encryption] inside the given [block]
*/
public fun sses3(block: aws.sdk.kotlin.services.s3control.model.Sses3Encryption.Builder.() -> kotlin.Unit) {
this.sses3 = aws.sdk.kotlin.services.s3control.model.Sses3Encryption.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy