
commonMain.aws.sdk.kotlin.services.omics.model.GetReferenceMetadataResponse.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 GetReferenceMetadataResponse private constructor(builder: Builder) {
/**
* The reference's ARN.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* When the reference was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.creationTime) { "A non-null value must be provided for creationTime" }
/**
* The reference's description.
*/
public val description: kotlin.String? = builder.description
/**
* The reference's files.
*/
public val files: aws.sdk.kotlin.services.omics.model.ReferenceFiles? = builder.files
/**
* The reference's ID.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* The reference's MD5 checksum.
*/
public val md5: kotlin.String = requireNotNull(builder.md5) { "A non-null value must be provided for md5" }
/**
* The reference's name.
*/
public val name: kotlin.String? = builder.name
/**
* The reference's reference store ID.
*/
public val referenceStoreId: kotlin.String = requireNotNull(builder.referenceStoreId) { "A non-null value must be provided for referenceStoreId" }
/**
* The reference's status.
*/
public val status: aws.sdk.kotlin.services.omics.model.ReferenceStatus? = builder.status
/**
* When the reference was updated.
*/
public val updateTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.updateTime) { "A non-null value must be provided for updateTime" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.GetReferenceMetadataResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetReferenceMetadataResponse(")
append("arn=$arn,")
append("creationTime=$creationTime,")
append("description=$description,")
append("files=$files,")
append("id=$id,")
append("md5=$md5,")
append("name=$name,")
append("referenceStoreId=$referenceStoreId,")
append("status=$status,")
append("updateTime=$updateTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn.hashCode()
result = 31 * result + (creationTime.hashCode())
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (files?.hashCode() ?: 0)
result = 31 * result + (id.hashCode())
result = 31 * result + (md5.hashCode())
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (referenceStoreId.hashCode())
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (updateTime.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 GetReferenceMetadataResponse
if (arn != other.arn) return false
if (creationTime != other.creationTime) return false
if (description != other.description) return false
if (files != other.files) return false
if (id != other.id) return false
if (md5 != other.md5) return false
if (name != other.name) return false
if (referenceStoreId != other.referenceStoreId) return false
if (status != other.status) return false
if (updateTime != other.updateTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.GetReferenceMetadataResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The reference's ARN.
*/
public var arn: kotlin.String? = null
/**
* When the reference was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The reference's description.
*/
public var description: kotlin.String? = null
/**
* The reference's files.
*/
public var files: aws.sdk.kotlin.services.omics.model.ReferenceFiles? = null
/**
* The reference's ID.
*/
public var id: kotlin.String? = null
/**
* The reference's MD5 checksum.
*/
public var md5: kotlin.String? = null
/**
* The reference's name.
*/
public var name: kotlin.String? = null
/**
* The reference's reference store ID.
*/
public var referenceStoreId: kotlin.String? = null
/**
* The reference's status.
*/
public var status: aws.sdk.kotlin.services.omics.model.ReferenceStatus? = null
/**
* When the reference was updated.
*/
public var updateTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.GetReferenceMetadataResponse) : this() {
this.arn = x.arn
this.creationTime = x.creationTime
this.description = x.description
this.files = x.files
this.id = x.id
this.md5 = x.md5
this.name = x.name
this.referenceStoreId = x.referenceStoreId
this.status = x.status
this.updateTime = x.updateTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.GetReferenceMetadataResponse = GetReferenceMetadataResponse(this)
/**
* construct an [aws.sdk.kotlin.services.omics.model.ReferenceFiles] inside the given [block]
*/
public fun files(block: aws.sdk.kotlin.services.omics.model.ReferenceFiles.Builder.() -> kotlin.Unit) {
this.files = aws.sdk.kotlin.services.omics.model.ReferenceFiles.invoke(block)
}
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
if (creationTime == null) creationTime = Instant.fromEpochSeconds(0)
if (id == null) id = ""
if (md5 == null) md5 = ""
if (referenceStoreId == null) referenceStoreId = ""
if (updateTime == null) updateTime = Instant.fromEpochSeconds(0)
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy