
commonMain.aws.sdk.kotlin.services.healthlake.model.DatastoreProperties.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.healthlake.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* Displays the properties of the data store, including the ID, ARN, name, and the status of the data store.
*/
public class DatastoreProperties private constructor(builder: Builder) {
/**
* The time that a data store was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The Amazon Resource Name used in the creation of the data store.
*/
public val datastoreArn: kotlin.String = requireNotNull(builder.datastoreArn) { "A non-null value must be provided for datastoreArn" }
/**
* The AWS endpoint for the data store. Each data store will have it's own endpoint with data store ID in the endpoint URL.
*/
public val datastoreEndpoint: kotlin.String = requireNotNull(builder.datastoreEndpoint) { "A non-null value must be provided for datastoreEndpoint" }
/**
* The AWS-generated ID number for the data store.
*/
public val datastoreId: kotlin.String = requireNotNull(builder.datastoreId) { "A non-null value must be provided for datastoreId" }
/**
* The user-generated name for the data store.
*/
public val datastoreName: kotlin.String? = builder.datastoreName
/**
* The status of the data store.
*/
public val datastoreStatus: aws.sdk.kotlin.services.healthlake.model.DatastoreStatus = requireNotNull(builder.datastoreStatus) { "A non-null value must be provided for datastoreStatus" }
/**
* The FHIR version. Only R4 version data is supported.
*/
public val datastoreTypeVersion: aws.sdk.kotlin.services.healthlake.model.FhirVersion = requireNotNull(builder.datastoreTypeVersion) { "A non-null value must be provided for datastoreTypeVersion" }
/**
* The identity provider that you selected when you created the data store.
*/
public val identityProviderConfiguration: aws.sdk.kotlin.services.healthlake.model.IdentityProviderConfiguration? = builder.identityProviderConfiguration
/**
* The preloaded data configuration for the data store. Only data preloaded from Synthea is supported.
*/
public val preloadDataConfig: aws.sdk.kotlin.services.healthlake.model.PreloadDataConfig? = builder.preloadDataConfig
/**
* The server-side encryption key configuration for a customer provided encryption key (CMK).
*/
public val sseConfiguration: aws.sdk.kotlin.services.healthlake.model.SseConfiguration? = builder.sseConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.healthlake.model.DatastoreProperties = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DatastoreProperties(")
append("createdAt=$createdAt,")
append("datastoreArn=$datastoreArn,")
append("datastoreEndpoint=$datastoreEndpoint,")
append("datastoreId=$datastoreId,")
append("datastoreName=$datastoreName,")
append("datastoreStatus=$datastoreStatus,")
append("datastoreTypeVersion=$datastoreTypeVersion,")
append("identityProviderConfiguration=$identityProviderConfiguration,")
append("preloadDataConfig=$preloadDataConfig,")
append("sseConfiguration=$sseConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdAt?.hashCode() ?: 0
result = 31 * result + (datastoreArn.hashCode())
result = 31 * result + (datastoreEndpoint.hashCode())
result = 31 * result + (datastoreId.hashCode())
result = 31 * result + (datastoreName?.hashCode() ?: 0)
result = 31 * result + (datastoreStatus.hashCode())
result = 31 * result + (datastoreTypeVersion.hashCode())
result = 31 * result + (identityProviderConfiguration?.hashCode() ?: 0)
result = 31 * result + (preloadDataConfig?.hashCode() ?: 0)
result = 31 * result + (sseConfiguration?.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 DatastoreProperties
if (createdAt != other.createdAt) return false
if (datastoreArn != other.datastoreArn) return false
if (datastoreEndpoint != other.datastoreEndpoint) return false
if (datastoreId != other.datastoreId) return false
if (datastoreName != other.datastoreName) return false
if (datastoreStatus != other.datastoreStatus) return false
if (datastoreTypeVersion != other.datastoreTypeVersion) return false
if (identityProviderConfiguration != other.identityProviderConfiguration) return false
if (preloadDataConfig != other.preloadDataConfig) return false
if (sseConfiguration != other.sseConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.healthlake.model.DatastoreProperties = Builder(this).apply(block).build()
public class Builder {
/**
* The time that a data store was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The Amazon Resource Name used in the creation of the data store.
*/
public var datastoreArn: kotlin.String? = null
/**
* The AWS endpoint for the data store. Each data store will have it's own endpoint with data store ID in the endpoint URL.
*/
public var datastoreEndpoint: kotlin.String? = null
/**
* The AWS-generated ID number for the data store.
*/
public var datastoreId: kotlin.String? = null
/**
* The user-generated name for the data store.
*/
public var datastoreName: kotlin.String? = null
/**
* The status of the data store.
*/
public var datastoreStatus: aws.sdk.kotlin.services.healthlake.model.DatastoreStatus? = null
/**
* The FHIR version. Only R4 version data is supported.
*/
public var datastoreTypeVersion: aws.sdk.kotlin.services.healthlake.model.FhirVersion? = null
/**
* The identity provider that you selected when you created the data store.
*/
public var identityProviderConfiguration: aws.sdk.kotlin.services.healthlake.model.IdentityProviderConfiguration? = null
/**
* The preloaded data configuration for the data store. Only data preloaded from Synthea is supported.
*/
public var preloadDataConfig: aws.sdk.kotlin.services.healthlake.model.PreloadDataConfig? = null
/**
* The server-side encryption key configuration for a customer provided encryption key (CMK).
*/
public var sseConfiguration: aws.sdk.kotlin.services.healthlake.model.SseConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.healthlake.model.DatastoreProperties) : this() {
this.createdAt = x.createdAt
this.datastoreArn = x.datastoreArn
this.datastoreEndpoint = x.datastoreEndpoint
this.datastoreId = x.datastoreId
this.datastoreName = x.datastoreName
this.datastoreStatus = x.datastoreStatus
this.datastoreTypeVersion = x.datastoreTypeVersion
this.identityProviderConfiguration = x.identityProviderConfiguration
this.preloadDataConfig = x.preloadDataConfig
this.sseConfiguration = x.sseConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.healthlake.model.DatastoreProperties = DatastoreProperties(this)
/**
* construct an [aws.sdk.kotlin.services.healthlake.model.IdentityProviderConfiguration] inside the given [block]
*/
public fun identityProviderConfiguration(block: aws.sdk.kotlin.services.healthlake.model.IdentityProviderConfiguration.Builder.() -> kotlin.Unit) {
this.identityProviderConfiguration = aws.sdk.kotlin.services.healthlake.model.IdentityProviderConfiguration.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.healthlake.model.PreloadDataConfig] inside the given [block]
*/
public fun preloadDataConfig(block: aws.sdk.kotlin.services.healthlake.model.PreloadDataConfig.Builder.() -> kotlin.Unit) {
this.preloadDataConfig = aws.sdk.kotlin.services.healthlake.model.PreloadDataConfig.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.healthlake.model.SseConfiguration] inside the given [block]
*/
public fun sseConfiguration(block: aws.sdk.kotlin.services.healthlake.model.SseConfiguration.Builder.() -> kotlin.Unit) {
this.sseConfiguration = aws.sdk.kotlin.services.healthlake.model.SseConfiguration.invoke(block)
}
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")
if (datastoreTypeVersion == null) datastoreTypeVersion = FhirVersion.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy