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

commonMain.aws.sdk.kotlin.services.appflow.model.SuccessResponseHandlingConfig.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.appflow.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Determines how Amazon AppFlow handles the success response that it gets from the connector after placing data.
 *
 * For example, this setting would determine where to write the response from the destination connector upon a successful insert operation.
 */
public class SuccessResponseHandlingConfig private constructor(builder: Builder) {
    /**
     * The name of the Amazon S3 bucket.
     */
    public val bucketName: kotlin.String? = builder.bucketName
    /**
     * The Amazon S3 bucket prefix.
     */
    public val bucketPrefix: kotlin.String? = builder.bucketPrefix

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

    override fun toString(): kotlin.String = buildString {
        append("SuccessResponseHandlingConfig(")
        append("bucketName=$bucketName,")
        append("bucketPrefix=$bucketPrefix")
        append(")")
    }

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

        if (bucketName != other.bucketName) return false
        if (bucketPrefix != other.bucketPrefix) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the Amazon S3 bucket.
         */
        public var bucketName: kotlin.String? = null
        /**
         * The Amazon S3 bucket prefix.
         */
        public var bucketPrefix: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.appflow.model.SuccessResponseHandlingConfig) : this() {
            this.bucketName = x.bucketName
            this.bucketPrefix = x.bucketPrefix
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy