commonMain.aws.sdk.kotlin.services.backup.model.DeleteBackupPlanResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.backup.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
public class DeleteBackupPlanResponse private constructor(builder: Builder) {
/**
* An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, `arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50`.
*/
public val backupPlanArn: kotlin.String? = builder.backupPlanArn
/**
* Uniquely identifies a backup plan.
*/
public val backupPlanId: kotlin.String? = builder.backupPlanId
/**
* The date and time a backup plan is deleted, in Unix format and Coordinated Universal Time (UTC). The value of `DeletionDate` is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public val deletionDate: aws.smithy.kotlin.runtime.time.Instant? = builder.deletionDate
/**
* Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited.
*/
public val versionId: kotlin.String? = builder.versionId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.backup.model.DeleteBackupPlanResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteBackupPlanResponse(")
append("backupPlanArn=$backupPlanArn,")
append("backupPlanId=$backupPlanId,")
append("deletionDate=$deletionDate,")
append("versionId=$versionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = backupPlanArn?.hashCode() ?: 0
result = 31 * result + (backupPlanId?.hashCode() ?: 0)
result = 31 * result + (deletionDate?.hashCode() ?: 0)
result = 31 * result + (versionId?.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 DeleteBackupPlanResponse
if (backupPlanArn != other.backupPlanArn) return false
if (backupPlanId != other.backupPlanId) return false
if (deletionDate != other.deletionDate) return false
if (versionId != other.versionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backup.model.DeleteBackupPlanResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, `arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50`.
*/
public var backupPlanArn: kotlin.String? = null
/**
* Uniquely identifies a backup plan.
*/
public var backupPlanId: kotlin.String? = null
/**
* The date and time a backup plan is deleted, in Unix format and Coordinated Universal Time (UTC). The value of `DeletionDate` is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public var deletionDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. Version IDs cannot be edited.
*/
public var versionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.backup.model.DeleteBackupPlanResponse) : this() {
this.backupPlanArn = x.backupPlanArn
this.backupPlanId = x.backupPlanId
this.deletionDate = x.deletionDate
this.versionId = x.versionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.backup.model.DeleteBackupPlanResponse = DeleteBackupPlanResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}