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

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

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

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



public class CreateFhirDatastoreResponse private constructor(builder: Builder) {
    /**
     * The data store ARN is generated during the creation of the data store and can be found in the output from the initial data store creation call.
     */
    public val datastoreArn: kotlin.String = requireNotNull(builder.datastoreArn) { "A non-null value must be provided for datastoreArn" }
    /**
     * The AWS endpoint for the created data store.
     */
    public val datastoreEndpoint: kotlin.String = requireNotNull(builder.datastoreEndpoint) { "A non-null value must be provided for datastoreEndpoint" }
    /**
     * The AWS-generated data store id. This id is in the output from the initial data store creation call.
     */
    public val datastoreId: kotlin.String = requireNotNull(builder.datastoreId) { "A non-null value must be provided for datastoreId" }
    /**
     * The status of the FHIR data store.
     */
    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.CreateFhirDatastoreResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateFhirDatastoreResponse(")
        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 CreateFhirDatastoreResponse

        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.CreateFhirDatastoreResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The data store ARN is generated during the creation of the data store and can be found in the output from the initial data store creation call.
         */
        public var datastoreArn: kotlin.String? = null
        /**
         * The AWS endpoint for the created data store.
         */
        public var datastoreEndpoint: kotlin.String? = null
        /**
         * The AWS-generated data store id. This id is in the output from the initial data store creation call.
         */
        public var datastoreId: kotlin.String? = null
        /**
         * The status of the FHIR data store.
         */
        public var datastoreStatus: aws.sdk.kotlin.services.healthlake.model.DatastoreStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.healthlake.model.CreateFhirDatastoreResponse) : 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.CreateFhirDatastoreResponse = CreateFhirDatastoreResponse(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