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

commonMain.aws.sdk.kotlin.services.glue.model.BatchUpdatePartitionFailureEntry.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.glue.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Contains information about a batch update partition error.
 */
public class BatchUpdatePartitionFailureEntry private constructor(builder: Builder) {
    /**
     * The details about the batch update partition error.
     */
    public val errorDetail: aws.sdk.kotlin.services.glue.model.ErrorDetail? = builder.errorDetail
    /**
     * A list of values defining the partitions.
     */
    public val partitionValueList: List? = builder.partitionValueList

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

    override fun toString(): kotlin.String = buildString {
        append("BatchUpdatePartitionFailureEntry(")
        append("errorDetail=$errorDetail,")
        append("partitionValueList=$partitionValueList")
        append(")")
    }

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

        if (errorDetail != other.errorDetail) return false
        if (partitionValueList != other.partitionValueList) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The details about the batch update partition error.
         */
        public var errorDetail: aws.sdk.kotlin.services.glue.model.ErrorDetail? = null
        /**
         * A list of values defining the partitions.
         */
        public var partitionValueList: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.glue.model.BatchUpdatePartitionFailureEntry) : this() {
            this.errorDetail = x.errorDetail
            this.partitionValueList = x.partitionValueList
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy