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

commonMain.aws.sdk.kotlin.services.neptune.model.DbClusterSnapshotAttributesResult.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.neptune.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Contains the results of a successful call to the DescribeDBClusterSnapshotAttributes API action.
 *
 * Manual DB cluster snapshot attributes are used to authorize other Amazon accounts to copy or restore a manual DB cluster snapshot. For more information, see the ModifyDBClusterSnapshotAttribute API action.
 */
public class DbClusterSnapshotAttributesResult private constructor(builder: Builder) {
    /**
     * The list of attributes and values for the manual DB cluster snapshot.
     */
    public val dbClusterSnapshotAttributes: List? = builder.dbClusterSnapshotAttributes
    /**
     * The identifier of the manual DB cluster snapshot that the attributes apply to.
     */
    public val dbClusterSnapshotIdentifier: kotlin.String? = builder.dbClusterSnapshotIdentifier

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

    override fun toString(): kotlin.String = buildString {
        append("DbClusterSnapshotAttributesResult(")
        append("dbClusterSnapshotAttributes=$dbClusterSnapshotAttributes,")
        append("dbClusterSnapshotIdentifier=$dbClusterSnapshotIdentifier")
        append(")")
    }

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

        if (dbClusterSnapshotAttributes != other.dbClusterSnapshotAttributes) return false
        if (dbClusterSnapshotIdentifier != other.dbClusterSnapshotIdentifier) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The list of attributes and values for the manual DB cluster snapshot.
         */
        public var dbClusterSnapshotAttributes: List? = null
        /**
         * The identifier of the manual DB cluster snapshot that the attributes apply to.
         */
        public var dbClusterSnapshotIdentifier: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.neptune.model.DbClusterSnapshotAttributesResult) : this() {
            this.dbClusterSnapshotAttributes = x.dbClusterSnapshotAttributes
            this.dbClusterSnapshotIdentifier = x.dbClusterSnapshotIdentifier
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy