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

commonMain.aws.sdk.kotlin.services.backup.model.DescribeGlobalSettingsResponse.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 DescribeGlobalSettingsResponse private constructor(builder: Builder) {
    /**
     * The status of the flag `isCrossAccountBackupEnabled`.
     */
    public val globalSettings: Map? = builder.globalSettings
    /**
     * The date and time that the flag `isCrossAccountBackupEnabled` was last updated. This update is in Unix format and Coordinated Universal Time (UTC). The value of `LastUpdateTime` is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
     */
    public val lastUpdateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdateTime

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeGlobalSettingsResponse(")
        append("globalSettings=$globalSettings,")
        append("lastUpdateTime=$lastUpdateTime")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = globalSettings?.hashCode() ?: 0
        result = 31 * result + (lastUpdateTime?.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 DescribeGlobalSettingsResponse

        if (globalSettings != other.globalSettings) return false
        if (lastUpdateTime != other.lastUpdateTime) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The status of the flag `isCrossAccountBackupEnabled`.
         */
        public var globalSettings: Map? = null
        /**
         * The date and time that the flag `isCrossAccountBackupEnabled` was last updated. This update is in Unix format and Coordinated Universal Time (UTC). The value of `LastUpdateTime` is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
         */
        public var lastUpdateTime: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.backup.model.DescribeGlobalSettingsResponse) : this() {
            this.globalSettings = x.globalSettings
            this.lastUpdateTime = x.lastUpdateTime
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy