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

commonMain.aws.sdk.kotlin.services.timestreamwrite.model.MagneticStoreRejectedDataLocation.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.timestreamwrite.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * The location to write error reports for records rejected, asynchronously, during magnetic store writes.
 */
public class MagneticStoreRejectedDataLocation private constructor(builder: Builder) {
    /**
     * Configuration of an S3 location to write error reports for records rejected, asynchronously, during magnetic store writes.
     */
    public val s3Configuration: aws.sdk.kotlin.services.timestreamwrite.model.S3Configuration? = builder.s3Configuration

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

    override fun toString(): kotlin.String = buildString {
        append("MagneticStoreRejectedDataLocation(")
        append("s3Configuration=$s3Configuration")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = s3Configuration?.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 MagneticStoreRejectedDataLocation

        if (s3Configuration != other.s3Configuration) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Configuration of an S3 location to write error reports for records rejected, asynchronously, during magnetic store writes.
         */
        public var s3Configuration: aws.sdk.kotlin.services.timestreamwrite.model.S3Configuration? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.timestreamwrite.model.MagneticStoreRejectedDataLocation) : this() {
            this.s3Configuration = x.s3Configuration
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy