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

commonMain.aws.sdk.kotlin.services.datazone.model.RemoveEntityOwnerRequest.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 RemoveEntityOwnerRequest 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 ID of the domain where you want to remove an owner from an entity.
     */
    public val domainIdentifier: kotlin.String? = builder.domainIdentifier
    /**
     * The ID of the entity from which you want to remove an owner.
     */
    public val entityIdentifier: kotlin.String? = builder.entityIdentifier
    /**
     * The type of the entity from which you want to remove an owner.
     */
    public val entityType: aws.sdk.kotlin.services.datazone.model.DataZoneEntityType? = builder.entityType
    /**
     * The owner that you want to remove from an entity.
     */
    public val owner: aws.sdk.kotlin.services.datazone.model.OwnerProperties? = builder.owner

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

    override fun toString(): kotlin.String = buildString {
        append("RemoveEntityOwnerRequest(")
        append("clientToken=$clientToken,")
        append("domainIdentifier=$domainIdentifier,")
        append("entityIdentifier=$entityIdentifier,")
        append("entityType=$entityType,")
        append("owner=$owner")
        append(")")
    }

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

        if (clientToken != other.clientToken) return false
        if (domainIdentifier != other.domainIdentifier) return false
        if (entityIdentifier != other.entityIdentifier) return false
        if (entityType != other.entityType) return false
        if (owner != other.owner) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.RemoveEntityOwnerRequest = 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 ID of the domain where you want to remove an owner from an entity.
         */
        public var domainIdentifier: kotlin.String? = null
        /**
         * The ID of the entity from which you want to remove an owner.
         */
        public var entityIdentifier: kotlin.String? = null
        /**
         * The type of the entity from which you want to remove an owner.
         */
        public var entityType: aws.sdk.kotlin.services.datazone.model.DataZoneEntityType? = null
        /**
         * The owner that you want to remove from an entity.
         */
        public var owner: aws.sdk.kotlin.services.datazone.model.OwnerProperties? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.RemoveEntityOwnerRequest) : this() {
            this.clientToken = x.clientToken
            this.domainIdentifier = x.domainIdentifier
            this.entityIdentifier = x.entityIdentifier
            this.entityType = x.entityType
            this.owner = x.owner
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy