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

commonMain.aws.sdk.kotlin.services.customerprofiles.model.S3SourceProperties.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.customerprofiles.model



/**
 * The properties that are applied when Amazon S3 is being used as the flow source.
 */
public class S3SourceProperties private constructor(builder: Builder) {
    /**
     * The Amazon S3 bucket name where the source files are stored.
     */
    public val bucketName: kotlin.String? = builder.bucketName
    /**
     * The object key for the Amazon S3 bucket in which the source files are stored.
     */
    public val bucketPrefix: kotlin.String? = builder.bucketPrefix

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

    override fun toString(): kotlin.String = buildString {
        append("S3SourceProperties(")
        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 S3SourceProperties

        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.customerprofiles.model.S3SourceProperties = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The Amazon S3 bucket name where the source files are stored.
         */
        public var bucketName: kotlin.String? = null
        /**
         * The object key for the Amazon S3 bucket in which the source files are stored.
         */
        public var bucketPrefix: kotlin.String? = null

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

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.customerprofiles.model.S3SourceProperties = S3SourceProperties(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy