
commonMain.aws.sdk.kotlin.services.cloudfront.model.GetFieldLevelEncryptionProfileConfigResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudfront.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetFieldLevelEncryptionProfileConfigResponse private constructor(builder: Builder) {
/**
* The current version of the field-level encryption profile configuration result. For example: `E2QWRUHAPOMQZL`.
*/
public val eTag: kotlin.String? = builder.eTag
/**
* Return the field-level encryption profile configuration information.
*/
public val fieldLevelEncryptionProfileConfig: aws.sdk.kotlin.services.cloudfront.model.FieldLevelEncryptionProfileConfig? = builder.fieldLevelEncryptionProfileConfig
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudfront.model.GetFieldLevelEncryptionProfileConfigResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetFieldLevelEncryptionProfileConfigResponse(")
append("eTag=$eTag,")
append("fieldLevelEncryptionProfileConfig=$fieldLevelEncryptionProfileConfig")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = eTag?.hashCode() ?: 0
result = 31 * result + (fieldLevelEncryptionProfileConfig?.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 GetFieldLevelEncryptionProfileConfigResponse
if (eTag != other.eTag) return false
if (fieldLevelEncryptionProfileConfig != other.fieldLevelEncryptionProfileConfig) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudfront.model.GetFieldLevelEncryptionProfileConfigResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The current version of the field-level encryption profile configuration result. For example: `E2QWRUHAPOMQZL`.
*/
public var eTag: kotlin.String? = null
/**
* Return the field-level encryption profile configuration information.
*/
public var fieldLevelEncryptionProfileConfig: aws.sdk.kotlin.services.cloudfront.model.FieldLevelEncryptionProfileConfig? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudfront.model.GetFieldLevelEncryptionProfileConfigResponse) : this() {
this.eTag = x.eTag
this.fieldLevelEncryptionProfileConfig = x.fieldLevelEncryptionProfileConfig
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudfront.model.GetFieldLevelEncryptionProfileConfigResponse = GetFieldLevelEncryptionProfileConfigResponse(this)
/**
* construct an [aws.sdk.kotlin.services.cloudfront.model.FieldLevelEncryptionProfileConfig] inside the given [block]
*/
public fun fieldLevelEncryptionProfileConfig(block: aws.sdk.kotlin.services.cloudfront.model.FieldLevelEncryptionProfileConfig.Builder.() -> kotlin.Unit) {
this.fieldLevelEncryptionProfileConfig = aws.sdk.kotlin.services.cloudfront.model.FieldLevelEncryptionProfileConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy