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

commonMain.aws.sdk.kotlin.services.backup.model.UpdateBackupPlanResponse.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
import aws.smithy.kotlin.runtime.time.Instant

public class UpdateBackupPlanResponse private constructor(builder: Builder) {
    /**
     * Contains a list of `BackupOptions` for each resource type.
     */
    public val advancedBackupSettings: List? = builder.advancedBackupSettings
    /**
     * 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 created, in Unix format and Coordinated Universal Time (UTC). The value of `CreationDate` is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
     */
    public val creationDate: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDate
    /**
     * 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.UpdateBackupPlanResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("UpdateBackupPlanResponse(")
        append("advancedBackupSettings=$advancedBackupSettings,")
        append("backupPlanArn=$backupPlanArn,")
        append("backupPlanId=$backupPlanId,")
        append("creationDate=$creationDate,")
        append("versionId=$versionId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = advancedBackupSettings?.hashCode() ?: 0
        result = 31 * result + (backupPlanArn?.hashCode() ?: 0)
        result = 31 * result + (backupPlanId?.hashCode() ?: 0)
        result = 31 * result + (creationDate?.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 UpdateBackupPlanResponse

        if (advancedBackupSettings != other.advancedBackupSettings) return false
        if (backupPlanArn != other.backupPlanArn) return false
        if (backupPlanId != other.backupPlanId) return false
        if (creationDate != other.creationDate) return false
        if (versionId != other.versionId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Contains a list of `BackupOptions` for each resource type.
         */
        public var advancedBackupSettings: List? = null
        /**
         * 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 created, in Unix format and Coordinated Universal Time (UTC). The value of `CreationDate` is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
         */
        public var creationDate: 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.UpdateBackupPlanResponse) : this() {
            this.advancedBackupSettings = x.advancedBackupSettings
            this.backupPlanArn = x.backupPlanArn
            this.backupPlanId = x.backupPlanId
            this.creationDate = x.creationDate
            this.versionId = x.versionId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy