
commonMain.aws.sdk.kotlin.services.backup.model.DeleteBackupPlanRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.backup.model
public class DeleteBackupPlanRequest private constructor(builder: Builder) {
/**
* Uniquely identifies a backup plan.
*/
public val backupPlanId: kotlin.String? = requireNotNull(builder.backupPlanId) { "A non-null value must be provided for backupPlanId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.backup.model.DeleteBackupPlanRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteBackupPlanRequest(")
append("backupPlanId=$backupPlanId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = backupPlanId?.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 DeleteBackupPlanRequest
if (backupPlanId != other.backupPlanId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backup.model.DeleteBackupPlanRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Uniquely identifies a backup plan.
*/
public var backupPlanId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.backup.model.DeleteBackupPlanRequest) : this() {
this.backupPlanId = x.backupPlanId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.backup.model.DeleteBackupPlanRequest = DeleteBackupPlanRequest(this)
internal fun correctErrors(): Builder {
if (backupPlanId == null) backupPlanId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy