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

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

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

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



/**
 * Contains the configuration parameters for a job-completion report.
 */
public class JobReport private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) for the bucket where specified job-completion report will be stored.
     *
     * **Directory buckets** - Directory buckets aren't supported as a location for Batch Operations to store job completion reports.
     */
    public val bucket: kotlin.String? = builder.bucket
    /**
     * Indicates whether the specified job will generate a job-completion report.
     */
    public val enabled: kotlin.Boolean = builder.enabled
    /**
     * The format of the specified job-completion report.
     */
    public val format: aws.sdk.kotlin.services.s3control.model.JobReportFormat? = builder.format
    /**
     * An optional prefix to describe where in the specified bucket the job-completion report will be stored. Amazon S3 stores the job-completion report at `/job-/report.json`.
     */
    public val prefix: kotlin.String? = builder.prefix
    /**
     * Indicates whether the job-completion report will include details of all tasks or only failed tasks.
     */
    public val reportScope: aws.sdk.kotlin.services.s3control.model.JobReportScope? = builder.reportScope

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

    override fun toString(): kotlin.String = buildString {
        append("JobReport(")
        append("bucket=$bucket,")
        append("enabled=$enabled,")
        append("format=$format,")
        append("prefix=$prefix,")
        append("reportScope=$reportScope")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = bucket?.hashCode() ?: 0
        result = 31 * result + (enabled.hashCode())
        result = 31 * result + (format?.hashCode() ?: 0)
        result = 31 * result + (prefix?.hashCode() ?: 0)
        result = 31 * result + (reportScope?.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 JobReport

        if (bucket != other.bucket) return false
        if (enabled != other.enabled) return false
        if (format != other.format) return false
        if (prefix != other.prefix) return false
        if (reportScope != other.reportScope) return false

        return true
    }

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

    public class Builder {
        /**
         * The Amazon Resource Name (ARN) for the bucket where specified job-completion report will be stored.
         *
         * **Directory buckets** - Directory buckets aren't supported as a location for Batch Operations to store job completion reports.
         */
        public var bucket: kotlin.String? = null
        /**
         * Indicates whether the specified job will generate a job-completion report.
         */
        public var enabled: kotlin.Boolean = false
        /**
         * The format of the specified job-completion report.
         */
        public var format: aws.sdk.kotlin.services.s3control.model.JobReportFormat? = null
        /**
         * An optional prefix to describe where in the specified bucket the job-completion report will be stored. Amazon S3 stores the job-completion report at `/job-/report.json`.
         */
        public var prefix: kotlin.String? = null
        /**
         * Indicates whether the job-completion report will include details of all tasks or only failed tasks.
         */
        public var reportScope: aws.sdk.kotlin.services.s3control.model.JobReportScope? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.s3control.model.JobReport) : this() {
            this.bucket = x.bucket
            this.enabled = x.enabled
            this.format = x.format
            this.prefix = x.prefix
            this.reportScope = x.reportScope
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy