commonMain.aws.sdk.kotlin.services.omics.model.GetReadSetMetadataResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of omics-jvm Show documentation
Show all versions of omics-jvm Show documentation
The AWS SDK for Kotlin client for Omics
// 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 GetReadSetMetadataResponse private constructor(builder: Builder) {
/**
* The read set's ARN.
*/
public val arn: kotlin.String = requireNotNull(builder.arn) { "A non-null value must be provided for arn" }
/**
* When the read set was created.
*/
public val creationTime: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.creationTime) { "A non-null value must be provided for creationTime" }
/**
* The creation type of the read set.
*/
public val creationType: aws.sdk.kotlin.services.omics.model.CreationType? = builder.creationType
/**
* The read set's description.
*/
public val description: kotlin.String? = builder.description
/**
* The entity tag (ETag) is a hash of the object meant to represent its semantic content.
*/
public val etag: aws.sdk.kotlin.services.omics.model.ETag? = builder.etag
/**
* The read set's file type.
*/
public val fileType: aws.sdk.kotlin.services.omics.model.FileType = requireNotNull(builder.fileType) { "A non-null value must be provided for fileType" }
/**
* The read set's files.
*/
public val files: aws.sdk.kotlin.services.omics.model.ReadSetFiles? = builder.files
/**
* The read set's ID.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* The read set's name.
*/
public val name: kotlin.String? = builder.name
/**
* The read set's genome reference ARN.
*/
public val referenceArn: kotlin.String? = builder.referenceArn
/**
* The read set's sample ID.
*/
public val sampleId: kotlin.String? = builder.sampleId
/**
* The read set's sequence information.
*/
public val sequenceInformation: aws.sdk.kotlin.services.omics.model.SequenceInformation? = builder.sequenceInformation
/**
* The read set's sequence store ID.
*/
public val sequenceStoreId: kotlin.String = requireNotNull(builder.sequenceStoreId) { "A non-null value must be provided for sequenceStoreId" }
/**
* The read set's status.
*/
public val status: aws.sdk.kotlin.services.omics.model.ReadSetStatus = requireNotNull(builder.status) { "A non-null value must be provided for status" }
/**
* The status message for a read set. It provides more detail as to why the read set has a status.
*/
public val statusMessage: kotlin.String? = builder.statusMessage
/**
* The read set's subject ID.
*/
public val subjectId: kotlin.String? = builder.subjectId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.GetReadSetMetadataResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetReadSetMetadataResponse(")
append("arn=$arn,")
append("creationTime=$creationTime,")
append("creationType=$creationType,")
append("description=$description,")
append("etag=$etag,")
append("fileType=$fileType,")
append("files=$files,")
append("id=$id,")
append("name=$name,")
append("referenceArn=$referenceArn,")
append("sampleId=$sampleId,")
append("sequenceInformation=$sequenceInformation,")
append("sequenceStoreId=$sequenceStoreId,")
append("status=$status,")
append("statusMessage=$statusMessage,")
append("subjectId=$subjectId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn.hashCode()
result = 31 * result + (creationTime.hashCode())
result = 31 * result + (creationType?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (etag?.hashCode() ?: 0)
result = 31 * result + (fileType.hashCode())
result = 31 * result + (files?.hashCode() ?: 0)
result = 31 * result + (id.hashCode())
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (referenceArn?.hashCode() ?: 0)
result = 31 * result + (sampleId?.hashCode() ?: 0)
result = 31 * result + (sequenceInformation?.hashCode() ?: 0)
result = 31 * result + (sequenceStoreId.hashCode())
result = 31 * result + (status.hashCode())
result = 31 * result + (statusMessage?.hashCode() ?: 0)
result = 31 * result + (subjectId?.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 GetReadSetMetadataResponse
if (arn != other.arn) return false
if (creationTime != other.creationTime) return false
if (creationType != other.creationType) return false
if (description != other.description) return false
if (etag != other.etag) return false
if (fileType != other.fileType) return false
if (files != other.files) return false
if (id != other.id) return false
if (name != other.name) return false
if (referenceArn != other.referenceArn) return false
if (sampleId != other.sampleId) return false
if (sequenceInformation != other.sequenceInformation) return false
if (sequenceStoreId != other.sequenceStoreId) return false
if (status != other.status) return false
if (statusMessage != other.statusMessage) return false
if (subjectId != other.subjectId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.GetReadSetMetadataResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The read set's ARN.
*/
public var arn: kotlin.String? = null
/**
* When the read set was created.
*/
public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The creation type of the read set.
*/
public var creationType: aws.sdk.kotlin.services.omics.model.CreationType? = null
/**
* The read set's description.
*/
public var description: kotlin.String? = null
/**
* The entity tag (ETag) is a hash of the object meant to represent its semantic content.
*/
public var etag: aws.sdk.kotlin.services.omics.model.ETag? = null
/**
* The read set's file type.
*/
public var fileType: aws.sdk.kotlin.services.omics.model.FileType? = null
/**
* The read set's files.
*/
public var files: aws.sdk.kotlin.services.omics.model.ReadSetFiles? = null
/**
* The read set's ID.
*/
public var id: kotlin.String? = null
/**
* The read set's name.
*/
public var name: kotlin.String? = null
/**
* The read set's genome reference ARN.
*/
public var referenceArn: kotlin.String? = null
/**
* The read set's sample ID.
*/
public var sampleId: kotlin.String? = null
/**
* The read set's sequence information.
*/
public var sequenceInformation: aws.sdk.kotlin.services.omics.model.SequenceInformation? = null
/**
* The read set's sequence store ID.
*/
public var sequenceStoreId: kotlin.String? = null
/**
* The read set's status.
*/
public var status: aws.sdk.kotlin.services.omics.model.ReadSetStatus? = null
/**
* The status message for a read set. It provides more detail as to why the read set has a status.
*/
public var statusMessage: kotlin.String? = null
/**
* The read set's subject ID.
*/
public var subjectId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.GetReadSetMetadataResponse) : this() {
this.arn = x.arn
this.creationTime = x.creationTime
this.creationType = x.creationType
this.description = x.description
this.etag = x.etag
this.fileType = x.fileType
this.files = x.files
this.id = x.id
this.name = x.name
this.referenceArn = x.referenceArn
this.sampleId = x.sampleId
this.sequenceInformation = x.sequenceInformation
this.sequenceStoreId = x.sequenceStoreId
this.status = x.status
this.statusMessage = x.statusMessage
this.subjectId = x.subjectId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.GetReadSetMetadataResponse = GetReadSetMetadataResponse(this)
/**
* construct an [aws.sdk.kotlin.services.omics.model.ETag] inside the given [block]
*/
public fun etag(block: aws.sdk.kotlin.services.omics.model.ETag.Builder.() -> kotlin.Unit) {
this.etag = aws.sdk.kotlin.services.omics.model.ETag.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.omics.model.ReadSetFiles] inside the given [block]
*/
public fun files(block: aws.sdk.kotlin.services.omics.model.ReadSetFiles.Builder.() -> kotlin.Unit) {
this.files = aws.sdk.kotlin.services.omics.model.ReadSetFiles.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.omics.model.SequenceInformation] inside the given [block]
*/
public fun sequenceInformation(block: aws.sdk.kotlin.services.omics.model.SequenceInformation.Builder.() -> kotlin.Unit) {
this.sequenceInformation = aws.sdk.kotlin.services.omics.model.SequenceInformation.invoke(block)
}
internal fun correctErrors(): Builder {
if (arn == null) arn = ""
if (creationTime == null) creationTime = Instant.fromEpochSeconds(0)
if (fileType == null) fileType = FileType.SdkUnknown("no value provided")
if (id == null) id = ""
if (sequenceStoreId == null) sequenceStoreId = ""
if (status == null) status = ReadSetStatus.SdkUnknown("no value provided")
return this
}
}
}