
commonMain.aws.sdk.kotlin.services.xray.model.GetEncryptionConfigResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.xray.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetEncryptionConfigResponse private constructor(builder: Builder) {
/**
* The encryption configuration document.
*/
public val encryptionConfig: aws.sdk.kotlin.services.xray.model.EncryptionConfig? = builder.encryptionConfig
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.xray.model.GetEncryptionConfigResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetEncryptionConfigResponse(")
append("encryptionConfig=$encryptionConfig")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = encryptionConfig?.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 GetEncryptionConfigResponse
if (encryptionConfig != other.encryptionConfig) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.xray.model.GetEncryptionConfigResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The encryption configuration document.
*/
public var encryptionConfig: aws.sdk.kotlin.services.xray.model.EncryptionConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.xray.model.GetEncryptionConfigResponse) : this() {
this.encryptionConfig = x.encryptionConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.xray.model.GetEncryptionConfigResponse = GetEncryptionConfigResponse(this)
/**
* construct an [aws.sdk.kotlin.services.xray.model.EncryptionConfig] inside the given [block]
*/
public fun encryptionConfig(block: aws.sdk.kotlin.services.xray.model.EncryptionConfig.Builder.() -> kotlin.Unit) {
this.encryptionConfig = aws.sdk.kotlin.services.xray.model.EncryptionConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy