
commonMain.aws.sdk.kotlin.services.omics.model.ImportReferenceSourceItem.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.omics.model
/**
* An genome reference source.
*/
public class ImportReferenceSourceItem private constructor(builder: Builder) {
/**
* The source's description.
*/
public val description: kotlin.String? = builder.description
/**
* The source's name.
*/
public val name: kotlin.String? = builder.name
/**
* The source file's location in Amazon S3.
*/
public val sourceFile: kotlin.String? = builder.sourceFile
/**
* The source's status.
*/
public val status: aws.sdk.kotlin.services.omics.model.ReferenceImportJobItemStatus = requireNotNull(builder.status) { "A non-null value must be provided for status" }
/**
* The source's status message.
*/
public val statusMessage: kotlin.String? = builder.statusMessage
/**
* The source's tags.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.ImportReferenceSourceItem = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ImportReferenceSourceItem(")
append("description=$description,")
append("name=$name,")
append("sourceFile=$sourceFile,")
append("status=$status,")
append("statusMessage=$statusMessage,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (sourceFile?.hashCode() ?: 0)
result = 31 * result + (status.hashCode())
result = 31 * result + (statusMessage?.hashCode() ?: 0)
result = 31 * result + (tags?.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 ImportReferenceSourceItem
if (description != other.description) return false
if (name != other.name) return false
if (sourceFile != other.sourceFile) return false
if (status != other.status) return false
if (statusMessage != other.statusMessage) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.ImportReferenceSourceItem = Builder(this).apply(block).build()
public class Builder {
/**
* The source's description.
*/
public var description: kotlin.String? = null
/**
* The source's name.
*/
public var name: kotlin.String? = null
/**
* The source file's location in Amazon S3.
*/
public var sourceFile: kotlin.String? = null
/**
* The source's status.
*/
public var status: aws.sdk.kotlin.services.omics.model.ReferenceImportJobItemStatus? = null
/**
* The source's status message.
*/
public var statusMessage: kotlin.String? = null
/**
* The source's tags.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.ImportReferenceSourceItem) : this() {
this.description = x.description
this.name = x.name
this.sourceFile = x.sourceFile
this.status = x.status
this.statusMessage = x.statusMessage
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.ImportReferenceSourceItem = ImportReferenceSourceItem(this)
internal fun correctErrors(): Builder {
if (status == null) status = ReferenceImportJobItemStatus.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy