
commonMain.aws.sdk.kotlin.services.cloudfront.model.DeleteFieldLevelEncryptionProfileRequest.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 DeleteFieldLevelEncryptionProfileRequest private constructor(builder: Builder) {
/**
* Request the ID of the profile you want to delete from CloudFront.
*/
public val id: kotlin.String? = builder.id
/**
* The value of the `ETag` header that you received when retrieving the profile to delete. For example: `E2QWRUHAPOMQZL`.
*/
public val ifMatch: kotlin.String? = builder.ifMatch
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudfront.model.DeleteFieldLevelEncryptionProfileRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteFieldLevelEncryptionProfileRequest(")
append("id=$id,")
append("ifMatch=$ifMatch")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = id?.hashCode() ?: 0
result = 31 * result + (ifMatch?.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 DeleteFieldLevelEncryptionProfileRequest
if (id != other.id) return false
if (ifMatch != other.ifMatch) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudfront.model.DeleteFieldLevelEncryptionProfileRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Request the ID of the profile you want to delete from CloudFront.
*/
public var id: kotlin.String? = null
/**
* The value of the `ETag` header that you received when retrieving the profile to delete. For example: `E2QWRUHAPOMQZL`.
*/
public var ifMatch: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudfront.model.DeleteFieldLevelEncryptionProfileRequest) : this() {
this.id = x.id
this.ifMatch = x.ifMatch
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudfront.model.DeleteFieldLevelEncryptionProfileRequest = DeleteFieldLevelEncryptionProfileRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy