
commonMain.aws.sdk.kotlin.services.omics.model.TsvOptions.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.omics.model
/**
* Formatting options for a TSV file.
*/
public class TsvOptions private constructor(builder: Builder) {
/**
* The file's read options.
*/
public val readOptions: aws.sdk.kotlin.services.omics.model.ReadOptions? = builder.readOptions
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.TsvOptions = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TsvOptions(")
append("readOptions=$readOptions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = readOptions?.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 TsvOptions
if (readOptions != other.readOptions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.TsvOptions = Builder(this).apply(block).build()
public class Builder {
/**
* The file's read options.
*/
public var readOptions: aws.sdk.kotlin.services.omics.model.ReadOptions? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.TsvOptions) : this() {
this.readOptions = x.readOptions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.TsvOptions = TsvOptions(this)
/**
* construct an [aws.sdk.kotlin.services.omics.model.ReadOptions] inside the given [block]
*/
public fun readOptions(block: aws.sdk.kotlin.services.omics.model.ReadOptions.Builder.() -> kotlin.Unit) {
this.readOptions = aws.sdk.kotlin.services.omics.model.ReadOptions.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy