commonMain.aws.sdk.kotlin.services.omics.model.SourceFiles.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.SdkDsl
/**
* Source files for a sequence.
*/
public class SourceFiles private constructor(builder: Builder) {
/**
* The location of the first file in Amazon S3.
*/
public val source1: kotlin.String = requireNotNull(builder.source1) { "A non-null value must be provided for source1" }
/**
* The location of the second file in Amazon S3.
*/
public val source2: kotlin.String? = builder.source2
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.SourceFiles = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SourceFiles(")
append("source1=$source1,")
append("source2=$source2")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = source1.hashCode()
result = 31 * result + (source2?.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 SourceFiles
if (source1 != other.source1) return false
if (source2 != other.source2) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.SourceFiles = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The location of the first file in Amazon S3.
*/
public var source1: kotlin.String? = null
/**
* The location of the second file in Amazon S3.
*/
public var source2: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.SourceFiles) : this() {
this.source1 = x.source1
this.source2 = x.source2
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.SourceFiles = SourceFiles(this)
internal fun correctErrors(): Builder {
if (source1 == null) source1 = ""
return this
}
}
}