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

commonMain.aws.sdk.kotlin.services.ssmsap.model.DatabaseSummary.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.ssmsap.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The summary of the database.
 */
public class DatabaseSummary private constructor(builder: Builder) {
    /**
     * The ID of the application.
     */
    public val applicationId: kotlin.String? = builder.applicationId
    /**
     * The Amazon Resource Name (ARN) of the database.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * The ID of the component.
     */
    public val componentId: kotlin.String? = builder.componentId
    /**
     * The ID of the database.
     */
    public val databaseId: kotlin.String? = builder.databaseId
    /**
     * The type of the database.
     */
    public val databaseType: aws.sdk.kotlin.services.ssmsap.model.DatabaseType? = builder.databaseType
    /**
     * The tags of the database.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("DatabaseSummary(")
        append("applicationId=$applicationId,")
        append("arn=$arn,")
        append("componentId=$componentId,")
        append("databaseId=$databaseId,")
        append("databaseType=$databaseType,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = applicationId?.hashCode() ?: 0
        result = 31 * result + (arn?.hashCode() ?: 0)
        result = 31 * result + (componentId?.hashCode() ?: 0)
        result = 31 * result + (databaseId?.hashCode() ?: 0)
        result = 31 * result + (databaseType?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 DatabaseSummary

        if (applicationId != other.applicationId) return false
        if (arn != other.arn) return false
        if (componentId != other.componentId) return false
        if (databaseId != other.databaseId) return false
        if (databaseType != other.databaseType) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ID of the application.
         */
        public var applicationId: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the database.
         */
        public var arn: kotlin.String? = null
        /**
         * The ID of the component.
         */
        public var componentId: kotlin.String? = null
        /**
         * The ID of the database.
         */
        public var databaseId: kotlin.String? = null
        /**
         * The type of the database.
         */
        public var databaseType: aws.sdk.kotlin.services.ssmsap.model.DatabaseType? = null
        /**
         * The tags of the database.
         */
        public var tags: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssmsap.model.DatabaseSummary) : this() {
            this.applicationId = x.applicationId
            this.arn = x.arn
            this.componentId = x.componentId
            this.databaseId = x.databaseId
            this.databaseType = x.databaseType
            this.tags = x.tags
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy