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