
commonMain.aws.sdk.kotlin.services.docdbelastic.model.DeleteClusterSnapshotRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.docdbelastic.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DeleteClusterSnapshotRequest private constructor(builder: Builder) {
/**
* The ARN identifier of the elastic cluster snapshot that is to be deleted.
*/
public val snapshotArn: kotlin.String = requireNotNull(builder.snapshotArn) { "A non-null value must be provided for snapshotArn" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.docdbelastic.model.DeleteClusterSnapshotRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteClusterSnapshotRequest(")
append("snapshotArn=$snapshotArn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = snapshotArn.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 DeleteClusterSnapshotRequest
if (snapshotArn != other.snapshotArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.docdbelastic.model.DeleteClusterSnapshotRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN identifier of the elastic cluster snapshot that is to be deleted.
*/
public var snapshotArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.docdbelastic.model.DeleteClusterSnapshotRequest) : this() {
this.snapshotArn = x.snapshotArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.docdbelastic.model.DeleteClusterSnapshotRequest = DeleteClusterSnapshotRequest(this)
internal fun correctErrors(): Builder {
if (snapshotArn == null) snapshotArn = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy