
commonMain.aws.sdk.kotlin.services.omics.model.GetAnnotationStoreVersionResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.omics.model
import aws.smithy.kotlin.runtime.time.Instant
public class GetAnnotationStoreVersionResponse private constructor(builder: Builder) {
/**
* The time stamp for when an annotation store version was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.creationTime) { "A non-null value must be provided for creationTime" }
/**
* The description for an annotation store version.
*/
public val description: kotlin.String = requireNotNull(builder.description) { "A non-null value must be provided for description" }
/**
* The annotation store version ID.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* The name of the annotation store.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* The status of an annotation store version.
*/
public val status: aws.sdk.kotlin.services.omics.model.VersionStatus = requireNotNull(builder.status) { "A non-null value must be provided for status" }
/**
* The status of an annotation store version.
*/
public val statusMessage: kotlin.String = requireNotNull(builder.statusMessage) { "A non-null value must be provided for statusMessage" }
/**
* The store ID for annotation store version.
*/
public val storeId: kotlin.String = requireNotNull(builder.storeId) { "A non-null value must be provided for storeId" }
/**
* Any tags associated with an annotation store version.
*/
public val tags: Map = requireNotNull(builder.tags) { "A non-null value must be provided for tags" }
/**
* The time stamp for when an annotation store version was updated.
*/
public val updateTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.updateTime) { "A non-null value must be provided for updateTime" }
/**
* The Arn for the annotation store.
*/
public val versionArn: kotlin.String = requireNotNull(builder.versionArn) { "A non-null value must be provided for versionArn" }
/**
* The name given to an annotation store version to distinguish it from others.
*/
public val versionName: kotlin.String = requireNotNull(builder.versionName) { "A non-null value must be provided for versionName" }
/**
* The options for an annotation store version.
*/
public val versionOptions: aws.sdk.kotlin.services.omics.model.VersionOptions? = builder.versionOptions
/**
* The size of the annotation store version in Bytes.
*/
public val versionSizeBytes: kotlin.Long = requireNotNull(builder.versionSizeBytes) { "A non-null value must be provided for versionSizeBytes" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.GetAnnotationStoreVersionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetAnnotationStoreVersionResponse(")
append("creationTime=$creationTime,")
append("description=$description,")
append("id=$id,")
append("name=$name,")
append("status=$status,")
append("statusMessage=$statusMessage,")
append("storeId=$storeId,")
append("tags=$tags,")
append("updateTime=$updateTime,")
append("versionArn=$versionArn,")
append("versionName=$versionName,")
append("versionOptions=$versionOptions,")
append("versionSizeBytes=$versionSizeBytes")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationTime.hashCode()
result = 31 * result + (description.hashCode())
result = 31 * result + (id.hashCode())
result = 31 * result + (name.hashCode())
result = 31 * result + (status.hashCode())
result = 31 * result + (statusMessage.hashCode())
result = 31 * result + (storeId.hashCode())
result = 31 * result + (tags.hashCode())
result = 31 * result + (updateTime.hashCode())
result = 31 * result + (versionArn.hashCode())
result = 31 * result + (versionName.hashCode())
result = 31 * result + (versionOptions?.hashCode() ?: 0)
result = 31 * result + (versionSizeBytes.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 GetAnnotationStoreVersionResponse
if (creationTime != other.creationTime) return false
if (description != other.description) return false
if (id != other.id) return false
if (name != other.name) return false
if (status != other.status) return false
if (statusMessage != other.statusMessage) return false
if (storeId != other.storeId) return false
if (tags != other.tags) return false
if (updateTime != other.updateTime) return false
if (versionArn != other.versionArn) return false
if (versionName != other.versionName) return false
if (versionOptions != other.versionOptions) return false
if (versionSizeBytes != other.versionSizeBytes) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.GetAnnotationStoreVersionResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The time stamp for when an annotation store version was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The description for an annotation store version.
*/
public var description: kotlin.String? = null
/**
* The annotation store version ID.
*/
public var id: kotlin.String? = null
/**
* The name of the annotation store.
*/
public var name: kotlin.String? = null
/**
* The status of an annotation store version.
*/
public var status: aws.sdk.kotlin.services.omics.model.VersionStatus? = null
/**
* The status of an annotation store version.
*/
public var statusMessage: kotlin.String? = null
/**
* The store ID for annotation store version.
*/
public var storeId: kotlin.String? = null
/**
* Any tags associated with an annotation store version.
*/
public var tags: Map? = null
/**
* The time stamp for when an annotation store version was updated.
*/
public var updateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The Arn for the annotation store.
*/
public var versionArn: kotlin.String? = null
/**
* The name given to an annotation store version to distinguish it from others.
*/
public var versionName: kotlin.String? = null
/**
* The options for an annotation store version.
*/
public var versionOptions: aws.sdk.kotlin.services.omics.model.VersionOptions? = null
/**
* The size of the annotation store version in Bytes.
*/
public var versionSizeBytes: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.GetAnnotationStoreVersionResponse) : this() {
this.creationTime = x.creationTime
this.description = x.description
this.id = x.id
this.name = x.name
this.status = x.status
this.statusMessage = x.statusMessage
this.storeId = x.storeId
this.tags = x.tags
this.updateTime = x.updateTime
this.versionArn = x.versionArn
this.versionName = x.versionName
this.versionOptions = x.versionOptions
this.versionSizeBytes = x.versionSizeBytes
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.GetAnnotationStoreVersionResponse = GetAnnotationStoreVersionResponse(this)
internal fun correctErrors(): Builder {
if (creationTime == null) creationTime = Instant.fromEpochSeconds(0)
if (description == null) description = ""
if (id == null) id = ""
if (name == null) name = ""
if (status == null) status = VersionStatus.SdkUnknown("no value provided")
if (statusMessage == null) statusMessage = ""
if (storeId == null) storeId = ""
if (tags == null) tags = emptyMap()
if (updateTime == null) updateTime = Instant.fromEpochSeconds(0)
if (versionArn == null) versionArn = ""
if (versionName == null) versionName = ""
if (versionSizeBytes == null) versionSizeBytes = 0L
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy