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

commonMain.aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseMasterUserPasswordResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lightsail.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

public class GetRelationalDatabaseMasterUserPasswordResponse private constructor(builder: Builder) {
    /**
     * The timestamp when the specified version of the master user password was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The master user password for the `password version` specified.
     */
    public val masterUserPassword: kotlin.String? = builder.masterUserPassword

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

    override fun toString(): kotlin.String = buildString {
        append("GetRelationalDatabaseMasterUserPasswordResponse(")
        append("createdAt=$createdAt,")
        append("masterUserPassword=*** Sensitive Data Redacted ***")
        append(")")
    }

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

        if (createdAt != other.createdAt) return false
        if (masterUserPassword != other.masterUserPassword) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The timestamp when the specified version of the master user password was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The master user password for the `password version` specified.
         */
        public var masterUserPassword: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lightsail.model.GetRelationalDatabaseMasterUserPasswordResponse) : this() {
            this.createdAt = x.createdAt
            this.masterUserPassword = x.masterUserPassword
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy