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

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

import aws.smithy.kotlin.runtime.SdkDsl

public class CreateUserProfileRequest private constructor(builder: Builder) {
    /**
     * A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * The identifier of the Amazon DataZone domain in which a user profile is created.
     */
    public val domainIdentifier: kotlin.String? = builder.domainIdentifier
    /**
     * The identifier of the user for which the user profile is created.
     */
    public val userIdentifier: kotlin.String? = builder.userIdentifier
    /**
     * The user type of the user for which the user profile is created.
     */
    public val userType: aws.sdk.kotlin.services.datazone.model.UserType? = builder.userType

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

    override fun toString(): kotlin.String = buildString {
        append("CreateUserProfileRequest(")
        append("clientToken=$clientToken,")
        append("domainIdentifier=$domainIdentifier,")
        append("userIdentifier=$userIdentifier,")
        append("userType=$userType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (domainIdentifier?.hashCode() ?: 0)
        result = 31 * result + (userIdentifier?.hashCode() ?: 0)
        result = 31 * result + (userType?.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 CreateUserProfileRequest

        if (clientToken != other.clientToken) return false
        if (domainIdentifier != other.domainIdentifier) return false
        if (userIdentifier != other.userIdentifier) return false
        if (userType != other.userType) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
         */
        public var clientToken: kotlin.String? = null
        /**
         * The identifier of the Amazon DataZone domain in which a user profile is created.
         */
        public var domainIdentifier: kotlin.String? = null
        /**
         * The identifier of the user for which the user profile is created.
         */
        public var userIdentifier: kotlin.String? = null
        /**
         * The user type of the user for which the user profile is created.
         */
        public var userType: aws.sdk.kotlin.services.datazone.model.UserType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.CreateUserProfileRequest) : this() {
            this.clientToken = x.clientToken
            this.domainIdentifier = x.domainIdentifier
            this.userIdentifier = x.userIdentifier
            this.userType = x.userType
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy