All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.s3control.model.JobManifest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.s3control.model



/**
 * Contains the configuration information for a job's manifest.
 */
public class JobManifest private constructor(builder: Builder) {
    /**
     * Contains the information required to locate the specified job's manifest. Manifests can't be imported from directory buckets. For more information, see [Directory buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html).
     */
    public val location: aws.sdk.kotlin.services.s3control.model.JobManifestLocation? = builder.location
    /**
     * Describes the format of the specified job's manifest. If the manifest is in CSV format, also describes the columns contained within the manifest.
     */
    public val spec: aws.sdk.kotlin.services.s3control.model.JobManifestSpec? = builder.spec

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.s3control.model.JobManifest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("JobManifest(")
        append("location=$location,")
        append("spec=$spec")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = location?.hashCode() ?: 0
        result = 31 * result + (spec?.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 JobManifest

        if (location != other.location) return false
        if (spec != other.spec) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.s3control.model.JobManifest = Builder(this).apply(block).build()

    public class Builder {
        /**
         * Contains the information required to locate the specified job's manifest. Manifests can't be imported from directory buckets. For more information, see [Directory buckets](https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html).
         */
        public var location: aws.sdk.kotlin.services.s3control.model.JobManifestLocation? = null
        /**
         * Describes the format of the specified job's manifest. If the manifest is in CSV format, also describes the columns contained within the manifest.
         */
        public var spec: aws.sdk.kotlin.services.s3control.model.JobManifestSpec? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.s3control.model.JobManifest) : this() {
            this.location = x.location
            this.spec = x.spec
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.s3control.model.JobManifest = JobManifest(this)

        /**
         * construct an [aws.sdk.kotlin.services.s3control.model.JobManifestLocation] inside the given [block]
         */
        public fun location(block: aws.sdk.kotlin.services.s3control.model.JobManifestLocation.Builder.() -> kotlin.Unit) {
            this.location = aws.sdk.kotlin.services.s3control.model.JobManifestLocation.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.s3control.model.JobManifestSpec] inside the given [block]
         */
        public fun spec(block: aws.sdk.kotlin.services.s3control.model.JobManifestSpec.Builder.() -> kotlin.Unit) {
            this.spec = aws.sdk.kotlin.services.s3control.model.JobManifestSpec.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy