
commonMain.aws.sdk.kotlin.services.omics.model.CreateAnnotationStoreVersionResponse.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 CreateAnnotationStoreVersionResponse private constructor(builder: Builder) {
/**
* The time stamp for the creation of an annotation store version.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.creationTime) { "A non-null value must be provided for creationTime" }
/**
* A generated ID for the annotation store
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* The name given to an annotation store version to distinguish it from other versions.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* The status of a 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 ID for the annotation store from which new versions are being created.
*/
public val storeId: kotlin.String = requireNotNull(builder.storeId) { "A non-null value must be provided for storeId" }
/**
* The name given to an annotation store version to distinguish it from other versions.
*/
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
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.CreateAnnotationStoreVersionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateAnnotationStoreVersionResponse(")
append("creationTime=$creationTime,")
append("id=$id,")
append("name=$name,")
append("status=$status,")
append("storeId=$storeId,")
append("versionName=$versionName,")
append("versionOptions=$versionOptions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = creationTime.hashCode()
result = 31 * result + (id.hashCode())
result = 31 * result + (name.hashCode())
result = 31 * result + (status.hashCode())
result = 31 * result + (storeId.hashCode())
result = 31 * result + (versionName.hashCode())
result = 31 * result + (versionOptions?.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 CreateAnnotationStoreVersionResponse
if (creationTime != other.creationTime) return false
if (id != other.id) return false
if (name != other.name) return false
if (status != other.status) return false
if (storeId != other.storeId) return false
if (versionName != other.versionName) return false
if (versionOptions != other.versionOptions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.CreateAnnotationStoreVersionResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The time stamp for the creation of an annotation store version.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* A generated ID for the annotation store
*/
public var id: kotlin.String? = null
/**
* The name given to an annotation store version to distinguish it from other versions.
*/
public var name: kotlin.String? = null
/**
* The status of a annotation store version.
*/
public var status: aws.sdk.kotlin.services.omics.model.VersionStatus? = null
/**
* The ID for the annotation store from which new versions are being created.
*/
public var storeId: kotlin.String? = null
/**
* The name given to an annotation store version to distinguish it from other versions.
*/
public var versionName: kotlin.String? = null
/**
* The options for an annotation store version.
*/
public var versionOptions: aws.sdk.kotlin.services.omics.model.VersionOptions? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.CreateAnnotationStoreVersionResponse) : this() {
this.creationTime = x.creationTime
this.id = x.id
this.name = x.name
this.status = x.status
this.storeId = x.storeId
this.versionName = x.versionName
this.versionOptions = x.versionOptions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.CreateAnnotationStoreVersionResponse = CreateAnnotationStoreVersionResponse(this)
internal fun correctErrors(): Builder {
if (creationTime == null) creationTime = Instant.fromEpochSeconds(0)
if (id == null) id = ""
if (name == null) name = ""
if (status == null) status = VersionStatus.SdkUnknown("no value provided")
if (storeId == null) storeId = ""
if (versionName == null) versionName = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy