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

commonMain.aws.sdk.kotlin.services.macie.model.MemberAccount.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.macie.model



/**
 * (Discontinued) Contains information about the Amazon Macie Classic member account.
 */
public class MemberAccount private constructor(builder: Builder) {
    /**
     * (Discontinued) The Amazon Web Services account ID of the Amazon Macie Classic member account.
     */
    public val accountId: kotlin.String? = builder.accountId

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

    override fun toString(): kotlin.String = buildString {
        append("MemberAccount(")
        append("accountId=$accountId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = accountId?.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 MemberAccount

        if (accountId != other.accountId) return false

        return true
    }

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

    public class Builder {
        /**
         * (Discontinued) The Amazon Web Services account ID of the Amazon Macie Classic member account.
         */
        public var accountId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.macie.model.MemberAccount) : this() {
            this.accountId = x.accountId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.macie.model.MemberAccount = MemberAccount(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy