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

commonMain.aws.sdk.kotlin.services.customerprofiles.model.DeleteProfileObjectRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.customerprofiles.model



public class DeleteProfileObjectRequest private constructor(builder: Builder) {
    /**
     * The unique name of the domain.
     */
    public val domainName: kotlin.String? = requireNotNull(builder.domainName) { "A non-null value must be provided for domainName" }
    /**
     * The name of the profile object type.
     */
    public val objectTypeName: kotlin.String? = builder.objectTypeName
    /**
     * The unique identifier of a customer profile.
     */
    public val profileId: kotlin.String? = builder.profileId
    /**
     * The unique identifier of the profile object generated by the service.
     */
    public val profileObjectUniqueKey: kotlin.String? = builder.profileObjectUniqueKey

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteProfileObjectRequest(")
        append("domainName=$domainName,")
        append("objectTypeName=$objectTypeName,")
        append("profileId=$profileId,")
        append("profileObjectUniqueKey=$profileObjectUniqueKey")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = domainName?.hashCode() ?: 0
        result = 31 * result + (objectTypeName?.hashCode() ?: 0)
        result = 31 * result + (profileId?.hashCode() ?: 0)
        result = 31 * result + (profileObjectUniqueKey?.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 DeleteProfileObjectRequest

        if (domainName != other.domainName) return false
        if (objectTypeName != other.objectTypeName) return false
        if (profileId != other.profileId) return false
        if (profileObjectUniqueKey != other.profileObjectUniqueKey) return false

        return true
    }

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

    public class Builder {
        /**
         * The unique name of the domain.
         */
        public var domainName: kotlin.String? = null
        /**
         * The name of the profile object type.
         */
        public var objectTypeName: kotlin.String? = null
        /**
         * The unique identifier of a customer profile.
         */
        public var profileId: kotlin.String? = null
        /**
         * The unique identifier of the profile object generated by the service.
         */
        public var profileObjectUniqueKey: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.customerprofiles.model.DeleteProfileObjectRequest) : this() {
            this.domainName = x.domainName
            this.objectTypeName = x.objectTypeName
            this.profileId = x.profileId
            this.profileObjectUniqueKey = x.profileObjectUniqueKey
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy