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

commonMain.aws.sdk.kotlin.services.healthlake.model.DeleteFhirDatastoreResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.healthlake.model



public class DeleteFhirDatastoreResponse private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) that gives AWS HealthLake access permission.
     */
    public val datastoreArn: kotlin.String = requireNotNull(builder.datastoreArn) { "A non-null value must be provided for datastoreArn" }
    /**
     * The AWS endpoint for the data store the user has requested to be deleted.
     */
    public val datastoreEndpoint: kotlin.String = requireNotNull(builder.datastoreEndpoint) { "A non-null value must be provided for datastoreEndpoint" }
    /**
     * The AWS-generated ID for the data store to be deleted.
     */
    public val datastoreId: kotlin.String = requireNotNull(builder.datastoreId) { "A non-null value must be provided for datastoreId" }
    /**
     * The status of the data store that the user has requested to be deleted.
     */
    public val datastoreStatus: aws.sdk.kotlin.services.healthlake.model.DatastoreStatus = requireNotNull(builder.datastoreStatus) { "A non-null value must be provided for datastoreStatus" }

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteFhirDatastoreResponse(")
        append("datastoreArn=$datastoreArn,")
        append("datastoreEndpoint=$datastoreEndpoint,")
        append("datastoreId=$datastoreId,")
        append("datastoreStatus=$datastoreStatus")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = datastoreArn.hashCode()
        result = 31 * result + (datastoreEndpoint.hashCode())
        result = 31 * result + (datastoreId.hashCode())
        result = 31 * result + (datastoreStatus.hashCode())
        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 DeleteFhirDatastoreResponse

        if (datastoreArn != other.datastoreArn) return false
        if (datastoreEndpoint != other.datastoreEndpoint) return false
        if (datastoreId != other.datastoreId) return false
        if (datastoreStatus != other.datastoreStatus) return false

        return true
    }

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

    public class Builder {
        /**
         * The Amazon Resource Name (ARN) that gives AWS HealthLake access permission.
         */
        public var datastoreArn: kotlin.String? = null
        /**
         * The AWS endpoint for the data store the user has requested to be deleted.
         */
        public var datastoreEndpoint: kotlin.String? = null
        /**
         * The AWS-generated ID for the data store to be deleted.
         */
        public var datastoreId: kotlin.String? = null
        /**
         * The status of the data store that the user has requested to be deleted.
         */
        public var datastoreStatus: aws.sdk.kotlin.services.healthlake.model.DatastoreStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.healthlake.model.DeleteFhirDatastoreResponse) : this() {
            this.datastoreArn = x.datastoreArn
            this.datastoreEndpoint = x.datastoreEndpoint
            this.datastoreId = x.datastoreId
            this.datastoreStatus = x.datastoreStatus
        }

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

        internal fun correctErrors(): Builder {
            if (datastoreArn == null) datastoreArn = ""
            if (datastoreEndpoint == null) datastoreEndpoint = ""
            if (datastoreId == null) datastoreId = ""
            if (datastoreStatus == null) datastoreStatus = DatastoreStatus.SdkUnknown("no value provided")
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy