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

commonMain.aws.sdk.kotlin.services.datazone.model.UserProfileSummary.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.datazone.model



/**
 * The details of the user profile.
 */
public class UserProfileSummary private constructor(builder: Builder) {
    /**
     * The details of the user profile.
     */
    public val details: aws.sdk.kotlin.services.datazone.model.UserProfileDetails? = builder.details
    /**
     * The ID of the Amazon DataZone domain of the user profile.
     */
    public val domainId: kotlin.String? = builder.domainId
    /**
     * The ID of the user profile.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The status of the user profile.
     */
    public val status: aws.sdk.kotlin.services.datazone.model.UserProfileStatus? = builder.status
    /**
     * The type of the user profile.
     */
    public val type: aws.sdk.kotlin.services.datazone.model.UserProfileType? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("UserProfileSummary(")
        append("details=$details,")
        append("domainId=$domainId,")
        append("id=$id,")
        append("status=$status,")
        append("type=$type")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = details?.hashCode() ?: 0
        result = 31 * result + (domainId?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (type?.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 UserProfileSummary

        if (details != other.details) return false
        if (domainId != other.domainId) return false
        if (id != other.id) return false
        if (status != other.status) return false
        if (type != other.type) return false

        return true
    }

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

    public class Builder {
        /**
         * The details of the user profile.
         */
        public var details: aws.sdk.kotlin.services.datazone.model.UserProfileDetails? = null
        /**
         * The ID of the Amazon DataZone domain of the user profile.
         */
        public var domainId: kotlin.String? = null
        /**
         * The ID of the user profile.
         */
        public var id: kotlin.String? = null
        /**
         * The status of the user profile.
         */
        public var status: aws.sdk.kotlin.services.datazone.model.UserProfileStatus? = null
        /**
         * The type of the user profile.
         */
        public var type: aws.sdk.kotlin.services.datazone.model.UserProfileType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.UserProfileSummary) : this() {
            this.details = x.details
            this.domainId = x.domainId
            this.id = x.id
            this.status = x.status
            this.type = x.type
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy