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

aws.sdk.kotlin.services.codebuild.model.ReportExportConfig.kt Maven / Gradle / Ivy

There is a newer version: 1.3.100
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.codebuild.model



/**
 * Information about the location where the run of a report is exported.
 */
class ReportExportConfig private constructor(builder: Builder) {
    /**
     * The export configuration type. Valid values are:
     * S3: The report results are exported to an S3 bucket.
     * NO_EXPORT: The report results are not exported.
     */
    val exportConfigType: aws.sdk.kotlin.services.codebuild.model.ReportExportConfigType? = builder.exportConfigType
    /**
     * A S3ReportExportConfig object that contains information about the S3
     * bucket where the run of a report is exported.
     */
    val s3Destination: aws.sdk.kotlin.services.codebuild.model.S3ReportExportConfig? = builder.s3Destination

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

    override fun toString(): kotlin.String = buildString {
        append("ReportExportConfig(")
        append("exportConfigType=$exportConfigType,")
        append("s3Destination=$s3Destination)")
    }

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

        if (exportConfigType != other.exportConfigType) return false
        if (s3Destination != other.s3Destination) return false

        return true
    }

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

    class Builder {
        /**
         * The export configuration type. Valid values are:
         * S3: The report results are exported to an S3 bucket.
         * NO_EXPORT: The report results are not exported.
         */
        var exportConfigType: aws.sdk.kotlin.services.codebuild.model.ReportExportConfigType? = null
        /**
         * A S3ReportExportConfig object that contains information about the S3
         * bucket where the run of a report is exported.
         */
        var s3Destination: aws.sdk.kotlin.services.codebuild.model.S3ReportExportConfig? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codebuild.model.ReportExportConfig) : this() {
            this.exportConfigType = x.exportConfigType
            this.s3Destination = x.s3Destination
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy