commonMain.aws.sdk.kotlin.services.glacier.model.CsvInput.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glacier-jvm Show documentation
Show all versions of glacier-jvm Show documentation
The AWS Kotlin client for Glacier
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glacier.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Contains information about the comma-separated value (CSV) file to select from.
*/
public class CsvInput private constructor(builder: Builder) {
/**
* A single character used to indicate that a row should be ignored when the character is present at the start of that row.
*/
public val comments: kotlin.String? = builder.comments
/**
* A value used to separate individual fields from each other within a record.
*/
public val fieldDelimiter: kotlin.String? = builder.fieldDelimiter
/**
* Describes the first line of input. Valid values are `None`, `Ignore`, and `Use`.
*/
public val fileHeaderInfo: aws.sdk.kotlin.services.glacier.model.FileHeaderInfo? = builder.fileHeaderInfo
/**
* A value used as an escape character where the field delimiter is part of the value.
*/
public val quoteCharacter: kotlin.String? = builder.quoteCharacter
/**
* A single character used for escaping the quotation-mark character inside an already escaped value.
*/
public val quoteEscapeCharacter: kotlin.String? = builder.quoteEscapeCharacter
/**
* A value used to separate individual records from each other.
*/
public val recordDelimiter: kotlin.String? = builder.recordDelimiter
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glacier.model.CsvInput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CsvInput(")
append("comments=$comments,")
append("fieldDelimiter=$fieldDelimiter,")
append("fileHeaderInfo=$fileHeaderInfo,")
append("quoteCharacter=$quoteCharacter,")
append("quoteEscapeCharacter=$quoteEscapeCharacter,")
append("recordDelimiter=$recordDelimiter")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = comments?.hashCode() ?: 0
result = 31 * result + (fieldDelimiter?.hashCode() ?: 0)
result = 31 * result + (fileHeaderInfo?.hashCode() ?: 0)
result = 31 * result + (quoteCharacter?.hashCode() ?: 0)
result = 31 * result + (quoteEscapeCharacter?.hashCode() ?: 0)
result = 31 * result + (recordDelimiter?.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 CsvInput
if (comments != other.comments) return false
if (fieldDelimiter != other.fieldDelimiter) return false
if (fileHeaderInfo != other.fileHeaderInfo) return false
if (quoteCharacter != other.quoteCharacter) return false
if (quoteEscapeCharacter != other.quoteEscapeCharacter) return false
if (recordDelimiter != other.recordDelimiter) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glacier.model.CsvInput = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A single character used to indicate that a row should be ignored when the character is present at the start of that row.
*/
public var comments: kotlin.String? = null
/**
* A value used to separate individual fields from each other within a record.
*/
public var fieldDelimiter: kotlin.String? = null
/**
* Describes the first line of input. Valid values are `None`, `Ignore`, and `Use`.
*/
public var fileHeaderInfo: aws.sdk.kotlin.services.glacier.model.FileHeaderInfo? = null
/**
* A value used as an escape character where the field delimiter is part of the value.
*/
public var quoteCharacter: kotlin.String? = null
/**
* A single character used for escaping the quotation-mark character inside an already escaped value.
*/
public var quoteEscapeCharacter: kotlin.String? = null
/**
* A value used to separate individual records from each other.
*/
public var recordDelimiter: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glacier.model.CsvInput) : this() {
this.comments = x.comments
this.fieldDelimiter = x.fieldDelimiter
this.fileHeaderInfo = x.fileHeaderInfo
this.quoteCharacter = x.quoteCharacter
this.quoteEscapeCharacter = x.quoteEscapeCharacter
this.recordDelimiter = x.recordDelimiter
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glacier.model.CsvInput = CsvInput(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy