
commonMain.aws.sdk.kotlin.services.omics.model.ReadOptions.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.omics.model
/**
* Read options for an annotation import job.
*/
public class ReadOptions private constructor(builder: Builder) {
/**
* The file's comment character.
*/
public val comment: kotlin.String? = builder.comment
/**
* The file's encoding.
*/
public val encoding: kotlin.String? = builder.encoding
/**
* A character for escaping quotes in the file.
*/
public val escape: kotlin.String? = builder.escape
/**
* Whether quotes need to be escaped in the file.
*/
public val escapeQuotes: kotlin.Boolean = builder.escapeQuotes
/**
* Whether the file has a header row.
*/
public val header: kotlin.Boolean = builder.header
/**
* A line separator for the file.
*/
public val lineSep: kotlin.String? = builder.lineSep
/**
* The file's quote character.
*/
public val quote: kotlin.String? = builder.quote
/**
* Whether all values need to be quoted, or just those that contain quotes.
*/
public val quoteAll: kotlin.Boolean = builder.quoteAll
/**
* The file's field separator.
*/
public val sep: kotlin.String? = builder.sep
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.omics.model.ReadOptions = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ReadOptions(")
append("comment=$comment,")
append("encoding=$encoding,")
append("escape=$escape,")
append("escapeQuotes=$escapeQuotes,")
append("header=$header,")
append("lineSep=$lineSep,")
append("quote=$quote,")
append("quoteAll=$quoteAll,")
append("sep=$sep")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = comment?.hashCode() ?: 0
result = 31 * result + (encoding?.hashCode() ?: 0)
result = 31 * result + (escape?.hashCode() ?: 0)
result = 31 * result + (escapeQuotes.hashCode())
result = 31 * result + (header.hashCode())
result = 31 * result + (lineSep?.hashCode() ?: 0)
result = 31 * result + (quote?.hashCode() ?: 0)
result = 31 * result + (quoteAll.hashCode())
result = 31 * result + (sep?.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 ReadOptions
if (comment != other.comment) return false
if (encoding != other.encoding) return false
if (escape != other.escape) return false
if (escapeQuotes != other.escapeQuotes) return false
if (header != other.header) return false
if (lineSep != other.lineSep) return false
if (quote != other.quote) return false
if (quoteAll != other.quoteAll) return false
if (sep != other.sep) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.omics.model.ReadOptions = Builder(this).apply(block).build()
public class Builder {
/**
* The file's comment character.
*/
public var comment: kotlin.String? = null
/**
* The file's encoding.
*/
public var encoding: kotlin.String? = null
/**
* A character for escaping quotes in the file.
*/
public var escape: kotlin.String? = null
/**
* Whether quotes need to be escaped in the file.
*/
public var escapeQuotes: kotlin.Boolean = false
/**
* Whether the file has a header row.
*/
public var header: kotlin.Boolean = false
/**
* A line separator for the file.
*/
public var lineSep: kotlin.String? = null
/**
* The file's quote character.
*/
public var quote: kotlin.String? = null
/**
* Whether all values need to be quoted, or just those that contain quotes.
*/
public var quoteAll: kotlin.Boolean = false
/**
* The file's field separator.
*/
public var sep: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.omics.model.ReadOptions) : this() {
this.comment = x.comment
this.encoding = x.encoding
this.escape = x.escape
this.escapeQuotes = x.escapeQuotes
this.header = x.header
this.lineSep = x.lineSep
this.quote = x.quote
this.quoteAll = x.quoteAll
this.sep = x.sep
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.omics.model.ReadOptions = ReadOptions(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy