
commonMain.aws.sdk.kotlin.services.s3control.model.JobManifestSpec.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.s3control.model
/**
* Describes the format of a manifest. If the manifest is in CSV format, also describes the columns contained within the manifest.
*/
public class JobManifestSpec private constructor(builder: Builder) {
/**
* If the specified manifest object is in the `S3BatchOperations_CSV_20180820` format, this element describes which columns contain the required data.
*/
public val fields: List? = builder.fields
/**
* Indicates which of the available formats the specified manifest uses.
*/
public val format: aws.sdk.kotlin.services.s3control.model.JobManifestFormat = requireNotNull(builder.format) { "A non-null value must be provided for format" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.JobManifestSpec = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("JobManifestSpec(")
append("fields=$fields,")
append("format=$format")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = fields?.hashCode() ?: 0
result = 31 * result + (format.hashCode())
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 JobManifestSpec
if (fields != other.fields) return false
if (format != other.format) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.JobManifestSpec = Builder(this).apply(block).build()
public class Builder {
/**
* If the specified manifest object is in the `S3BatchOperations_CSV_20180820` format, this element describes which columns contain the required data.
*/
public var fields: List? = null
/**
* Indicates which of the available formats the specified manifest uses.
*/
public var format: aws.sdk.kotlin.services.s3control.model.JobManifestFormat? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.s3control.model.JobManifestSpec) : this() {
this.fields = x.fields
this.format = x.format
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.s3control.model.JobManifestSpec = JobManifestSpec(this)
internal fun correctErrors(): Builder {
if (format == null) format = JobManifestFormat.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy