All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.backup.model.GetRecoveryPointRestoreMetadataResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.37
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.backup.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetRecoveryPointRestoreMetadataResponse private constructor(builder: Builder) {
    /**
     * An ARN that uniquely identifies a backup vault; for example, `arn:aws:backup:us-east-1:123456789012:vault:aBackupVault`.
     */
    public val backupVaultArn: kotlin.String? = builder.backupVaultArn
    /**
     * An ARN that uniquely identifies a recovery point; for example, `arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45`.
     */
    public val recoveryPointArn: kotlin.String? = builder.recoveryPointArn
    /**
     * This is the resource type associated with the recovery point.
     */
    public val resourceType: kotlin.String? = builder.resourceType
    /**
     * The set of metadata key-value pairs that describe the original configuration of the backed-up resource. These values vary depending on the service that is being restored.
     */
    public val restoreMetadata: Map? = builder.restoreMetadata

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.backup.model.GetRecoveryPointRestoreMetadataResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("GetRecoveryPointRestoreMetadataResponse(")
        append("backupVaultArn=$backupVaultArn,")
        append("recoveryPointArn=$recoveryPointArn,")
        append("resourceType=$resourceType,")
        append("restoreMetadata=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = backupVaultArn?.hashCode() ?: 0
        result = 31 * result + (recoveryPointArn?.hashCode() ?: 0)
        result = 31 * result + (resourceType?.hashCode() ?: 0)
        result = 31 * result + (restoreMetadata?.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 GetRecoveryPointRestoreMetadataResponse

        if (backupVaultArn != other.backupVaultArn) return false
        if (recoveryPointArn != other.recoveryPointArn) return false
        if (resourceType != other.resourceType) return false
        if (restoreMetadata != other.restoreMetadata) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.backup.model.GetRecoveryPointRestoreMetadataResponse = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * An ARN that uniquely identifies a backup vault; for example, `arn:aws:backup:us-east-1:123456789012:vault:aBackupVault`.
         */
        public var backupVaultArn: kotlin.String? = null
        /**
         * An ARN that uniquely identifies a recovery point; for example, `arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45`.
         */
        public var recoveryPointArn: kotlin.String? = null
        /**
         * This is the resource type associated with the recovery point.
         */
        public var resourceType: kotlin.String? = null
        /**
         * The set of metadata key-value pairs that describe the original configuration of the backed-up resource. These values vary depending on the service that is being restored.
         */
        public var restoreMetadata: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.backup.model.GetRecoveryPointRestoreMetadataResponse) : this() {
            this.backupVaultArn = x.backupVaultArn
            this.recoveryPointArn = x.recoveryPointArn
            this.resourceType = x.resourceType
            this.restoreMetadata = x.restoreMetadata
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.backup.model.GetRecoveryPointRestoreMetadataResponse = GetRecoveryPointRestoreMetadataResponse(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy